iot_server/cmd/hummingbird-ui/build/ts.worker.js

3 lines
4.6 MiB

/*! For license information please see ts.worker.js.LICENSE.txt */
!function(){"use strict";var e={155:function(e,n,t){function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){if(e){if("string"===typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}function c(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(c)throw i}}}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){u=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(k){c=function(e,n,t){return e[n]=t}}function d(e,n,t,a){var i=n&&n.prototype instanceof m?n:m,o=Object.create(i.prototype),s=new C(a||[]);return r(o,"_invoke",{value:S(e,t,s)}),o}function p(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(k){return{type:"throw",arg:k}}}e.wrap=d;var f={};function m(){}function _(){}function g(){}var y={};c(y,i,(function(){return this}));var h=Object.getPrototypeOf,v=h&&h(h(A([])));v&&v!==n&&t.call(v,i)&&(y=v);var b=g.prototype=m.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function T(e,n){function a(r,i,o,s){var c=p(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&t.call(d,"__await")?n.resolve(d.__await).then((function(e){a("next",e,o,s)}),(function(e){a("throw",e,o,s)})):n.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return a("throw",e,o,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){a(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function S(e,n,t){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return I()}for(t.method=a,t.arg=i;;){var o=t.delegate;if(o){var s=x(o,t);if(s){if(s===f)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=p(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function x(e,n){var t=e.iterator[n.method];if(void 0===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,x(e,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=p(t,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function L(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function D(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:void 0,done:!0}}return _.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:_,configurable:!0}),_.displayName=c(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},E(T.prototype),c(T.prototype,o,(function(){return this})),e.AsyncIterator=T,e.async=function(n,t,r,a,i){void 0===i&&(i=Promise);var o=new T(d(n,t,r,a),i);return e.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(b),c(b,s,"Generator"),c(b,i,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&t.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),f},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),D(t),f}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var a=r.arg;D(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:A(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),f}},e}function d(e,n,t,r,a,i,o){try{var s=e[i](o),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(r,a)}function p(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var i=e.apply(n,t);function o(e){d(i,r,a,o,s,"next",e)}function s(e){d(i,r,a,o,s,"throw",e)}o(void 0)}))}}function f(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,n,t){return n&&m(e.prototype,n),t&&m(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}function h(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function E(e,n){if(n&&("object"===l(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function T(e){var n=b();return function(){var t,r=v(e);if(n){var a=v(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return E(this,t)}}function S(e,n,t){return S=b()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return t&&y(a,t.prototype),a},S.apply(null,arguments)}function x(e){var n="function"===typeof Map?new Map:void 0;return x=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return S(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)},x(e)}var L=new(function(){function e(){f(this,e),this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack){if(R.isErrorNoTelemetry(e))throw new R(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}return _(e,[{key:"emit",value:function(e){this.listeners.forEach((function(n){n(e)}))}},{key:"onUnexpectedError",value:function(e){this.unexpectedErrorHandler(e),this.emit(e)}},{key:"onUnexpectedExternalError",value:function(e){this.unexpectedErrorHandler(e)}}]),e}());function D(e){I(e)||L.onUnexpectedError(e)}function C(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack,noTelemetry:R.isErrorNoTelemetry(e)}:e}var A="Canceled";function I(e){return e instanceof k||e instanceof Error&&e.name===A&&e.message===A}var k=function(e){h(t,e);var n=T(t);function t(){var e;return f(this,t),(e=n.call(this,A)).name=e.message,e}return _(t)}(x(Error));Error;var N,R=function(e){h(t,e);var n=T(t);function t(e){var r;return f(this,t),(r=n.call(this,e)).name="ErrorNoTelemetry",r}return _(t,null,[{key:"fromError",value:function(e){if(e instanceof t)return e;var n=new t;return n.message=e.message,n.stack=e.stack,n}},{key:"isErrorNoTelemetry",value:function(e){return"ErrorNoTelemetry"===e.name}}]),t}(x(Error));Error;function O(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,i=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);o=!0);}catch(c){s=!0,a=c}finally{try{o||null==t.return||t.return()}finally{if(s)throw a}}return i}}(e,n)||s(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){var n,t=this,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}!function(e){var n=u().mark(l),t=u().mark(d),a=u().mark(p),i=u().mark(f),o=u().mark(m);e.is=function(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]};var s=Object.freeze([]);function l(e){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e;case 2:case"end":return n.stop()}}),n)}function d(e,n){var r,a,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=c(e),t.prev=1,r.s();case 3:if((a=r.n()).done){t.next=10;break}if(i=a.value,!n(i)){t.next=8;break}return t.next=8,i;case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])}function p(e,n){var t,r,i,o;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=0,r=c(e),a.prev=2,r.s();case 4:if((i=r.n()).done){a.next=10;break}return o=i.value,a.next=8,n(o,t++);case 8:a.next=4;break;case 10:a.next=15;break;case 12:a.prev=12,a.t0=a.catch(2),r.e(a.t0);case 15:return a.prev=15,r.f(),a.finish(15);case 18:case"end":return a.stop()}}),a,null,[[2,12,15,18]])}function f(){var e,n,t,r,a,o,s,l,d,p=arguments;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:for(e=p.length,n=new Array(e),t=0;t<e;t++)n[t]=p[t];r=0,a=n;case 2:if(!(r<a.length)){i.next=24;break}o=a[r],s=c(o),i.prev=5,s.s();case 7:if((l=s.n()).done){i.next=13;break}return d=l.value,i.next=11,d;case 11:i.next=7;break;case 13:i.next=18;break;case 15:i.prev=15,i.t0=i.catch(5),s.e(i.t0);case 18:return i.prev=18,s.f(),i.finish(18);case 21:r++,i.next=2;break;case 24:case"end":return i.stop()}}),i,null,[[5,15,18,21]])}function m(e){var n,t,r,a,i,s;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=c(e),o.prev=1,n.s();case 3:if((t=n.n()).done){o.next=24;break}r=t.value,a=c(r),o.prev=6,a.s();case 8:if((i=a.n()).done){o.next=14;break}return s=i.value,o.next=12,s;case 12:o.next=8;break;case 14:o.next=19;break;case 16:o.prev=16,o.t0=o.catch(6),a.e(o.t0);case 19:return o.prev=19,a.f(),o.finish(19);case 22:o.next=3;break;case 24:o.next=29;break;case 26:o.prev=26,o.t1=o.catch(1),n.e(o.t1);case 29:return o.prev=29,n.f(),o.finish(29);case 32:case"end":return o.stop()}}),o,null,[[1,26,29,32],[6,16,19,22]])}function _(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=[];if(0===t)return[a,n];for(var i=n[Symbol.iterator](),o=0;o<t;o++){var s=i.next();if(s.done)return[a,e.empty()];a.push(s.value)}return[a,r({},Symbol.iterator,(function(){return i}))]}e.empty=function(){return s},e.single=l,e.from=function(e){return e||s},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,n){var t,r=c(e);try{for(r.s();!(t=r.n()).done;){if(n(t.value))return!0}}catch(a){r.e(a)}finally{r.f()}return!1},e.find=function(e,n){var t,r=c(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(n(a))return a}}catch(i){r.e(i)}finally{r.f()}},e.filter=d,e.map=p,e.concat=f,e.concatNested=m,e.reduce=function(e,n,t){var r,a=t,i=c(e);try{for(i.s();!(r=i.n()).done;){a=n(a,r.value)}}catch(o){i.e(o)}finally{i.f()}return a},e.forEach=function(e,n){var t,r=0,a=c(e);try{for(a.s();!(t=a.n()).done;){n(t.value,r++)}}catch(i){a.e(i)}finally{a.f()}},e.slice=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n<0&&(n+=e.length),t<0?t+=e.length:t>e.length&&(t=e.length);case 2:if(!(n<t)){r.next=8;break}return r.next=5,e[n];case 5:n++,r.next=2;break;case 8:case"end":return r.stop()}}),r)}))()},e.consume=_,e.collect=function(e){return _(e)[0]},e.equals=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,n){return e===n},r=e[Symbol.iterator](),a=n[Symbol.iterator]();;){var i=r.next(),o=a.next();if(i.done!==o.done)return!1;if(i.done)return!0;if(!t(i.value,o.value))return!1}}}(N||(N={}));var P=null;function F(e){return null===P||void 0===P||P.trackDisposable(e),e}function G(e){null===P||void 0===P||P.markAsDisposed(e)}function B(e,n){null===P||void 0===P||P.setParent(e,n)}function U(e,n){if(P){var t,r=c(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;P.setParent(a,n)}}catch(i){r.e(i)}finally{r.f()}}}var V=function(e){h(t,e);var n=T(t);function t(e){var r;return f(this,t),(r=n.call(this,"Encountered errors while disposing of store. Errors: [".concat(e.join(", "),"]"))).errors=e,r}return _(t)}(x(Error));function j(e){if(N.is(e)){var n,t=[],r=c(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a)try{a.dispose()}catch(i){t.push(i)}}}catch(o){r.e(o)}finally{r.f()}if(1===t.length)throw t[0];if(t.length>1)throw new V(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function K(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=H((function(){return j(n)}));return U(n,r),r}function H(e){var n=F({dispose:M((function(){G(n),e()}))});return n}var W=function(){function e(){f(this,e),this._toDispose=new Set,this._isDisposed=!1,F(this)}return _(e,[{key:"dispose",value:function(){this._isDisposed||(G(this),this._isDisposed=!0,this.clear())}},{key:"isDisposed",get:function(){return this._isDisposed}},{key:"clear",value:function(){try{j(this._toDispose.values())}finally{this._toDispose.clear()}}},{key:"add",value:function(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return B(n,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(n),n}}]),e}();W.DISABLE_DISPOSED_WARNING=!1;var z=function(){function e(){f(this,e),this._store=new W,F(this),B(this._store,this)}return _(e,[{key:"dispose",value:function(){G(this),this._store.dispose()}},{key:"_register",value:function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}]),e}();z.None=Object.freeze({dispose:function(){}});var J=function(){function e(){f(this,e),this.dispose=function(){},this.unset=function(){},this.isset=function(){return!1},F(this)}return _(e,[{key:"set",value:function(e){var n=this,t=e;return this.unset=function(){return t=void 0},this.isset=function(){return void 0!==t},this.dispose=function(){t&&(t(),t=void 0,G(n))},this}}]),e}(),q=_((function e(n){f(this,e),this.element=n,this.next=e.Undefined,this.prev=e.Undefined}));q.Undefined=new q(void 0);var X,Y=function(e){function n(){f(this,n),this._first=q.Undefined,this._last=q.Undefined,this._size=0}return _(n,[{key:"size",get:function(){return this._size}},{key:"isEmpty",value:function(){return this._first===q.Undefined}},{key:"clear",value:function(){for(var e=this._first;e!==q.Undefined;){var n=e.next;e.prev=q.Undefined,e.next=q.Undefined,e=n}this._first=q.Undefined,this._last=q.Undefined,this._size=0}},{key:"unshift",value:function(e){return this._insert(e,!1)}},{key:"push",value:function(e){return this._insert(e,!0)}},{key:"_insert",value:function(e,n){var t=this,r=new q(e);if(this._first===q.Undefined)this._first=r,this._last=r;else if(n){var a=this._last;this._last=r,r.prev=a,a.next=r}else{var i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;var o=!1;return function(){o||(o=!0,t._remove(r))}}},{key:"shift",value:function(){if(this._first!==q.Undefined){var e=this._first.element;return this._remove(this._first),e}}},{key:"pop",value:function(){if(this._last!==q.Undefined){var e=this._last.element;return this._remove(this._last),e}}},{key:"_remove",value:function(e){if(e.prev!==q.Undefined&&e.next!==q.Undefined){var n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===q.Undefined&&e.next===q.Undefined?(this._first=q.Undefined,this._last=q.Undefined):e.next===q.Undefined?(this._last=this._last.prev,this._last.next=q.Undefined):e.prev===q.Undefined&&(this._first=this._first.next,this._first.prev=q.Undefined);this._size-=1}},{key:Symbol.iterator,value:u().mark((function e(){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this._first;case 1:if(n===q.Undefined){e.next=7;break}return e.next=4,n.element;case 4:n=n.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}]),n}(),Q="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Z(e,n){var t;return t=0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],a=n[r],i=e;return"string"===typeof a?i=a:"number"!==typeof a&&"boolean"!==typeof a&&void 0!==a&&null!==a||(i=String(a)),i})),Q&&(t="\uff3b"+t.replace(/[aouei]/g,"$&$&")+"\uff3d"),t}function $(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),a=2;a<t;a++)r[a-2]=arguments[a];return Z(n,r)}var ee="en",ne=!1,te=!1,re=!1,ae=!1,ie=void 0,oe="object"===typeof self?self:"object"===typeof t.g?t.g:{},se=void 0;"undefined"!==typeof oe.vscode&&"undefined"!==typeof oe.vscode.process?se=oe.vscode.process:"undefined"!==typeof process&&(se=process);var ce="string"===typeof(null===(X=null===se||void 0===se?void 0:se.versions)||void 0===X?void 0:X.electron),le=ce&&"renderer"===(null===se||void 0===se?void 0:se.type);if("object"!==typeof navigator||le)if("object"===typeof se){ne="win32"===se.platform,te="darwin"===se.platform,(re="linux"===se.platform)&&!!se.env.SNAP&&!!se.env.SNAP_REVISION,ce,!!se.env.CI||!!se.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ee,ee;var ue=se.env.VSCODE_NLS_CONFIG;if(ue)try{var de=JSON.parse(ue),pe=de.availableLanguages["*"];de.locale,pe||ee,de._translationsConfigFile}catch(Oa){}!0}else console.error("Unable to resolve platform.");else ne=(ie=navigator.userAgent).indexOf("Windows")>=0,te=ie.indexOf("Macintosh")>=0,(ie.indexOf("Macintosh")>=0||ie.indexOf("iPad")>=0||ie.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints,re=ie.indexOf("Linux")>=0,ae=!0,$({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_");var fe=ne,me=te,_e=(ae&&oe.importScripts,ie),ge="function"===typeof oe.postMessage&&!oe.importScripts;!function(){if(ge){var e=[];oe.addEventListener("message",(function(n){if(n.data&&n.data.vscodeScheduleAsyncWork)for(var t=0,r=e.length;t<r;t++){var a=e[t];if(a.id===n.data.vscodeScheduleAsyncWork)return e.splice(t,1),void a.callback()}}));var n=0;return function(t){var r=++n;e.push({id:r,callback:t}),oe.postMessage({vscodeScheduleAsyncWork:r},"*")}}}();var ye,he=!!(_e&&_e.indexOf("Chrome")>=0),ve=(_e&&_e.indexOf("Firefox"),!he&&_e&&_e.indexOf("Safari"),_e&&_e.indexOf("Edg/"),_e&&_e.indexOf("Android"),oe.performance&&"function"===typeof oe.performance.now),be=function(){function e(n){f(this,e),this._highResolution=ve&&n,this._startTime=this._now(),this._stopTime=-1}return _(e,[{key:"stop",value:function(){this._stopTime=this._now()}},{key:"elapsed",value:function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}},{key:"_now",value:function(){return this._highResolution?oe.performance.now():Date.now()}}],[{key:"create",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new e(n)}}]),e}();!function(e){function n(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a=!1,i=void 0;return i=e((function(e){if(!a)return i?i.dispose():a=!0,n.call(t,e)}),null,r),a&&i.dispose(),i}}function t(e,n,t){return o((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;return e((function(e){return t.call(r,n(e))}),null,a)}),t)}function r(e,n,t){return o((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;return e((function(e){n(e),t.call(r,e)}),null,a)}),t)}function a(e,n,t){return o((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;return e((function(e){return n(e)&&t.call(r,e)}),null,a)}),t)}function i(e,n,r,a){var i=r;return t(e,(function(e){return i=n(i,e)}),a)}function o(e,n){var t,r={onFirstListenerAdd:function(){t=e(a.fire,a)},onLastListenerRemove:function(){null===t||void 0===t||t.dispose()}},a=new xe(r);return null===n||void 0===n||n.add(a),a.event}function s(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,s=void 0,c=void 0,l=0,u={leakWarningThreshold:i,onFirstListenerAdd:function(){t=e((function(e){l++,s=n(s,e),a&&!c&&(d.fire(s),s=void 0),clearTimeout(c),c=setTimeout((function(){var e=s;s=void 0,c=void 0,(!a||l>1)&&d.fire(e),l=0}),r)}))},onLastListenerRemove:function(){t.dispose()}},d=new xe(u);return null===o||void 0===o||o.add(d),d.event}function c(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,n){return e===n},r=arguments.length>2?arguments[2]:void 0,i=!0;return a(e,(function(e){var r=i||!t(e,n);return i=!1,n=e,r}),r)}e.None=function(){return z.None},e.once=n,e.map=t,e.forEach=r,e.filter=a,e.signal=function(e){return e},e.any=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return K.apply(void 0,w(n.map((function(n){return n((function(n){return e.call(t,n)}),null,r)}))))}},e.reduce=i,e.debounce=s,e.latch=c,e.split=function(n,t,r){return[e.filter(n,t,r),e.filter(n,(function(e){return!t(e)}),r)]},e.buffer=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=t.slice(),a=e((function(e){r?r.push(e):o.fire(e)})),i=function(){null===r||void 0===r||r.forEach((function(e){return o.fire(e)})),r=null},o=new xe({onFirstListenerAdd:function(){a||(a=e((function(e){return o.fire(e)})))},onFirstListenerDidAdd:function(){r&&(n?setTimeout(i):i())},onLastListenerRemove:function(){a&&a.dispose(),a=null}});return o.event};var l=function(){function e(n){f(this,e),this.event=n,this.disposables=new W}return _(e,[{key:"map",value:function(n){return new e(t(this.event,n,this.disposables))}},{key:"forEach",value:function(n){return new e(r(this.event,n,this.disposables))}},{key:"filter",value:function(n){return new e(a(this.event,n,this.disposables))}},{key:"reduce",value:function(n,t){return new e(i(this.event,n,t,this.disposables))}},{key:"latch",value:function(){return new e(c(this.event,void 0,this.disposables))}},{key:"debounce",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3?arguments[3]:void 0;return new e(s(this.event,n,t,r,a,this.disposables))}},{key:"on",value:function(e,n,t){return this.event(e,n,t)}},{key:"once",value:function(e,t,r){return n(this.event)(e,t,r)}},{key:"dispose",value:function(){this.disposables.dispose()}}]),e}();e.chain=function(e){return new l(e)},e.fromNodeEventEmitter=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=function(){return o.fire(t.apply(void 0,arguments))},a=function(){return e.on(n,r)},i=function(){return e.removeListener(n,r)},o=new xe({onFirstListenerAdd:a,onLastListenerRemove:i});return o.event},e.fromDOMEventEmitter=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=function(){return o.fire(t.apply(void 0,arguments))},a=function(){return e.addEventListener(n,r)},i=function(){return e.removeEventListener(n,r)},o=new xe({onFirstListenerAdd:a,onLastListenerRemove:i});return o.event},e.toPromise=function(e){return new Promise((function(t){return n(e)(t)}))},e.runAndSubscribe=function(e,n){return n(void 0),e((function(e){return n(e)}))},e.runAndSubscribeWithStore=function(e,n){var t=null;function r(e){null===t||void 0===t||t.dispose(),t=new W,n(e,t)}r(void 0);var a=e((function(e){return r(e)}));return H((function(){a.dispose(),null===t||void 0===t||t.dispose()}))};var u=function(){function e(n,t){var r=this;f(this,e),this.obs=n,this._counter=0,this._hasChanged=!1;var a={onFirstListenerAdd:function(){n.addObserver(r)},onLastListenerRemove:function(){n.removeObserver(r)}};this.emitter=new xe(a),t&&t.add(this.emitter)}return _(e,[{key:"beginUpdate",value:function(e){this._counter++}},{key:"handleChange",value:function(e,n){this._hasChanged=!0}},{key:"endUpdate",value:function(e){0===--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}]),e}();e.fromObservable=function(e,n){return new u(e,n).emitter.event}}(ye||(ye={}));var Ee=function(){function e(n){f(this,e),this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name="".concat(n,"_").concat(e._idPool++)}return _(e,[{key:"start",value:function(e){this._stopWatch=new be(!0),this._listenerCount=e}},{key:"stop",value:function(){if(this._stopWatch){var e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info("did FIRE ".concat(this._name,": elapsed_ms: ").concat(e.toFixed(5),", listener: ").concat(this._listenerCount," (elapsed_overall: ").concat(this._elapsedOverall.toFixed(2),", invocations: ").concat(this._invocationCount,")")),this._stopWatch=void 0}}}]),e}();Ee._idPool=0;var Te=function(){function e(n){f(this,e),this.value=n}return _(e,[{key:"print",value:function(){console.warn(this.value.split("\n").slice(2).join("\n"))}}],[{key:"create",value:function(){var n;return new e(null!==(n=(new Error).stack)&&void 0!==n?n:"")}}]),e}(),Se=function(){function e(n,t,r){f(this,e),this.callback=n,this.callbackThis=t,this.stack=r,this.subscription=new J}return _(e,[{key:"invoke",value:function(e){this.callback.call(this.callbackThis,e)}}]),e}(),xe=function(){function e(n){var t,r;f(this,e),this._disposed=!1,this._options=n,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new Ee(this._options._profName):void 0,this._deliveryQueue=null===(r=this._options)||void 0===r?void 0:r.deliveryQueue}return _(e,[{key:"dispose",value:function(){var e,n,t,r;if(!this._disposed){if(this._disposed=!0,this._listeners)this._listeners.clear();null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(t=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===t||t.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose()}}},{key:"event",get:function(){var e=this;return this._event||(this._event=function(n,t,r){var a,i,o;e._listeners||(e._listeners=new Y);var s,c,l=e._listeners.isEmpty();l&&(null===(a=e._options)||void 0===a?void 0:a.onFirstListenerAdd)&&e._options.onFirstListenerAdd(e),e._leakageMon&&e._listeners.size>=30&&(c=Te.create(),s=e._leakageMon.check(c,e._listeners.size+1));var u=new Se(n,t,c),d=e._listeners.push(u);l&&(null===(i=e._options)||void 0===i?void 0:i.onFirstListenerDidAdd)&&e._options.onFirstListenerDidAdd(e),(null===(o=e._options)||void 0===o?void 0:o.onListenerDidAdd)&&e._options.onListenerDidAdd(e,n,t);var p=u.subscription.set((function(){(null===s||void 0===s||s(),e._disposed)||(d(),e._options&&e._options.onLastListenerRemove&&(e._listeners&&!e._listeners.isEmpty()||e._options.onLastListenerRemove(e)))}));return r instanceof W?r.add(p):Array.isArray(r)&&r.push(p),p}),this._event}},{key:"fire",value:function(e){var n,t;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Le);var r,a=c(this._listeners);try{for(a.s();!(r=a.n()).done;){var i=r.value;this._deliveryQueue.push(this,i,e)}}catch(o){a.e(o)}finally{a.f()}null===(n=this._perfMon)||void 0===n||n.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(t=this._perfMon)||void 0===t||t.stop()}}}]),e}(),Le=function(e){h(t,e);var n=T(t);function t(){return f(this,t),n.apply(this,arguments)}return _(t,[{key:"clear",value:function(e){this._queue.clear()}}]),t}(function(){function e(){f(this,e),this._queue=new Y}return _(e,[{key:"size",get:function(){return this._queue.size}},{key:"push",value:function(e,n,t){this._queue.push(new De(e,n,t))}},{key:"clear",value:function(e){var n,t=new Y,r=c(this._queue);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.emitter!==e&&t.push(a)}}catch(i){r.e(i)}finally{r.f()}this._queue=t}},{key:"deliver",value:function(){for(;this._queue.size>0;){var e=this._queue.shift();try{e.listener.invoke(e.event)}catch(Oa){D(Oa)}}}}]),e}()),De=_((function e(n,t,r){f(this,e),this.emitter=n,this.listener=t,this.event=r}));function Ce(e){var n,t=[],r=c(function(e){for(var n=[],t=Object.getPrototypeOf(e);Object.prototype!==t;)n=n.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return n}(e));try{for(r.s();!(n=r.n()).done;){var a=n.value;"function"===typeof e[a]&&t.push(a)}}catch(i){r.e(i)}finally{r.f()}return t}function Ae(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unreachable";throw new Error(n)}var Ie,ke=function(){function e(n){f(this,e),this.fn=n,this.lastCache=void 0,this.lastArgKey=void 0}return _(e,[{key:"get",value:function(e){var n=JSON.stringify(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}]),e}(),Ne=function(){function e(n){f(this,e),this.executor=n,this._didRun=!1}return _(e,[{key:"hasValue",value:function(){return this._didRun}},{key:"getValue",value:function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}},{key:"rawValue",get:function(){return this._value}}]),e}();function Re(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Oe(e){return e>=65&&e<=90}function we(e){return 55296<=e&&e<=56319}function Me(e){return 56320<=e&&e<=57343}function Pe(e,n){return n-56320+(e-55296<<10)+65536}function Fe(e,n,t){var r=e.charCodeAt(t);if(we(r)&&t+1<n){var a=e.charCodeAt(t+1);if(Me(a))return Pe(r,a)}return r}var Ge=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);var Be=function(){function e(){f(this,e),this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}return _(e,[{key:"getGraphemeBreakType",value:function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;for(var n=this._data,t=n.length/3,r=1;r<=t;)if(e<n[3*r])r*=2;else{if(!(e>n[3*r+1]))return n[3*r+2];r=2*r+1}return 0}}],[{key:"getInstance",value:function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}}]),e}();Be._INSTANCE=null;var Ue=function(){function e(n){f(this,e),this.confusableDictionary=n}return _(e,[{key:"isAmbiguous",value:function(e){return this.confusableDictionary.has(e)}},{key:"getPrimaryConfusable",value:function(e){return this.confusableDictionary.get(e)}},{key:"getConfusableCodePoints",value:function(){return new Set(this.confusableDictionary.keys())}}],[{key:"getInstance",value:function(n){return e.cache.get(Array.from(n))}},{key:"getLocales",value:function(){return e._locales.getValue()}}]),e}();Ie=Ue,Ue.ambiguousCharacterData=new Ne((function(){return JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')})),Ue.cache=new ke((function(e){function n(e){for(var n=new Map,t=0;t<e.length;t+=2)n.set(e[t],e[t+1]);return n}function t(e,n){if(!e)return n;var t,r=new Map,a=c(e);try{for(a.s();!(t=a.n()).done;){var i=O(t.value,2),o=i[0],s=i[1];n.has(o)&&r.set(o,s)}}catch(l){a.e(l)}finally{a.f()}return r}var r=Ie.ambiguousCharacterData.getValue(),a=e.filter((function(e){return!e.startsWith("_")&&e in r}));0===a.length&&(a=["_default"]);var i,o=void 0,s=c(a);try{for(s.s();!(i=s.n()).done;){var l=i.value;o=t(o,n(r[l]))}}catch(d){s.e(d)}finally{s.f()}var u=function(e,n){var t,r=new Map(e),a=c(n);try{for(a.s();!(t=a.n()).done;){var i=O(t.value,2),o=i[0],s=i[1];r.set(o,s)}}catch(d){a.e(d)}finally{a.f()}return r}(n(r._common),o);return new Ue(u)})),Ue._locales=new Ne((function(){return Object.keys(Ue.ambiguousCharacterData.getValue()).filter((function(e){return!e.startsWith("_")}))}));var Ve=function(){function e(){f(this,e)}return _(e,null,[{key:"getRawData",value:function(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}},{key:"getData",value:function(){return this._data||(this._data=new Set(e.getRawData())),this._data}},{key:"isInvisibleCharacter",value:function(n){return e.getData().has(n)}},{key:"codePoints",get:function(){return e.getData()}}]),e}();Ve._data=void 0;var je="$initialize";var Ke=_((function e(n,t,r,a){f(this,e),this.vsWorker=n,this.req=t,this.method=r,this.args=a,this.type=0})),He=_((function e(n,t,r,a){f(this,e),this.vsWorker=n,this.seq=t,this.res=r,this.err=a,this.type=1})),We=_((function e(n,t,r,a){f(this,e),this.vsWorker=n,this.req=t,this.eventName=r,this.arg=a,this.type=2})),ze=_((function e(n,t,r){f(this,e),this.vsWorker=n,this.req=t,this.event=r,this.type=3})),Je=_((function e(n,t){f(this,e),this.vsWorker=n,this.req=t,this.type=4})),qe=function(){function e(n){f(this,e),this._workerId=-1,this._handler=n,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}return _(e,[{key:"setWorkerId",value:function(e){this._workerId=e}},{key:"sendMessage",value:function(e,n){var t=this,r=String(++this._lastSentReq);return new Promise((function(a,i){t._pendingReplies[r]={resolve:a,reject:i},t._send(new Ke(t._workerId,r,e,n))}))}},{key:"listen",value:function(e,n){var t=this,r=null,a=new xe({onFirstListenerAdd:function(){r=String(++t._lastSentReq),t._pendingEmitters.set(r,a),t._send(new We(t._workerId,r,e,n))},onLastListenerRemove:function(){t._pendingEmitters.delete(r),t._send(new Je(t._workerId,r)),r=null}});return a.event}},{key:"handleMessage",value:function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}},{key:"_handleMessage",value:function(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}},{key:"_handleReplyMessage",value:function(e){if(this._pendingReplies[e.seq]){var n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){var t=e.err;return e.err.$isError&&((t=new Error).name=e.err.name,t.message=e.err.message,t.stack=e.err.stack),void n.reject(t)}n.resolve(e.res)}else console.warn("Got reply to unknown seq")}},{key:"_handleRequestMessage",value:function(e){var n=this,t=e.req;this._handler.handleMessage(e.method,e.args).then((function(e){n._send(new He(n._workerId,t,e,void 0))}),(function(e){e.detail instanceof Error&&(e.detail=C(e.detail)),n._send(new He(n._workerId,t,void 0,C(e)))}))}},{key:"_handleSubscribeEventMessage",value:function(e){var n=this,t=e.req,r=this._handler.handleEvent(e.eventName,e.arg)((function(e){n._send(new ze(n._workerId,t,e))}));this._pendingEvents.set(t,r)}},{key:"_handleEventMessage",value:function(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}},{key:"_handleUnsubscribeEventMessage",value:function(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}},{key:"_send",value:function(e){var n=[];if(0===e.type)for(var t=0;t<e.args.length;t++)e.args[t]instanceof ArrayBuffer&&n.push(e.args[t]);else 1===e.type&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}]),e}();function Xe(e){return"o"===e[0]&&"n"===e[1]&&Oe(e.charCodeAt(2))}function Ye(e){return/^onDynamic/.test(e)&&Oe(e.charCodeAt(9))}function Qe(e,n,t){var r,a=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);return n(e,t)}},i=function(e){return function(n){return t(e,n)}},o={},s=c(e);try{for(s.s();!(r=s.n()).done;){var l=r.value;Ye(l)?o[l]=i(l):Xe(l)?o[l]=t(l,void 0):o[l]=a(l)}}catch(u){s.e(u)}finally{s.f()}return o}var Ze=function(){function e(n,t){var r=this;f(this,e),this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new qe({sendMessage:function(e,t){n(e,t)},handleMessage:function(e,n){return r._handleMessage(e,n)},handleEvent:function(e,n){return r._handleEvent(e,n)}})}return _(e,[{key:"onmessage",value:function(e){this._protocol.handleMessage(e)}},{key:"_handleMessage",value:function(e,n){if(e===je)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(Oa){return Promise.reject(Oa)}}},{key:"_handleEvent",value:function(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Ye(e)){var t=this._requestHandler[e].call(this._requestHandler,n);if("function"!==typeof t)throw new Error("Missing dynamic event ".concat(e," on request handler."));return t}if(Xe(e)){var r=this._requestHandler[e];if("function"!==typeof r)throw new Error("Missing event ".concat(e," on request handler."));return r}throw new Error("Malformed event name ".concat(e))}},{key:"initialize",value:function(e,n,t,r){var a=this;this._protocol.setWorkerId(e);var i=Qe(r,(function(e,n){return a._protocol.sendMessage(e,n)}),(function(e,n){return a._protocol.listen(e,n)}));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(Ce(this._requestHandler))):(n&&("undefined"!==typeof n.baseUrl&&delete n.baseUrl,"undefined"!==typeof n.paths&&"undefined"!==typeof n.paths.vs&&delete n.paths.vs,void 0!==typeof n.trustedTypesPolicy&&delete n.trustedTypesPolicy,n.catchError=!0,oe.require.config(n)),new Promise((function(e,n){(0,oe.require)([t],(function(t){a._requestHandler=t.create(i),a._requestHandler?e(Ce(a._requestHandler)):n(new Error("No RequestHandler!"))}),n)})))}}]),e}();var $e=function(){function e(n,t,r,a){f(this,e),this.originalStart=n,this.originalLength=t,this.modifiedStart=r,this.modifiedLength=a}return _(e,[{key:"getOriginalEnd",value:function(){return this.originalStart+this.originalLength}},{key:"getModifiedEnd",value:function(){return this.modifiedStart+this.modifiedLength}}]),e}();function en(e,n){return(n<<5)-n+e|0}function nn(e,n){n=en(149417,n);for(var t=0,r=e.length;t<r;t++)n=en(e.charCodeAt(t),n);return n}function tn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,r=t-n,a=~((1<<r)-1);return(e<<n|(a&e)>>>r)>>>0}function rn(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=0;a<t;a++)e[n+a]=r}function an(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";e.length<n;)e=t+e;return e}function on(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join(""):an((e>>>0).toString(16),n/4)}(function(){function e(){f(this,e),this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}return _(e,[{key:"update",value:function(e){var n=e.length;if(0!==n){var t,r,a=this._buff,i=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(t=o,r=-1,o=0):(t=e.charCodeAt(0),r=0);;){var s=t;if(we(t)){if(!(r+1<n)){o=t;break}var c=e.charCodeAt(r+1);Me(c)?(r++,s=Pe(t,c)):s=65533}else Me(t)&&(s=65533);if(i=this._push(a,i,s),!(++r<n))break;t=e.charCodeAt(r)}this._buffLen=i,this._leftoverHighSurrogate=o}}},{key:"_push",value:function(e,n,t){return t<128?e[n++]=t:t<2048?(e[n++]=192|(1984&t)>>>6,e[n++]=128|(63&t)>>>0):t<65536?(e[n++]=224|(61440&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0):(e[n++]=240|(1835008&t)>>>18,e[n++]=128|(258048&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),n}},{key:"digest",value:function(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),on(this._h0)+on(this._h1)+on(this._h2)+on(this._h3)+on(this._h4)}},{key:"_wrapUp",value:function(){this._buff[this._buffLen++]=128,rn(this._buff,this._buffLen),this._buffLen>56&&(this._step(),rn(this._buff));var e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}},{key:"_step",value:function(){for(var n=e._bigBlock32,t=this._buffDV,r=0;r<64;r+=4)n.setUint32(r,t.getUint32(r,!1),!1);for(var a=64;a<320;a+=4)n.setUint32(a,tn(n.getUint32(a-12,!1)^n.getUint32(a-32,!1)^n.getUint32(a-56,!1)^n.getUint32(a-64,!1),1),!1);for(var i,o,s,c=this._h0,l=this._h1,u=this._h2,d=this._h3,p=this._h4,f=0;f<80;f++)f<20?(i=l&u|~l&d,o=1518500249):f<40?(i=l^u^d,o=1859775393):f<60?(i=l&u|l&d|u&d,o=2400959708):(i=l^u^d,o=3395469782),s=tn(c,5)+i+p+o+n.getUint32(4*f,!1)&4294967295,p=d,d=u,u=tn(l,30),l=c,c=s;this._h0=this._h0+c&4294967295,this._h1=this._h1+l&4294967295,this._h2=this._h2+u&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+p&4294967295}}]),e}())._bigBlock32=new DataView(new ArrayBuffer(320));var sn=function(){function e(n){f(this,e),this.source=n}return _(e,[{key:"getElements",value:function(){for(var e=this.source,n=new Int32Array(e.length),t=0,r=e.length;t<r;t++)n[t]=e.charCodeAt(t);return n}}]),e}();function cn(e,n,t){return new fn(new sn(e),new sn(n)).ComputeDiff(t).changes}var ln,un=function(){function e(){f(this,e)}return _(e,null,[{key:"Assert",value:function(e,n){if(!e)throw new Error(n)}}]),e}(),dn=function(){function e(){f(this,e)}return _(e,null,[{key:"Copy",value:function(e,n,t,r,a){for(var i=0;i<a;i++)t[r+i]=e[n+i]}},{key:"Copy2",value:function(e,n,t,r,a){for(var i=0;i<a;i++)t[r+i]=e[n+i]}}]),e}(),pn=function(){function e(){f(this,e),this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return _(e,[{key:"MarkNextChange",value:function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new $e(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}},{key:"AddOriginalElement",value:function(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}},{key:"AddModifiedElement",value:function(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}},{key:"getChanges",value:function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}},{key:"getReverseChanges",value:function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}]),e}(),fn=function(){function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;f(this,e),this.ContinueProcessingPredicate=r,this._originalSequence=n,this._modifiedSequence=t;var a=e._getElements(n),i=O(a,3),o=i[0],s=i[1],c=i[2],l=e._getElements(t),u=O(l,3),d=u[0],p=u[1],m=u[2];this._hasStrings=c&&m,this._originalStringElements=o,this._originalElementsOrHash=s,this._modifiedStringElements=d,this._modifiedElementsOrHash=p,this.m_forwardHistory=[],this.m_reverseHistory=[]}return _(e,[{key:"ElementsAreEqual",value:function(e,n){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[n])}},{key:"ElementsAreStrictEqual",value:function(n,t){return!!this.ElementsAreEqual(n,t)&&e._getStrictElement(this._originalSequence,n)===e._getStrictElement(this._modifiedSequence,t)}},{key:"OriginalElementsAreEqual",value:function(e,n){return this._originalElementsOrHash[e]===this._originalElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[n])}},{key:"ModifiedElementsAreEqual",value:function(e,n){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[n])}},{key:"ComputeDiff",value:function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}},{key:"_ComputeDiff",value:function(e,n,t,r,a){var i=[!1],o=this.ComputeDiffRecursive(e,n,t,r,i);return a&&(o=this.PrettifyChanges(o)),{quitEarly:i[0],changes:o}}},{key:"ComputeDiffRecursive",value:function(e,n,t,r,a){for(a[0]=!1;e<=n&&t<=r&&this.ElementsAreEqual(e,t);)e++,t++;for(;n>=e&&r>=t&&this.ElementsAreEqual(n,r);)n--,r--;var i;if(e>n||t>r)return t<=r?(un.Assert(e===n+1,"originalStart should only be one more than originalEnd"),i=[new $e(e,0,t,r-t+1)]):e<=n?(un.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new $e(e,n-e+1,t,0)]):(un.Assert(e===n+1,"originalStart should only be one more than originalEnd"),un.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i;var o=[0],s=[0],c=this.ComputeRecursionPoint(e,n,t,r,o,s,a),l=o[0],u=s[0];if(null!==c)return c;if(!a[0]){var d=this.ComputeDiffRecursive(e,l,t,u,a),p=[];return p=a[0]?[new $e(l+1,n-(l+1)+1,u+1,r-(u+1)+1)]:this.ComputeDiffRecursive(l+1,n,u+1,r,a),this.ConcatenateChanges(d,p)}return[new $e(e,n-e+1,t,r-t+1)]}},{key:"WALKTRACE",value:function(e,n,t,r,a,i,o,s,c,l,u,d,p,f,m,_,g,y){var h,v=null,b=new pn,E=n,T=t,S=p[0]-_[0]-r,x=-1073741824,L=this.m_forwardHistory.length-1;do{var D=S+e;D===E||D<T&&c[D-1]<c[D+1]?(f=(u=c[D+1])-S-r,u<x&&b.MarkNextChange(),x=u,b.AddModifiedElement(u+1,f),S=D+1-e):(f=(u=c[D-1]+1)-S-r,u<x&&b.MarkNextChange(),x=u-1,b.AddOriginalElement(u,f+1),S=D-1-e),L>=0&&(e=(c=this.m_forwardHistory[L])[0],E=1,T=c.length-1)}while(--L>=-1);if(h=b.getReverseChanges(),y[0]){var C=p[0]+1,A=_[0]+1;if(null!==h&&h.length>0){var I=h[h.length-1];C=Math.max(C,I.getOriginalEnd()),A=Math.max(A,I.getModifiedEnd())}v=[new $e(C,d-C+1,A,m-A+1)]}else{b=new pn,E=i,T=o,S=p[0]-_[0]-s,x=1073741824,L=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var k=S+a;k===E||k<T&&l[k-1]>=l[k+1]?(f=(u=l[k+1]-1)-S-s,u>x&&b.MarkNextChange(),x=u+1,b.AddOriginalElement(u+1,f+1),S=k+1-a):(f=(u=l[k-1])-S-s,u>x&&b.MarkNextChange(),x=u,b.AddModifiedElement(u+1,f+1),S=k-1-a),L>=0&&(a=(l=this.m_reverseHistory[L])[0],E=1,T=l.length-1)}while(--L>=-1);v=b.getChanges()}return this.ConcatenateChanges(h,v)}},{key:"ComputeRecursionPoint",value:function(e,n,t,r,a,i,o){var s=0,c=0,l=0,u=0,d=0,p=0;e--,t--,a[0]=0,i[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var f=n-e+(r-t),m=f+1,_=new Int32Array(m),g=new Int32Array(m),y=r-t,h=n-e,v=e-t,b=n-r,E=(h-y)%2===0;_[y]=e,g[h]=n,o[0]=!1;for(var T=1;T<=f/2+1;T++){var S=0,x=0;l=this.ClipDiagonalBound(y-T,T,y,m),u=this.ClipDiagonalBound(y+T,T,y,m);for(var L=l;L<=u;L+=2){c=(s=L===l||L<u&&_[L-1]<_[L+1]?_[L+1]:_[L-1]+1)-(L-y)-v;for(var D=s;s<n&&c<r&&this.ElementsAreEqual(s+1,c+1);)s++,c++;if(_[L]=s,s+c>S+x&&(S=s,x=c),!E&&Math.abs(L-h)<=T-1&&s>=g[L])return a[0]=s,i[0]=c,D<=g[L]&&T<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,a,c,r,i,E,o):null}var C=(S-e+(x-t)-T)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(S,C))return o[0]=!0,a[0]=S,i[0]=x,C>0&&T<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,a,c,r,i,E,o):(e++,t++,[new $e(e,n-e+1,t,r-t+1)]);d=this.ClipDiagonalBound(h-T,T,h,m),p=this.ClipDiagonalBound(h+T,T,h,m);for(var A=d;A<=p;A+=2){c=(s=A===d||A<p&&g[A-1]>=g[A+1]?g[A+1]-1:g[A-1])-(A-h)-b;for(var I=s;s>e&&c>t&&this.ElementsAreEqual(s,c);)s--,c--;if(g[A]=s,E&&Math.abs(A-y)<=T&&s<=_[A])return a[0]=s,i[0]=c,I>=_[A]&&T<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,a,c,r,i,E,o):null}if(T<=1447){var k=new Int32Array(u-l+2);k[0]=y-l+1,dn.Copy2(_,l,k,1,u-l+1),this.m_forwardHistory.push(k),(k=new Int32Array(p-d+2))[0]=h-d+1,dn.Copy2(g,d,k,1,p-d+1),this.m_reverseHistory.push(k)}}return this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,a,c,r,i,E,o)}},{key:"PrettifyChanges",value:function(e){for(var n=0;n<e.length;n++){for(var t=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,a=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,i=t.originalLength>0,o=t.modifiedLength>0;t.originalStart+t.originalLength<r&&t.modifiedStart+t.modifiedLength<a&&(!i||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!o||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));){var s=this.ElementsAreStrictEqual(t.originalStart,t.modifiedStart);if(this.ElementsAreStrictEqual(t.originalStart+t.originalLength,t.modifiedStart+t.modifiedLength)&&!s)break;t.originalStart++,t.modifiedStart++}var c=[null];n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],c)&&(e[n]=c[0],e.splice(n+1,1),n--)}for(var l=e.length-1;l>=0;l--){var u=e[l],d=0,p=0;if(l>0){var f=e[l-1];d=f.originalStart+f.originalLength,p=f.modifiedStart+f.modifiedLength}for(var m=u.originalLength>0,_=u.modifiedLength>0,g=0,y=this._boundaryScore(u.originalStart,u.originalLength,u.modifiedStart,u.modifiedLength),h=1;;h++){var v=u.originalStart-h,b=u.modifiedStart-h;if(v<d||b<p)break;if(m&&!this.OriginalElementsAreEqual(v,v+u.originalLength))break;if(_&&!this.ModifiedElementsAreEqual(b,b+u.modifiedLength))break;var E=(v===d&&b===p?5:0)+this._boundaryScore(v,u.originalLength,b,u.modifiedLength);E>y&&(y=E,g=h)}u.originalStart-=g,u.modifiedStart-=g;var T=[null];l>0&&this.ChangesOverlap(e[l-1],e[l],T)&&(e[l-1]=T[0],e.splice(l,1),l++)}if(this._hasStrings)for(var S=1,x=e.length;S<x;S++){var L=e[S-1],D=e[S],C=D.originalStart-L.originalStart-L.originalLength,A=L.originalStart,I=D.originalStart+D.originalLength,k=I-A,N=L.modifiedStart,R=D.modifiedStart+D.modifiedLength,w=R-N;if(C<5&&k<20&&w<20){var M=this._findBetterContiguousSequence(A,k,N,w,C);if(M){var P=O(M,2),F=P[0],G=P[1];F===L.originalStart+L.originalLength&&G===L.modifiedStart+L.modifiedLength||(L.originalLength=F-L.originalStart,L.modifiedLength=G-L.modifiedStart,D.originalStart=F+C,D.modifiedStart=G+C,D.originalLength=I-D.originalStart,D.modifiedLength=R-D.modifiedStart)}}}return e}},{key:"_findBetterContiguousSequence",value:function(e,n,t,r,a){if(n<a||r<a)return null;for(var i=e+n-a+1,o=t+r-a+1,s=0,c=0,l=0,u=e;u<i;u++)for(var d=t;d<o;d++){var p=this._contiguousSequenceScore(u,d,a);p>0&&p>s&&(s=p,c=u,l=d)}return s>0?[c,l]:null}},{key:"_contiguousSequenceScore",value:function(e,n,t){for(var r=0,a=0;a<t;a++){if(!this.ElementsAreEqual(e+a,n+a))return 0;r+=this._originalStringElements[e+a].length}return r}},{key:"_OriginalIsBoundary",value:function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}},{key:"_OriginalRegionIsBoundary",value:function(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){var t=e+n;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1}},{key:"_ModifiedIsBoundary",value:function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}},{key:"_ModifiedRegionIsBoundary",value:function(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){var t=e+n;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1}},{key:"_boundaryScore",value:function(e,n,t,r){return(this._OriginalRegionIsBoundary(e,n)?1:0)+(this._ModifiedRegionIsBoundary(t,r)?1:0)}},{key:"ConcatenateChanges",value:function(e,n){var t=[];if(0===e.length||0===n.length)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],t)){var r=new Array(e.length+n.length-1);return dn.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],dn.Copy(n,1,r,e.length,n.length-1),r}var a=new Array(e.length+n.length);return dn.Copy(e,0,a,0,e.length),dn.Copy(n,0,a,e.length,n.length),a}},{key:"ChangesOverlap",value:function(e,n,t){if(un.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),un.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){var r=e.originalStart,a=e.originalLength,i=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(a=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new $e(r,a,i,o),!0}return t[0]=null,!1}},{key:"ClipDiagonalBound",value:function(e,n,t,r){if(e>=0&&e<r)return e;var a=n%2===0;return e<0?a===(t%2===0)?0:1:a===((r-t-1)%2===0)?r-1:r-2}}],[{key:"_isStringArray",value:function(e){return e.length>0&&"string"===typeof e[0]}},{key:"_getElements",value:function(n){var t=n.getElements();if(e._isStringArray(t)){for(var r=new Int32Array(t.length),a=0,i=t.length;a<i;a++)r[a]=nn(t[a],0);return[t,r,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}},{key:"_getStrictElement",value:function(e,n){return"function"===typeof e.getStrictElement?e.getStrictElement(n):null}}]),e}();if("undefined"!==typeof oe.vscode&&"undefined"!==typeof oe.vscode.process){var mn=oe.vscode.process;ln={get platform(){return mn.platform},get arch(){return mn.arch},get env(){return mn.env},cwd:function(){return mn.cwd()}}}else ln="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}},cwd:function(){return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.VSCODE_CWD||process.cwd()}}:{get platform(){return fe?"win32":me?"darwin":"linux"},get arch(){},get env(){return{}},cwd:function(){return"/"}};var _n=ln.cwd,gn=(ln.env,ln.platform),yn=46,hn=47,vn=92,bn=58,En=function(e){h(t,e);var n=T(t);function t(e,r,a){var i,o;f(this,t),"string"===typeof r&&0===r.indexOf("not ")?(o="must not be",r=r.replace(/^not /,"")):o="must be";var s=-1!==e.indexOf(".")?"property":"argument",c='The "'.concat(e,'" ').concat(s," ").concat(o," of type ").concat(r);return c+=". Received type ".concat(typeof a),(i=n.call(this,c)).code="ERR_INVALID_ARG_TYPE",i}return _(t)}(x(Error));function Tn(e,n){if("string"!==typeof e)throw new En(n,"string",e)}function Sn(e){return e===hn||e===vn}function xn(e){return e===hn}function Ln(e){return e>=65&&e<=90||e>=97&&e<=122}function Dn(e,n,t,r){for(var a="",i=0,o=-1,s=0,c=0,l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else{if(r(c))break;c=hn}if(r(c)){if(o===l-1||1===s);else if(2===s){if(a.length<2||2!==i||a.charCodeAt(a.length-1)!==yn||a.charCodeAt(a.length-2)!==yn){if(a.length>2){var u=a.lastIndexOf(t);-1===u?(a="",i=0):i=(a=a.slice(0,u)).length-1-a.lastIndexOf(t),o=l,s=0;continue}if(0!==a.length){a="",i=0,o=l,s=0;continue}}n&&(a+=a.length>0?"".concat(t,".."):"..",i=2)}else a.length>0?a+="".concat(t).concat(e.slice(o+1,l)):a=e.slice(o+1,l),i=l-o-1;o=l,s=0}else c===yn&&-1!==s?++s:s=-1}return a}function Cn(e,n){if(null===n||"object"!==typeof n)throw new En("pathObject","Object",n);var t=n.dir||n.root,r=n.base||"".concat(n.name||"").concat(n.ext||"");return t?t===n.root?"".concat(t).concat(r):"".concat(t).concat(e).concat(r):r}var An={resolve:function(){for(var e="",n="",t=!1,r=arguments.length-1;r>=-1;r--){var a=void 0;if(r>=0){if(Tn(a=r<0||arguments.length<=r?void 0:arguments[r],"path"),0===a.length)continue}else 0===e.length?a=_n():(void 0===(a={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}["=".concat(e)]||_n())||a.slice(0,2).toLowerCase()!==e.toLowerCase()&&a.charCodeAt(2)===vn)&&(a="".concat(e,"\\"));var i=a.length,o=0,s="",c=!1,l=a.charCodeAt(0);if(1===i)Sn(l)&&(o=1,c=!0);else if(Sn(l))if(c=!0,Sn(a.charCodeAt(1))){for(var u=2,d=u;u<i&&!Sn(a.charCodeAt(u));)u++;if(u<i&&u!==d){var p=a.slice(d,u);for(d=u;u<i&&Sn(a.charCodeAt(u));)u++;if(u<i&&u!==d){for(d=u;u<i&&!Sn(a.charCodeAt(u));)u++;u!==i&&u===d||(s="\\\\".concat(p,"\\").concat(a.slice(d,u)),o=u)}}}else o=1;else Ln(l)&&a.charCodeAt(1)===bn&&(s=a.slice(0,2),o=2,i>2&&Sn(a.charCodeAt(2))&&(c=!0,o=3));if(s.length>0)if(e.length>0){if(s.toLowerCase()!==e.toLowerCase())continue}else e=s;if(t){if(e.length>0)break}else if(n="".concat(a.slice(o),"\\").concat(n),t=c,c&&e.length>0)break}return n=Dn(n,!t,"\\",Sn),t?"".concat(e,"\\").concat(n):"".concat(e).concat(n)||"."},normalize:function(e){Tn(e,"path");var n=e.length;if(0===n)return".";var t,r=0,a=!1,i=e.charCodeAt(0);if(1===n)return xn(i)?"\\":e;if(Sn(i))if(a=!0,Sn(e.charCodeAt(1))){for(var o=2,s=o;o<n&&!Sn(e.charCodeAt(o));)o++;if(o<n&&o!==s){var c=e.slice(s,o);for(s=o;o<n&&Sn(e.charCodeAt(o));)o++;if(o<n&&o!==s){for(s=o;o<n&&!Sn(e.charCodeAt(o));)o++;if(o===n)return"\\\\".concat(c,"\\").concat(e.slice(s),"\\");o!==s&&(t="\\\\".concat(c,"\\").concat(e.slice(s,o)),r=o)}}}else r=1;else Ln(i)&&e.charCodeAt(1)===bn&&(t=e.slice(0,2),r=2,n>2&&Sn(e.charCodeAt(2))&&(a=!0,r=3));var l=r<n?Dn(e.slice(r),!a,"\\",Sn):"";return 0!==l.length||a||(l="."),l.length>0&&Sn(e.charCodeAt(n-1))&&(l+="\\"),void 0===t?a?"\\".concat(l):l:a?"".concat(t,"\\").concat(l):"".concat(t).concat(l)},isAbsolute:function(e){Tn(e,"path");var n=e.length;if(0===n)return!1;var t=e.charCodeAt(0);return Sn(t)||n>2&&Ln(t)&&e.charCodeAt(1)===bn&&Sn(e.charCodeAt(2))},join:function(){if(0===arguments.length)return".";for(var e,n,t=0;t<arguments.length;++t){var r=t<0||arguments.length<=t?void 0:arguments[t];Tn(r,"path"),r.length>0&&(void 0===e?e=n=r:e+="\\".concat(r))}if(void 0===e)return".";var a=!0,i=0;if("string"===typeof n&&Sn(n.charCodeAt(0))){++i;var o=n.length;o>1&&Sn(n.charCodeAt(1))&&(++i,o>2&&(Sn(n.charCodeAt(2))?++i:a=!1))}if(a){for(;i<e.length&&Sn(e.charCodeAt(i));)i++;i>=2&&(e="\\".concat(e.slice(i)))}return An.normalize(e)},relative:function(e,n){if(Tn(e,"from"),Tn(n,"to"),e===n)return"";var t=An.resolve(e),r=An.resolve(n);if(t===r)return"";if((e=t.toLowerCase())===(n=r.toLowerCase()))return"";for(var a=0;a<e.length&&e.charCodeAt(a)===vn;)a++;for(var i=e.length;i-1>a&&e.charCodeAt(i-1)===vn;)i--;for(var o=i-a,s=0;s<n.length&&n.charCodeAt(s)===vn;)s++;for(var c=n.length;c-1>s&&n.charCodeAt(c-1)===vn;)c--;for(var l=c-s,u=o<l?o:l,d=-1,p=0;p<u;p++){var f=e.charCodeAt(a+p);if(f!==n.charCodeAt(s+p))break;f===vn&&(d=p)}if(p!==u){if(-1===d)return r}else{if(l>u){if(n.charCodeAt(s+p)===vn)return r.slice(s+p+1);if(2===p)return r.slice(s+p)}o>u&&(e.charCodeAt(a+p)===vn?d=p:2===p&&(d=3)),-1===d&&(d=0)}var m="";for(p=a+d+1;p<=i;++p)p!==i&&e.charCodeAt(p)!==vn||(m+=0===m.length?"..":"\\..");return s+=d,m.length>0?"".concat(m).concat(r.slice(s,c)):(r.charCodeAt(s)===vn&&++s,r.slice(s,c))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var n=An.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===vn){if(n.charCodeAt(1)===vn){var t=n.charCodeAt(2);if(63!==t&&t!==yn)return"\\\\?\\UNC\\".concat(n.slice(2))}}else if(Ln(n.charCodeAt(0))&&n.charCodeAt(1)===bn&&n.charCodeAt(2)===vn)return"\\\\?\\".concat(n);return e},dirname:function(e){Tn(e,"path");var n=e.length;if(0===n)return".";var t=-1,r=0,a=e.charCodeAt(0);if(1===n)return Sn(a)?e:".";if(Sn(a)){if(t=r=1,Sn(e.charCodeAt(1))){for(var i=2,o=i;i<n&&!Sn(e.charCodeAt(i));)i++;if(i<n&&i!==o){for(o=i;i<n&&Sn(e.charCodeAt(i));)i++;if(i<n&&i!==o){for(o=i;i<n&&!Sn(e.charCodeAt(i));)i++;if(i===n)return e;i!==o&&(t=r=i+1)}}}}else Ln(a)&&e.charCodeAt(1)===bn&&(r=t=n>2&&Sn(e.charCodeAt(2))?3:2);for(var s=-1,c=!0,l=n-1;l>=r;--l)if(Sn(e.charCodeAt(l))){if(!c){s=l;break}}else c=!1;if(-1===s){if(-1===t)return".";s=t}return e.slice(0,s)},basename:function(e,n){void 0!==n&&Tn(n,"ext"),Tn(e,"path");var t,r=0,a=-1,i=!0;if(e.length>=2&&Ln(e.charCodeAt(0))&&e.charCodeAt(1)===bn&&(r=2),void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";var o=n.length-1,s=-1;for(t=e.length-1;t>=r;--t){var c=e.charCodeAt(t);if(Sn(c)){if(!i){r=t+1;break}}else-1===s&&(i=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1===--o&&(a=t):(o=-1,a=s))}return r===a?a=s:-1===a&&(a=e.length),e.slice(r,a)}for(t=e.length-1;t>=r;--t)if(Sn(e.charCodeAt(t))){if(!i){r=t+1;break}}else-1===a&&(i=!1,a=t+1);return-1===a?"":e.slice(r,a)},extname:function(e){Tn(e,"path");var n=0,t=-1,r=0,a=-1,i=!0,o=0;e.length>=2&&e.charCodeAt(1)===bn&&Ln(e.charCodeAt(0))&&(n=r=2);for(var s=e.length-1;s>=n;--s){var c=e.charCodeAt(s);if(Sn(c)){if(!i){r=s+1;break}}else-1===a&&(i=!1,a=s+1),c===yn?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===a||0===o||1===o&&t===a-1&&t===r+1?"":e.slice(t,a)},format:Cn.bind(null,"\\"),parse:function(e){Tn(e,"path");var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var t=e.length,r=0,a=e.charCodeAt(0);if(1===t)return Sn(a)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(Sn(a)){if(r=1,Sn(e.charCodeAt(1))){for(var i=2,o=i;i<t&&!Sn(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&Sn(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!Sn(e.charCodeAt(i));)i++;i===t?r=i:i!==o&&(r=i+1)}}}}else if(Ln(a)&&e.charCodeAt(1)===bn){if(t<=2)return n.root=n.dir=e,n;if(r=2,Sn(e.charCodeAt(2))){if(3===t)return n.root=n.dir=e,n;r=3}}r>0&&(n.root=e.slice(0,r));for(var s=-1,c=r,l=-1,u=!0,d=e.length-1,p=0;d>=r;--d)if(Sn(a=e.charCodeAt(d))){if(!u){c=d+1;break}}else-1===l&&(u=!1,l=d+1),a===yn?-1===s?s=d:1!==p&&(p=1):-1!==s&&(p=-1);return-1!==l&&(-1===s||0===p||1===p&&s===l-1&&s===c+1?n.base=n.name=e.slice(c,l):(n.name=e.slice(c,s),n.base=e.slice(c,l),n.ext=e.slice(s,l))),n.dir=c>0&&c!==r?e.slice(0,c-1):n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},In={resolve:function(){for(var e="",n=!1,t=arguments.length-1;t>=-1&&!n;t--){var r=t>=0?t<0||arguments.length<=t?void 0:arguments[t]:_n();Tn(r,"path"),0!==r.length&&(e="".concat(r,"/").concat(e),n=r.charCodeAt(0)===hn)}return e=Dn(e,!n,"/",xn),n?"/".concat(e):e.length>0?e:"."},normalize:function(e){if(Tn(e,"path"),0===e.length)return".";var n=e.charCodeAt(0)===hn,t=e.charCodeAt(e.length-1)===hn;return 0===(e=Dn(e,!n,"/",xn)).length?n?"/":t?"./":".":(t&&(e+="/"),n?"/".concat(e):e)},isAbsolute:function(e){return Tn(e,"path"),e.length>0&&e.charCodeAt(0)===hn},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var t=n<0||arguments.length<=n?void 0:arguments[n];Tn(t,"path"),t.length>0&&(void 0===e?e=t:e+="/".concat(t))}return void 0===e?".":In.normalize(e)},relative:function(e,n){if(Tn(e,"from"),Tn(n,"to"),e===n)return"";if((e=In.resolve(e))===(n=In.resolve(n)))return"";for(var t=e.length,r=t-1,a=n.length-1,i=r<a?r:a,o=-1,s=0;s<i;s++){var c=e.charCodeAt(1+s);if(c!==n.charCodeAt(1+s))break;c===hn&&(o=s)}if(s===i)if(a>i){if(n.charCodeAt(1+s)===hn)return n.slice(1+s+1);if(0===s)return n.slice(1+s)}else r>i&&(e.charCodeAt(1+s)===hn?o=s:0===s&&(o=0));var l="";for(s=1+o+1;s<=t;++s)s!==t&&e.charCodeAt(s)!==hn||(l+=0===l.length?"..":"/..");return"".concat(l).concat(n.slice(1+o))},toNamespacedPath:function(e){return e},dirname:function(e){if(Tn(e,"path"),0===e.length)return".";for(var n=e.charCodeAt(0)===hn,t=-1,r=!0,a=e.length-1;a>=1;--a)if(e.charCodeAt(a)===hn){if(!r){t=a;break}}else r=!1;return-1===t?n?"/":".":n&&1===t?"//":e.slice(0,t)},basename:function(e,n){void 0!==n&&Tn(n,"ext"),Tn(e,"path");var t,r=0,a=-1,i=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";var o=n.length-1,s=-1;for(t=e.length-1;t>=0;--t){var c=e.charCodeAt(t);if(c===hn){if(!i){r=t+1;break}}else-1===s&&(i=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1===--o&&(a=t):(o=-1,a=s))}return r===a?a=s:-1===a&&(a=e.length),e.slice(r,a)}for(t=e.length-1;t>=0;--t)if(e.charCodeAt(t)===hn){if(!i){r=t+1;break}}else-1===a&&(i=!1,a=t+1);return-1===a?"":e.slice(r,a)},extname:function(e){Tn(e,"path");for(var n=-1,t=0,r=-1,a=!0,i=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(s!==hn)-1===r&&(a=!1,r=o+1),s===yn?-1===n?n=o:1!==i&&(i=1):-1!==n&&(i=-1);else if(!a){t=o+1;break}}return-1===n||-1===r||0===i||1===i&&n===r-1&&n===t+1?"":e.slice(n,r)},format:Cn.bind(null,"/"),parse:function(e){Tn(e,"path");var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var t,r=e.charCodeAt(0)===hn;r?(n.root="/",t=1):t=0;for(var a=-1,i=0,o=-1,s=!0,c=e.length-1,l=0;c>=t;--c){var u=e.charCodeAt(c);if(u!==hn)-1===o&&(s=!1,o=c+1),u===yn?-1===a?a=c:1!==l&&(l=1):-1!==a&&(l=-1);else if(!s){i=c+1;break}}if(-1!==o){var d=0===i&&r?1:i;-1===a||0===l||1===l&&a===o-1&&a===i+1?n.base=n.name=e.slice(d,o):(n.name=e.slice(d,a),n.base=e.slice(d,o),n.ext=e.slice(a,o))}return i>0?n.dir=e.slice(0,i-1):r&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};In.win32=An.win32=An,In.posix=An.posix=In;"win32"===gn?An.normalize:In.normalize,"win32"===gn?An.resolve:In.resolve,"win32"===gn?An.relative:In.relative,"win32"===gn?An.dirname:In.dirname,"win32"===gn?An.basename:In.basename,"win32"===gn?An.extname:In.extname,"win32"===gn?An.sep:In.sep;var kn,Nn=/^\w[\w\d+.-]*$/,Rn=/^\//,On=/^\/\//;function wn(e,n){if(!e.scheme&&n)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!Nn.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Rn.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(On.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function Mn(e,n){return e||n?e:"file"}function Pn(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==Gn&&(n=Gn+n):n=Gn}return n}var Fn="",Gn="/",Bn=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Un=function(){function e(n,t,r,a,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];f(this,e),"object"===typeof n?(this.scheme=n.scheme||Fn,this.authority=n.authority||Fn,this.path=n.path||Fn,this.query=n.query||Fn,this.fragment=n.fragment||Fn):(this.scheme=Mn(n,o),this.authority=t||Fn,this.path=Pn(this.scheme,r||Fn),this.query=a||Fn,this.fragment=i||Fn,wn(this,o))}return _(e,[{key:"fsPath",get:function(){return zn(this,!1)}},{key:"with",value:function(e){if(!e)return this;var n=e.scheme,t=e.authority,r=e.path,a=e.query,i=e.fragment;return void 0===n?n=this.scheme:null===n&&(n=Fn),void 0===t?t=this.authority:null===t&&(t=Fn),void 0===r?r=this.path:null===r&&(r=Fn),void 0===a?a=this.query:null===a&&(a=Fn),void 0===i?i=this.fragment:null===i&&(i=Fn),n===this.scheme&&t===this.authority&&r===this.path&&a===this.query&&i===this.fragment?this:new jn(n,t,r,a,i)}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Jn(this,e)}},{key:"toJSON",value:function(){return this}}],[{key:"isUri",value:function(n){return n instanceof e||!!n&&("string"===typeof n.authority&&"string"===typeof n.fragment&&"string"===typeof n.path&&"string"===typeof n.query&&"string"===typeof n.scheme&&"string"===typeof n.fsPath&&"function"===typeof n.with&&"function"===typeof n.toString)}},{key:"parse",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Bn.exec(e);return t?new jn(t[2]||Fn,Yn(t[4]||Fn),Yn(t[5]||Fn),Yn(t[7]||Fn),Yn(t[9]||Fn),n):new jn(Fn,Fn,Fn,Fn,Fn)}},{key:"file",value:function(e){var n=Fn;if(fe&&(e=e.replace(/\\/g,Gn)),e[0]===Gn&&e[1]===Gn){var t=e.indexOf(Gn,2);-1===t?(n=e.substring(2),e=Gn):(n=e.substring(2,t),e=e.substring(t)||Gn)}return new jn("file",n,e,Fn,Fn)}},{key:"from",value:function(e){var n=new jn(e.scheme,e.authority,e.path,e.query,e.fragment);return wn(n,!0),n}},{key:"joinPath",value:function(n){if(!n.path)throw new Error("[UriError]: cannot call joinPath on URI without path");for(var t,r,a,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];fe&&"file"===n.scheme?t=e.file((r=An).join.apply(r,[zn(n,!0)].concat(o))).path:t=(a=In).join.apply(a,[n.path].concat(o));return n.with({path:t})}},{key:"revive",value:function(n){if(n){if(n instanceof e)return n;var t=new jn(n);return t._formatted=n.external,t._fsPath=n._sep===Vn?n.fsPath:null,t}return n}}]),e}(),Vn=fe?1:void 0,jn=function(e){h(t,e);var n=T(t);function t(){var e;return f(this,t),(e=n.apply(this,arguments))._formatted=null,e._fsPath=null,e}return _(t,[{key:"fsPath",get:function(){return this._fsPath||(this._fsPath=zn(this,!1)),this._fsPath}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?Jn(this,!0):(this._formatted||(this._formatted=Jn(this,!1)),this._formatted)}},{key:"toJSON",value:function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Vn),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}]),t}(Un),Kn=(r(kn={},58,"%3A"),r(kn,47,"%2F"),r(kn,63,"%3F"),r(kn,35,"%23"),r(kn,91,"%5B"),r(kn,93,"%5D"),r(kn,64,"%40"),r(kn,33,"%21"),r(kn,36,"%24"),r(kn,38,"%26"),r(kn,39,"%27"),r(kn,40,"%28"),r(kn,41,"%29"),r(kn,42,"%2A"),r(kn,43,"%2B"),r(kn,44,"%2C"),r(kn,59,"%3B"),r(kn,61,"%3D"),r(kn,32,"%20"),kn);function Hn(e,n){for(var t=void 0,r=-1,a=0;a<e.length;a++){var i=e.charCodeAt(a);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||n&&47===i)-1!==r&&(t+=encodeURIComponent(e.substring(r,a)),r=-1),void 0!==t&&(t+=e.charAt(a));else{void 0===t&&(t=e.substr(0,a));var o=Kn[i];void 0!==o?(-1!==r&&(t+=encodeURIComponent(e.substring(r,a)),r=-1),t+=o):-1===r&&(r=a)}}return-1!==r&&(t+=encodeURIComponent(e.substring(r))),void 0!==t?t:e}function Wn(e){for(var n=void 0,t=0;t<e.length;t++){var r=e.charCodeAt(t);35===r||63===r?(void 0===n&&(n=e.substr(0,t)),n+=Kn[r]):void 0!==n&&(n+=e[t])}return void 0!==n?n:e}function zn(e,n){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?n?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,fe&&(t=t.replace(/\//g,"\\")),t}function Jn(e,n){var t=n?Wn:Hn,r="",a=e.scheme,i=e.authority,o=e.path,s=e.query,c=e.fragment;if(a&&(r+=a,r+=":"),(i||"file"===a)&&(r+=Gn,r+=Gn),i){var l=i.indexOf("@");if(-1!==l){var u=i.substr(0,l);i=i.substr(l+1),-1===(l=u.indexOf(":"))?r+=t(u,!1):(r+=t(u.substr(0,l),!1),r+=":",r+=t(u.substr(l+1),!1)),r+="@"}-1===(l=(i=i.toLowerCase()).indexOf(":"))?r+=t(i,!1):(r+=t(i.substr(0,l),!1),r+=i.substr(l))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){var d=o.charCodeAt(1);d>=65&&d<=90&&(o="/".concat(String.fromCharCode(d+32),":").concat(o.substr(3)))}else if(o.length>=2&&58===o.charCodeAt(1)){var p=o.charCodeAt(0);p>=65&&p<=90&&(o="".concat(String.fromCharCode(p+32),":").concat(o.substr(2)))}r+=t(o,!0)}return s&&(r+="?",r+=t(s,!1)),c&&(r+="#",r+=n?c:Hn(c,!1)),r}function qn(e){try{return decodeURIComponent(e)}catch(X){return e.length>3?e.substr(0,3)+qn(e.substr(3)):e}}var Xn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Yn(e){return e.match(Xn)?e.replace(Xn,(function(e){return qn(e)})):e}var Qn=function(){function e(n,t){f(this,e),this.lineNumber=n,this.column=t}return _(e,[{key:"with",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return n===this.lineNumber&&t===this.column?this:new e(n,t)}},{key:"delta",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+n)}},{key:"equals",value:function(n){return e.equals(this,n)}},{key:"isBefore",value:function(n){return e.isBefore(this,n)}},{key:"isBeforeOrEqual",value:function(n){return e.isBeforeOrEqual(this,n)}},{key:"clone",value:function(){return new e(this.lineNumber,this.column)}},{key:"toString",value:function(){return"("+this.lineNumber+","+this.column+")"}}],[{key:"equals",value:function(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}},{key:"isBefore",value:function(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<n.column}},{key:"isBeforeOrEqual",value:function(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<=n.column}},{key:"compare",value:function(e,n){var t=0|e.lineNumber,r=0|n.lineNumber;return t===r?(0|e.column)-(0|n.column):t-r}},{key:"lift",value:function(n){return new e(n.lineNumber,n.column)}},{key:"isIPosition",value:function(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}}]),e}(),Zn=function(){function e(n,t,r,a){f(this,e),n>r||n===r&&t>a?(this.startLineNumber=r,this.startColumn=a,this.endLineNumber=n,this.endColumn=t):(this.startLineNumber=n,this.startColumn=t,this.endLineNumber=r,this.endColumn=a)}return _(e,[{key:"isEmpty",value:function(){return e.isEmpty(this)}},{key:"containsPosition",value:function(n){return e.containsPosition(this,n)}},{key:"containsRange",value:function(n){return e.containsRange(this,n)}},{key:"strictContainsRange",value:function(n){return e.strictContainsRange(this,n)}},{key:"plusRange",value:function(n){return e.plusRange(this,n)}},{key:"intersectRanges",value:function(n){return e.intersectRanges(this,n)}},{key:"equalsRange",value:function(n){return e.equalsRange(this,n)}},{key:"getEndPosition",value:function(){return e.getEndPosition(this)}},{key:"getStartPosition",value:function(){return e.getStartPosition(this)}},{key:"toString",value:function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}},{key:"setEndPosition",value:function(n,t){return new e(this.startLineNumber,this.startColumn,n,t)}},{key:"setStartPosition",value:function(n,t){return new e(n,t,this.endLineNumber,this.endColumn)}},{key:"collapseToStart",value:function(){return e.collapseToStart(this)}},{key:"toJSON",value:function(){return this}}],[{key:"isEmpty",value:function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}},{key:"containsPosition",value:function(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber)&&(!(n.lineNumber===e.startLineNumber&&n.column<e.startColumn)&&!(n.lineNumber===e.endLineNumber&&n.column>e.endColumn))}},{key:"strictContainsPosition",value:function(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber)&&(!(n.lineNumber===e.startLineNumber&&n.column<=e.startColumn)&&!(n.lineNumber===e.endLineNumber&&n.column>=e.endColumn))}},{key:"containsRange",value:function(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber)&&(!(n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)))}},{key:"strictContainsRange",value:function(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber)&&(!(n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)))}},{key:"plusRange",value:function(n,t){var r,a,i,o;return t.startLineNumber<n.startLineNumber?(r=t.startLineNumber,a=t.startColumn):t.startLineNumber===n.startLineNumber?(r=t.startLineNumber,a=Math.min(t.startColumn,n.startColumn)):(r=n.startLineNumber,a=n.startColumn),t.endLineNumber>n.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===n.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,n.endColumn)):(i=n.endLineNumber,o=n.endColumn),new e(r,a,i,o)}},{key:"intersectRanges",value:function(n,t){var r=n.startLineNumber,a=n.startColumn,i=n.endLineNumber,o=n.endColumn,s=t.startLineNumber,c=t.startColumn,l=t.endLineNumber,u=t.endColumn;return r<s?(r=s,a=c):r===s&&(a=Math.max(a,c)),i>l?(i=l,o=u):i===l&&(o=Math.min(o,u)),r>i||r===i&&a>o?null:new e(r,a,i,o)}},{key:"equalsRange",value:function(e,n){return!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}},{key:"getEndPosition",value:function(e){return new Qn(e.endLineNumber,e.endColumn)}},{key:"getStartPosition",value:function(e){return new Qn(e.startLineNumber,e.startColumn)}},{key:"collapseToStart",value:function(n){return new e(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)}},{key:"fromPositions",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return new e(n.lineNumber,n.column,t.lineNumber,t.column)}},{key:"lift",value:function(n){return n?new e(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):null}},{key:"isIRange",value:function(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}},{key:"areIntersectingOrTouching",value:function(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn)&&!(n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}},{key:"areIntersecting",value:function(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn)&&!(n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}},{key:"compareRangesUsingStarts",value:function(e,n){if(e&&n){var t=0|e.startLineNumber,r=0|n.startLineNumber;if(t===r){var a=0|e.startColumn,i=0|n.startColumn;if(a===i){var o=0|e.endLineNumber,s=0|n.endLineNumber;return o===s?(0|e.endColumn)-(0|n.endColumn):o-s}return a-i}return t-r}return(e?1:0)-(n?1:0)}},{key:"compareRangesUsingEnds",value:function(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}},{key:"spansMultipleLines",value:function(e){return e.endLineNumber>e.startLineNumber}}]),e}();function $n(e,n,t,r){return new fn(e,n,t).ComputeDiff(r)}var et=function(){function e(n){f(this,e);for(var t=[],r=[],a=0,i=n.length;a<i;a++)t[a]=ot(n[a],1),r[a]=st(n[a],1);this.lines=n,this._startColumns=t,this._endColumns=r}return _(e,[{key:"getElements",value:function(){for(var e=[],n=0,t=this.lines.length;n<t;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}},{key:"getStrictElement",value:function(e){return this.lines[e]}},{key:"getStartLineNumber",value:function(e){return e+1}},{key:"getEndLineNumber",value:function(e){return e+1}},{key:"createCharSequence",value:function(e,n,t){for(var r=[],a=[],i=[],o=0,s=n;s<=t;s++){for(var c=this.lines[s],l=e?this._startColumns[s]:1,u=e?this._endColumns[s]:c.length+1,d=l;d<u;d++)r[o]=c.charCodeAt(d-1),a[o]=s+1,i[o]=d,o++;!e&&s<t&&(r[o]=10,a[o]=s+1,i[o]=c.length+1,o++)}return new nt(r,a,i)}}]),e}(),nt=function(){function e(n,t,r){f(this,e),this._charCodes=n,this._lineNumbers=t,this._columns=r}return _(e,[{key:"toString",value:function(){var e=this;return"["+this._charCodes.map((function(n,t){return(10===n?"\\n":String.fromCharCode(n))+"-(".concat(e._lineNumbers[t],",").concat(e._columns[t],")")})).join(", ")+"]"}},{key:"_assertIndex",value:function(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}},{key:"getElements",value:function(){return this._charCodes}},{key:"getStartLineNumber",value:function(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}},{key:"getEndLineNumber",value:function(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}},{key:"getStartColumn",value:function(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}},{key:"getEndColumn",value:function(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}]),e}(),tt=function(){function e(n,t,r,a,i,o,s,c){f(this,e),this.originalStartLineNumber=n,this.originalStartColumn=t,this.originalEndLineNumber=r,this.originalEndColumn=a,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=c}return _(e,null,[{key:"createFromDiffChange",value:function(n,t,r){return new e(t.getStartLineNumber(n.originalStart),t.getStartColumn(n.originalStart),t.getEndLineNumber(n.originalStart+n.originalLength-1),t.getEndColumn(n.originalStart+n.originalLength-1),r.getStartLineNumber(n.modifiedStart),r.getStartColumn(n.modifiedStart),r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1),r.getEndColumn(n.modifiedStart+n.modifiedLength-1))}}]),e}();var rt,at=function(){function e(n,t,r,a,i){f(this,e),this.originalStartLineNumber=n,this.originalEndLineNumber=t,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=a,this.charChanges=i}return _(e,null,[{key:"createFromDiffResult",value:function(n,t,r,a,i,o,s){var c,l,u,d,p=void 0;if(0===t.originalLength?(c=r.getStartLineNumber(t.originalStart)-1,l=0):(c=r.getStartLineNumber(t.originalStart),l=r.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=a.getStartLineNumber(t.modifiedStart)-1,d=0):(u=a.getStartLineNumber(t.modifiedStart),d=a.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){var f=r.createCharSequence(n,t.originalStart,t.originalStart+t.originalLength-1),m=a.createCharSequence(n,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(f.getElements().length>0&&m.getElements().length>0){var _=$n(f,m,i,!0).changes;s&&(_=function(e){if(e.length<=1)return e;for(var n=[e[0]],t=n[0],r=1,a=e.length;r<a;r++){var i=e[r],o=i.originalStart-(t.originalStart+t.originalLength),s=i.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(o,s)<3?(t.originalLength=i.originalStart+i.originalLength-t.originalStart,t.modifiedLength=i.modifiedStart+i.modifiedLength-t.modifiedStart):(n.push(i),t=i)}return n}(_)),p=[];for(var g=0,y=_.length;g<y;g++)p.push(tt.createFromDiffChange(_[g],f,m))}}return new e(c,l,u,d,p)}}]),e}(),it=function(){function e(n,t,r){f(this,e),this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=n,this.modifiedLines=t,this.original=new et(n),this.modified=new et(t),this.continueLineDiff=ct(r.maxComputationTime),this.continueCharDiff=ct(0===r.maxComputationTime?0:Math.min(r.maxComputationTime,5e3))}return _(e,[{key:"computeDiff",value:function(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=$n(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,t=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var r=[],a=0,i=n.length;a<i;a++)r.push(at.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[a],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:t,changes:r}}for(var o=[],s=0,c=0,l=-1,u=n.length;l<u;l++){for(var d=l+1<u?n[l+1]:null,p=d?d.originalStart:this.originalLines.length,f=d?d.modifiedStart:this.modifiedLines.length;s<p&&c<f;){var m=this.originalLines[s],_=this.modifiedLines[c];if(m!==_){for(var g=ot(m,1),y=ot(_,1);g>1&&y>1;){if(m.charCodeAt(g-2)!==_.charCodeAt(y-2))break;g--,y--}(g>1||y>1)&&this._pushTrimWhitespaceCharChange(o,s+1,1,g,c+1,1,y);for(var h=st(m,1),v=st(_,1),b=m.length+1,E=_.length+1;h<b&&v<E;){if(m.charCodeAt(h-1)!==m.charCodeAt(v-1))break;h++,v++}(h<b||v<E)&&this._pushTrimWhitespaceCharChange(o,s+1,h,b,c+1,v,E)}s++,c++}d&&(o.push(at.createFromDiffResult(this.shouldIgnoreTrimWhitespace,d,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=d.originalLength,c+=d.modifiedLength)}return{quitEarly:t,changes:o}}},{key:"_pushTrimWhitespaceCharChange",value:function(e,n,t,r,a,i,o){if(!this._mergeTrimWhitespaceCharChange(e,n,t,r,a,i,o)){var s=void 0;this.shouldComputeCharChanges&&(s=[new tt(n,t,n,r,a,i,a,o)]),e.push(new at(n,n,a,a,s))}}},{key:"_mergeTrimWhitespaceCharChange",value:function(e,n,t,r,a,i,o){var s=e.length;if(0===s)return!1;var c=e[s-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&(c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===a&&(c.originalEndLineNumber=n,c.modifiedEndLineNumber=a,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new tt(n,t,n,r,a,i,a,o)),!0))}}]),e}();function ot(e,n){var t=function(e){for(var n=0,t=e.length;n<t;n++){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}(e);return-1===t?n:t+1}function st(e,n){var t=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;n>=0;n--){var t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===t?n:t+2}function ct(e){if(0===e)return function(){return!0};var n=Date.now();return function(){return Date.now()-n<e}}!function(e){e.isLessThan=function(e){return e<0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(rt||(rt={}));function lt(e){return e<0?0:e>255?255:0|e}function ut(e){return e<0?0:e>4294967295?4294967295:0|e}var dt=function(){function e(n){f(this,e),this.values=n,this.prefixSum=new Uint32Array(n.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return _(e,[{key:"insertValues",value:function(e,n){e=ut(e);var t=this.values,r=this.prefixSum,a=n.length;return 0!==a&&(this.values=new Uint32Array(t.length+a),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+a),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}},{key:"setValue",value:function(e,n){return e=ut(e),n=ut(n),this.values[e]!==n&&(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}},{key:"removeValues",value:function(e,n){e=ut(e),n=ut(n);var t=this.values,r=this.prefixSum;if(e>=t.length)return!1;var a=t.length-e;return n>=a&&(n=a),0!==n&&(this.values=new Uint32Array(t.length-n),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}},{key:"getTotalSum",value:function(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}},{key:"getPrefixSum",value:function(e){return e<0?0:(e=ut(e),this._getPrefixSum(e))}},{key:"_getPrefixSum",value:function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var n=this.prefixSumValidIndex[0]+1;0===n&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(var t=n;t<=e;t++)this.prefixSum[t]=this.prefixSum[t-1]+this.values[t];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}},{key:"getIndexOf",value:function(e){e=Math.floor(e),this.getTotalSum();for(var n=0,t=this.values.length-1,r=0,a=0,i=0;n<=t;)if(r=n+(t-n)/2|0,e<(i=(a=this.prefixSum[r])-this.values[r]))t=r-1;else{if(!(e>=a))break;n=r+1}return new pt(r,e-i)}}]),e}(),pt=_((function e(n,t){f(this,e),this.index=n,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=n,this.remainder=t})),ft=function(){function e(n,t,r,a){f(this,e),this._uri=n,this._lines=t,this._eol=r,this._versionId=a,this._lineStarts=null,this._cachedTextValue=null}return _(e,[{key:"dispose",value:function(){this._lines.length=0}},{key:"version",get:function(){return this._versionId}},{key:"getText",value:function(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}},{key:"onEvents",value:function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);var n,t=c(e.changes);try{for(t.s();!(n=t.n()).done;){var r=n.value;this._acceptDeleteRange(r.range),this._acceptInsertText(new Qn(r.range.startLineNumber,r.range.startColumn),r.text)}}catch(a){t.e(a)}finally{t.f()}this._versionId=e.versionId,this._cachedTextValue=null}},{key:"_ensureLineStarts",value:function(){if(!this._lineStarts){for(var e=this._eol.length,n=this._lines.length,t=new Uint32Array(n),r=0;r<n;r++)t[r]=this._lines[r].length+e;this._lineStarts=new dt(t)}}},{key:"_setLineText",value:function(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}},{key:"_acceptDeleteRange",value:function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}},{key:"_acceptInsertText",value:function(e,n){if(0!==n.length){var t=n.split(/\r\n|\r|\n/);if(1!==t.length){t[t.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]);for(var r=new Uint32Array(t.length-1),a=1;a<t.length;a++)this._lines.splice(e.lineNumber+a-1,0,t[a]),r[a-1]=t[a].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]+this._lines[e.lineNumber-1].substring(e.column-1))}}}]),e}(),mt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";var _t=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="(-?\\d*\\.\\d\\w*)|([^",r=c(mt);try{for(r.s();!(e=r.n()).done;){var a=e.value;n.indexOf(a)>=0||(t+="\\"+a)}}catch(i){r.e(i)}finally{r.f()}return t+="\\s]+)",new RegExp(t,"g")}();var gt=new Y;function yt(e,n,t,r,a){if(a||(a=N.first(gt)),t.length>a.maxLen){var i=e-a.maxLen/2;return i<0?i=0:r+=i,yt(e,n,t=t.substring(i,e+a.maxLen/2),r,a)}for(var o=Date.now(),s=e-1-r,c=-1,l=null,u=1;!(Date.now()-o>=a.timeBudget);u++){var d=s-a.windowSize*u;n.lastIndex=Math.max(0,d);var p=ht(n,t,s,c);if(!p&&l)break;if(l=p,d<=0)break;c=d}if(l){var f={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return n.lastIndex=0,f}return null}function ht(e,n,t,r){for(var a;a=e.exec(n);){var i=a.index||0;if(i<=t&&e.lastIndex>=t)return a;if(r>0&&i>r)return null}return null}gt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});var vt=function(){function e(n){f(this,e);var t=lt(n);this._defaultValue=t,this._asciiMap=e._createAsciiMap(t),this._map=new Map}return _(e,[{key:"set",value:function(e,n){var t=lt(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}},{key:"get",value:function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}],[{key:"_createAsciiMap",value:function(e){for(var n=new Uint8Array(256),t=0;t<256;t++)n[t]=e;return n}}]),e}(),bt=function(){function e(n,t,r){f(this,e);for(var a=new Uint8Array(n*t),i=0,o=n*t;i<o;i++)a[i]=r;this._data=a,this.rows=n,this.cols=t}return _(e,[{key:"get",value:function(e,n){return this._data[e*this.cols+n]}},{key:"set",value:function(e,n,t){this._data[e*this.cols+n]=t}}]),e}(),Et=function(){function e(n){f(this,e);for(var t=0,r=0,a=0,i=n.length;a<i;a++){var o=O(n[a],3),s=o[0],c=o[1],l=o[2];c>t&&(t=c),s>r&&(r=s),l>r&&(r=l)}t++,r++;for(var u=new bt(r,t,0),d=0,p=n.length;d<p;d++){var m=O(n[d],3),_=m[0],g=m[1],y=m[2];u.set(_,g,y)}this._states=u,this._maxCharCode=t}return _(e,[{key:"nextState",value:function(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}]),e}(),Tt=null;function St(){return null===Tt&&(Tt=new Et([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Tt}var xt=null;function Lt(){if(null===xt){xt=new vt(0);for(var e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026",n=0;n<e.length;n++)xt.set(e.charCodeAt(n),1);for(var t=".,;:",r=0;r<t.length;r++)xt.set(t.charCodeAt(r),2)}return xt}var Dt=function(){function e(){f(this,e)}return _(e,null,[{key:"_createLink",value:function(e,n,t,r,a){var i=a-1;do{var o=n.charCodeAt(i);if(2!==e.get(o))break;i--}while(i>r);if(r>0){var s=n.charCodeAt(r-1),c=n.charCodeAt(i);(40===s&&41===c||91===s&&93===c||123===s&&125===c)&&i--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+2},url:n.substring(r,i+1)}}},{key:"computeLinks",value:function(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:St(),r=Lt(),a=[],i=1,o=n.getLineCount();i<=o;i++){for(var s=n.getLineContent(i),c=s.length,l=0,u=0,d=0,p=1,f=!1,m=!1,_=!1,g=!1;l<c;){var y=!1,h=s.charCodeAt(l);if(13===p){var v=void 0;switch(h){case 40:f=!0,v=0;break;case 41:v=f?0:1;break;case 91:_=!0,m=!0,v=0;break;case 93:_=!1,v=m?0:1;break;case 123:g=!0,v=0;break;case 125:v=g?0:1;break;case 39:v=39===d?1:0;break;case 34:v=34===d?1:0;break;case 96:v=96===d?1:0;break;case 42:v=42===d?1:0;break;case 124:v=124===d?1:0;break;case 32:v=_?0:1;break;default:v=r.get(h)}1===v&&(a.push(e._createLink(r,s,i,u,l)),y=!0)}else if(12===p){var b=void 0;91===h?(m=!0,b=0):b=r.get(h),1===b?y=!0:p=13}else 0===(p=t.nextState(p,h))&&(y=!0);y&&(p=1,f=!1,m=!1,g=!1,u=l+1,d=h),l++}13===p&&a.push(e._createLink(r,s,i,u,c))}return a}}]),e}();function Ct(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Dt.computeLinks(e):[]}var At=function(){function e(){f(this,e),this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return _(e,[{key:"navigateValueSet",value:function(e,n,t,r,a){if(e&&n){var i=this.doNavigateValueSet(n,a);if(i)return{range:e,value:i}}if(t&&r){var o=this.doNavigateValueSet(r,a);if(o)return{range:t,value:o}}return null}},{key:"doNavigateValueSet",value:function(e,n){var t=this.numberReplace(e,n);return null!==t?t:this.textReplace(e,n)}},{key:"numberReplace",value:function(e,n){var t=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),r=Number(e),a=parseFloat(e);return isNaN(r)||isNaN(a)||r!==a?null:0!==r||n?(r=Math.floor(r*t),r+=n?t:-t,String(r/t)):null}},{key:"textReplace",value:function(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}},{key:"valueSetsReplace",value:function(e,n,t){for(var r=null,a=0,i=e.length;null===r&&a<i;a++)r=this.valueSetReplace(e[a],n,t);return r}},{key:"valueSetReplace",value:function(e,n,t){var r=e.indexOf(n);return r>=0?((r+=t?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null}}]),e}();At.INSTANCE=new At;var It,kt=Object.freeze((function(e,n){var t=setTimeout(e.bind(n),0);return{dispose:function(){clearTimeout(t)}}}));!function(e){e.isCancellationToken=function(n){return n===e.None||n===e.Cancelled||(n instanceof Rt||!(!n||"object"!==typeof n)&&("boolean"===typeof n.isCancellationRequested&&"function"===typeof n.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ye.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:kt})}(It||(It={}));for(var Nt,Rt=function(){function e(){f(this,e),this._isCancelled=!1,this._emitter=null}return _(e,[{key:"cancel",value:function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}},{key:"isCancellationRequested",get:function(){return this._isCancelled}},{key:"onCancellationRequested",get:function(){return this._isCancelled?kt:(this._emitter||(this._emitter=new xe),this._emitter.event)}},{key:"dispose",value:function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}]),e}(),Ot=function(){function e(n){f(this,e),this._token=void 0,this._parentListener=void 0,this._parentListener=n&&n.onCancellationRequested(this.cancel,this)}return _(e,[{key:"token",get:function(){return this._token||(this._token=new Rt),this._token}},{key:"cancel",value:function(){this._token?this._token instanceof Rt&&this._token.cancel():this._token=It.Cancelled}},{key:"dispose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Rt&&this._token.dispose():this._token=It.None}}]),e}(),wt=function(){function e(){f(this,e),this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return _(e,[{key:"define",value:function(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}},{key:"keyCodeToStr",value:function(e){return this._keyCodeToStr[e]}},{key:"strToKeyCode",value:function(e){return this._strToKeyCode[e.toLowerCase()]||0}}]),e}(),Mt=new wt,Pt=new wt,Ft=new wt,Gt=new Array(230),Bt={},Ut=[],Vt=Object.create(null),jt=Object.create(null),Kt=[],Ht=[],Wt=0;Wt<=193;Wt++)Kt[Wt]=-1;for(var zt=0;zt<=127;zt++)Ht[zt]=-1;!function(){for(var e="",n=[],t=[],r=0,a=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];r<a.length;r++){var i=O(a[r],10),o=(i[0],i[1]),s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],p=i[7],f=i[8],m=i[9];if(t[s]||(t[s]=!0,Ut[s]=c,Vt[c]=s,jt[c.toLowerCase()]=s,o&&(Kt[s]=l,0!==l&&3!==l&&5!==l&&4!==l&&6!==l&&57!==l&&(Ht[l]=s))),!n[l]){if(n[l]=!0,!u)throw new Error("String representation missing for key code ".concat(l," around scan code ").concat(c));Mt.define(l,u),Pt.define(l,f||u),Ft.define(l,m||f||u)}d&&(Gt[d]=l),p&&(Bt[p]=l)}Ht[3]=46}(),function(e){e.toString=function(e){return Mt.keyCodeToStr(e)},e.fromString=function(e){return Mt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Pt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Ft.keyCodeToStr(e)},e.fromUserSettings=function(e){return Pt.strToKeyCode(e)||Ft.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Mt.keyCodeToStr(e)}}(Nt||(Nt={}));var Jt=function(e){h(t,e);var n=T(t);function t(e,r,a,i){var o;return f(this,t),(o=n.call(this,e,r,a,i)).selectionStartLineNumber=e,o.selectionStartColumn=r,o.positionLineNumber=a,o.positionColumn=i,o}return _(t,[{key:"toString",value:function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}},{key:"equalsSelection",value:function(e){return t.selectionsEqual(this,e)}},{key:"getDirection",value:function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}},{key:"setEndPosition",value:function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)}},{key:"getPosition",value:function(){return new Qn(this.positionLineNumber,this.positionColumn)}},{key:"getSelectionStart",value:function(){return new Qn(this.selectionStartLineNumber,this.selectionStartColumn)}},{key:"setStartPosition",value:function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)}}],[{key:"selectionsEqual",value:function(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}},{key:"fromPositions",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new t(e.lineNumber,e.column,n.lineNumber,n.column)}},{key:"fromRange",value:function(e,n){return 0===n?new t(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new t(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}},{key:"liftSelection",value:function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}},{key:"selectionsArrEqual",value:function(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(var t=0,r=e.length;t<r;t++)if(!this.selectionsEqual(e[t],n[t]))return!1;return!0}},{key:"isISelection",value:function(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}},{key:"createWithDirection",value:function(e,n,r,a,i){return 0===i?new t(e,n,r,a):new t(r,a,e,n)}}]),t}(Zn);var qt,Xt=function(){function e(n,t,r){f(this,e),this.id=n,this.definition=t,this.description=r,e._allCodicons.push(this)}return _(e,[{key:"classNames",get:function(){return"codicon codicon-"+this.id}},{key:"classNamesArray",get:function(){return["codicon","codicon-"+this.id]}},{key:"cssSelector",get:function(){return".codicon.codicon-"+this.id}}],[{key:"getAll",value:function(){return e._allCodicons}}]),e}();function Yt(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=v(e)););return e}function Qt(){return Qt="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var r=Yt(e,n);if(r){var a=Object.getOwnPropertyDescriptor(r,n);return a.get?a.get.call(arguments.length<3?e:t):a.value}},Qt.apply(this,arguments)}Xt._allCodicons=[],Xt.add=new Xt("add",{fontCharacter:"\\ea60"}),Xt.plus=new Xt("plus",Xt.add.definition),Xt.gistNew=new Xt("gist-new",Xt.add.definition),Xt.repoCreate=new Xt("repo-create",Xt.add.definition),Xt.lightbulb=new Xt("lightbulb",{fontCharacter:"\\ea61"}),Xt.lightBulb=new Xt("light-bulb",{fontCharacter:"\\ea61"}),Xt.repo=new Xt("repo",{fontCharacter:"\\ea62"}),Xt.repoDelete=new Xt("repo-delete",{fontCharacter:"\\ea62"}),Xt.gistFork=new Xt("gist-fork",{fontCharacter:"\\ea63"}),Xt.repoForked=new Xt("repo-forked",{fontCharacter:"\\ea63"}),Xt.gitPullRequest=new Xt("git-pull-request",{fontCharacter:"\\ea64"}),Xt.gitPullRequestAbandoned=new Xt("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),Xt.recordKeys=new Xt("record-keys",{fontCharacter:"\\ea65"}),Xt.keyboard=new Xt("keyboard",{fontCharacter:"\\ea65"}),Xt.tag=new Xt("tag",{fontCharacter:"\\ea66"}),Xt.tagAdd=new Xt("tag-add",{fontCharacter:"\\ea66"}),Xt.tagRemove=new Xt("tag-remove",{fontCharacter:"\\ea66"}),Xt.person=new Xt("person",{fontCharacter:"\\ea67"}),Xt.personFollow=new Xt("person-follow",{fontCharacter:"\\ea67"}),Xt.personOutline=new Xt("person-outline",{fontCharacter:"\\ea67"}),Xt.personFilled=new Xt("person-filled",{fontCharacter:"\\ea67"}),Xt.gitBranch=new Xt("git-branch",{fontCharacter:"\\ea68"}),Xt.gitBranchCreate=new Xt("git-branch-create",{fontCharacter:"\\ea68"}),Xt.gitBranchDelete=new Xt("git-branch-delete",{fontCharacter:"\\ea68"}),Xt.sourceControl=new Xt("source-control",{fontCharacter:"\\ea68"}),Xt.mirror=new Xt("mirror",{fontCharacter:"\\ea69"}),Xt.mirrorPublic=new Xt("mirror-public",{fontCharacter:"\\ea69"}),Xt.star=new Xt("star",{fontCharacter:"\\ea6a"}),Xt.starAdd=new Xt("star-add",{fontCharacter:"\\ea6a"}),Xt.starDelete=new Xt("star-delete",{fontCharacter:"\\ea6a"}),Xt.starEmpty=new Xt("star-empty",{fontCharacter:"\\ea6a"}),Xt.comment=new Xt("comment",{fontCharacter:"\\ea6b"}),Xt.commentAdd=new Xt("comment-add",{fontCharacter:"\\ea6b"}),Xt.alert=new Xt("alert",{fontCharacter:"\\ea6c"}),Xt.warning=new Xt("warning",{fontCharacter:"\\ea6c"}),Xt.search=new Xt("search",{fontCharacter:"\\ea6d"}),Xt.searchSave=new Xt("search-save",{fontCharacter:"\\ea6d"}),Xt.logOut=new Xt("log-out",{fontCharacter:"\\ea6e"}),Xt.signOut=new Xt("sign-out",{fontCharacter:"\\ea6e"}),Xt.logIn=new Xt("log-in",{fontCharacter:"\\ea6f"}),Xt.signIn=new Xt("sign-in",{fontCharacter:"\\ea6f"}),Xt.eye=new Xt("eye",{fontCharacter:"\\ea70"}),Xt.eyeUnwatch=new Xt("eye-unwatch",{fontCharacter:"\\ea70"}),Xt.eyeWatch=new Xt("eye-watch",{fontCharacter:"\\ea70"}),Xt.circleFilled=new Xt("circle-filled",{fontCharacter:"\\ea71"}),Xt.primitiveDot=new Xt("primitive-dot",{fontCharacter:"\\ea71"}),Xt.closeDirty=new Xt("close-dirty",{fontCharacter:"\\ea71"}),Xt.debugBreakpoint=new Xt("debug-breakpoint",{fontCharacter:"\\ea71"}),Xt.debugBreakpointDisabled=new Xt("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),Xt.debugHint=new Xt("debug-hint",{fontCharacter:"\\ea71"}),Xt.primitiveSquare=new Xt("primitive-square",{fontCharacter:"\\ea72"}),Xt.edit=new Xt("edit",{fontCharacter:"\\ea73"}),Xt.pencil=new Xt("pencil",{fontCharacter:"\\ea73"}),Xt.info=new Xt("info",{fontCharacter:"\\ea74"}),Xt.issueOpened=new Xt("issue-opened",{fontCharacter:"\\ea74"}),Xt.gistPrivate=new Xt("gist-private",{fontCharacter:"\\ea75"}),Xt.gitForkPrivate=new Xt("git-fork-private",{fontCharacter:"\\ea75"}),Xt.lock=new Xt("lock",{fontCharacter:"\\ea75"}),Xt.mirrorPrivate=new Xt("mirror-private",{fontCharacter:"\\ea75"}),Xt.close=new Xt("close",{fontCharacter:"\\ea76"}),Xt.removeClose=new Xt("remove-close",{fontCharacter:"\\ea76"}),Xt.x=new Xt("x",{fontCharacter:"\\ea76"}),Xt.repoSync=new Xt("repo-sync",{fontCharacter:"\\ea77"}),Xt.sync=new Xt("sync",{fontCharacter:"\\ea77"}),Xt.clone=new Xt("clone",{fontCharacter:"\\ea78"}),Xt.desktopDownload=new Xt("desktop-download",{fontCharacter:"\\ea78"}),Xt.beaker=new Xt("beaker",{fontCharacter:"\\ea79"}),Xt.microscope=new Xt("microscope",{fontCharacter:"\\ea79"}),Xt.vm=new Xt("vm",{fontCharacter:"\\ea7a"}),Xt.deviceDesktop=new Xt("device-desktop",{fontCharacter:"\\ea7a"}),Xt.file=new Xt("file",{fontCharacter:"\\ea7b"}),Xt.fileText=new Xt("file-text",{fontCharacter:"\\ea7b"}),Xt.more=new Xt("more",{fontCharacter:"\\ea7c"}),Xt.ellipsis=new Xt("ellipsis",{fontCharacter:"\\ea7c"}),Xt.kebabHorizontal=new Xt("kebab-horizontal",{fontCharacter:"\\ea7c"}),Xt.mailReply=new Xt("mail-reply",{fontCharacter:"\\ea7d"}),Xt.reply=new Xt("reply",{fontCharacter:"\\ea7d"}),Xt.organization=new Xt("organization",{fontCharacter:"\\ea7e"}),Xt.organizationFilled=new Xt("organization-filled",{fontCharacter:"\\ea7e"}),Xt.organizationOutline=new Xt("organization-outline",{fontCharacter:"\\ea7e"}),Xt.newFile=new Xt("new-file",{fontCharacter:"\\ea7f"}),Xt.fileAdd=new Xt("file-add",{fontCharacter:"\\ea7f"}),Xt.newFolder=new Xt("new-folder",{fontCharacter:"\\ea80"}),Xt.fileDirectoryCreate=new Xt("file-directory-create",{fontCharacter:"\\ea80"}),Xt.trash=new Xt("trash",{fontCharacter:"\\ea81"}),Xt.trashcan=new Xt("trashcan",{fontCharacter:"\\ea81"}),Xt.history=new Xt("history",{fontCharacter:"\\ea82"}),Xt.clock=new Xt("clock",{fontCharacter:"\\ea82"}),Xt.folder=new Xt("folder",{fontCharacter:"\\ea83"}),Xt.fileDirectory=new Xt("file-directory",{fontCharacter:"\\ea83"}),Xt.symbolFolder=new Xt("symbol-folder",{fontCharacter:"\\ea83"}),Xt.logoGithub=new Xt("logo-github",{fontCharacter:"\\ea84"}),Xt.markGithub=new Xt("mark-github",{fontCharacter:"\\ea84"}),Xt.github=new Xt("github",{fontCharacter:"\\ea84"}),Xt.terminal=new Xt("terminal",{fontCharacter:"\\ea85"}),Xt.console=new Xt("console",{fontCharacter:"\\ea85"}),Xt.repl=new Xt("repl",{fontCharacter:"\\ea85"}),Xt.zap=new Xt("zap",{fontCharacter:"\\ea86"}),Xt.symbolEvent=new Xt("symbol-event",{fontCharacter:"\\ea86"}),Xt.error=new Xt("error",{fontCharacter:"\\ea87"}),Xt.stop=new Xt("stop",{fontCharacter:"\\ea87"}),Xt.variable=new Xt("variable",{fontCharacter:"\\ea88"}),Xt.symbolVariable=new Xt("symbol-variable",{fontCharacter:"\\ea88"}),Xt.array=new Xt("array",{fontCharacter:"\\ea8a"}),Xt.symbolArray=new Xt("symbol-array",{fontCharacter:"\\ea8a"}),Xt.symbolModule=new Xt("symbol-module",{fontCharacter:"\\ea8b"}),Xt.symbolPackage=new Xt("symbol-package",{fontCharacter:"\\ea8b"}),Xt.symbolNamespace=new Xt("symbol-namespace",{fontCharacter:"\\ea8b"}),Xt.symbolObject=new Xt("symbol-object",{fontCharacter:"\\ea8b"}),Xt.symbolMethod=new Xt("symbol-method",{fontCharacter:"\\ea8c"}),Xt.symbolFunction=new Xt("symbol-function",{fontCharacter:"\\ea8c"}),Xt.symbolConstructor=new Xt("symbol-constructor",{fontCharacter:"\\ea8c"}),Xt.symbolBoolean=new Xt("symbol-boolean",{fontCharacter:"\\ea8f"}),Xt.symbolNull=new Xt("symbol-null",{fontCharacter:"\\ea8f"}),Xt.symbolNumeric=new Xt("symbol-numeric",{fontCharacter:"\\ea90"}),Xt.symbolNumber=new Xt("symbol-number",{fontCharacter:"\\ea90"}),Xt.symbolStructure=new Xt("symbol-structure",{fontCharacter:"\\ea91"}),Xt.symbolStruct=new Xt("symbol-struct",{fontCharacter:"\\ea91"}),Xt.symbolParameter=new Xt("symbol-parameter",{fontCharacter:"\\ea92"}),Xt.symbolTypeParameter=new Xt("symbol-type-parameter",{fontCharacter:"\\ea92"}),Xt.symbolKey=new Xt("symbol-key",{fontCharacter:"\\ea93"}),Xt.symbolText=new Xt("symbol-text",{fontCharacter:"\\ea93"}),Xt.symbolReference=new Xt("symbol-reference",{fontCharacter:"\\ea94"}),Xt.goToFile=new Xt("go-to-file",{fontCharacter:"\\ea94"}),Xt.symbolEnum=new Xt("symbol-enum",{fontCharacter:"\\ea95"}),Xt.symbolValue=new Xt("symbol-value",{fontCharacter:"\\ea95"}),Xt.symbolRuler=new Xt("symbol-ruler",{fontCharacter:"\\ea96"}),Xt.symbolUnit=new Xt("symbol-unit",{fontCharacter:"\\ea96"}),Xt.activateBreakpoints=new Xt("activate-breakpoints",{fontCharacter:"\\ea97"}),Xt.archive=new Xt("archive",{fontCharacter:"\\ea98"}),Xt.arrowBoth=new Xt("arrow-both",{fontCharacter:"\\ea99"}),Xt.arrowDown=new Xt("arrow-down",{fontCharacter:"\\ea9a"}),Xt.arrowLeft=new Xt("arrow-left",{fontCharacter:"\\ea9b"}),Xt.arrowRight=new Xt("arrow-right",{fontCharacter:"\\ea9c"}),Xt.arrowSmallDown=new Xt("arrow-small-down",{fontCharacter:"\\ea9d"}),Xt.arrowSmallLeft=new Xt("arrow-small-left",{fontCharacter:"\\ea9e"}),Xt.arrowSmallRight=new Xt("arrow-small-right",{fontCharacter:"\\ea9f"}),Xt.arrowSmallUp=new Xt("arrow-small-up",{fontCharacter:"\\eaa0"}),Xt.arrowUp=new Xt("arrow-up",{fontCharacter:"\\eaa1"}),Xt.bell=new Xt("bell",{fontCharacter:"\\eaa2"}),Xt.bold=new Xt("bold",{fontCharacter:"\\eaa3"}),Xt.book=new Xt("book",{fontCharacter:"\\eaa4"}),Xt.bookmark=new Xt("bookmark",{fontCharacter:"\\eaa5"}),Xt.debugBreakpointConditionalUnverified=new Xt("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),Xt.debugBreakpointConditional=new Xt("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),Xt.debugBreakpointConditionalDisabled=new Xt("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),Xt.debugBreakpointDataUnverified=new Xt("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),Xt.debugBreakpointData=new Xt("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),Xt.debugBreakpointDataDisabled=new Xt("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),Xt.debugBreakpointLogUnverified=new Xt("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),Xt.debugBreakpointLog=new Xt("debug-breakpoint-log",{fontCharacter:"\\eaab"}),Xt.debugBreakpointLogDisabled=new Xt("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),Xt.briefcase=new Xt("briefcase",{fontCharacter:"\\eaac"}),Xt.broadcast=new Xt("broadcast",{fontCharacter:"\\eaad"}),Xt.browser=new Xt("browser",{fontCharacter:"\\eaae"}),Xt.bug=new Xt("bug",{fontCharacter:"\\eaaf"}),Xt.calendar=new Xt("calendar",{fontCharacter:"\\eab0"}),Xt.caseSensitive=new Xt("case-sensitive",{fontCharacter:"\\eab1"}),Xt.check=new Xt("check",{fontCharacter:"\\eab2"}),Xt.checklist=new Xt("checklist",{fontCharacter:"\\eab3"}),Xt.chevronDown=new Xt("chevron-down",{fontCharacter:"\\eab4"}),Xt.dropDownButton=new Xt("drop-down-button",Xt.chevronDown.definition),Xt.chevronLeft=new Xt("chevron-left",{fontCharacter:"\\eab5"}),Xt.chevronRight=new Xt("chevron-right",{fontCharacter:"\\eab6"}),Xt.chevronUp=new Xt("chevron-up",{fontCharacter:"\\eab7"}),Xt.chromeClose=new Xt("chrome-close",{fontCharacter:"\\eab8"}),Xt.chromeMaximize=new Xt("chrome-maximize",{fontCharacter:"\\eab9"}),Xt.chromeMinimize=new Xt("chrome-minimize",{fontCharacter:"\\eaba"}),Xt.chromeRestore=new Xt("chrome-restore",{fontCharacter:"\\eabb"}),Xt.circleOutline=new Xt("circle-outline",{fontCharacter:"\\eabc"}),Xt.debugBreakpointUnverified=new Xt("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),Xt.circleSlash=new Xt("circle-slash",{fontCharacter:"\\eabd"}),Xt.circuitBoard=new Xt("circuit-board",{fontCharacter:"\\eabe"}),Xt.clearAll=new Xt("clear-all",{fontCharacter:"\\eabf"}),Xt.clippy=new Xt("clippy",{fontCharacter:"\\eac0"}),Xt.closeAll=new Xt("close-all",{fontCharacter:"\\eac1"}),Xt.cloudDownload=new Xt("cloud-download",{fontCharacter:"\\eac2"}),Xt.cloudUpload=new Xt("cloud-upload",{fontCharacter:"\\eac3"}),Xt.code=new Xt("code",{fontCharacter:"\\eac4"}),Xt.collapseAll=new Xt("collapse-all",{fontCharacter:"\\eac5"}),Xt.colorMode=new Xt("color-mode",{fontCharacter:"\\eac6"}),Xt.commentDiscussion=new Xt("comment-discussion",{fontCharacter:"\\eac7"}),Xt.compareChanges=new Xt("compare-changes",{fontCharacter:"\\eafd"}),Xt.creditCard=new Xt("credit-card",{fontCharacter:"\\eac9"}),Xt.dash=new Xt("dash",{fontCharacter:"\\eacc"}),Xt.dashboard=new Xt("dashboard",{fontCharacter:"\\eacd"}),Xt.database=new Xt("database",{fontCharacter:"\\eace"}),Xt.debugContinue=new Xt("debug-continue",{fontCharacter:"\\eacf"}),Xt.debugDisconnect=new Xt("debug-disconnect",{fontCharacter:"\\ead0"}),Xt.debugPause=new Xt("debug-pause",{fontCharacter:"\\ead1"}),Xt.debugRestart=new Xt("debug-restart",{fontCharacter:"\\ead2"}),Xt.debugStart=new Xt("debug-start",{fontCharacter:"\\ead3"}),Xt.debugStepInto=new Xt("debug-step-into",{fontCharacter:"\\ead4"}),Xt.debugStepOut=new Xt("debug-step-out",{fontCharacter:"\\ead5"}),Xt.debugStepOver=new Xt("debug-step-over",{fontCharacter:"\\ead6"}),Xt.debugStop=new Xt("debug-stop",{fontCharacter:"\\ead7"}),Xt.debug=new Xt("debug",{fontCharacter:"\\ead8"}),Xt.deviceCameraVideo=new Xt("device-camera-video",{fontCharacter:"\\ead9"}),Xt.deviceCamera=new Xt("device-camera",{fontCharacter:"\\eada"}),Xt.deviceMobile=new Xt("device-mobile",{fontCharacter:"\\eadb"}),Xt.diffAdded=new Xt("diff-added",{fontCharacter:"\\eadc"}),Xt.diffIgnored=new Xt("diff-ignored",{fontCharacter:"\\eadd"}),Xt.diffModified=new Xt("diff-modified",{fontCharacter:"\\eade"}),Xt.diffRemoved=new Xt("diff-removed",{fontCharacter:"\\eadf"}),Xt.diffRenamed=new Xt("diff-renamed",{fontCharacter:"\\eae0"}),Xt.diff=new Xt("diff",{fontCharacter:"\\eae1"}),Xt.discard=new Xt("discard",{fontCharacter:"\\eae2"}),Xt.editorLayout=new Xt("editor-layout",{fontCharacter:"\\eae3"}),Xt.emptyWindow=new Xt("empty-window",{fontCharacter:"\\eae4"}),Xt.exclude=new Xt("exclude",{fontCharacter:"\\eae5"}),Xt.extensions=new Xt("extensions",{fontCharacter:"\\eae6"}),Xt.eyeClosed=new Xt("eye-closed",{fontCharacter:"\\eae7"}),Xt.fileBinary=new Xt("file-binary",{fontCharacter:"\\eae8"}),Xt.fileCode=new Xt("file-code",{fontCharacter:"\\eae9"}),Xt.fileMedia=new Xt("file-media",{fontCharacter:"\\eaea"}),Xt.filePdf=new Xt("file-pdf",{fontCharacter:"\\eaeb"}),Xt.fileSubmodule=new Xt("file-submodule",{fontCharacter:"\\eaec"}),Xt.fileSymlinkDirectory=new Xt("file-symlink-directory",{fontCharacter:"\\eaed"}),Xt.fileSymlinkFile=new Xt("file-symlink-file",{fontCharacter:"\\eaee"}),Xt.fileZip=new Xt("file-zip",{fontCharacter:"\\eaef"}),Xt.files=new Xt("files",{fontCharacter:"\\eaf0"}),Xt.filter=new Xt("filter",{fontCharacter:"\\eaf1"}),Xt.flame=new Xt("flame",{fontCharacter:"\\eaf2"}),Xt.foldDown=new Xt("fold-down",{fontCharacter:"\\eaf3"}),Xt.foldUp=new Xt("fold-up",{fontCharacter:"\\eaf4"}),Xt.fold=new Xt("fold",{fontCharacter:"\\eaf5"}),Xt.folderActive=new Xt("folder-active",{fontCharacter:"\\eaf6"}),Xt.folderOpened=new Xt("folder-opened",{fontCharacter:"\\eaf7"}),Xt.gear=new Xt("gear",{fontCharacter:"\\eaf8"}),Xt.gift=new Xt("gift",{fontCharacter:"\\eaf9"}),Xt.gistSecret=new Xt("gist-secret",{fontCharacter:"\\eafa"}),Xt.gist=new Xt("gist",{fontCharacter:"\\eafb"}),Xt.gitCommit=new Xt("git-commit",{fontCharacter:"\\eafc"}),Xt.gitCompare=new Xt("git-compare",{fontCharacter:"\\eafd"}),Xt.gitMerge=new Xt("git-merge",{fontCharacter:"\\eafe"}),Xt.githubAction=new Xt("github-action",{fontCharacter:"\\eaff"}),Xt.githubAlt=new Xt("github-alt",{fontCharacter:"\\eb00"}),Xt.globe=new Xt("globe",{fontCharacter:"\\eb01"}),Xt.grabber=new Xt("grabber",{fontCharacter:"\\eb02"}),Xt.graph=new Xt("graph",{fontCharacter:"\\eb03"}),Xt.gripper=new Xt("gripper",{fontCharacter:"\\eb04"}),Xt.heart=new Xt("heart",{fontCharacter:"\\eb05"}),Xt.home=new Xt("home",{fontCharacter:"\\eb06"}),Xt.horizontalRule=new Xt("horizontal-rule",{fontCharacter:"\\eb07"}),Xt.hubot=new Xt("hubot",{fontCharacter:"\\eb08"}),Xt.inbox=new Xt("inbox",{fontCharacter:"\\eb09"}),Xt.issueClosed=new Xt("issue-closed",{fontCharacter:"\\eba4"}),Xt.issueReopened=new Xt("issue-reopened",{fontCharacter:"\\eb0b"}),Xt.issues=new Xt("issues",{fontCharacter:"\\eb0c"}),Xt.italic=new Xt("italic",{fontCharacter:"\\eb0d"}),Xt.jersey=new Xt("jersey",{fontCharacter:"\\eb0e"}),Xt.json=new Xt("json",{fontCharacter:"\\eb0f"}),Xt.kebabVertical=new Xt("kebab-vertical",{fontCharacter:"\\eb10"}),Xt.key=new Xt("key",{fontCharacter:"\\eb11"}),Xt.law=new Xt("law",{fontCharacter:"\\eb12"}),Xt.lightbulbAutofix=new Xt("lightbulb-autofix",{fontCharacter:"\\eb13"}),Xt.linkExternal=new Xt("link-external",{fontCharacter:"\\eb14"}),Xt.link=new Xt("link",{fontCharacter:"\\eb15"}),Xt.listOrdered=new Xt("list-ordered",{fontCharacter:"\\eb16"}),Xt.listUnordered=new Xt("list-unordered",{fontCharacter:"\\eb17"}),Xt.liveShare=new Xt("live-share",{fontCharacter:"\\eb18"}),Xt.loading=new Xt("loading",{fontCharacter:"\\eb19"}),Xt.location=new Xt("location",{fontCharacter:"\\eb1a"}),Xt.mailRead=new Xt("mail-read",{fontCharacter:"\\eb1b"}),Xt.mail=new Xt("mail",{fontCharacter:"\\eb1c"}),Xt.markdown=new Xt("markdown",{fontCharacter:"\\eb1d"}),Xt.megaphone=new Xt("megaphone",{fontCharacter:"\\eb1e"}),Xt.mention=new Xt("mention",{fontCharacter:"\\eb1f"}),Xt.milestone=new Xt("milestone",{fontCharacter:"\\eb20"}),Xt.mortarBoard=new Xt("mortar-board",{fontCharacter:"\\eb21"}),Xt.move=new Xt("move",{fontCharacter:"\\eb22"}),Xt.multipleWindows=new Xt("multiple-windows",{fontCharacter:"\\eb23"}),Xt.mute=new Xt("mute",{fontCharacter:"\\eb24"}),Xt.noNewline=new Xt("no-newline",{fontCharacter:"\\eb25"}),Xt.note=new Xt("note",{fontCharacter:"\\eb26"}),Xt.octoface=new Xt("octoface",{fontCharacter:"\\eb27"}),Xt.openPreview=new Xt("open-preview",{fontCharacter:"\\eb28"}),Xt.package_=new Xt("package",{fontCharacter:"\\eb29"}),Xt.paintcan=new Xt("paintcan",{fontCharacter:"\\eb2a"}),Xt.pin=new Xt("pin",{fontCharacter:"\\eb2b"}),Xt.play=new Xt("play",{fontCharacter:"\\eb2c"}),Xt.run=new Xt("run",{fontCharacter:"\\eb2c"}),Xt.plug=new Xt("plug",{fontCharacter:"\\eb2d"}),Xt.preserveCase=new Xt("preserve-case",{fontCharacter:"\\eb2e"}),Xt.preview=new Xt("preview",{fontCharacter:"\\eb2f"}),Xt.project=new Xt("project",{fontCharacter:"\\eb30"}),Xt.pulse=new Xt("pulse",{fontCharacter:"\\eb31"}),Xt.question=new Xt("question",{fontCharacter:"\\eb32"}),Xt.quote=new Xt("quote",{fontCharacter:"\\eb33"}),Xt.radioTower=new Xt("radio-tower",{fontCharacter:"\\eb34"}),Xt.reactions=new Xt("reactions",{fontCharacter:"\\eb35"}),Xt.references=new Xt("references",{fontCharacter:"\\eb36"}),Xt.refresh=new Xt("refresh",{fontCharacter:"\\eb37"}),Xt.regex=new Xt("regex",{fontCharacter:"\\eb38"}),Xt.remoteExplorer=new Xt("remote-explorer",{fontCharacter:"\\eb39"}),Xt.remote=new Xt("remote",{fontCharacter:"\\eb3a"}),Xt.remove=new Xt("remove",{fontCharacter:"\\eb3b"}),Xt.replaceAll=new Xt("replace-all",{fontCharacter:"\\eb3c"}),Xt.replace=new Xt("replace",{fontCharacter:"\\eb3d"}),Xt.repoClone=new Xt("repo-clone",{fontCharacter:"\\eb3e"}),Xt.repoForcePush=new Xt("repo-force-push",{fontCharacter:"\\eb3f"}),Xt.repoPull=new Xt("repo-pull",{fontCharacter:"\\eb40"}),Xt.repoPush=new Xt("repo-push",{fontCharacter:"\\eb41"}),Xt.report=new Xt("report",{fontCharacter:"\\eb42"}),Xt.requestChanges=new Xt("request-changes",{fontCharacter:"\\eb43"}),Xt.rocket=new Xt("rocket",{fontCharacter:"\\eb44"}),Xt.rootFolderOpened=new Xt("root-folder-opened",{fontCharacter:"\\eb45"}),Xt.rootFolder=new Xt("root-folder",{fontCharacter:"\\eb46"}),Xt.rss=new Xt("rss",{fontCharacter:"\\eb47"}),Xt.ruby=new Xt("ruby",{fontCharacter:"\\eb48"}),Xt.saveAll=new Xt("save-all",{fontCharacter:"\\eb49"}),Xt.saveAs=new Xt("save-as",{fontCharacter:"\\eb4a"}),Xt.save=new Xt("save",{fontCharacter:"\\eb4b"}),Xt.screenFull=new Xt("screen-full",{fontCharacter:"\\eb4c"}),Xt.screenNormal=new Xt("screen-normal",{fontCharacter:"\\eb4d"}),Xt.searchStop=new Xt("search-stop",{fontCharacter:"\\eb4e"}),Xt.server=new Xt("server",{fontCharacter:"\\eb50"}),Xt.settingsGear=new Xt("settings-gear",{fontCharacter:"\\eb51"}),Xt.settings=new Xt("settings",{fontCharacter:"\\eb52"}),Xt.shield=new Xt("shield",{fontCharacter:"\\eb53"}),Xt.smiley=new Xt("smiley",{fontCharacter:"\\eb54"}),Xt.sortPrecedence=new Xt("sort-precedence",{fontCharacter:"\\eb55"}),Xt.splitHorizontal=new Xt("split-horizontal",{fontCharacter:"\\eb56"}),Xt.splitVertical=new Xt("split-vertical",{fontCharacter:"\\eb57"}),Xt.squirrel=new Xt("squirrel",{fontCharacter:"\\eb58"}),Xt.starFull=new Xt("star-full",{fontCharacter:"\\eb59"}),Xt.starHalf=new Xt("star-half",{fontCharacter:"\\eb5a"}),Xt.symbolClass=new Xt("symbol-class",{fontCharacter:"\\eb5b"}),Xt.symbolColor=new Xt("symbol-color",{fontCharacter:"\\eb5c"}),Xt.symbolCustomColor=new Xt("symbol-customcolor",{fontCharacter:"\\eb5c"}),Xt.symbolConstant=new Xt("symbol-constant",{fontCharacter:"\\eb5d"}),Xt.symbolEnumMember=new Xt("symbol-enum-member",{fontCharacter:"\\eb5e"}),Xt.symbolField=new Xt("symbol-field",{fontCharacter:"\\eb5f"}),Xt.symbolFile=new Xt("symbol-file",{fontCharacter:"\\eb60"}),Xt.symbolInterface=new Xt("symbol-interface",{fontCharacter:"\\eb61"}),Xt.symbolKeyword=new Xt("symbol-keyword",{fontCharacter:"\\eb62"}),Xt.symbolMisc=new Xt("symbol-misc",{fontCharacter:"\\eb63"}),Xt.symbolOperator=new Xt("symbol-operator",{fontCharacter:"\\eb64"}),Xt.symbolProperty=new Xt("symbol-property",{fontCharacter:"\\eb65"}),Xt.wrench=new Xt("wrench",{fontCharacter:"\\eb65"}),Xt.wrenchSubaction=new Xt("wrench-subaction",{fontCharacter:"\\eb65"}),Xt.symbolSnippet=new Xt("symbol-snippet",{fontCharacter:"\\eb66"}),Xt.tasklist=new Xt("tasklist",{fontCharacter:"\\eb67"}),Xt.telescope=new Xt("telescope",{fontCharacter:"\\eb68"}),Xt.textSize=new Xt("text-size",{fontCharacter:"\\eb69"}),Xt.threeBars=new Xt("three-bars",{fontCharacter:"\\eb6a"}),Xt.thumbsdown=new Xt("thumbsdown",{fontCharacter:"\\eb6b"}),Xt.thumbsup=new Xt("thumbsup",{fontCharacter:"\\eb6c"}),Xt.tools=new Xt("tools",{fontCharacter:"\\eb6d"}),Xt.triangleDown=new Xt("triangle-down",{fontCharacter:"\\eb6e"}),Xt.triangleLeft=new Xt("triangle-left",{fontCharacter:"\\eb6f"}),Xt.triangleRight=new Xt("triangle-right",{fontCharacter:"\\eb70"}),Xt.triangleUp=new Xt("triangle-up",{fontCharacter:"\\eb71"}),Xt.twitter=new Xt("twitter",{fontCharacter:"\\eb72"}),Xt.unfold=new Xt("unfold",{fontCharacter:"\\eb73"}),Xt.unlock=new Xt("unlock",{fontCharacter:"\\eb74"}),Xt.unmute=new Xt("unmute",{fontCharacter:"\\eb75"}),Xt.unverified=new Xt("unverified",{fontCharacter:"\\eb76"}),Xt.verified=new Xt("verified",{fontCharacter:"\\eb77"}),Xt.versions=new Xt("versions",{fontCharacter:"\\eb78"}),Xt.vmActive=new Xt("vm-active",{fontCharacter:"\\eb79"}),Xt.vmOutline=new Xt("vm-outline",{fontCharacter:"\\eb7a"}),Xt.vmRunning=new Xt("vm-running",{fontCharacter:"\\eb7b"}),Xt.watch=new Xt("watch",{fontCharacter:"\\eb7c"}),Xt.whitespace=new Xt("whitespace",{fontCharacter:"\\eb7d"}),Xt.wholeWord=new Xt("whole-word",{fontCharacter:"\\eb7e"}),Xt.window=new Xt("window",{fontCharacter:"\\eb7f"}),Xt.wordWrap=new Xt("word-wrap",{fontCharacter:"\\eb80"}),Xt.zoomIn=new Xt("zoom-in",{fontCharacter:"\\eb81"}),Xt.zoomOut=new Xt("zoom-out",{fontCharacter:"\\eb82"}),Xt.listFilter=new Xt("list-filter",{fontCharacter:"\\eb83"}),Xt.listFlat=new Xt("list-flat",{fontCharacter:"\\eb84"}),Xt.listSelection=new Xt("list-selection",{fontCharacter:"\\eb85"}),Xt.selection=new Xt("selection",{fontCharacter:"\\eb85"}),Xt.listTree=new Xt("list-tree",{fontCharacter:"\\eb86"}),Xt.debugBreakpointFunctionUnverified=new Xt("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),Xt.debugBreakpointFunction=new Xt("debug-breakpoint-function",{fontCharacter:"\\eb88"}),Xt.debugBreakpointFunctionDisabled=new Xt("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),Xt.debugStackframeActive=new Xt("debug-stackframe-active",{fontCharacter:"\\eb89"}),Xt.circleSmallFilled=new Xt("circle-small-filled",{fontCharacter:"\\eb8a"}),Xt.debugStackframeDot=new Xt("debug-stackframe-dot",Xt.circleSmallFilled.definition),Xt.debugStackframe=new Xt("debug-stackframe",{fontCharacter:"\\eb8b"}),Xt.debugStackframeFocused=new Xt("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),Xt.debugBreakpointUnsupported=new Xt("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),Xt.symbolString=new Xt("symbol-string",{fontCharacter:"\\eb8d"}),Xt.debugReverseContinue=new Xt("debug-reverse-continue",{fontCharacter:"\\eb8e"}),Xt.debugStepBack=new Xt("debug-step-back",{fontCharacter:"\\eb8f"}),Xt.debugRestartFrame=new Xt("debug-restart-frame",{fontCharacter:"\\eb90"}),Xt.callIncoming=new Xt("call-incoming",{fontCharacter:"\\eb92"}),Xt.callOutgoing=new Xt("call-outgoing",{fontCharacter:"\\eb93"}),Xt.menu=new Xt("menu",{fontCharacter:"\\eb94"}),Xt.expandAll=new Xt("expand-all",{fontCharacter:"\\eb95"}),Xt.feedback=new Xt("feedback",{fontCharacter:"\\eb96"}),Xt.groupByRefType=new Xt("group-by-ref-type",{fontCharacter:"\\eb97"}),Xt.ungroupByRefType=new Xt("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),Xt.account=new Xt("account",{fontCharacter:"\\eb99"}),Xt.bellDot=new Xt("bell-dot",{fontCharacter:"\\eb9a"}),Xt.debugConsole=new Xt("debug-console",{fontCharacter:"\\eb9b"}),Xt.library=new Xt("library",{fontCharacter:"\\eb9c"}),Xt.output=new Xt("output",{fontCharacter:"\\eb9d"}),Xt.runAll=new Xt("run-all",{fontCharacter:"\\eb9e"}),Xt.syncIgnored=new Xt("sync-ignored",{fontCharacter:"\\eb9f"}),Xt.pinned=new Xt("pinned",{fontCharacter:"\\eba0"}),Xt.githubInverted=new Xt("github-inverted",{fontCharacter:"\\eba1"}),Xt.debugAlt=new Xt("debug-alt",{fontCharacter:"\\eb91"}),Xt.serverProcess=new Xt("server-process",{fontCharacter:"\\eba2"}),Xt.serverEnvironment=new Xt("server-environment",{fontCharacter:"\\eba3"}),Xt.pass=new Xt("pass",{fontCharacter:"\\eba4"}),Xt.stopCircle=new Xt("stop-circle",{fontCharacter:"\\eba5"}),Xt.playCircle=new Xt("play-circle",{fontCharacter:"\\eba6"}),Xt.record=new Xt("record",{fontCharacter:"\\eba7"}),Xt.debugAltSmall=new Xt("debug-alt-small",{fontCharacter:"\\eba8"}),Xt.vmConnect=new Xt("vm-connect",{fontCharacter:"\\eba9"}),Xt.cloud=new Xt("cloud",{fontCharacter:"\\ebaa"}),Xt.merge=new Xt("merge",{fontCharacter:"\\ebab"}),Xt.exportIcon=new Xt("export",{fontCharacter:"\\ebac"}),Xt.graphLeft=new Xt("graph-left",{fontCharacter:"\\ebad"}),Xt.magnet=new Xt("magnet",{fontCharacter:"\\ebae"}),Xt.notebook=new Xt("notebook",{fontCharacter:"\\ebaf"}),Xt.redo=new Xt("redo",{fontCharacter:"\\ebb0"}),Xt.checkAll=new Xt("check-all",{fontCharacter:"\\ebb1"}),Xt.pinnedDirty=new Xt("pinned-dirty",{fontCharacter:"\\ebb2"}),Xt.passFilled=new Xt("pass-filled",{fontCharacter:"\\ebb3"}),Xt.circleLargeFilled=new Xt("circle-large-filled",{fontCharacter:"\\ebb4"}),Xt.circleLargeOutline=new Xt("circle-large-outline",{fontCharacter:"\\ebb5"}),Xt.combine=new Xt("combine",{fontCharacter:"\\ebb6"}),Xt.gather=new Xt("gather",{fontCharacter:"\\ebb6"}),Xt.table=new Xt("table",{fontCharacter:"\\ebb7"}),Xt.variableGroup=new Xt("variable-group",{fontCharacter:"\\ebb8"}),Xt.typeHierarchy=new Xt("type-hierarchy",{fontCharacter:"\\ebb9"}),Xt.typeHierarchySub=new Xt("type-hierarchy-sub",{fontCharacter:"\\ebba"}),Xt.typeHierarchySuper=new Xt("type-hierarchy-super",{fontCharacter:"\\ebbb"}),Xt.gitPullRequestCreate=new Xt("git-pull-request-create",{fontCharacter:"\\ebbc"}),Xt.runAbove=new Xt("run-above",{fontCharacter:"\\ebbd"}),Xt.runBelow=new Xt("run-below",{fontCharacter:"\\ebbe"}),Xt.notebookTemplate=new Xt("notebook-template",{fontCharacter:"\\ebbf"}),Xt.debugRerun=new Xt("debug-rerun",{fontCharacter:"\\ebc0"}),Xt.workspaceTrusted=new Xt("workspace-trusted",{fontCharacter:"\\ebc1"}),Xt.workspaceUntrusted=new Xt("workspace-untrusted",{fontCharacter:"\\ebc2"}),Xt.workspaceUnspecified=new Xt("workspace-unspecified",{fontCharacter:"\\ebc3"}),Xt.terminalCmd=new Xt("terminal-cmd",{fontCharacter:"\\ebc4"}),Xt.terminalDebian=new Xt("terminal-debian",{fontCharacter:"\\ebc5"}),Xt.terminalLinux=new Xt("terminal-linux",{fontCharacter:"\\ebc6"}),Xt.terminalPowershell=new Xt("terminal-powershell",{fontCharacter:"\\ebc7"}),Xt.terminalTmux=new Xt("terminal-tmux",{fontCharacter:"\\ebc8"}),Xt.terminalUbuntu=new Xt("terminal-ubuntu",{fontCharacter:"\\ebc9"}),Xt.terminalBash=new Xt("terminal-bash",{fontCharacter:"\\ebca"}),Xt.arrowSwap=new Xt("arrow-swap",{fontCharacter:"\\ebcb"}),Xt.copy=new Xt("copy",{fontCharacter:"\\ebcc"}),Xt.personAdd=new Xt("person-add",{fontCharacter:"\\ebcd"}),Xt.filterFilled=new Xt("filter-filled",{fontCharacter:"\\ebce"}),Xt.wand=new Xt("wand",{fontCharacter:"\\ebcf"}),Xt.debugLineByLine=new Xt("debug-line-by-line",{fontCharacter:"\\ebd0"}),Xt.inspect=new Xt("inspect",{fontCharacter:"\\ebd1"}),Xt.layers=new Xt("layers",{fontCharacter:"\\ebd2"}),Xt.layersDot=new Xt("layers-dot",{fontCharacter:"\\ebd3"}),Xt.layersActive=new Xt("layers-active",{fontCharacter:"\\ebd4"}),Xt.compass=new Xt("compass",{fontCharacter:"\\ebd5"}),Xt.compassDot=new Xt("compass-dot",{fontCharacter:"\\ebd6"}),Xt.compassActive=new Xt("compass-active",{fontCharacter:"\\ebd7"}),Xt.azure=new Xt("azure",{fontCharacter:"\\ebd8"}),Xt.issueDraft=new Xt("issue-draft",{fontCharacter:"\\ebd9"}),Xt.gitPullRequestClosed=new Xt("git-pull-request-closed",{fontCharacter:"\\ebda"}),Xt.gitPullRequestDraft=new Xt("git-pull-request-draft",{fontCharacter:"\\ebdb"}),Xt.debugAll=new Xt("debug-all",{fontCharacter:"\\ebdc"}),Xt.debugCoverage=new Xt("debug-coverage",{fontCharacter:"\\ebdd"}),Xt.runErrors=new Xt("run-errors",{fontCharacter:"\\ebde"}),Xt.folderLibrary=new Xt("folder-library",{fontCharacter:"\\ebdf"}),Xt.debugContinueSmall=new Xt("debug-continue-small",{fontCharacter:"\\ebe0"}),Xt.beakerStop=new Xt("beaker-stop",{fontCharacter:"\\ebe1"}),Xt.graphLine=new Xt("graph-line",{fontCharacter:"\\ebe2"}),Xt.graphScatter=new Xt("graph-scatter",{fontCharacter:"\\ebe3"}),Xt.pieChart=new Xt("pie-chart",{fontCharacter:"\\ebe4"}),Xt.bracket=new Xt("bracket",Xt.json.definition),Xt.bracketDot=new Xt("bracket-dot",{fontCharacter:"\\ebe5"}),Xt.bracketError=new Xt("bracket-error",{fontCharacter:"\\ebe6"}),Xt.lockSmall=new Xt("lock-small",{fontCharacter:"\\ebe7"}),Xt.azureDevops=new Xt("azure-devops",{fontCharacter:"\\ebe8"}),Xt.verifiedFilled=new Xt("verified-filled",{fontCharacter:"\\ebe9"}),Xt.newLine=new Xt("newline",{fontCharacter:"\\ebea"}),Xt.layout=new Xt("layout",{fontCharacter:"\\ebeb"}),Xt.layoutActivitybarLeft=new Xt("layout-activitybar-left",{fontCharacter:"\\ebec"}),Xt.layoutActivitybarRight=new Xt("layout-activitybar-right",{fontCharacter:"\\ebed"}),Xt.layoutPanelLeft=new Xt("layout-panel-left",{fontCharacter:"\\ebee"}),Xt.layoutPanelCenter=new Xt("layout-panel-center",{fontCharacter:"\\ebef"}),Xt.layoutPanelJustify=new Xt("layout-panel-justify",{fontCharacter:"\\ebf0"}),Xt.layoutPanelRight=new Xt("layout-panel-right",{fontCharacter:"\\ebf1"}),Xt.layoutPanel=new Xt("layout-panel",{fontCharacter:"\\ebf2"}),Xt.layoutSidebarLeft=new Xt("layout-sidebar-left",{fontCharacter:"\\ebf3"}),Xt.layoutSidebarRight=new Xt("layout-sidebar-right",{fontCharacter:"\\ebf4"}),Xt.layoutStatusbar=new Xt("layout-statusbar",{fontCharacter:"\\ebf5"}),Xt.layoutMenubar=new Xt("layout-menubar",{fontCharacter:"\\ebf6"}),Xt.layoutCentered=new Xt("layout-centered",{fontCharacter:"\\ebf7"}),Xt.layoutSidebarRightOff=new Xt("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),Xt.layoutPanelOff=new Xt("layout-panel-off",{fontCharacter:"\\ec01"}),Xt.layoutSidebarLeftOff=new Xt("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),Xt.target=new Xt("target",{fontCharacter:"\\ebf8"}),Xt.indent=new Xt("indent",{fontCharacter:"\\ebf9"}),Xt.recordSmall=new Xt("record-small",{fontCharacter:"\\ebfa"}),Xt.errorSmall=new Xt("error-small",{fontCharacter:"\\ebfb"}),Xt.arrowCircleDown=new Xt("arrow-circle-down",{fontCharacter:"\\ebfc"}),Xt.arrowCircleLeft=new Xt("arrow-circle-left",{fontCharacter:"\\ebfd"}),Xt.arrowCircleRight=new Xt("arrow-circle-right",{fontCharacter:"\\ebfe"}),Xt.arrowCircleUp=new Xt("arrow-circle-up",{fontCharacter:"\\ebff"}),Xt.heartFilled=new Xt("heart-filled",{fontCharacter:"\\ec04"}),Xt.map=new Xt("map",{fontCharacter:"\\ec05"}),Xt.mapFilled=new Xt("map-filled",{fontCharacter:"\\ec06"}),Xt.circleSmall=new Xt("circle-small",{fontCharacter:"\\ec07"}),Xt.bellSlash=new Xt("bell-slash",{fontCharacter:"\\ec08"}),Xt.bellSlashDot=new Xt("bell-slash-dot",{fontCharacter:"\\ec09"}),Xt.commentUnresolved=new Xt("comment-unresolved",{fontCharacter:"\\ec0a"}),Xt.gitPullRequestGoToChanges=new Xt("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),Xt.gitPullRequestNewChanges=new Xt("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),Xt.dialogError=new Xt("dialog-error",Xt.error.definition),Xt.dialogWarning=new Xt("dialog-warning",Xt.warning.definition),Xt.dialogInfo=new Xt("dialog-info",Xt.info.definition),Xt.dialogClose=new Xt("dialog-close",Xt.close.definition),Xt.treeItemExpanded=new Xt("tree-item-expanded",Xt.chevronDown.definition),Xt.treeFilterOnTypeOn=new Xt("tree-filter-on-type-on",Xt.listFilter.definition),Xt.treeFilterOnTypeOff=new Xt("tree-filter-on-type-off",Xt.listSelection.definition),Xt.treeFilterClear=new Xt("tree-filter-clear",Xt.close.definition),Xt.treeItemLoading=new Xt("tree-item-loading",Xt.loading.definition),Xt.menuSelection=new Xt("menu-selection",Xt.check.definition),Xt.menuSubmenu=new Xt("menu-submenu",Xt.chevronRight.definition),Xt.menuBarMore=new Xt("menubar-more",Xt.more.definition),Xt.scrollbarButtonLeft=new Xt("scrollbar-button-left",Xt.triangleLeft.definition),Xt.scrollbarButtonRight=new Xt("scrollbar-button-right",Xt.triangleRight.definition),Xt.scrollbarButtonUp=new Xt("scrollbar-button-up",Xt.triangleUp.definition),Xt.scrollbarButtonDown=new Xt("scrollbar-button-down",Xt.triangleDown.definition),Xt.toolBarMore=new Xt("toolbar-more",Xt.more.definition),Xt.quickInputBack=new Xt("quick-input-back",Xt.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";var n=new RegExp("^(".concat(e.iconNameExpression,")(").concat(e.iconModifierExpression,")?$"));function t(e){if(e instanceof Xt)return["codicon","codicon-"+e.id];var r=n.exec(e.id);if(!r)return t(Xt.error);var a=O(r,3),i=a[1],o=a[2],s=["codicon","codicon-"+i];return o&&s.push("codicon-modifier-"+o.substr(1)),s}e.asClassNameArray=t,e.asClassName=function(e){return t(e).join(" ")},e.asCSSSelector=function(e){return"."+t(e).join(".")}}(qt||(qt={}));var Zt,$t,er,nr,tr,rr=function(e,n,t,r){return new(t||(t=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(Oa){i(Oa)}}function s(e){try{c(r.throw(e))}catch(Oa){i(Oa)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,s)}c((r=r.apply(e,n||[])).next())}))},ar=function(){function e(){f(this,e),this._map=new Map,this._factories=new Map,this._onDidChange=new xe,this.onDidChange=this._onDidChange.event,this._colorMap=null}return _(e,[{key:"fire",value:function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}},{key:"register",value:function(e,n){var t=this;return this._map.set(e,n),this.fire([e]),H((function(){t._map.get(e)===n&&(t._map.delete(e),t.fire([e]))}))}},{key:"registerFactory",value:function(e,n){var t,r=this;null===(t=this._factories.get(e))||void 0===t||t.dispose();var a=new ir(this,e,n);return this._factories.set(e,a),H((function(){var n=r._factories.get(e);n&&n===a&&(r._factories.delete(e),n.dispose())}))}},{key:"getOrCreate",value:function(e){return rr(this,void 0,void 0,u().mark((function n(){var t,r;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=this.get(e))){n.next=3;break}return n.abrupt("return",t);case 3:if((r=this._factories.get(e))&&!r.isResolved){n.next=6;break}return n.abrupt("return",null);case 6:return n.next=8,r.resolve();case 8:return n.abrupt("return",this.get(e));case 9:case"end":return n.stop()}}),n,this)})))}},{key:"get",value:function(e){return this._map.get(e)||null}},{key:"isResolved",value:function(e){if(this.get(e))return!0;var n=this._factories.get(e);return!(n&&!n.isResolved)}},{key:"setColorMap",value:function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}},{key:"getColorMap",value:function(){return this._colorMap}},{key:"getDefaultBackground",value:function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}]),e}(),ir=function(e){h(t,e);var n=T(t);function t(e,r,a){var i;return f(this,t),(i=n.call(this))._registry=e,i._languageId=r,i._factory=a,i._isDisposed=!1,i._resolvePromise=null,i._isResolved=!1,i}return _(t,[{key:"isResolved",get:function(){return this._isResolved}},{key:"dispose",value:function(){this._isDisposed=!0,Qt(v(t.prototype),"dispose",this).call(this)}},{key:"resolve",value:function(){return rr(this,void 0,void 0,u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resolvePromise||(this._resolvePromise=this._create()),e.abrupt("return",this._resolvePromise);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"_create",value:function(){return rr(this,void 0,void 0,u().mark((function e(){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve(this._factory.createTokenizationSupport());case 2:n=e.sent,this._isResolved=!0,n&&!this._isDisposed&&this._register(this._registry.register(this._languageId,n));case 5:case"end":return e.stop()}}),e,this)})))}}]),t}(z),or=function(){function e(n,t,r){f(this,e),this._tokenBrand=void 0,this.offset=n,this.type=t,this.language=r}return _(e,[{key:"toString",value:function(){return"("+this.offset+", "+this.type+")"}}]),e}();!function(e){var n=new Map;n.set(0,Xt.symbolMethod),n.set(1,Xt.symbolFunction),n.set(2,Xt.symbolConstructor),n.set(3,Xt.symbolField),n.set(4,Xt.symbolVariable),n.set(5,Xt.symbolClass),n.set(6,Xt.symbolStruct),n.set(7,Xt.symbolInterface),n.set(8,Xt.symbolModule),n.set(9,Xt.symbolProperty),n.set(10,Xt.symbolEvent),n.set(11,Xt.symbolOperator),n.set(12,Xt.symbolUnit),n.set(13,Xt.symbolValue),n.set(15,Xt.symbolEnum),n.set(14,Xt.symbolConstant),n.set(15,Xt.symbolEnum),n.set(16,Xt.symbolEnumMember),n.set(17,Xt.symbolKeyword),n.set(27,Xt.symbolSnippet),n.set(18,Xt.symbolText),n.set(19,Xt.symbolColor),n.set(20,Xt.symbolFile),n.set(21,Xt.symbolReference),n.set(22,Xt.symbolCustomColor),n.set(23,Xt.symbolFolder),n.set(24,Xt.symbolTypeParameter),n.set(25,Xt.account),n.set(26,Xt.issues),e.toIcon=function(e){var t=n.get(e);return t||(console.info("No codicon found for CompletionItemKind "+e),t=Xt.symbolProperty),t};var t=new Map;t.set("method",0),t.set("function",1),t.set("constructor",2),t.set("field",3),t.set("variable",4),t.set("class",5),t.set("struct",6),t.set("interface",7),t.set("module",8),t.set("property",9),t.set("event",10),t.set("operator",11),t.set("unit",12),t.set("value",13),t.set("constant",14),t.set("enum",15),t.set("enum-member",16),t.set("enumMember",16),t.set("keyword",17),t.set("snippet",27),t.set("text",18),t.set("color",19),t.set("file",20),t.set("reference",21),t.set("customcolor",22),t.set("folder",23),t.set("type-parameter",24),t.set("typeParameter",24),t.set("account",25),t.set("issue",26),e.fromString=function(e,n){var r=t.get(e);return"undefined"!==typeof r||n||(r=9),r}}(Zt||(Zt={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}($t||($t={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(er||(er={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(nr||(nr={})),function(e){var n=new Map;n.set(0,Xt.symbolFile),n.set(1,Xt.symbolModule),n.set(2,Xt.symbolNamespace),n.set(3,Xt.symbolPackage),n.set(4,Xt.symbolClass),n.set(5,Xt.symbolMethod),n.set(6,Xt.symbolProperty),n.set(7,Xt.symbolField),n.set(8,Xt.symbolConstructor),n.set(9,Xt.symbolEnum),n.set(10,Xt.symbolInterface),n.set(11,Xt.symbolFunction),n.set(12,Xt.symbolVariable),n.set(13,Xt.symbolConstant),n.set(14,Xt.symbolString),n.set(15,Xt.symbolNumber),n.set(16,Xt.symbolBoolean),n.set(17,Xt.symbolArray),n.set(18,Xt.symbolObject),n.set(19,Xt.symbolKey),n.set(20,Xt.symbolNull),n.set(21,Xt.symbolEnumMember),n.set(22,Xt.symbolStruct),n.set(23,Xt.symbolEvent),n.set(24,Xt.symbolOperator),n.set(25,Xt.symbolTypeParameter),e.toIcon=function(e){var t=n.get(e);return t||(console.info("No codicon found for SymbolKind "+e),t=Xt.symbolProperty),t}}(tr||(tr={}));var sr,cr,lr=_((function e(n){f(this,e),this.value=n}));lr.Comment=new lr("comment"),lr.Imports=new lr("imports"),lr.Region=new lr("region"),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(sr||(sr={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(cr||(cr={}));var ur,dr,pr,fr,mr,_r,gr,yr,hr,vr,br,Er,Tr,Sr,xr,Lr,Dr,Cr,Ar,Ir,kr,Nr,Rr,Or,wr,Mr,Pr,Fr,Gr,Br,Ur,Vr,jr,Kr,Hr,Wr,zr,Jr;new ar;!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(ur||(ur={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(dr||(dr={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(pr||(pr={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(fr||(fr={})),function(e){e[e.Deprecated=1]="Deprecated"}(mr||(mr={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(_r||(_r={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(gr||(gr={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(yr||(yr={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(hr||(hr={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(vr||(vr={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(br||(br={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.experimental=34]="experimental",e[e.extraEditorClassName=35]="extraEditorClassName",e[e.fastScrollSensitivity=36]="fastScrollSensitivity",e[e.find=37]="find",e[e.fixedOverflowWidgets=38]="fixedOverflowWidgets",e[e.folding=39]="folding",e[e.foldingStrategy=40]="foldingStrategy",e[e.foldingHighlight=41]="foldingHighlight",e[e.foldingImportsByDefault=42]="foldingImportsByDefault",e[e.foldingMaximumRegions=43]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=45]="fontFamily",e[e.fontInfo=46]="fontInfo",e[e.fontLigatures=47]="fontLigatures",e[e.fontSize=48]="fontSize",e[e.fontWeight=49]="fontWeight",e[e.formatOnPaste=50]="formatOnPaste",e[e.formatOnType=51]="formatOnType",e[e.glyphMargin=52]="glyphMargin",e[e.gotoLocation=53]="gotoLocation",e[e.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",e[e.hover=55]="hover",e[e.inDiffEditor=56]="inDiffEditor",e[e.inlineSuggest=57]="inlineSuggest",e[e.letterSpacing=58]="letterSpacing",e[e.lightbulb=59]="lightbulb",e[e.lineDecorationsWidth=60]="lineDecorationsWidth",e[e.lineHeight=61]="lineHeight",e[e.lineNumbers=62]="lineNumbers",e[e.lineNumbersMinChars=63]="lineNumbersMinChars",e[e.linkedEditing=64]="linkedEditing",e[e.links=65]="links",e[e.matchBrackets=66]="matchBrackets",e[e.minimap=67]="minimap",e[e.mouseStyle=68]="mouseStyle",e[e.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=70]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",e[e.multiCursorModifier=72]="multiCursorModifier",e[e.multiCursorPaste=73]="multiCursorPaste",e[e.occurrencesHighlight=74]="occurrencesHighlight",e[e.overviewRulerBorder=75]="overviewRulerBorder",e[e.overviewRulerLanes=76]="overviewRulerLanes",e[e.padding=77]="padding",e[e.parameterHints=78]="parameterHints",e[e.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",e[e.quickSuggestions=81]="quickSuggestions",e[e.quickSuggestionsDelay=82]="quickSuggestionsDelay",e[e.readOnly=83]="readOnly",e[e.renameOnType=84]="renameOnType",e[e.renderControlCharacters=85]="renderControlCharacters",e[e.renderFinalNewline=86]="renderFinalNewline",e[e.renderLineHighlight=87]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=89]="renderValidationDecorations",e[e.renderWhitespace=90]="renderWhitespace",e[e.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",e[e.roundedSelection=92]="roundedSelection",e[e.rulers=93]="rulers",e[e.scrollbar=94]="scrollbar",e[e.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=96]="scrollBeyondLastLine",e[e.scrollPredominantAxis=97]="scrollPredominantAxis",e[e.selectionClipboard=98]="selectionClipboard",e[e.selectionHighlight=99]="selectionHighlight",e[e.selectOnLineNumbers=100]="selectOnLineNumbers",e[e.showFoldingControls=101]="showFoldingControls",e[e.showUnused=102]="showUnused",e[e.snippetSuggestions=103]="snippetSuggestions",e[e.smartSelect=104]="smartSelect",e[e.smoothScrolling=105]="smoothScrolling",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"}(Er||(Er={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Tr||(Tr={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Sr||(Sr={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(xr||(xr={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Lr||(Lr={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Dr||(Dr={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Cr||(Cr={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"}(Ar||(Ar={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Ir||(Ir={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(kr||(kr={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Nr||(Nr={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Rr||(Rr={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Or||(Or={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(wr||(wr={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(Mr||(Mr={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Pr||(Pr={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Fr||(Fr={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Gr||(Gr={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Br||(Br={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Ur||(Ur={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Vr||(Vr={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(jr||(jr={})),function(e){e[e.Deprecated=1]="Deprecated"}(Kr||(Kr={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Hr||(Hr={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(Wr||(Wr={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(zr||(zr={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Jr||(Jr={}));var qr=function(){function e(){f(this,e)}return _(e,null,[{key:"chord",value:function(e,n){return function(e,n){return(e|(65535&n)<<16>>>0)>>>0}(e,n)}}]),e}();qr.CtrlCmd=2048,qr.Shift=1024,qr.Alt=512,qr.WinCtrl=256;var Xr=function(e){h(t,e);var n=T(t);function t(e){var r;f(this,t),r=n.call(this,0);for(var a=0,i=e.length;a<i;a++)r.set(e.charCodeAt(a),2);return r.set(32,1),r.set(9,1),r}return _(t)}(vt);!function(e){var n={}}((function(e){return new Xr(e)}));var Yr,Qr,Zr;Object.prototype.hasOwnProperty;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Yr||(Yr={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Qr||(Qr={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Zr||(Zr={}));function $r(e,n,t,r,a){return function(e,n,t,r,a){if(0===r)return!0;var i=n.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(a>0){var o=n.charCodeAt(r);if(0!==e.get(o))return!0}return!1}(e,n,0,r,a)&&function(e,n,t,r,a){if(r+a===t)return!0;var i=n.charCodeAt(r+a);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(a>0){var o=n.charCodeAt(r+a-1);if(0!==e.get(o))return!0}return!1}(e,n,t,r,a)}var ea=function(){function e(n,t){f(this,e),this._wordSeparators=n,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return _(e,[{key:"reset",value:function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}},{key:"next",value:function(e){var n,t=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(!(n=this._searchRegex.exec(e)))return null;var r=n.index,a=n[0].length;if(r===this._prevMatchStartIndex&&a===this._prevMatchLength){if(0===a){Fe(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=a,!this._wordSeparators||$r(this._wordSeparators,e,t,r,a))return n}while(n);return null}}]),e}(),na=function(){function e(){f(this,e)}return _(e,null,[{key:"computeUnicodeHighlights",value:function(e,n,t){var r,a=t?t.startLineNumber:1,i=t?t.endLineNumber:e.getLineCount(),o=new ta(n),s=o.getCandidateCodePoints();r="allNonBasicAscii"===s?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp("".concat(function(e,n){var t="[".concat(Re(e.map((function(e){return String.fromCodePoint(e)})).join("")),"]");return t}(Array.from(s))),"g");var c,l=new ea(null,r),u=[],d=!1,p=0,f=0,m=0;e:for(var _=a,g=i;_<=g;_++){var y=e.getLineContent(_),h=y.length;l.reset(0);do{if(c=l.next(y)){var v=c.index,b=c.index+c[0].length;if(v>0)we(y.charCodeAt(v-1))&&v--;if(b+1<h)we(y.charCodeAt(b-1))&&b++;var E=y.substring(v,b),T=yt(v+1,_t,y,0),S=o.shouldHighlightNonBasicASCII(E,T?T.word:null);if(0!==S){3===S?p++:2===S?f++:1===S?m++:Ae(S);if(u.length>=1e3){d=!0;break e}u.push(new Zn(_,v+1,_,b+1))}}}while(c)}return{ranges:u,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:f,nonBasicAsciiCharacterCount:m}}},{key:"computeUnicodeHighlightReason",value:function(e,n){var t=new ta(n);switch(t.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:var r=e.codePointAt(0),a=t.ambiguousCharacters.getPrimaryConfusable(r),i=Ue.getLocales().filter((function(e){return!Ue.getInstance(new Set([].concat(w(n.allowedLocales),[e]))).isAmbiguous(r)}));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:i};case 1:return{kind:2}}}}]),e}();var ta=function(){function e(n){f(this,e),this.options=n,this.allowedCodePoints=new Set(n.allowedCodePoints),this.ambiguousCharacters=Ue.getInstance(new Set(n.allowedLocales))}return _(e,[{key:"getCandidateCodePoints",value:function(){if(this.options.nonBasicASCII)return"allNonBasicAscii";var e=new Set;if(this.options.invisibleCharacters){var n,t=c(Ve.codePoints);try{for(t.s();!(n=t.n()).done;){var r=n.value;ra(String.fromCodePoint(r))||e.add(r)}}catch(d){t.e(d)}finally{t.f()}}if(this.options.ambiguousCharacters){var a,i=c(this.ambiguousCharacters.getConfusableCodePoints());try{for(i.s();!(a=i.n()).done;){var o=a.value;e.add(o)}}catch(d){i.e(d)}finally{i.f()}}var s,l=c(this.allowedCodePoints);try{for(l.s();!(s=l.n()).done;){var u=s.value;e.delete(u)}}catch(d){l.e(d)}finally{l.f()}return e}},{key:"shouldHighlightNonBasicASCII",value:function(e,n){var t=e.codePointAt(0);if(this.allowedCodePoints.has(t))return 0;if(this.options.nonBasicASCII)return 1;var r,a=!1,i=!1;if(n){var o,s=c(n);try{for(s.s();!(o=s.n()).done;){var l=o.value,u=l.codePointAt(0),d=(r=l,Ge.test(r));a=a||d,d||this.ambiguousCharacters.isAmbiguous(u)||Ve.isInvisibleCharacter(u)||(i=!0)}}catch(p){s.e(p)}finally{s.f()}}return!a&&i?0:this.options.invisibleCharacters&&!ra(e)&&Ve.isInvisibleCharacter(t)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(t)?3:0}}]),e}();function ra(e){return" "===e||"\n"===e||"\t"===e}var aa=function(e,n,t,r){return new(t||(t=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(Oa){i(Oa)}}function s(e){try{c(r.throw(e))}catch(Oa){i(Oa)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,s)}c((r=r.apply(e,n||[])).next())}))},ia=function(e){h(t,e);var n=T(t);function t(){return f(this,t),n.apply(this,arguments)}return _(t,[{key:"uri",get:function(){return this._uri}},{key:"eol",get:function(){return this._eol}},{key:"getValue",value:function(){return this.getText()}},{key:"getLinesContent",value:function(){return this._lines.slice(0)}},{key:"getLineCount",value:function(){return this._lines.length}},{key:"getLineContent",value:function(e){return this._lines[e-1]}},{key:"getWordAtPosition",value:function(e,n){var t=yt(e.column,function(e){var n=_t;if(e&&e instanceof RegExp)if(e.global)n=e;else{var t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),n=new RegExp(e.source,t)}return n.lastIndex=0,n}(n),this._lines[e.lineNumber-1],0);return t?new Zn(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null}},{key:"words",value:function(e){var n=this._lines,t=this._wordenize.bind(this),a=0,i="",o=0,s=[];return r({},Symbol.iterator,u().mark((function r(){var c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(o<s.length)){r.next=8;break}return c=i.substring(s[o].start,s[o].end),o+=1,r.next=6,c;case 6:r.next=16;break;case 8:if(!(a<n.length)){r.next=15;break}i=n[a],s=t(i,e),o=0,a+=1,r.next=16;break;case 15:return r.abrupt("break",18);case 16:r.next=0;break;case 18:case"end":return r.stop()}}),r)})))}},{key:"getLineWords",value:function(e,n){var t,r=this._lines[e-1],a=[],i=c(this._wordenize(r,n));try{for(i.s();!(t=i.n()).done;){var o=t.value;a.push({word:r.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1})}}catch(s){i.e(s)}finally{i.f()}return a}},{key:"_wordenize",value:function(e,n){var t,r=[];for(n.lastIndex=0;(t=n.exec(e))&&0!==t[0].length;)r.push({start:t.index,end:t.index+t[0].length});return r}},{key:"getValueInRange",value:function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var n=this._eol,t=e.startLineNumber-1,r=e.endLineNumber-1,a=[];a.push(this._lines[t].substring(e.startColumn-1));for(var i=t+1;i<r;i++)a.push(this._lines[i]);return a.push(this._lines[r].substring(0,e.endColumn-1)),a.join(n)}},{key:"offsetAt",value:function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}},{key:"positionAt",value:function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var n=this._lineStarts.getIndexOf(e),t=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,t)}}},{key:"_validateRange",value:function(e){var n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),t=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||t.lineNumber!==e.endLineNumber||t.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:t.lineNumber,endColumn:t.column}:e}},{key:"_validatePosition",value:function(e){if(!Qn.isIPosition(e))throw new Error("bad position");var n=e.lineNumber,t=e.column,r=!1;if(n<1)n=1,t=1,r=!0;else if(n>this._lines.length)n=this._lines.length,t=this._lines[n-1].length+1,r=!0;else{var a=this._lines[n-1].length+1;t<1?(t=1,r=!0):t>a&&(t=a,r=!0)}return r?{lineNumber:n,column:t}:e}}]),t}(ft),oa=function(){function e(n,t){f(this,e),this._host=n,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return _(e,[{key:"dispose",value:function(){this._models=Object.create(null)}},{key:"_getModel",value:function(e){return this._models[e]}},{key:"_getModels",value:function(){var e=this,n=[];return Object.keys(this._models).forEach((function(t){return n.push(e._models[t])})),n}},{key:"acceptNewModel",value:function(e){this._models[e.url]=new ia(Un.parse(e.url),e.lines,e.EOL,e.versionId)}},{key:"acceptModelChanged",value:function(e,n){this._models[e]&&this._models[e].onEvents(n)}},{key:"acceptRemovedModel",value:function(e){this._models[e]&&delete this._models[e]}},{key:"computeUnicodeHighlights",value:function(e,n,t){return aa(this,void 0,void 0,u().mark((function r(){var a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=this._getModel(e)){r.next=3;break}return r.abrupt("return",{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0});case 3:return r.abrupt("return",na.computeUnicodeHighlights(a,n,t));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"computeDiff",value:function(n,t,r,a){return aa(this,void 0,void 0,u().mark((function i(){var o,s;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=this._getModel(n),s=this._getModel(t),o&&s){i.next=4;break}return i.abrupt("return",null);case 4:return i.abrupt("return",e.computeDiff(o,s,r,a));case 5:case"end":return i.stop()}}),i,this)})))}},{key:"computeMoreMinimalEdits",value:function(n,t){return aa(this,void 0,void 0,u().mark((function r(){var a,i,o,s,l,d,p,f,m,_,g,y,h,v,b,E,T,S;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=this._getModel(n)){r.next=3;break}return r.abrupt("return",t);case 3:i=[],o=void 0,t=t.slice(0).sort((function(e,n){return e.range&&n.range?Zn.compareRangesUsingStarts(e.range,n.range):(e.range?0:1)-(n.range?0:1)})),s=c(t),r.prev=7,s.s();case 9:if((l=s.n()).done){r.next=27;break}if(d=l.value,p=d.range,f=d.text,"number"===typeof(m=d.eol)&&(o=m),!Zn.isEmpty(p)||f){r.next=14;break}return r.abrupt("continue",25);case 14:if(_=a.getValueInRange(p),f=f.replace(/\r\n|\n|\r/g,a.eol),_!==f){r.next=18;break}return r.abrupt("continue",25);case 18:if(!(Math.max(f.length,_.length)>e._diffLimit)){r.next=21;break}return i.push({range:p,text:f}),r.abrupt("continue",25);case 21:g=cn(_,f,!1),y=a.offsetAt(Zn.lift(p).getStartPosition()),h=c(g);try{for(h.s();!(v=h.n()).done;)b=v.value,E=a.positionAt(y+b.originalStart),T=a.positionAt(y+b.originalStart+b.originalLength),S={text:f.substr(b.modifiedStart,b.modifiedLength),range:{startLineNumber:E.lineNumber,startColumn:E.column,endLineNumber:T.lineNumber,endColumn:T.column}},a.getValueInRange(S.range)!==S.text&&i.push(S)}catch(u){h.e(u)}finally{h.f()}case 25:r.next=9;break;case 27:r.next=32;break;case 29:r.prev=29,r.t0=r.catch(7),s.e(r.t0);case 32:return r.prev=32,s.f(),r.finish(32);case 35:return"number"===typeof o&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r.abrupt("return",i);case 37:case"end":return r.stop()}}),r,this,[[7,29,32,35]])})))}},{key:"computeLinks",value:function(e){return aa(this,void 0,void 0,u().mark((function n(){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=this._getModel(e)){n.next=3;break}return n.abrupt("return",null);case 3:return n.abrupt("return",Ct(t));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"textualSuggest",value:function(n,t,r,a){return aa(this,void 0,void 0,u().mark((function i(){var o,s,l,d,p,f,m,_,g,y;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=new be(!0),s=new RegExp(r,a),l=new Set,d=c(n),i.prev=4,d.s();case 6:if((p=d.n()).done){i.next=33;break}if(f=p.value,m=this._getModel(f)){i.next=11;break}return i.abrupt("continue",31);case 11:_=c(m.words(s)),i.prev=12,_.s();case 14:if((g=_.n()).done){i.next=23;break}if((y=g.value)!==t&&isNaN(Number(y))){i.next=18;break}return i.abrupt("continue",21);case 18:if(l.add(y),!(l.size>e._suggestionsLimit)){i.next=21;break}return i.abrupt("break",33);case 21:i.next=14;break;case 23:i.next=28;break;case 25:i.prev=25,i.t0=i.catch(12),_.e(i.t0);case 28:return i.prev=28,_.f(),i.finish(28);case 31:i.next=6;break;case 33:i.next=38;break;case 35:i.prev=35,i.t1=i.catch(4),d.e(i.t1);case 38:return i.prev=38,d.f(),i.finish(38);case 41:return i.abrupt("return",{words:Array.from(l),duration:o.elapsed()});case 42:case"end":return i.stop()}}),i,this,[[4,35,38,41],[12,25,28,31]])})))}},{key:"computeWordRanges",value:function(e,n,t,r){return aa(this,void 0,void 0,u().mark((function a(){var i,o,s,l,d,p,f,m,_;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i=this._getModel(e)){a.next=3;break}return a.abrupt("return",Object.create(null));case 3:o=new RegExp(t,r),s=Object.create(null),l=n.startLineNumber;case 6:if(!(l<n.endLineNumber)){a.next=31;break}d=i.getLineWords(l,o),p=c(d),a.prev=9,p.s();case 11:if((f=p.n()).done){a.next=20;break}if(m=f.value,isNaN(Number(m.word))){a.next=15;break}return a.abrupt("continue",18);case 15:(_=s[m.word])||(_=[],s[m.word]=_),_.push({startLineNumber:l,startColumn:m.startColumn,endLineNumber:l,endColumn:m.endColumn});case 18:a.next=11;break;case 20:a.next=25;break;case 22:a.prev=22,a.t0=a.catch(9),p.e(a.t0);case 25:return a.prev=25,p.f(),a.finish(25);case 28:l++,a.next=6;break;case 31:return a.abrupt("return",s);case 32:case"end":return a.stop()}}),a,this,[[9,22,25,28]])})))}},{key:"navigateValueSet",value:function(e,n,t,r,a){return aa(this,void 0,void 0,u().mark((function i(){var o,s,c,l,d,p;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=this._getModel(e)){i.next=3;break}return i.abrupt("return",null);case 3:if(s=new RegExp(r,a),n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1}),c=o.getValueInRange(n),l=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},s)){i.next=9;break}return i.abrupt("return",null);case 9:return d=o.getValueInRange(l),p=At.INSTANCE.navigateValueSet(n,c,l,d,t),i.abrupt("return",p);case 12:case"end":return i.stop()}}),i,this)})))}},{key:"loadForeignModule",value:function(e,n,t){var r=this,a=function(e,n){var t,r=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);return n(e,t)}},a={},i=c(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;a[o]=r(o)}}catch(s){i.e(s)}finally{i.f()}return a}(t,(function(e,n){return r._host.fhr(e,n)})),i={host:a,getMirrorModels:function(){return r._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,n),Promise.resolve(Ce(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}},{key:"fmr",value:function(e,n){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(Oa){return Promise.reject(Oa)}}}],[{key:"computeDiff",value:function(e,n,t,r){var a=e.getLinesContent(),i=n.getLinesContent(),o=new it(a,i,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:t,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),s=!(o.changes.length>0)&&this._modelsAreIdentical(e,n);return{quitEarly:o.quitEarly,identical:s,changes:o.changes}}},{key:"_modelsAreIdentical",value:function(e,n){var t=e.getLineCount();if(t!==n.getLineCount())return!1;for(var r=1;r<=t;r++){if(e.getLineContent(r)!==n.getLineContent(r))return!1}return!0}}]),e}();oa._diffLimit=1e5,oa._suggestionsLimit=1e4,"function"===typeof importScripts&&(oe.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Ot,Emitter:xe,KeyCode:Ar,KeyMod:qr,Position:Qn,Range:Zn,Selection:Jt,SelectionDirection:Ur,MarkerSeverity:Ir,MarkerTag:kr,Uri:Un,Token:or});var sa=!1;function ca(e){if(!sa){sa=!0;var n=new Ze((function(e){self.postMessage(e)}),(function(n){return new oa(n,e)}));self.onmessage=function(e){n.onmessage(e.data)}}}self.onmessage=function(e){sa||ca(null)};e=t.hmd(e);var la=Object.defineProperty,ua={};!function(e,n){for(var t in n)la(e,t,{get:n[t],enumerable:!0})}(ua,{EndOfLineState:function(){return Sa},IndentStyle:function(){return La},ScriptKind:function(){return Da},ScriptTarget:function(){return Ca},TokenClass:function(){return Aa},createClassifier:function(){return ba},createLanguageService:function(){return Ea},displayPartsToString:function(){return Ta},flattenDiagnosticMessageText:function(){return xa},typescript:function(){return Ia}});var da,pa=function(e,n,t){if(t||2===arguments.length)for(var r,a=0,i=n.length;a<i;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))},fa=function(){return fa=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},fa.apply(this,arguments)},ma=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},_a=function(e,n){var t,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=n.call(e,o)}catch(Oa){i=[6,Oa],r=0}finally{t=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ga=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},ya=function(){var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(n,t)};return function(n,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}();!function(e){function n(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function t(e,n){return e===n||e!==e&&n!==n}function r(e){var n=e.prev;if(!n||n===e)throw new Error("Illegal state");return n}function a(e){for(;e;){var n=!e.prev;if(e=e.next,!n)return e}}function i(e,n){for(var a=e.tail;a!==e.head;a=r(a))if(t(a.key,n))return a}function o(e,n,t){var r=i(e,n);if(!r){var a=function(e,n){return{key:e,value:n,next:void 0,prev:void 0}}(n,t);return a.prev=e.tail,e.tail.next=a,e.tail=a,e.size++,a}r.value=t}function s(e,n){for(var a=e.tail;a!==e.head;a=r(a)){if(void 0===a.prev)throw new Error("Illegal state");if(t(a.key,n)){if(a.next)a.next.prev=a.prev;else{if(e.tail!==a)throw new Error("Illegal state");e.tail=a.prev}return a.prev.next=a.next,a.next=a.prev,a.prev=void 0,e.size--,a}}}function c(e){for(var n=e.tail;n!==e.head;){var t=r(n);n.next=e.head,n.prev=void 0,n=t}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,n){for(var t=e.head;t;)(t=a(t))&&n(t.value,t.key)}function u(e,n){if(e)for(var t=e.next();!t.done;t=e.next())n(t.value)}function d(e,n){return{current:e.head,selector:n}}function p(e){return e.current=a(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var f;(f=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var t=function(){function e(e,n){this._data=d(e,n)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function r(t){var r=this;this._mapData=n(),u(e(t),(function(e){var n=e[0],t=e[1];return r.set(n,t)}))}return Object.defineProperty(r.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),r.prototype.get=function(e){var n;return null===(n=i(this._mapData,e))||void 0===n?void 0:n.value},r.prototype.set=function(e,n){return o(this._mapData,e,n),this},r.prototype.has=function(e){return!!i(this._mapData,e)},r.prototype.delete=function(e){return!!s(this._mapData,e)},r.prototype.clear=function(){c(this._mapData)},r.prototype.keys=function(){return new t(this._mapData,(function(e,n){return e}))},r.prototype.values=function(){return new t(this._mapData,(function(e,n){return n}))},r.prototype.entries=function(){return new t(this._mapData,(function(e,n){return[e,n]}))},r.prototype.forEach=function(e){l(this._mapData,e)},r}()},f.createSetShim=function(e){var t=function(){function e(e,n){this._data=d(e,n)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function r(t){var r=this;this._mapData=n(),u(e(t),(function(e){return r.add(e)}))}return Object.defineProperty(r.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),r.prototype.add=function(e){return o(this._mapData,e,e),this},r.prototype.has=function(e){return!!i(this._mapData,e)},r.prototype.delete=function(e){return!!s(this._mapData,e)},r.prototype.clear=function(){c(this._mapData)},r.prototype.keys=function(){return new t(this._mapData,(function(e,n){return e}))},r.prototype.values=function(){return new t(this._mapData,(function(e,n){return n}))},r.prototype.entries=function(){return new t(this._mapData,(function(e,n){return[e,n]}))},r.prototype.forEach=function(e){l(this._mapData,e)},r}()}}(ha||(ha={})),function(e){var n,t,r;function a(n,r,a){var i,o=null!==(i=t[r]())&&void 0!==i?i:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[a](e.getIterator);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(n," implementation."))}e.versionMajorMinor="4.5",e.version="4.5.5",(n=e.Comparison||(e.Comparison={}))[n.LessThan=-1]="LessThan",n[n.EqualTo=0]="EqualTo",n[n.GreaterThan=1]="GreaterThan",(r=t||(t={})).tryGetNativeMap=function(){return"undefined"!==typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},r.tryGetNativeSet=function(){return"undefined"!==typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0},e.Map=a("Map","tryGetNativeMap","createMapShim"),e.Set=a("Set","tryGetNativeSet","createSetShim")}(ha||(ha={})),function(e){function n(e,n,t){if(void 0===t&&(t=R),e)for(var r=0,a=e;r<a.length;r++){if(t(a[r],n))return!0}return!1}function t(e,n){if(e){if(!n)return e.length>0;for(var t=0,r=e;t<r.length;t++){if(n(r[t]))return!0}}return!1}function r(e,n){return t(n)?t(e)?pa(pa([],e,!0),n,!0):n:e}function a(e,n){return n}function i(e){return e.map(a)}function o(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)}function s(e,n){return n<0?e.length+n:n}function c(e,n,t,r){if(void 0===n||0===n.length)return e;if(void 0===e)return n.slice(t,r);t=void 0===t?0:s(n,t),r=void 0===r?n.length:s(n,r);for(var a=t;a<r&&a<n.length;a++)void 0!==n[a]&&e.push(n[a]);return e}function l(e,t,r){return!n(e,t,r)&&(e.push(t),!0)}function u(e,n,t){n.sort((function(n,r){return t(e[n],e[r])||w(n,r)}))}function d(e,n){return 0===e.length?e:e.slice().sort(n)}function p(e){var n=0;return{next:function(){return n===e.length?{value:void 0,done:!0}:(n++,{value:e[n-1],done:!1})}}}function f(e,n,t,r,a){return m(e,t(n),t,r,a)}function m(e,n,r,a,i){if(!t(e))return-1;for(var o=i||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(a(r(e[c],c),n)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function _(e,n,t,r,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===r||r<0?0:r,s=void 0===a||o+a>i-1?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=t;o<=s;)c=n(c,e[o],o),o++;return c}}return t}e.getIterator=function(n){if(n){if(L(n))return p(n);if(n instanceof e.Map)return n.entries();if(n instanceof e.Set)return n.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(n){var t=new e.Map;for(var r in n)g.call(n,r)&&t.set(r,n[r]);return t},e.length=function(e){return e?e.length:0},e.forEach=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}},e.forEachRight=function(e,n){if(e)for(var t=e.length-1;t>=0;t--){var r=n(e[t],t);if(r)return r}},e.firstDefined=function(e,n){if(void 0!==e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(void 0!==r)return r}},e.firstDefinedIterator=function(e,n){for(;;){var t=e.next();if(t.done)return;var r=n(t.value);if(void 0!==r)return r}},e.reduceLeftIterator=function(e,n,t){var r=t;if(e)for(var a=e.next(),i=0;!a.done;a=e.next(),i++)r=n(r,a.value,i);return r},e.zipWith=function(n,t,r){var a=[];e.Debug.assertEqual(n.length,t.length);for(var i=0;i<n.length;i++)a.push(r(n[i],t[i],i));return a},e.zipToIterator=function(n,t){e.Debug.assertEqual(n.length,t.length);var r=0;return{next:function(){return r===n.length?{value:void 0,done:!0}:(r++,{value:[n[r-1],t[r-1]],done:!1})}}},e.zipToMap=function(n,t){e.Debug.assert(n.length===t.length);for(var r=new e.Map,a=0;a<n.length;++a)r.set(n[a],t[a]);return r},e.intersperse=function(e,n){if(e.length<=1)return e;for(var t=[],r=0,a=e.length;r<a;r++)r&&t.push(n),t.push(e[r]);return t},e.every=function(e,n){if(e)for(var t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0},e.find=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r,t))return r}},e.findLast=function(e,n){for(var t=e.length-1;t>=0;t--){var r=e[t];if(n(r,t))return r}},e.findIndex=function(e,n,t){for(var r=t||0;r<e.length;r++)if(n(e[r],r))return r;return-1},e.findLastIndex=function(e,n,t){for(var r=void 0===t?e.length-1:t;r>=0;r--)if(n(e[r],r))return r;return-1},e.findMap=function(n,t){for(var r=0;r<n.length;r++){var a=t(n[r],r);if(a)return a}return e.Debug.fail()},e.contains=n,e.arraysEqual=function(e,n,t){return void 0===t&&(t=R),e.length===n.length&&e.every((function(e,r){return t(e,n[r])}))},e.indexOfAnyCharCode=function(e,t,r){for(var a=r||0;a<e.length;a++)if(n(t,e.charCodeAt(a)))return a;return-1},e.countWhere=function(e,n){var t=0;if(e)for(var r=0;r<e.length;r++){n(e[r],r)&&t++}return t},e.filter=function(e,n){if(e){for(var t=e.length,r=0;r<t&&n(e[r]);)r++;if(r<t){var a=e.slice(0,r);for(r++;r<t;){var i=e[r];n(i)&&a.push(i),r++}return a}}return e},e.filterMutate=function(e,n){for(var t=0,r=0;r<e.length;r++)n(e[r],r,e)&&(e[t]=e[r],t++);e.length=t},e.clear=function(e){e.length=0},e.map=function(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r],r))}return t},e.mapIterator=function(e,n){return{next:function(){var t=e.next();return t.done?t:{value:n(t.value),done:!1}}}},e.sameMap=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=e[t],a=n(r,t);if(r!==a){var i=e.slice(0,t);for(i.push(a),t++;t<e.length;t++)i.push(n(e[t],t));return i}}return e},e.flatten=function(e){for(var n=[],t=0,r=e;t<r.length;t++){var a=r[t];a&&(L(a)?c(n,a):n.push(a))}return n},e.flatMap=function(n,t){var r;if(n)for(var a=0;a<n.length;a++){var i=t(n[a],a);i&&(r=L(i)?c(r,i):o(r,i))}return r||e.emptyArray},e.flatMapToMutable=function(e,n){var t=[];if(e)for(var r=0;r<e.length;r++){var a=n(e[r],r);a&&(L(a)?c(t,a):t.push(a))}return t},e.flatMapIterator=function(n,t){var r=n.next();if(r.done)return e.emptyIterator;var a=i(r.value);return{next:function(){for(;;){var e=a.next();if(!e.done)return e;var t=n.next();if(t.done)return t;a=i(t.value)}}};function i(n){var r=t(n);return void 0===r?e.emptyIterator:L(r)?p(r):r}},e.sameFlatMap=function(e,n){var t;if(e)for(var r=0;r<e.length;r++){var a=e[r],i=n(a,r);(t||a!==i||L(i))&&(t||(t=e.slice(0,r)),L(i)?c(t,i):t.push(i))}return t||e},e.mapAllOrFail=function(e,n){for(var t=[],r=0;r<e.length;r++){var a=n(e[r],r);if(void 0===a)return;t.push(a)}return t},e.mapDefined=function(e,n){var t=[];if(e)for(var r=0;r<e.length;r++){var a=n(e[r],r);void 0!==a&&t.push(a)}return t},e.mapDefinedIterator=function(e,n){return{next:function(){for(;;){var t=e.next();if(t.done)return t;var r=n(t.value);if(void 0!==r)return{value:r,done:!1}}}}},e.mapDefinedEntries=function(n,t){if(n){var r=new e.Map;return n.forEach((function(e,n){var a=t(n,e);if(void 0!==a){var i=a[0],o=a[1];void 0!==i&&void 0!==o&&r.set(i,o)}})),r}},e.mapDefinedValues=function(n,t){if(n){var r=new e.Set;return n.forEach((function(e){var n=t(e);void 0!==n&&r.add(n)})),r}},e.getOrUpdate=function(e,n,t){if(e.has(n))return e.get(n);var r=t();return e.set(n,r),r},e.tryAddToSet=function(e,n){return!e.has(n)&&(e.add(n),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var n=!1;return{next:function(){var t=n;return n=!0,t?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,n,t){var r;if(e){r=[];for(var a=e.length,i=void 0,o=void 0,s=0,c=0;s<a;){for(;c<a;){if(o=n(e[c],c),0===c)i=o;else if(o!==i)break;c++}if(s<c){var l=t(e.slice(s,c),i,s,c);l&&r.push(l),s=c}i=o,c++}}return r},e.mapEntries=function(n,t){if(n){var r=new e.Map;return n.forEach((function(e,n){var a=t(n,e),i=a[0],o=a[1];r.set(i,o)})),r}},e.some=t,e.getRangesWhere=function(e,n,t){for(var r,a=0;a<e.length;a++)n(e[a])?r=void 0===r?a:r:void 0!==r&&(t(r,a),r=void 0);void 0!==r&&t(r,e.length)},e.concatenate=r,e.indicesOf=i,e.deduplicate=function(e,n,t){return 0===e.length?[]:1===e.length?e.slice():t?function(e,n,t){var r=i(e);u(e,r,t);for(var a=e[r[0]],o=[r[0]],s=1;s<r.length;s++){var c=r[s],l=e[c];n(a,l)||(o.push(c),a=l)}return o.sort(),o.map((function(n){return e[n]}))}(e,n,t):function(e,n){for(var t=[],r=0,a=e;r<a.length;r++)l(t,a[r],n);return t}(e,n)},e.insertSorted=function(e,n,t){if(0!==e.length){var r=f(e,n,C,t);r<0&&e.splice(~r,0,n)}else e.push(n)},e.sortAndDeduplicate=function(n,t,r){return function(n,t){if(0===n.length)return e.emptyArray;for(var r=n[0],a=[r],i=1;i<n.length;i++){var o=n[i];switch(t(o,r)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}a.push(r=o)}return a}(d(n,t),r||t||P)},e.arrayIsSorted=function(e,n){if(e.length<2)return!0;for(var t=e[0],r=0,a=e.slice(1);r<a.length;r++){var i=a[r];if(1===n(t,i))return!1;t=i}return!0},e.arrayIsEqualTo=function(e,n,t){if(void 0===t&&(t=R),!e||!n)return e===n;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!t(e[r],n[r],r))return!1;return!0},e.compact=function(e){var n;if(e)for(var t=0;t<e.length;t++){var r=e[t];!n&&r||(n||(n=e.slice(0,t)),r&&n.push(r))}return n||e},e.relativeComplement=function(n,t,r){if(!t||!n||0===t.length||0===n.length)return t;var a=[];e:for(var i=0,o=0;o<t.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);n:for(var s=i;i<n.length;i++)switch(i>s&&e.Debug.assertGreaterThanOrEqual(r(n[i],n[i-1]),0),r(t[o],n[i])){case-1:a.push(t[o]);continue e;case 0:continue e;case 1:continue n}}return a},e.sum=function(e,n){for(var t=0,r=0,a=e;r<a.length;r++){t+=a[r][n]}return t},e.append=o,e.combine=function(e,n){return void 0===e?n:void 0===n?e:L(e)?L(n)?r(e,n):o(e,n):L(n)?o(n,e):[e,n]},e.addRange=c,e.pushIfUnique=l,e.appendIfUnique=function(e,n,t){return e?(l(e,n,t),e):[n]},e.sort=d,e.arrayIterator=p,e.arrayReverseIterator=function(e){var n=e.length;return{next:function(){return 0===n?{value:void 0,done:!0}:(n--,{value:e[n],done:!1})}}},e.stableSort=function(e,n){var t=i(e);return u(e,t,n),t.map((function(n){return e[n]}))},e.rangeEquals=function(e,n,t,r){for(;t<r;){if(e[t]!==n[t])return!1;t++}return!0},e.elementAt=function(e,n){if(e&&(n=s(e,n))<e.length)return e[n]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(n){return e.Debug.assert(0!==n.length),n[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(n){return e.Debug.assert(0!==n.length),n[n.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,n,t){var r=e.slice(0);return r[n]=t,r},e.binarySearch=f,e.binarySearchKey=m,e.reduceLeft=_;var g=Object.prototype.hasOwnProperty;function y(e,n){return g.call(e,n)}function h(e){var n=[];for(var t in e)g.call(e,t)&&n.push(t);return n}e.hasProperty=y,e.getProperty=function(e,n){return g.call(e,n)?e[n]:void 0},e.getOwnKeys=h,e.getAllKeys=function(e){var n=[];do{for(var t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++){l(n,r[t])}}while(e=Object.getPrototypeOf(e));return n},e.getOwnValues=function(e){var n=[];for(var t in e)g.call(e,t)&&n.push(e[t]);return n};var v=Object.entries||function(e){for(var n=h(e),t=Array(n.length),r=0;r<n.length;r++)t[r]=[n[r],e[n[r]]];return t};function b(e,n){for(var t=[],r=e.next();!r.done;r=e.next())t.push(n?n(r.value):r.value);return t}function E(e,n,t){void 0===t&&(t=C);for(var r=T(),a=0,i=e;a<i.length;a++){var o=i[a];r.add(n(o),t(o))}return r}function T(){var n=new e.Map;return n.add=S,n.remove=x,n}function S(e,n){var t=this.get(e);return t?t.push(n):this.set(e,t=[n]),t}function x(e,n){var t=this.get(e);t&&(H(t,n),t.length||this.delete(e))}function L(e){return Array.isArray?Array.isArray(e):e instanceof Array}function D(e){}function C(e){return e}function A(e){return e.toLowerCase()}e.getEntries=function(e){return e?v(e):[]},e.arrayOf=function(e,n){for(var t=new Array(e),r=0;r<e;r++)t[r]=n(r);return t},e.arrayFrom=b,e.assign=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];for(var r=0,a=n;r<a.length;r++){var i=a[r];if(void 0!==i)for(var o in i)y(i,o)&&(e[o]=i[o])}return e},e.equalOwnProperties=function(e,n,t){if(void 0===t&&(t=R),e===n)return!0;if(!e||!n)return!1;for(var r in e)if(g.call(e,r)){if(!g.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(var r in n)if(g.call(n,r)&&!g.call(e,r))return!1;return!0},e.arrayToMap=function(n,t,r){void 0===r&&(r=C);for(var a=new e.Map,i=0,o=n;i<o.length;i++){var s=o[i],c=t(s);void 0!==c&&a.set(c,r(s))}return a},e.arrayToNumericMap=function(e,n,t){void 0===t&&(t=C);for(var r=[],a=0,i=e;a<i.length;a++){var o=i[a];r[n(o)]=t(o)}return r},e.arrayToMultiMap=E,e.group=function(e,n,t){return void 0===t&&(t=C),b(E(e,n).values(),t)},e.clone=function(e){var n={};for(var t in e)g.call(e,t)&&(n[t]=e[t]);return n},e.extend=function(e,n){var t={};for(var r in n)g.call(n,r)&&(t[r]=n[r]);for(var r in e)g.call(e,r)&&(t[r]=e[r]);return t},e.copyProperties=function(e,n){for(var t in n)g.call(n,t)&&(e[t]=n[t])},e.maybeBind=function(e,n){return n?n.bind(e):void 0},e.createMultiMap=T,e.createUnderscoreEscapedMultiMap=function(){return T()},e.isArray=L,e.toArray=function(e){return L(e)?e:[e]},e.isString=function(e){return"string"===typeof e},e.isNumber=function(e){return"number"===typeof e},e.tryCast=function(e,n){return void 0!==e&&n(e)?e:void 0},e.cast=function(n,t){return void 0!==n&&t(n)?n:e.Debug.fail("Invalid cast. The supplied value ".concat(n," did not pass the test '").concat(e.Debug.getFunctionName(t),"'."))},e.noop=D,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=C,e.toLowerCase=A;var I,k=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function N(e){return k.test(e)?e.replace(k,A):e}function R(e,n){return e===n}function O(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function w(e,n){return O(e,n)}function M(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:e>n?1:0}function P(e,n){return O(e,n)}e.toFileNameLowerCase=N,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var n;return function(){return e&&(n=e(),e=void 0),n}},e.memoizeOne=function(n){var t=new e.Map;return function(e){var r="".concat(typeof e,":").concat(e),a=t.get(r);return void 0!==a||t.has(r)||(a=n(e),t.set(r,a)),a}},e.compose=function(e,n,t,r,a){if(a){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return _(i,(function(e,n){return n(e)}),e)}}return r?function(a){return r(t(n(e(a))))}:t?function(r){return t(n(e(r)))}:n?function(t){return n(e(t))}:e?function(n){return e(n)}:function(e){return e}},(I=e.AssertionLevel||(e.AssertionLevel={}))[I.None=0]="None",I[I.Normal=1]="Normal",I[I.Aggressive=2]="Aggressive",I[I.VeryAggressive=3]="VeryAggressive",e.equateValues=R,e.equateStringsCaseInsensitive=function(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()},e.equateStringsCaseSensitive=function(e,n){return R(e,n)},e.compareValues=w,e.compareTextSpans=function(e,n){return w(null===e||void 0===e?void 0:e.start,null===n||void 0===n?void 0:n.start)||w(null===e||void 0===e?void 0:e.length,null===n||void 0===n?void 0:n.length)},e.min=function(e,n,t){return-1===t(e,n)?e:n},e.compareStringsCaseInsensitive=M,e.compareStringsCaseSensitive=P,e.getStringComparer=function(e){return e?M:P};var F,G,B=function(){var e,n,t=function(){if("object"===typeof Intl&&"function"===typeof Intl.Collator)return a;if("function"===typeof String.prototype.localeCompare&&"function"===typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return i;return o}();return function(r){return void 0===r?e||(e=t(r)):"en-US"===r?n||(n=t(r)):t(r)};function r(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;var r=t(e,n);return r<0?-1:r>0?1:0}function a(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return r(e,t,n)}}function i(e){return void 0!==e?o():function(e,t){return r(e,t,n)};function n(e,n){return e.localeCompare(n)}}function o(){return function(n,t){return r(n,t,e)};function e(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,n){return e<n?-1:e>n?1:0}}}();function U(e,n,t){for(var r=new Array(n.length+1),a=new Array(n.length+1),i=t+.01,o=0;o<=n.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>t?o-t:1),l=Math.floor(n.length>t+o?t+o:n.length);a[0]=o;for(var u=o,d=1;d<c;d++)a[d]=i;for(d=c;d<=l;d++){var p=e[o-1].toLowerCase()===n[d-1].toLowerCase()?r[d-1]+.1:r[d-1]+2,f=s===n.charCodeAt(d-1)?r[d-1]:Math.min(r[d]+1,a[d-1]+1,p);a[d]=f,u=Math.min(u,f)}for(d=l+1;d<=n.length;d++)a[d]=i;if(u>t)return;var m=r;r=a,a=m}var _=r[n.length];return _>t?void 0:_}function V(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function j(e,n){for(var t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function K(e,n){e[n]=e[e.length-1],e.pop()}function H(e,n){return function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return K(e,t),!0;return!1}(e,(function(e){return e===n}))}function W(e,n){return 0===e.lastIndexOf(n,0)}function z(e,n){var t=e.prefix,r=e.suffix;return n.length>=t.length+r.length&&W(n,t)&&V(n,r)}function J(e,n,t,r){for(var a=0,i=e[r];a<i.length;a++){var o=i[a],s=void 0;t?(s=t.slice()).push(o):s=[o],r===e.length-1?n.push(s):J(e,n,s,r+1)}}e.getUILocale=function(){return G},e.setUILocale=function(e){G!==e&&(G=e,F=void 0)},e.compareStringsCaseSensitiveUI=function(e,n){return(F||(F=B(G)))(e,n)},e.compareProperties=function(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])},e.compareBooleans=function(e,n){return w(e?1:0,n?1:0)},e.getSpellingSuggestion=function(n,t,r){for(var a,i=Math.min(2,Math.floor(.34*n.length)),o=Math.floor(.4*n.length)+1,s=0,c=t;s<c.length;s++){var l=c[s],u=r(l);if(void 0!==u&&Math.abs(u.length-n.length)<=i){if(u===n)continue;if(u.length<3&&u.toLowerCase()!==n.toLowerCase())continue;var d=U(n,u,o-.1);if(void 0===d)continue;e.Debug.assert(d<o),o=d,a=l}}return a},e.endsWith=V,e.removeSuffix=function(e,n){return V(e,n)?e.slice(0,e.length-n.length):e},e.tryRemoveSuffix=function(e,n){return V(e,n)?e.slice(0,e.length-n.length):void 0},e.stringContains=function(e,n){return-1!==e.indexOf(n)},e.removeMinAndVersionNumbers=function(e){for(var n=e.length,t=n-1;t>0;t--){var r=e.charCodeAt(t);if(r>=48&&r<=57)do{--t,r=e.charCodeAt(t)}while(t>0&&r>=48&&r<=57);else{if(!(t>4)||110!==r&&78!==r)break;if(--t,105!==(r=e.charCodeAt(t))&&73!==r)break;if(--t,109!==(r=e.charCodeAt(t))&&77!==r)break;--t,r=e.charCodeAt(t)}if(45!==r&&46!==r)break;n=t}return n===e.length?e:e.slice(0,n)},e.orderedRemoveItem=function(e,n){for(var t=0;t<e.length;t++)if(e[t]===n)return j(e,t),!0;return!1},e.orderedRemoveItemAt=j,e.unorderedRemoveItemAt=K,e.unorderedRemoveItem=H,e.createGetCanonicalFileName=function(e){return e?C:N},e.patternText=function(e){var n=e.prefix,t=e.suffix;return"".concat(n,"*").concat(t)},e.matchedText=function(n,t){return e.Debug.assert(z(n,t)),t.substring(n.prefix.length,t.length-n.suffix.length)},e.findBestPatternMatch=function(e,n,t){for(var r,a=-1,i=0,o=e;i<o.length;i++){var s=o[i],c=n(s);z(c,t)&&c.prefix.length>a&&(a=c.prefix.length,r=s)}return r},e.startsWith=W,e.removePrefix=function(e,n){return W(e,n)?e.substr(n.length):e},e.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=C),W(t(e),t(n))?e.substring(n.length):void 0},e.and=function(e,n){return function(t){return e(t)&&n(t)}},e.or=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var i=a[r];if(i.apply(void 0,n))return!0}return!1}},e.not=function(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return!e.apply(void 0,n)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,n,t,r,a,i){i=i||D;for(var o=0,s=0,c=e.length,l=n.length,u=!1;o<c&&s<l;){var d=e[o],p=n[s],f=t(d,p);-1===f?(r(d),o++,u=!0):1===f?(a(p),s++,u=!0):(i(p,d),o++,s++)}for(;o<c;)r(e[o++]),u=!0;for(;s<l;)a(n[s++]),u=!0;return u},e.fill=function(e,n){for(var t=Array(e),r=0;r<e;r++)t[r]=n(r);return t},e.cartesianProduct=function(e){var n=[];return J(e,n,void 0,0),n},e.padLeft=function(e,n,t){return void 0===t&&(t=" "),n<=e.length?e:t.repeat(n-e.length)+e},e.padRight=function(e,n,t){return void 0===t&&(t=" "),n<=e.length?e:e+t.repeat(n-e.length)},e.takeWhile=function(e,n){for(var t=e.length,r=0;r<t&&n(e[r]);)r++;return e.slice(0,r)},e.trimString=String.prototype.trim?function(e){return e.trim()}:function(n){return e.trimStringEnd(e.trimStringStart(n))},e.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:function(n){var t=n.length-1;for(;t>=0&&e.isWhiteSpaceLike(n.charCodeAt(t));)t--;return n.slice(0,t+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(ha||(ha={})),function(e){var n,t;(t=n=e.LogLevel||(e.LogLevel={}))[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",function(t){var r,a,i=0;function o(){return null!==r&&void 0!==r?r:r=new e.Version(e.version)}function s(e){return t.currentLogLevel<=e}function c(e,n){t.loggingHost&&s(e)&&t.loggingHost.log(e,n)}function l(e){c(n.Info,e)}t.currentLogLevel=n.Warning,t.isDebugging=!1,t.getTypeScriptVersion=o,t.shouldLog=s,t.log=l,(a=l=t.log||(t.log={})).error=function(e){c(n.Error,e)},a.warn=function(e){c(n.Warning,e)},a.log=function(e){c(n.Info,e)},a.trace=function(e){c(n.Verbose,e)};var u={};function d(e){return i>=e}function p(n,r){return!!d(n)||(u[r]={level:n,assertion:t[r]},t[r]=e.noop,!1)}function f(e,n){var t=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||f),t}function m(e,n,t,r){e||(n=n?"False expression: ".concat(n):"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"===typeof t?t:t())),f(n,r||m))}function _(e,n,t){void 0!==e&&null!==e||f(n,t||_)}function g(e,n,t){return _(e,n,t||g),e}function y(e,n,t){for(var r=0,a=e;r<a.length;r++){_(a[r],n,t||y)}}function h(e,n,t){return y(e,n,t||h),e}function v(e){if("function"!==typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var n=Function.prototype.toString.call(e),t=/^function\s+([\w\$]+)\s*\(/.exec(n);return t?t[1]:""}function b(n,t,r){void 0===n&&(n=0);var a=function(n){var t=[];for(var r in n){var a=n[r];"number"===typeof a&&t.push([a,r])}return e.stableSort(t,(function(n,t){return e.compareValues(n[0],t[0])}))}(t);if(0===n)return a.length>0&&0===a[0][0]?a[0][1]:"0";if(r){for(var i="",o=n,s=0,c=a;s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(u>n)break;0!==u&&u&n&&(i="".concat(i).concat(i?"|":"").concat(d),o&=~u)}if(0===o)return i}else for(var p=0,f=a;p<f.length;p++){var m=f[p];u=m[0],d=m[1];if(u===n)return d}return n.toString()}function E(n){return b(n,e.SyntaxKind,!1)}function T(n){return b(n,e.NodeFlags,!0)}function S(n){return b(n,e.ModifierFlags,!0)}function x(n){return b(n,e.TransformFlags,!0)}function L(n){return b(n,e.EmitFlags,!0)}function D(n){return b(n,e.SymbolFlags,!0)}function C(n){return b(n,e.TypeFlags,!0)}function A(n){return b(n,e.SignatureFlags,!0)}function I(n){return b(n,e.ObjectFlags,!0)}function k(n){return b(n,e.FlowFlags,!0)}t.getAssertionLevel=function(){return i},t.setAssertionLevel=function(n){var r=i;if(i=n,n>r)for(var a=0,o=e.getOwnKeys(u);a<o.length;a++){var s=o[a],c=u[s];void 0!==c&&t[s]!==c.assertion&&n>=c.level&&(t[s]=c,u[s]=void 0)}},t.shouldAssert=d,t.fail=f,t.failBadSyntaxKind=function e(n,t,r){return f("".concat(t||"Unexpected node.","\r\nNode ").concat(E(n.kind)," was unexpected."),r||e)},t.assert=m,t.assertEqual=function e(n,t,r,a,i){if(n!==t){var o=r?a?"".concat(r," ").concat(a):r:"";f("Expected ".concat(n," === ").concat(t,". ").concat(o),i||e)}},t.assertLessThan=function e(n,t,r,a){n>=t&&f("Expected ".concat(n," < ").concat(t,". ").concat(r||""),a||e)},t.assertLessThanOrEqual=function e(n,t,r){n>t&&f("Expected ".concat(n," <= ").concat(t),r||e)},t.assertGreaterThanOrEqual=function e(n,t,r){n<t&&f("Expected ".concat(n," >= ").concat(t),r||e)},t.assertIsDefined=_,t.checkDefined=g,t.assertDefined=g,t.assertEachIsDefined=y,t.checkEachDefined=h,t.assertEachDefined=h,t.assertNever=function n(t,r,a){void 0===r&&(r="Illegal value:");var i="object"===typeof t&&e.hasProperty(t,"kind")&&e.hasProperty(t,"pos")&&E?"SyntaxKind: "+E(t.kind):JSON.stringify(t);return f("".concat(r," ").concat(i),a||n)},t.assertEachNode=function n(t,r,a,i){p(1,"assertEachNode")&&m(void 0===r||e.every(t,r),a||"Unexpected node.",(function(){return"Node array did not pass test '".concat(v(r),"'.")}),i||n)},t.assertNode=function e(n,t,r,a){p(1,"assertNode")&&m(void 0!==n&&(void 0===t||t(n)),r||"Unexpected node.",(function(){return"Node ".concat(E(null===n||void 0===n?void 0:n.kind)," did not pass test '").concat(v(t),"'.")}),a||e)},t.assertNotNode=function e(n,t,r,a){p(1,"assertNotNode")&&m(void 0===n||void 0===t||!t(n),r||"Unexpected node.",(function(){return"Node ".concat(E(n.kind)," should not have passed test '").concat(v(t),"'.")}),a||e)},t.assertOptionalNode=function e(n,t,r,a){p(1,"assertOptionalNode")&&m(void 0===t||void 0===n||t(n),r||"Unexpected node.",(function(){return"Node ".concat(E(null===n||void 0===n?void 0:n.kind)," did not pass test '").concat(v(t),"'.")}),a||e)},t.assertOptionalToken=function e(n,t,r,a){p(1,"assertOptionalToken")&&m(void 0===t||void 0===n||n.kind===t,r||"Unexpected node.",(function(){return"Node ".concat(E(null===n||void 0===n?void 0:n.kind)," was not a '").concat(E(t),"' token.")}),a||e)},t.assertMissingNode=function e(n,t,r){p(1,"assertMissingNode")&&m(void 0===n,t||"Unexpected node.",(function(){return"Node ".concat(E(n.kind)," was unexpected'.")}),r||e)},t.type=function(e){},t.getFunctionName=v,t.formatSymbol=function(n){return"{ name: ".concat(e.unescapeLeadingUnderscores(n.escapedName),"; flags: ").concat(D(n.flags),"; declarations: ").concat(e.map(n.declarations,(function(e){return E(e.kind)}))," }")},t.formatEnum=b,t.formatSyntaxKind=E,t.formatSnippetKind=function(n){return b(n,e.SnippetKind,!1)},t.formatNodeFlags=T,t.formatModifierFlags=S,t.formatTransformFlags=x,t.formatEmitFlags=L,t.formatSymbolFlags=D,t.formatTypeFlags=C,t.formatSignatureFlags=A,t.formatObjectFlags=I,t.formatFlowFlags=k;var N,R,O,w=!1;function M(e){return function(){if(G(),!N)throw new Error("Debugging helpers could not be loaded.");return N}().formatControlFlowGraph(e)}function P(n){"__debugFlowFlags"in n||Object.defineProperties(n,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",n=-2048&this.flags;return"".concat(e).concat(n?" (".concat(k(n),")"):"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return M(this)}}})}function F(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function G(){if(!w){var n,t;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var n=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return"".concat(n," '").concat(e.symbolName(this),"'").concat(t?" (".concat(D(t),")"):"")}},__debugFlags:{get:function(){return D(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var n=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return"".concat(n).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(t?" (".concat(I(t),")"):"")}},__debugFlags:{get:function(){return C(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===n&&"function"===typeof WeakMap&&(n=new WeakMap),n),t=null===e||void 0===e?void 0:e.get(this);return void 0===t&&(t=this.checker.typeToString(this),null===e||void 0===e||e.set(this,t)),t}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var r=0,a=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];r<a.length;r++){var i=a[r];i.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(i.prototype,{__tsDebuggerDisplay:{value:function(){var n=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":E(this.kind);return"".concat(n).concat(this.flags?" (".concat(T(this.flags),")"):"")}},__debugKind:{get:function(){return E(this.kind)}},__debugNodeFlags:{get:function(){return T(this.flags)}},__debugModifierFlags:{get:function(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return x(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return L(e.getEmitFlags(this))}},__debugGetText:{value:function(n){if(e.nodeIsSynthesized(this))return"";var r=(void 0===t&&"function"===typeof WeakMap&&(t=new WeakMap),t),a=null===r||void 0===r?void 0:r.get(this);if(void 0===a){var i=e.getParseTreeNode(this),o=i&&e.getSourceFileOfNode(i);a=o?e.getSourceTextOfNodeFromSourceFile(o,i,n):"",null===r||void 0===r||r.set(this,a)}return a}}})}try{if(e.sys&&e.sys.require){e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath()));var o=void 0;o.error||(o.module.init(e),N=o.module)}}catch(X){}w=!0}}function B(n,t,r,a,i){var o=t?"DeprecationError: ":"DeprecationWarning: ";return o+="'".concat(n,"' "),o+=a?"has been deprecated since v".concat(a):"is deprecated",o+=t?" and can no longer be used.":r?" and will no longer be usable after v".concat(r,"."):".",o+=i?" ".concat(e.formatStringFromArgs(i,[n],0)):""}function U(n,t){var r,a;void 0===t&&(t={});var i="string"===typeof t.typeScriptVersion?new e.Version(t.typeScriptVersion):null!==(r=t.typeScriptVersion)&&void 0!==r?r:o(),s="string"===typeof t.errorAfter?new e.Version(t.errorAfter):t.errorAfter,c="string"===typeof t.warnAfter?new e.Version(t.warnAfter):t.warnAfter,u="string"===typeof t.since?new e.Version(t.since):null!==(a=t.since)&&void 0!==a?a:c,d=t.error||s&&i.compareTo(s)<=0,p=!c||i.compareTo(c)>=0;return d?function(e,n,t,r){var a=B(e,!0,n,t,r);return function(){throw new TypeError(a)}}(n,s,u,t.message):p?function(e,n,t,r){var a=!1;return function(){a||(l.warn(B(e,!1,n,t,r)),a=!0)}}(n,s,u,t.message):e.noop}t.printControlFlowGraph=function(e){return console.log(M(e))},t.formatControlFlowGraph=M,t.attachFlowNodeDebugInfo=function(e){w&&("function"===typeof Object.setPrototypeOf?(R||P(R=Object.create(Object.prototype)),Object.setPrototypeOf(e,R)):P(e))},t.attachNodeArrayDebugInfo=function(e){w&&("function"===typeof Object.setPrototypeOf?(O||F(O=Object.create(Array.prototype)),Object.setPrototypeOf(e,O)):F(e))},t.enableDebugInfo=G,t.deprecate=function(e,n){return function(e,n){return function(){return e(),n.apply(this,arguments)}}(U(v(e),n),e)}}(e.Debug||(e.Debug={}))}(ha||(ha={})),function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,t=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^(0|[1-9]\d*)$/,i=function(){function n(n,a,i,s,c){if(void 0===a&&(a=0),void 0===i&&(i=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"===typeof n){var l=e.Debug.checkDefined(o(n),"Invalid version");n=l.major,a=l.minor,i=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(n>=0,"Invalid argument: major"),e.Debug.assert(a>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch"),e.Debug.assert(!s||t.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||r.test(c),"Invalid argument: build"),this.major=n,this.minor=a,this.patch=i,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return n.tryParse=function(e){var t=o(e);if(t)return new n(t.major,t.minor,t.patch,t.prerelease,t.build)},n.prototype.compareTo=function(n){return this===n?0:void 0===n?1:e.compareValues(this.major,n.major)||e.compareValues(this.minor,n.minor)||e.compareValues(this.patch,n.patch)||function(n,t){if(n===t)return 0;if(0===n.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(n.length,t.length),i=0;i<r;i++){var o=n[i],s=t[i];if(o!==s){var c=a.test(o),l=a.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(n.length,t.length)}(this.prerelease,n.prerelease)},n.prototype.increment=function(t){switch(t){case"major":return new n(this.major+1,0,0);case"minor":return new n(this.major,this.minor+1,0);case"patch":return new n(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(t)}},n.prototype.toString=function(){var n="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(n+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(n+="+".concat(this.build.join("."))),n},n.zero=new n(0,0,0),n}();function o(e){var a=n.exec(e);if(a){var i=a[1],o=a[2],s=void 0===o?"0":o,c=a[3],l=void 0===c?"0":c,u=a[4],d=void 0===u?"":u,p=a[5],f=void 0===p?"":p;if((!d||t.test(d))&&(!f||r.test(f)))return{major:parseInt(i,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:d,build:f}}}e.Version=i;var s=function(){function n(n){this._alternatives=n?e.Debug.checkDefined(f(n),"Invalid range spec."):e.emptyArray}return n.tryParse=function(e){var t=f(e);if(t){var r=new n("");return r._alternatives=t,r}},n.prototype.test=function(e){return"string"===typeof e&&(e=new i(e)),function(e,n){if(0===n.length)return!0;for(var t=0,r=n;t<r.length;t++){if(v(e,r[t]))return!0}return!1}(e,this._alternatives)},n.prototype.toString=function(){return n=this._alternatives,e.map(n,E).join(" || ")||"*";var n},n}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function f(n){for(var t=[],r=0,a=e.trimString(n).split(c);r<a.length;r++){var i=a[r];if(i){var o=[];i=e.trimString(i);var s=d.exec(i);if(s){if(!_(s[1],s[2],o))return}else for(var u=0,f=i.split(l);u<f.length;u++){var m=f[u],y=p.exec(e.trimString(m));if(!y||!g(y[1],y[2],o))return}t.push(o)}}return t}function m(e){var n=u.exec(e);if(n){var t=n[1],r=n[2],a=void 0===r?"*":r,o=n[3],s=void 0===o?"*":o,c=n[4],l=n[5];return{version:new i(y(t)?0:parseInt(t,10),y(t)||y(a)?0:parseInt(a,10),y(t)||y(a)||y(s)?0:parseInt(s,10),c,l),major:t,minor:a,patch:s}}}function _(e,n,t){var r=m(e);if(!r)return!1;var a=m(n);return!!a&&(y(r.major)||t.push(h(">=",r.version)),y(a.major)||t.push(y(a.minor)?h("<",a.version.increment("major")):y(a.patch)?h("<",a.version.increment("minor")):h("<=",a.version)),!0)}function g(e,n,t){var r=m(n);if(!r)return!1;var a=r.version,o=r.major,s=r.minor,c=r.patch;if(y(o))"<"!==e&&">"!==e||t.push(h("<",i.zero));else switch(e){case"~":t.push(h(">=",a)),t.push(h("<",a.increment(y(s)?"major":"minor")));break;case"^":t.push(h(">=",a)),t.push(h("<",a.increment(a.major>0||y(s)?"major":a.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":t.push(h(e,a));break;case"<=":case">":t.push(y(s)?h("<="===e?"<":">=",a.increment("major")):y(c)?h("<="===e?"<":">=",a.increment("minor")):h(e,a));break;case"=":case void 0:y(s)||y(c)?(t.push(h(">=",a)),t.push(h("<",a.increment(y(s)?"major":"minor")))):t.push(h("=",a));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,n){return{operator:e,operand:n}}function v(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];if(!b(e,a.operator,a.operand))return!1}return!0}function b(n,t,r){var a=n.compareTo(r);switch(t){case"<":return a<0;case"<=":return a<=0;case">":return a>0;case">=":return a>=0;case"=":return 0===a;default:return e.Debug.assertNever(t)}}function E(n){return e.map(n,T).join(" ")}function T(e){return"".concat(e.operator).concat(e.operand)}}(ha||(ha={})),function(e){var n=function(){if("object"===typeof performance&&"function"===typeof PerformanceObserver&&(e=performance,n=PerformanceObserver,"object"===typeof e&&"number"===typeof e.timeOrigin&&"function"===typeof e.mark&&"function"===typeof e.measure&&"function"===typeof e.now&&"function"===typeof n))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver};var e,n}()||void("undefined"!==typeof process&&process.nextTick&&process.browser),t=null===n||void 0===n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=t?function(){return t.now()}:Date.now?Date.now:function(){return+new Date}}(ha||(ha={})),function(e){var n,t;function r(e,n,t){var r=0;return{enter:function(){1===++r&&l(n)},exit:function(){0===--r?(l(t),u(e,n,t)):r<0&&da.Debug.fail("enter/exit count does not match.")}}}e.createTimerIf=function(n,t,a,i){return n?r(t,a,i):e.nullTimer},e.createTimer=r,e.nullTimer={enter:da.noop,exit:da.noop};var a=!1,i=da.timestamp(),o=new da.Map,s=new da.Map,c=new da.Map;function l(e){var n;if(a){var r=null!==(n=s.get(e))&&void 0!==n?n:0;s.set(e,r+1),o.set(e,da.timestamp()),null===t||void 0===t||t.mark(e)}}function u(e,n,r){var s,l;if(a){var u=null!==(s=void 0!==r?o.get(r):void 0)&&void 0!==s?s:da.timestamp(),d=null!==(l=void 0!==n?o.get(n):void 0)&&void 0!==l?l:i,p=c.get(e)||0;c.set(e,p+(u-d)),null===t||void 0===t||t.measure(e,n,r)}}e.mark=l,e.measure=u,e.getCount=function(e){return s.get(e)||0},e.getDuration=function(e){return c.get(e)||0},e.forEachMeasure=function(e){c.forEach((function(n,t){return e(t,n)}))},e.isEnabled=function(){return a},e.enable=function(e){var r;return void 0===e&&(e=da.sys),a||(a=!0,n||(n=da.tryGetNativePerformanceHooks()),n&&(i=n.performance.timeOrigin,(n.shouldWriteNativeEvents||(null===(r=null===e||void 0===e?void 0:e.cpuProfilingEnabled)||void 0===r?void 0:r.call(e))||(null===e||void 0===e?void 0:e.debugMode))&&(t=n.performance))),!0},e.disable=function(){a&&(o.clear(),s.clear(),c.clear(),t=void 0,a=!1)}}((da=ha||(ha={})).performance||(da.performance={})),function(e){var n,t,r={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{n={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.TS_ETW_MODULE_PATH;t=void 0}catch(Oa){t=void 0}e.perfLogger=t&&t.logEvent?t:r}(ha||(ha={})),function(e){var n;!function(n){var t,r,a,i,o=0,s=0,c=[],l=[];n.startTracing=function(i,u,d){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===t)try{t=void 0}catch(Oa){throw new Error("tracing requires having fs\n(original error: ".concat(Oa.message||Oa,")"))}r=i,c.length=0,void 0===a&&(a=e.combinePaths(u,"legend.json")),t.existsSync(u)||t.mkdirSync(u,{recursive:!0});var p="build"===r?".".concat(process.pid,"-").concat(++o):"server"===r?".".concat(process.pid):"",f=e.combinePaths(u,"trace".concat(p,".json")),m=e.combinePaths(u,"types".concat(p,".json"));l.push({configFilePath:d,tracePath:f,typesPath:m}),s=t.openSync(f,"w"),e.tracing=n;var _={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};t.writeSync(s,"[\n"+[fa({name:"process_name",args:{name:"tsc"}},_),fa({name:"thread_name",args:{name:"Main"}},_),fa(fa({name:"TracingStartedInBrowser"},_),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},n.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!c.length===("server"!==r)),t.writeSync(s,"\n]\n"),t.closeSync(s),e.tracing=void 0,c.length?function(n){var r,a,i,o,s,c,u,d,p,m,_,g,y,h,v,b,E,T,S,x,L,D;e.performance.mark("beginDumpTypes");var C=l[l.length-1].typesPath,A=t.openSync(C,"w"),I=new e.Map;t.writeSync(A,"[");for(var k=n.length,N=0;N<k;N++){var R=n[N],O=R.objectFlags,w=null!==(r=R.aliasSymbol)&&void 0!==r?r:R.symbol,M=void 0;if(16&O|2944&R.flags)try{M=null===(a=R.checker)||void 0===a?void 0:a.typeToString(R)}catch(Q){M=void 0}var P={};if(8388608&R.flags){var F=R;P={indexedAccessObjectType:null===(i=F.objectType)||void 0===i?void 0:i.id,indexedAccessIndexType:null===(o=F.indexType)||void 0===o?void 0:o.id}}var G={};if(4&O){var B=R;G={instantiatedType:null===(s=B.target)||void 0===s?void 0:s.id,typeArguments:null===(c=B.resolvedTypeArguments)||void 0===c?void 0:c.map((function(e){return e.id})),referenceLocation:f(B.node)}}var U={};if(16777216&R.flags){var V=R;U={conditionalCheckType:null===(u=V.checkType)||void 0===u?void 0:u.id,conditionalExtendsType:null===(d=V.extendsType)||void 0===d?void 0:d.id,conditionalTrueType:null!==(m=null===(p=V.resolvedTrueType)||void 0===p?void 0:p.id)&&void 0!==m?m:-1,conditionalFalseType:null!==(g=null===(_=V.resolvedFalseType)||void 0===_?void 0:_.id)&&void 0!==g?g:-1}}var j={};if(33554432&R.flags){var K=R;j={substitutionBaseType:null===(y=K.baseType)||void 0===y?void 0:y.id,substituteType:null===(h=K.substitute)||void 0===h?void 0:h.id}}var H={};if(1024&O){var W=R;H={reverseMappedSourceType:null===(v=W.source)||void 0===v?void 0:v.id,reverseMappedMappedType:null===(b=W.mappedType)||void 0===b?void 0:b.id,reverseMappedConstraintType:null===(E=W.constraintType)||void 0===E?void 0:E.id}}var z={};if(256&O){var J=R;z={evolvingArrayElementType:J.elementType.id,evolvingArrayFinalType:null===(T=J.finalArrayType)||void 0===T?void 0:T.id}}var q=void 0,X=R.checker.getRecursionIdentity(R);X&&((q=I.get(X))||(q=I.size,I.set(X,q)));var Y=fa(fa(fa(fa(fa(fa(fa({id:R.id,intrinsicName:R.intrinsicName,symbolName:(null===w||void 0===w?void 0:w.escapedName)&&e.unescapeLeadingUnderscores(w.escapedName),recursionId:q,isTuple:!!(8&O)||void 0,unionTypes:1048576&R.flags?null===(S=R.types)||void 0===S?void 0:S.map((function(e){return e.id})):void 0,intersectionTypes:2097152&R.flags?R.types.map((function(e){return e.id})):void 0,aliasTypeArguments:null===(x=R.aliasTypeArguments)||void 0===x?void 0:x.map((function(e){return e.id})),keyofType:4194304&R.flags?null===(L=R.type)||void 0===L?void 0:L.id:void 0},P),G),U),j),H),z),{destructuringPattern:f(R.pattern),firstDeclaration:f(null===(D=null===w||void 0===w?void 0:w.declarations)||void 0===D?void 0:D[0]),flags:e.Debug.formatTypeFlags(R.flags).split("|"),display:M});t.writeSync(A,JSON.stringify(Y)),N<k-1&&t.writeSync(A,",\n")}t.writeSync(A,"]\n"),t.closeSync(A),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(c):l[l.length-1].typesPath=void 0},n.recordType=function(e){"server"!==r&&c.push(e)},(i=n.Phase||(n.Phase={})).Parse="parse",i.Program="program",i.Bind="bind",i.Check="check",i.CheckTypes="checkTypes",i.Emit="emit",i.Session="session",n.instant=function(e,n,t){p("I",e,n,t,'"s":"g"')};var u=[];n.push=function(n,t,r,a){void 0===a&&(a=!1),a&&p("B",n,t,r),u.push({phase:n,name:t,args:r,time:1e3*e.timestamp(),separateBeginAndEnd:a})},n.pop=function(){e.Debug.assert(u.length>0),d(u.length-1,1e3*e.timestamp()),u.length--},n.popAll=function(){for(var n=1e3*e.timestamp(),t=u.length-1;t>=0;t--)d(t,n);u.length=0};function d(e,n){var t=u[e],r=t.phase,a=t.name,i=t.args,o=t.time;t.separateBeginAndEnd?p("E",r,a,i,void 0,n):1e4-o%1e4<=n-o&&p("X",r,a,i,'"dur":'.concat(n-o),o)}function p(n,a,i,o,c,l){void 0===l&&(l=1e3*e.timestamp()),"server"===r&&"checkTypes"===a||(e.performance.mark("beginTracing"),t.writeSync(s,',\n{"pid":1,"tid":1,"ph":"'.concat(n,'","cat":"').concat(a,'","ts":').concat(l,',"name":"').concat(i,'"')),c&&t.writeSync(s,",".concat(c)),o&&t.writeSync(s,',"args":'.concat(JSON.stringify(o))),t.writeSync(s,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function f(n){var t=e.getSourceFileOfNode(n);return t?{path:t.path,start:r(e.getLineAndCharacterOfPosition(t,n.pos)),end:r(e.getLineAndCharacterOfPosition(t,n.end))}:void 0;function r(e){return{line:e.line+1,character:e.character+1}}}n.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(l))}}(n||(n={})),e.startTracing=n.startTracing,e.dumpTracingLegend=n.dumpLegend}(ha||(ha={})),function(e){var n,t,r,a,i,o,s,c,l;(n=e.SyntaxKind||(e.SyntaxKind={}))[n.Unknown=0]="Unknown",n[n.EndOfFileToken=1]="EndOfFileToken",n[n.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",n[n.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",n[n.NewLineTrivia=4]="NewLineTrivia",n[n.WhitespaceTrivia=5]="WhitespaceTrivia",n[n.ShebangTrivia=6]="ShebangTrivia",n[n.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",n[n.NumericLiteral=8]="NumericLiteral",n[n.BigIntLiteral=9]="BigIntLiteral",n[n.StringLiteral=10]="StringLiteral",n[n.JsxText=11]="JsxText",n[n.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",n[n.RegularExpressionLiteral=13]="RegularExpressionLiteral",n[n.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",n[n.TemplateHead=15]="TemplateHead",n[n.TemplateMiddle=16]="TemplateMiddle",n[n.TemplateTail=17]="TemplateTail",n[n.OpenBraceToken=18]="OpenBraceToken",n[n.CloseBraceToken=19]="CloseBraceToken",n[n.OpenParenToken=20]="OpenParenToken",n[n.CloseParenToken=21]="CloseParenToken",n[n.OpenBracketToken=22]="OpenBracketToken",n[n.CloseBracketToken=23]="CloseBracketToken",n[n.DotToken=24]="DotToken",n[n.DotDotDotToken=25]="DotDotDotToken",n[n.SemicolonToken=26]="SemicolonToken",n[n.CommaToken=27]="CommaToken",n[n.QuestionDotToken=28]="QuestionDotToken",n[n.LessThanToken=29]="LessThanToken",n[n.LessThanSlashToken=30]="LessThanSlashToken",n[n.GreaterThanToken=31]="GreaterThanToken",n[n.LessThanEqualsToken=32]="LessThanEqualsToken",n[n.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",n[n.EqualsEqualsToken=34]="EqualsEqualsToken",n[n.ExclamationEqualsToken=35]="ExclamationEqualsToken",n[n.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",n[n.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",n[n.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",n[n.PlusToken=39]="PlusToken",n[n.MinusToken=40]="MinusToken",n[n.AsteriskToken=41]="AsteriskToken",n[n.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",n[n.SlashToken=43]="SlashToken",n[n.PercentToken=44]="PercentToken",n[n.PlusPlusToken=45]="PlusPlusToken",n[n.MinusMinusToken=46]="MinusMinusToken",n[n.LessThanLessThanToken=47]="LessThanLessThanToken",n[n.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",n[n.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",n[n.AmpersandToken=50]="AmpersandToken",n[n.BarToken=51]="BarToken",n[n.CaretToken=52]="CaretToken",n[n.ExclamationToken=53]="ExclamationToken",n[n.TildeToken=54]="TildeToken",n[n.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",n[n.BarBarToken=56]="BarBarToken",n[n.QuestionToken=57]="QuestionToken",n[n.ColonToken=58]="ColonToken",n[n.AtToken=59]="AtToken",n[n.QuestionQuestionToken=60]="QuestionQuestionToken",n[n.BacktickToken=61]="BacktickToken",n[n.HashToken=62]="HashToken",n[n.EqualsToken=63]="EqualsToken",n[n.PlusEqualsToken=64]="PlusEqualsToken",n[n.MinusEqualsToken=65]="MinusEqualsToken",n[n.AsteriskEqualsToken=66]="AsteriskEqualsToken",n[n.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",n[n.SlashEqualsToken=68]="SlashEqualsToken",n[n.PercentEqualsToken=69]="PercentEqualsToken",n[n.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",n[n.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",n[n.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",n[n.AmpersandEqualsToken=73]="AmpersandEqualsToken",n[n.BarEqualsToken=74]="BarEqualsToken",n[n.BarBarEqualsToken=75]="BarBarEqualsToken",n[n.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",n[n.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",n[n.CaretEqualsToken=78]="CaretEqualsToken",n[n.Identifier=79]="Identifier",n[n.PrivateIdentifier=80]="PrivateIdentifier",n[n.BreakKeyword=81]="BreakKeyword",n[n.CaseKeyword=82]="CaseKeyword",n[n.CatchKeyword=83]="CatchKeyword",n[n.ClassKeyword=84]="ClassKeyword",n[n.ConstKeyword=85]="ConstKeyword",n[n.ContinueKeyword=86]="ContinueKeyword",n[n.DebuggerKeyword=87]="DebuggerKeyword",n[n.DefaultKeyword=88]="DefaultKeyword",n[n.DeleteKeyword=89]="DeleteKeyword",n[n.DoKeyword=90]="DoKeyword",n[n.ElseKeyword=91]="ElseKeyword",n[n.EnumKeyword=92]="EnumKeyword",n[n.ExportKeyword=93]="ExportKeyword",n[n.ExtendsKeyword=94]="ExtendsKeyword",n[n.FalseKeyword=95]="FalseKeyword",n[n.FinallyKeyword=96]="FinallyKeyword",n[n.ForKeyword=97]="ForKeyword",n[n.FunctionKeyword=98]="FunctionKeyword",n[n.IfKeyword=99]="IfKeyword",n[n.ImportKeyword=100]="ImportKeyword",n[n.InKeyword=101]="InKeyword",n[n.InstanceOfKeyword=102]="InstanceOfKeyword",n[n.NewKeyword=103]="NewKeyword",n[n.NullKeyword=104]="NullKeyword",n[n.ReturnKeyword=105]="ReturnKeyword",n[n.SuperKeyword=106]="SuperKeyword",n[n.SwitchKeyword=107]="SwitchKeyword",n[n.ThisKeyword=108]="ThisKeyword",n[n.ThrowKeyword=109]="ThrowKeyword",n[n.TrueKeyword=110]="TrueKeyword",n[n.TryKeyword=111]="TryKeyword",n[n.TypeOfKeyword=112]="TypeOfKeyword",n[n.VarKeyword=113]="VarKeyword",n[n.VoidKeyword=114]="VoidKeyword",n[n.WhileKeyword=115]="WhileKeyword",n[n.WithKeyword=116]="WithKeyword",n[n.ImplementsKeyword=117]="ImplementsKeyword",n[n.InterfaceKeyword=118]="InterfaceKeyword",n[n.LetKeyword=119]="LetKeyword",n[n.PackageKeyword=120]="PackageKeyword",n[n.PrivateKeyword=121]="PrivateKeyword",n[n.ProtectedKeyword=122]="ProtectedKeyword",n[n.PublicKeyword=123]="PublicKeyword",n[n.StaticKeyword=124]="StaticKeyword",n[n.YieldKeyword=125]="YieldKeyword",n[n.AbstractKeyword=126]="AbstractKeyword",n[n.AsKeyword=127]="AsKeyword",n[n.AssertsKeyword=128]="AssertsKeyword",n[n.AssertKeyword=129]="AssertKeyword",n[n.AnyKeyword=130]="AnyKeyword",n[n.AsyncKeyword=131]="AsyncKeyword",n[n.AwaitKeyword=132]="AwaitKeyword",n[n.BooleanKeyword=133]="BooleanKeyword",n[n.ConstructorKeyword=134]="ConstructorKeyword",n[n.DeclareKeyword=135]="DeclareKeyword",n[n.GetKeyword=136]="GetKeyword",n[n.InferKeyword=137]="InferKeyword",n[n.IntrinsicKeyword=138]="IntrinsicKeyword",n[n.IsKeyword=139]="IsKeyword",n[n.KeyOfKeyword=140]="KeyOfKeyword",n[n.ModuleKeyword=141]="ModuleKeyword",n[n.NamespaceKeyword=142]="NamespaceKeyword",n[n.NeverKeyword=143]="NeverKeyword",n[n.ReadonlyKeyword=144]="ReadonlyKeyword",n[n.RequireKeyword=145]="RequireKeyword",n[n.NumberKeyword=146]="NumberKeyword",n[n.ObjectKeyword=147]="ObjectKeyword",n[n.SetKeyword=148]="SetKeyword",n[n.StringKeyword=149]="StringKeyword",n[n.SymbolKeyword=150]="SymbolKeyword",n[n.TypeKeyword=151]="TypeKeyword",n[n.UndefinedKeyword=152]="UndefinedKeyword",n[n.UniqueKeyword=153]="UniqueKeyword",n[n.UnknownKeyword=154]="UnknownKeyword",n[n.FromKeyword=155]="FromKeyword",n[n.GlobalKeyword=156]="GlobalKeyword",n[n.BigIntKeyword=157]="BigIntKeyword",n[n.OverrideKeyword=158]="OverrideKeyword",n[n.OfKeyword=159]="OfKeyword",n[n.QualifiedName=160]="QualifiedName",n[n.ComputedPropertyName=161]="ComputedPropertyName",n[n.TypeParameter=162]="TypeParameter",n[n.Parameter=163]="Parameter",n[n.Decorator=164]="Decorator",n[n.PropertySignature=165]="PropertySignature",n[n.PropertyDeclaration=166]="PropertyDeclaration",n[n.MethodSignature=167]="MethodSignature",n[n.MethodDeclaration=168]="MethodDeclaration",n[n.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",n[n.Constructor=170]="Constructor",n[n.GetAccessor=171]="GetAccessor",n[n.SetAccessor=172]="SetAccessor",n[n.CallSignature=173]="CallSignature",n[n.ConstructSignature=174]="ConstructSignature",n[n.IndexSignature=175]="IndexSignature",n[n.TypePredicate=176]="TypePredicate",n[n.TypeReference=177]="TypeReference",n[n.FunctionType=178]="FunctionType",n[n.ConstructorType=179]="ConstructorType",n[n.TypeQuery=180]="TypeQuery",n[n.TypeLiteral=181]="TypeLiteral",n[n.ArrayType=182]="ArrayType",n[n.TupleType=183]="TupleType",n[n.OptionalType=184]="OptionalType",n[n.RestType=185]="RestType",n[n.UnionType=186]="UnionType",n[n.IntersectionType=187]="IntersectionType",n[n.ConditionalType=188]="ConditionalType",n[n.InferType=189]="InferType",n[n.ParenthesizedType=190]="ParenthesizedType",n[n.ThisType=191]="ThisType",n[n.TypeOperator=192]="TypeOperator",n[n.IndexedAccessType=193]="IndexedAccessType",n[n.MappedType=194]="MappedType",n[n.LiteralType=195]="LiteralType",n[n.NamedTupleMember=196]="NamedTupleMember",n[n.TemplateLiteralType=197]="TemplateLiteralType",n[n.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",n[n.ImportType=199]="ImportType",n[n.ObjectBindingPattern=200]="ObjectBindingPattern",n[n.ArrayBindingPattern=201]="ArrayBindingPattern",n[n.BindingElement=202]="BindingElement",n[n.ArrayLiteralExpression=203]="ArrayLiteralExpression",n[n.ObjectLiteralExpression=204]="ObjectLiteralExpression",n[n.PropertyAccessExpression=205]="PropertyAccessExpression",n[n.ElementAccessExpression=206]="ElementAccessExpression",n[n.CallExpression=207]="CallExpression",n[n.NewExpression=208]="NewExpression",n[n.TaggedTemplateExpression=209]="TaggedTemplateExpression",n[n.TypeAssertionExpression=210]="TypeAssertionExpression",n[n.ParenthesizedExpression=211]="ParenthesizedExpression",n[n.FunctionExpression=212]="FunctionExpression",n[n.ArrowFunction=213]="ArrowFunction",n[n.DeleteExpression=214]="DeleteExpression",n[n.TypeOfExpression=215]="TypeOfExpression",n[n.VoidExpression=216]="VoidExpression",n[n.AwaitExpression=217]="AwaitExpression",n[n.PrefixUnaryExpression=218]="PrefixUnaryExpression",n[n.PostfixUnaryExpression=219]="PostfixUnaryExpression",n[n.BinaryExpression=220]="BinaryExpression",n[n.ConditionalExpression=221]="ConditionalExpression",n[n.TemplateExpression=222]="TemplateExpression",n[n.YieldExpression=223]="YieldExpression",n[n.SpreadElement=224]="SpreadElement",n[n.ClassExpression=225]="ClassExpression",n[n.OmittedExpression=226]="OmittedExpression",n[n.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",n[n.AsExpression=228]="AsExpression",n[n.NonNullExpression=229]="NonNullExpression",n[n.MetaProperty=230]="MetaProperty",n[n.SyntheticExpression=231]="SyntheticExpression",n[n.TemplateSpan=232]="TemplateSpan",n[n.SemicolonClassElement=233]="SemicolonClassElement",n[n.Block=234]="Block",n[n.EmptyStatement=235]="EmptyStatement",n[n.VariableStatement=236]="VariableStatement",n[n.ExpressionStatement=237]="ExpressionStatement",n[n.IfStatement=238]="IfStatement",n[n.DoStatement=239]="DoStatement",n[n.WhileStatement=240]="WhileStatement",n[n.ForStatement=241]="ForStatement",n[n.ForInStatement=242]="ForInStatement",n[n.ForOfStatement=243]="ForOfStatement",n[n.ContinueStatement=244]="ContinueStatement",n[n.BreakStatement=245]="BreakStatement",n[n.ReturnStatement=246]="ReturnStatement",n[n.WithStatement=247]="WithStatement",n[n.SwitchStatement=248]="SwitchStatement",n[n.LabeledStatement=249]="LabeledStatement",n[n.ThrowStatement=250]="ThrowStatement",n[n.TryStatement=251]="TryStatement",n[n.DebuggerStatement=252]="DebuggerStatement",n[n.VariableDeclaration=253]="VariableDeclaration",n[n.VariableDeclarationList=254]="VariableDeclarationList",n[n.FunctionDeclaration=255]="FunctionDeclaration",n[n.ClassDeclaration=256]="ClassDeclaration",n[n.InterfaceDeclaration=257]="InterfaceDeclaration",n[n.TypeAliasDeclaration=258]="TypeAliasDeclaration",n[n.EnumDeclaration=259]="EnumDeclaration",n[n.ModuleDeclaration=260]="ModuleDeclaration",n[n.ModuleBlock=261]="ModuleBlock",n[n.CaseBlock=262]="CaseBlock",n[n.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",n[n.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",n[n.ImportDeclaration=265]="ImportDeclaration",n[n.ImportClause=266]="ImportClause",n[n.NamespaceImport=267]="NamespaceImport",n[n.NamedImports=268]="NamedImports",n[n.ImportSpecifier=269]="ImportSpecifier",n[n.ExportAssignment=270]="ExportAssignment",n[n.ExportDeclaration=271]="ExportDeclaration",n[n.NamedExports=272]="NamedExports",n[n.NamespaceExport=273]="NamespaceExport",n[n.ExportSpecifier=274]="ExportSpecifier",n[n.MissingDeclaration=275]="MissingDeclaration",n[n.ExternalModuleReference=276]="ExternalModuleReference",n[n.JsxElement=277]="JsxElement",n[n.JsxSelfClosingElement=278]="JsxSelfClosingElement",n[n.JsxOpeningElement=279]="JsxOpeningElement",n[n.JsxClosingElement=280]="JsxClosingElement",n[n.JsxFragment=281]="JsxFragment",n[n.JsxOpeningFragment=282]="JsxOpeningFragment",n[n.JsxClosingFragment=283]="JsxClosingFragment",n[n.JsxAttribute=284]="JsxAttribute",n[n.JsxAttributes=285]="JsxAttributes",n[n.JsxSpreadAttribute=286]="JsxSpreadAttribute",n[n.JsxExpression=287]="JsxExpression",n[n.CaseClause=288]="CaseClause",n[n.DefaultClause=289]="DefaultClause",n[n.HeritageClause=290]="HeritageClause",n[n.CatchClause=291]="CatchClause",n[n.AssertClause=292]="AssertClause",n[n.AssertEntry=293]="AssertEntry",n[n.PropertyAssignment=294]="PropertyAssignment",n[n.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",n[n.SpreadAssignment=296]="SpreadAssignment",n[n.EnumMember=297]="EnumMember",n[n.UnparsedPrologue=298]="UnparsedPrologue",n[n.UnparsedPrepend=299]="UnparsedPrepend",n[n.UnparsedText=300]="UnparsedText",n[n.UnparsedInternalText=301]="UnparsedInternalText",n[n.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",n[n.SourceFile=303]="SourceFile",n[n.Bundle=304]="Bundle",n[n.UnparsedSource=305]="UnparsedSource",n[n.InputFiles=306]="InputFiles",n[n.JSDocTypeExpression=307]="JSDocTypeExpression",n[n.JSDocNameReference=308]="JSDocNameReference",n[n.JSDocMemberName=309]="JSDocMemberName",n[n.JSDocAllType=310]="JSDocAllType",n[n.JSDocUnknownType=311]="JSDocUnknownType",n[n.JSDocNullableType=312]="JSDocNullableType",n[n.JSDocNonNullableType=313]="JSDocNonNullableType",n[n.JSDocOptionalType=314]="JSDocOptionalType",n[n.JSDocFunctionType=315]="JSDocFunctionType",n[n.JSDocVariadicType=316]="JSDocVariadicType",n[n.JSDocNamepathType=317]="JSDocNamepathType",n[n.JSDocComment=318]="JSDocComment",n[n.JSDocText=319]="JSDocText",n[n.JSDocTypeLiteral=320]="JSDocTypeLiteral",n[n.JSDocSignature=321]="JSDocSignature",n[n.JSDocLink=322]="JSDocLink",n[n.JSDocLinkCode=323]="JSDocLinkCode",n[n.JSDocLinkPlain=324]="JSDocLinkPlain",n[n.JSDocTag=325]="JSDocTag",n[n.JSDocAugmentsTag=326]="JSDocAugmentsTag",n[n.JSDocImplementsTag=327]="JSDocImplementsTag",n[n.JSDocAuthorTag=328]="JSDocAuthorTag",n[n.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",n[n.JSDocClassTag=330]="JSDocClassTag",n[n.JSDocPublicTag=331]="JSDocPublicTag",n[n.JSDocPrivateTag=332]="JSDocPrivateTag",n[n.JSDocProtectedTag=333]="JSDocProtectedTag",n[n.JSDocReadonlyTag=334]="JSDocReadonlyTag",n[n.JSDocOverrideTag=335]="JSDocOverrideTag",n[n.JSDocCallbackTag=336]="JSDocCallbackTag",n[n.JSDocEnumTag=337]="JSDocEnumTag",n[n.JSDocParameterTag=338]="JSDocParameterTag",n[n.JSDocReturnTag=339]="JSDocReturnTag",n[n.JSDocThisTag=340]="JSDocThisTag",n[n.JSDocTypeTag=341]="JSDocTypeTag",n[n.JSDocTemplateTag=342]="JSDocTemplateTag",n[n.JSDocTypedefTag=343]="JSDocTypedefTag",n[n.JSDocSeeTag=344]="JSDocSeeTag",n[n.JSDocPropertyTag=345]="JSDocPropertyTag",n[n.SyntaxList=346]="SyntaxList",n[n.NotEmittedStatement=347]="NotEmittedStatement",n[n.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",n[n.CommaListExpression=349]="CommaListExpression",n[n.MergeDeclarationMarker=350]="MergeDeclarationMarker",n[n.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",n[n.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",n[n.Count=353]="Count",n[n.FirstAssignment=63]="FirstAssignment",n[n.LastAssignment=78]="LastAssignment",n[n.FirstCompoundAssignment=64]="FirstCompoundAssignment",n[n.LastCompoundAssignment=78]="LastCompoundAssignment",n[n.FirstReservedWord=81]="FirstReservedWord",n[n.LastReservedWord=116]="LastReservedWord",n[n.FirstKeyword=81]="FirstKeyword",n[n.LastKeyword=159]="LastKeyword",n[n.FirstFutureReservedWord=117]="FirstFutureReservedWord",n[n.LastFutureReservedWord=125]="LastFutureReservedWord",n[n.FirstTypeNode=176]="FirstTypeNode",n[n.LastTypeNode=199]="LastTypeNode",n[n.FirstPunctuation=18]="FirstPunctuation",n[n.LastPunctuation=78]="LastPunctuation",n[n.FirstToken=0]="FirstToken",n[n.LastToken=159]="LastToken",n[n.FirstTriviaToken=2]="FirstTriviaToken",n[n.LastTriviaToken=7]="LastTriviaToken",n[n.FirstLiteralToken=8]="FirstLiteralToken",n[n.LastLiteralToken=14]="LastLiteralToken",n[n.FirstTemplateToken=14]="FirstTemplateToken",n[n.LastTemplateToken=17]="LastTemplateToken",n[n.FirstBinaryOperator=29]="FirstBinaryOperator",n[n.LastBinaryOperator=78]="LastBinaryOperator",n[n.FirstStatement=236]="FirstStatement",n[n.LastStatement=252]="LastStatement",n[n.FirstNode=160]="FirstNode",n[n.FirstJSDocNode=307]="FirstJSDocNode",n[n.LastJSDocNode=345]="LastJSDocNode",n[n.FirstJSDocTagNode=325]="FirstJSDocTagNode",n[n.LastJSDocTagNode=345]="LastJSDocTagNode",n[n.FirstContextualKeyword=126]="FirstContextualKeyword",n[n.LastContextualKeyword=159]="LastContextualKeyword",(t=e.NodeFlags||(e.NodeFlags={}))[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.NestedNamespace=4]="NestedNamespace",t[t.Synthesized=8]="Synthesized",t[t.Namespace=16]="Namespace",t[t.OptionalChain=32]="OptionalChain",t[t.ExportContext=64]="ExportContext",t[t.ContainsThis=128]="ContainsThis",t[t.HasImplicitReturn=256]="HasImplicitReturn",t[t.HasExplicitReturn=512]="HasExplicitReturn",t[t.GlobalAugmentation=1024]="GlobalAugmentation",t[t.HasAsyncFunctions=2048]="HasAsyncFunctions",t[t.DisallowInContext=4096]="DisallowInContext",t[t.YieldContext=8192]="YieldContext",t[t.DecoratorContext=16384]="DecoratorContext",t[t.AwaitContext=32768]="AwaitContext",t[t.ThisNodeHasError=65536]="ThisNodeHasError",t[t.JavaScriptFile=131072]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=524288]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",t[t.JSDoc=4194304]="JSDoc",t[t.Ambient=8388608]="Ambient",t[t.InWithStatement=16777216]="InWithStatement",t[t.JsonFile=33554432]="JsonFile",t[t.TypeCached=67108864]="TypeCached",t[t.Deprecated=134217728]="Deprecated",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",t[t.ContextFlags=25358336]="ContextFlags",t[t.TypeExcludesFlags=40960]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(r=e.ModifierFlags||(e.ModifierFlags={}))[r.None=0]="None",r[r.Export=1]="Export",r[r.Ambient=2]="Ambient",r[r.Public=4]="Public",r[r.Private=8]="Private",r[r.Protected=16]="Protected",r[r.Static=32]="Static",r[r.Readonly=64]="Readonly",r[r.Abstract=128]="Abstract",r[r.Async=256]="Async",r[r.Default=512]="Default",r[r.Const=2048]="Const",r[r.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",r[r.Deprecated=8192]="Deprecated",r[r.Override=16384]="Override",r[r.HasComputedFlags=536870912]="HasComputedFlags",r[r.AccessibilityModifier=28]="AccessibilityModifier",r[r.ParameterPropertyModifier=16476]="ParameterPropertyModifier",r[r.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",r[r.TypeScriptModifier=18654]="TypeScriptModifier",r[r.ExportDefault=513]="ExportDefault",r[r.All=27647]="All",(a=e.JsxFlags||(e.JsxFlags={}))[a.None=0]="None",a[a.IntrinsicNamedElement=1]="IntrinsicNamedElement",a[a.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",a[a.IntrinsicElement=3]="IntrinsicElement",(i=e.RelationComparisonResult||(e.RelationComparisonResult={}))[i.Succeeded=1]="Succeeded",i[i.Failed=2]="Failed",i[i.Reported=4]="Reported",i[i.ReportsUnmeasurable=8]="ReportsUnmeasurable",i[i.ReportsUnreliable=16]="ReportsUnreliable",i[i.ReportsMask=24]="ReportsMask",(o=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[o.None=0]="None",o[o.Auto=1]="Auto",o[o.Loop=2]="Loop",o[o.Unique=3]="Unique",o[o.Node=4]="Node",o[o.KindMask=7]="KindMask",o[o.ReservedInNestedScopes=8]="ReservedInNestedScopes",o[o.Optimistic=16]="Optimistic",o[o.FileLevel=32]="FileLevel",o[o.AllowNameSubstitution=64]="AllowNameSubstitution",(s=e.TokenFlags||(e.TokenFlags={}))[s.None=0]="None",s[s.PrecedingLineBreak=1]="PrecedingLineBreak",s[s.PrecedingJSDocComment=2]="PrecedingJSDocComment",s[s.Unterminated=4]="Unterminated",s[s.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",s[s.Scientific=16]="Scientific",s[s.Octal=32]="Octal",s[s.HexSpecifier=64]="HexSpecifier",s[s.BinarySpecifier=128]="BinarySpecifier",s[s.OctalSpecifier=256]="OctalSpecifier",s[s.ContainsSeparator=512]="ContainsSeparator",s[s.UnicodeEscape=1024]="UnicodeEscape",s[s.ContainsInvalidEscape=2048]="ContainsInvalidEscape",s[s.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",s[s.NumericLiteralFlags=1008]="NumericLiteralFlags",s[s.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(c=e.FlowFlags||(e.FlowFlags={}))[c.Unreachable=1]="Unreachable",c[c.Start=2]="Start",c[c.BranchLabel=4]="BranchLabel",c[c.LoopLabel=8]="LoopLabel",c[c.Assignment=16]="Assignment",c[c.TrueCondition=32]="TrueCondition",c[c.FalseCondition=64]="FalseCondition",c[c.SwitchClause=128]="SwitchClause",c[c.ArrayMutation=256]="ArrayMutation",c[c.Call=512]="Call",c[c.ReduceLabel=1024]="ReduceLabel",c[c.Referenced=2048]="Referenced",c[c.Shared=4096]="Shared",c[c.Label=12]="Label",c[c.Condition=96]="Condition",(l=e.CommentDirectiveType||(e.CommentDirectiveType={}))[l.ExpectError=0]="ExpectError",l[l.Ignore=1]="Ignore";var u,d,p,f,m,_,g,y,h,v,b,E,T,S,x,L,D,C,A,I,k,N,R,O,w,M,P,F,G,B,U,V,j,K,H,W,z,J,q,X,Y,Q,Z,$,ee,ne,te,re,ae,ie,oe,se,ce,le,ue,de,pe,fe,me,_e=function(){};e.OperationCanceledException=_e,(u=e.FileIncludeKind||(e.FileIncludeKind={}))[u.RootFile=0]="RootFile",u[u.SourceFromProjectReference=1]="SourceFromProjectReference",u[u.OutputFromProjectReference=2]="OutputFromProjectReference",u[u.Import=3]="Import",u[u.ReferenceFile=4]="ReferenceFile",u[u.TypeReferenceDirective=5]="TypeReferenceDirective",u[u.LibFile=6]="LibFile",u[u.LibReferenceDirective=7]="LibReferenceDirective",u[u.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(d=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[d.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",d[d.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(p=e.StructureIsReused||(e.StructureIsReused={}))[p.Not=0]="Not",p[p.SafeModules=1]="SafeModules",p[p.Completely=2]="Completely",(f=e.ExitStatus||(e.ExitStatus={}))[f.Success=0]="Success",f[f.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",f[f.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",f[f.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",f[f.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",f[f.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(m=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[m.Ok=0]="Ok",m[m.NeedsOverride=1]="NeedsOverride",m[m.HasInvalidOverride=2]="HasInvalidOverride",(_=e.UnionReduction||(e.UnionReduction={}))[_.None=0]="None",_[_.Literal=1]="Literal",_[_.Subtype=2]="Subtype",(g=e.ContextFlags||(e.ContextFlags={}))[g.None=0]="None",g[g.Signature=1]="Signature",g[g.NoConstraints=2]="NoConstraints",g[g.Completions=4]="Completions",g[g.SkipBindingPatterns=8]="SkipBindingPatterns",(y=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[y.None=0]="None",y[y.NoTruncation=1]="NoTruncation",y[y.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",y[y.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",y[y.UseStructuralFallback=8]="UseStructuralFallback",y[y.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",y[y.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",y[y.UseFullyQualifiedType=64]="UseFullyQualifiedType",y[y.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",y[y.SuppressAnyReturnType=256]="SuppressAnyReturnType",y[y.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",y[y.MultilineObjectLiterals=1024]="MultilineObjectLiterals",y[y.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",y[y.UseTypeOfFunction=4096]="UseTypeOfFunction",y[y.OmitParameterModifiers=8192]="OmitParameterModifiers",y[y.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",y[y.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",y[y.NoTypeReduction=536870912]="NoTypeReduction",y[y.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",y[y.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",y[y.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",y[y.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",y[y.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",y[y.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",y[y.AllowEmptyTuple=524288]="AllowEmptyTuple",y[y.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",y[y.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",y[y.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",y[y.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",y[y.IgnoreErrors=70221824]="IgnoreErrors",y[y.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",y[y.InTypeAlias=8388608]="InTypeAlias",y[y.InInitialEntityName=16777216]="InInitialEntityName",(h=e.TypeFormatFlags||(e.TypeFormatFlags={}))[h.None=0]="None",h[h.NoTruncation=1]="NoTruncation",h[h.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",h[h.UseStructuralFallback=8]="UseStructuralFallback",h[h.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",h[h.UseFullyQualifiedType=64]="UseFullyQualifiedType",h[h.SuppressAnyReturnType=256]="SuppressAnyReturnType",h[h.MultilineObjectLiterals=1024]="MultilineObjectLiterals",h[h.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",h[h.UseTypeOfFunction=4096]="UseTypeOfFunction",h[h.OmitParameterModifiers=8192]="OmitParameterModifiers",h[h.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",h[h.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",h[h.NoTypeReduction=536870912]="NoTypeReduction",h[h.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",h[h.AddUndefined=131072]="AddUndefined",h[h.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",h[h.InArrayType=524288]="InArrayType",h[h.InElementType=2097152]="InElementType",h[h.InFirstTypeArgument=4194304]="InFirstTypeArgument",h[h.InTypeAlias=8388608]="InTypeAlias",h[h.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",h[h.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(v=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[v.None=0]="None",v[v.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",v[v.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",v[v.AllowAnyNodeKind=4]="AllowAnyNodeKind",v[v.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",v[v.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(b=e.SymbolAccessibility||(e.SymbolAccessibility={}))[b.Accessible=0]="Accessible",b[b.NotAccessible=1]="NotAccessible",b[b.CannotBeNamed=2]="CannotBeNamed",(E=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[E.UnionOrIntersection=0]="UnionOrIntersection",E[E.Spread=1]="Spread",(T=e.TypePredicateKind||(e.TypePredicateKind={}))[T.This=0]="This",T[T.Identifier=1]="Identifier",T[T.AssertsThis=2]="AssertsThis",T[T.AssertsIdentifier=3]="AssertsIdentifier",(S=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[S.Unknown=0]="Unknown",S[S.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",S[S.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",S[S.NumberLikeType=3]="NumberLikeType",S[S.BigIntLikeType=4]="BigIntLikeType",S[S.StringLikeType=5]="StringLikeType",S[S.BooleanType=6]="BooleanType",S[S.ArrayLikeType=7]="ArrayLikeType",S[S.ESSymbolType=8]="ESSymbolType",S[S.Promise=9]="Promise",S[S.TypeWithCallSignature=10]="TypeWithCallSignature",S[S.ObjectType=11]="ObjectType",(x=e.SymbolFlags||(e.SymbolFlags={}))[x.None=0]="None",x[x.FunctionScopedVariable=1]="FunctionScopedVariable",x[x.BlockScopedVariable=2]="BlockScopedVariable",x[x.Property=4]="Property",x[x.EnumMember=8]="EnumMember",x[x.Function=16]="Function",x[x.Class=32]="Class",x[x.Interface=64]="Interface",x[x.ConstEnum=128]="ConstEnum",x[x.RegularEnum=256]="RegularEnum",x[x.ValueModule=512]="ValueModule",x[x.NamespaceModule=1024]="NamespaceModule",x[x.TypeLiteral=2048]="TypeLiteral",x[x.ObjectLiteral=4096]="ObjectLiteral",x[x.Method=8192]="Method",x[x.Constructor=16384]="Constructor",x[x.GetAccessor=32768]="GetAccessor",x[x.SetAccessor=65536]="SetAccessor",x[x.Signature=131072]="Signature",x[x.TypeParameter=262144]="TypeParameter",x[x.TypeAlias=524288]="TypeAlias",x[x.ExportValue=1048576]="ExportValue",x[x.Alias=2097152]="Alias",x[x.Prototype=4194304]="Prototype",x[x.ExportStar=8388608]="ExportStar",x[x.Optional=16777216]="Optional",x[x.Transient=33554432]="Transient",x[x.Assignment=67108864]="Assignment",x[x.ModuleExports=134217728]="ModuleExports",x[x.All=67108863]="All",x[x.Enum=384]="Enum",x[x.Variable=3]="Variable",x[x.Value=111551]="Value",x[x.Type=788968]="Type",x[x.Namespace=1920]="Namespace",x[x.Module=1536]="Module",x[x.Accessor=98304]="Accessor",x[x.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",x[x.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",x[x.ParameterExcludes=111551]="ParameterExcludes",x[x.PropertyExcludes=0]="PropertyExcludes",x[x.EnumMemberExcludes=900095]="EnumMemberExcludes",x[x.FunctionExcludes=110991]="FunctionExcludes",x[x.ClassExcludes=899503]="ClassExcludes",x[x.InterfaceExcludes=788872]="InterfaceExcludes",x[x.RegularEnumExcludes=899327]="RegularEnumExcludes",x[x.ConstEnumExcludes=899967]="ConstEnumExcludes",x[x.ValueModuleExcludes=110735]="ValueModuleExcludes",x[x.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",x[x.MethodExcludes=103359]="MethodExcludes",x[x.GetAccessorExcludes=46015]="GetAccessorExcludes",x[x.SetAccessorExcludes=78783]="SetAccessorExcludes",x[x.TypeParameterExcludes=526824]="TypeParameterExcludes",x[x.TypeAliasExcludes=788968]="TypeAliasExcludes",x[x.AliasExcludes=2097152]="AliasExcludes",x[x.ModuleMember=2623475]="ModuleMember",x[x.ExportHasLocal=944]="ExportHasLocal",x[x.BlockScoped=418]="BlockScoped",x[x.PropertyOrAccessor=98308]="PropertyOrAccessor",x[x.ClassMember=106500]="ClassMember",x[x.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",x[x.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",x[x.Classifiable=2885600]="Classifiable",x[x.LateBindingContainer=6256]="LateBindingContainer",(L=e.EnumKind||(e.EnumKind={}))[L.Numeric=0]="Numeric",L[L.Literal=1]="Literal",(D=e.CheckFlags||(e.CheckFlags={}))[D.Instantiated=1]="Instantiated",D[D.SyntheticProperty=2]="SyntheticProperty",D[D.SyntheticMethod=4]="SyntheticMethod",D[D.Readonly=8]="Readonly",D[D.ReadPartial=16]="ReadPartial",D[D.WritePartial=32]="WritePartial",D[D.HasNonUniformType=64]="HasNonUniformType",D[D.HasLiteralType=128]="HasLiteralType",D[D.ContainsPublic=256]="ContainsPublic",D[D.ContainsProtected=512]="ContainsProtected",D[D.ContainsPrivate=1024]="ContainsPrivate",D[D.ContainsStatic=2048]="ContainsStatic",D[D.Late=4096]="Late",D[D.ReverseMapped=8192]="ReverseMapped",D[D.OptionalParameter=16384]="OptionalParameter",D[D.RestParameter=32768]="RestParameter",D[D.DeferredType=65536]="DeferredType",D[D.HasNeverType=131072]="HasNeverType",D[D.Mapped=262144]="Mapped",D[D.StripOptional=524288]="StripOptional",D[D.Unresolved=1048576]="Unresolved",D[D.Synthetic=6]="Synthetic",D[D.Discriminant=192]="Discriminant",D[D.Partial=48]="Partial",(C=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",C.Constructor="__constructor",C.New="__new",C.Index="__index",C.ExportStar="__export",C.Global="__global",C.Missing="__missing",C.Type="__type",C.Object="__object",C.JSXAttributes="__jsxAttributes",C.Class="__class",C.Function="__function",C.Computed="__computed",C.Resolving="__resolving__",C.ExportEquals="export=",C.Default="default",C.This="this",(A=e.NodeCheckFlags||(e.NodeCheckFlags={}))[A.TypeChecked=1]="TypeChecked",A[A.LexicalThis=2]="LexicalThis",A[A.CaptureThis=4]="CaptureThis",A[A.CaptureNewTarget=8]="CaptureNewTarget",A[A.SuperInstance=256]="SuperInstance",A[A.SuperStatic=512]="SuperStatic",A[A.ContextChecked=1024]="ContextChecked",A[A.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",A[A.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",A[A.CaptureArguments=8192]="CaptureArguments",A[A.EnumValuesComputed=16384]="EnumValuesComputed",A[A.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",A[A.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",A[A.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",A[A.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",A[A.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",A[A.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",A[A.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",A[A.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",A[A.AssignmentsMarked=8388608]="AssignmentsMarked",A[A.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",A[A.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",A[A.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",A[A.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(I=e.TypeFlags||(e.TypeFlags={}))[I.Any=1]="Any",I[I.Unknown=2]="Unknown",I[I.String=4]="String",I[I.Number=8]="Number",I[I.Boolean=16]="Boolean",I[I.Enum=32]="Enum",I[I.BigInt=64]="BigInt",I[I.StringLiteral=128]="StringLiteral",I[I.NumberLiteral=256]="NumberLiteral",I[I.BooleanLiteral=512]="BooleanLiteral",I[I.EnumLiteral=1024]="EnumLiteral",I[I.BigIntLiteral=2048]="BigIntLiteral",I[I.ESSymbol=4096]="ESSymbol",I[I.UniqueESSymbol=8192]="UniqueESSymbol",I[I.Void=16384]="Void",I[I.Undefined=32768]="Undefined",I[I.Null=65536]="Null",I[I.Never=131072]="Never",I[I.TypeParameter=262144]="TypeParameter",I[I.Object=524288]="Object",I[I.Union=1048576]="Union",I[I.Intersection=2097152]="Intersection",I[I.Index=4194304]="Index",I[I.IndexedAccess=8388608]="IndexedAccess",I[I.Conditional=16777216]="Conditional",I[I.Substitution=33554432]="Substitution",I[I.NonPrimitive=67108864]="NonPrimitive",I[I.TemplateLiteral=134217728]="TemplateLiteral",I[I.StringMapping=268435456]="StringMapping",I[I.AnyOrUnknown=3]="AnyOrUnknown",I[I.Nullable=98304]="Nullable",I[I.Literal=2944]="Literal",I[I.Unit=109440]="Unit",I[I.StringOrNumberLiteral=384]="StringOrNumberLiteral",I[I.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",I[I.DefinitelyFalsy=117632]="DefinitelyFalsy",I[I.PossiblyFalsy=117724]="PossiblyFalsy",I[I.Intrinsic=67359327]="Intrinsic",I[I.Primitive=131068]="Primitive",I[I.StringLike=402653316]="StringLike",I[I.NumberLike=296]="NumberLike",I[I.BigIntLike=2112]="BigIntLike",I[I.BooleanLike=528]="BooleanLike",I[I.EnumLike=1056]="EnumLike",I[I.ESSymbolLike=12288]="ESSymbolLike",I[I.VoidLike=49152]="VoidLike",I[I.DisjointDomains=469892092]="DisjointDomains",I[I.UnionOrIntersection=3145728]="UnionOrIntersection",I[I.StructuredType=3670016]="StructuredType",I[I.TypeVariable=8650752]="TypeVariable",I[I.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",I[I.InstantiablePrimitive=406847488]="InstantiablePrimitive",I[I.Instantiable=465829888]="Instantiable",I[I.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",I[I.ObjectFlagsType=3899393]="ObjectFlagsType",I[I.Simplifiable=25165824]="Simplifiable",I[I.Singleton=67358815]="Singleton",I[I.Narrowable=536624127]="Narrowable",I[I.IncludesMask=205258751]="IncludesMask",I[I.IncludesMissingType=262144]="IncludesMissingType",I[I.IncludesNonWideningType=4194304]="IncludesNonWideningType",I[I.IncludesWildcard=8388608]="IncludesWildcard",I[I.IncludesEmptyObject=16777216]="IncludesEmptyObject",I[I.IncludesInstantiable=33554432]="IncludesInstantiable",I[I.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",(k=e.ObjectFlags||(e.ObjectFlags={}))[k.Class=1]="Class",k[k.Interface=2]="Interface",k[k.Reference=4]="Reference",k[k.Tuple=8]="Tuple",k[k.Anonymous=16]="Anonymous",k[k.Mapped=32]="Mapped",k[k.Instantiated=64]="Instantiated",k[k.ObjectLiteral=128]="ObjectLiteral",k[k.EvolvingArray=256]="EvolvingArray",k[k.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",k[k.ReverseMapped=1024]="ReverseMapped",k[k.JsxAttributes=2048]="JsxAttributes",k[k.MarkerType=4096]="MarkerType",k[k.JSLiteral=8192]="JSLiteral",k[k.FreshLiteral=16384]="FreshLiteral",k[k.ArrayLiteral=32768]="ArrayLiteral",k[k.PrimitiveUnion=65536]="PrimitiveUnion",k[k.ContainsWideningType=131072]="ContainsWideningType",k[k.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",k[k.NonInferrableType=524288]="NonInferrableType",k[k.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",k[k.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",k[k.ClassOrInterface=3]="ClassOrInterface",k[k.RequiresWidening=393216]="RequiresWidening",k[k.PropagatingFlags=917504]="PropagatingFlags",k[k.ObjectTypeKindMask=1343]="ObjectTypeKindMask",k[k.ContainsSpread=4194304]="ContainsSpread",k[k.ObjectRestType=8388608]="ObjectRestType",k[k.IsClassInstanceClone=16777216]="IsClassInstanceClone",k[k.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",k[k.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",k[k.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",k[k.IsGenericObjectType=8388608]="IsGenericObjectType",k[k.IsGenericIndexType=16777216]="IsGenericIndexType",k[k.IsGenericType=25165824]="IsGenericType",k[k.ContainsIntersections=33554432]="ContainsIntersections",k[k.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",k[k.IsNeverIntersection=67108864]="IsNeverIntersection",(N=e.VarianceFlags||(e.VarianceFlags={}))[N.Invariant=0]="Invariant",N[N.Covariant=1]="Covariant",N[N.Contravariant=2]="Contravariant",N[N.Bivariant=3]="Bivariant",N[N.Independent=4]="Independent",N[N.VarianceMask=7]="VarianceMask",N[N.Unmeasurable=8]="Unmeasurable",N[N.Unreliable=16]="Unreliable",N[N.AllowsStructuralFallback=24]="AllowsStructuralFallback",(R=e.ElementFlags||(e.ElementFlags={}))[R.Required=1]="Required",R[R.Optional=2]="Optional",R[R.Rest=4]="Rest",R[R.Variadic=8]="Variadic",R[R.Fixed=3]="Fixed",R[R.Variable=12]="Variable",R[R.NonRequired=14]="NonRequired",R[R.NonRest=11]="NonRest",(O=e.AccessFlags||(e.AccessFlags={}))[O.None=0]="None",O[O.IncludeUndefined=1]="IncludeUndefined",O[O.NoIndexSignatures=2]="NoIndexSignatures",O[O.Writing=4]="Writing",O[O.CacheSymbol=8]="CacheSymbol",O[O.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",O[O.ExpressionPosition=32]="ExpressionPosition",O[O.ReportDeprecated=64]="ReportDeprecated",O[O.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",O[O.Contextual=256]="Contextual",O[O.Persistent=1]="Persistent",(w=e.JsxReferenceKind||(e.JsxReferenceKind={}))[w.Component=0]="Component",w[w.Function=1]="Function",w[w.Mixed=2]="Mixed",(M=e.SignatureKind||(e.SignatureKind={}))[M.Call=0]="Call",M[M.Construct=1]="Construct",(P=e.SignatureFlags||(e.SignatureFlags={}))[P.None=0]="None",P[P.HasRestParameter=1]="HasRestParameter",P[P.HasLiteralTypes=2]="HasLiteralTypes",P[P.Abstract=4]="Abstract",P[P.IsInnerCallChain=8]="IsInnerCallChain",P[P.IsOuterCallChain=16]="IsOuterCallChain",P[P.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",P[P.PropagatingFlags=39]="PropagatingFlags",P[P.CallChainFlags=24]="CallChainFlags",(F=e.IndexKind||(e.IndexKind={}))[F.String=0]="String",F[F.Number=1]="Number",(G=e.TypeMapKind||(e.TypeMapKind={}))[G.Simple=0]="Simple",G[G.Array=1]="Array",G[G.Function=2]="Function",G[G.Composite=3]="Composite",G[G.Merged=4]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(U=e.InferenceFlags||(e.InferenceFlags={}))[U.None=0]="None",U[U.NoDefault=1]="NoDefault",U[U.AnyDefault=2]="AnyDefault",U[U.SkippedGenericFunction=4]="SkippedGenericFunction",(V=e.Ternary||(e.Ternary={}))[V.False=0]="False",V[V.Unknown=1]="Unknown",V[V.Maybe=3]="Maybe",V[V.True=-1]="True",(j=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[j.None=0]="None",j[j.ExportsProperty=1]="ExportsProperty",j[j.ModuleExports=2]="ModuleExports",j[j.PrototypeProperty=3]="PrototypeProperty",j[j.ThisProperty=4]="ThisProperty",j[j.Property=5]="Property",j[j.Prototype=6]="Prototype",j[j.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",j[j.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",j[j.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(H=K=e.DiagnosticCategory||(e.DiagnosticCategory={}))[H.Warning=0]="Warning",H[H.Error=1]="Error",H[H.Suggestion=2]="Suggestion",H[H.Message=3]="Message",e.diagnosticCategoryName=function(e,n){void 0===n&&(n=!0);var t=K[e.category];return n?t.toLowerCase():t},(W=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[W.Classic=1]="Classic",W[W.NodeJs=2]="NodeJs",W[W.Node12=3]="Node12",W[W.NodeNext=99]="NodeNext",(z=e.WatchFileKind||(e.WatchFileKind={}))[z.FixedPollingInterval=0]="FixedPollingInterval",z[z.PriorityPollingInterval=1]="PriorityPollingInterval",z[z.DynamicPriorityPolling=2]="DynamicPriorityPolling",z[z.FixedChunkSizePolling=3]="FixedChunkSizePolling",z[z.UseFsEvents=4]="UseFsEvents",z[z.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(J=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[J.UseFsEvents=0]="UseFsEvents",J[J.FixedPollingInterval=1]="FixedPollingInterval",J[J.DynamicPriorityPolling=2]="DynamicPriorityPolling",J[J.FixedChunkSizePolling=3]="FixedChunkSizePolling",(q=e.PollingWatchKind||(e.PollingWatchKind={}))[q.FixedInterval=0]="FixedInterval",q[q.PriorityInterval=1]="PriorityInterval",q[q.DynamicPriority=2]="DynamicPriority",q[q.FixedChunkSize=3]="FixedChunkSize",(X=e.ModuleKind||(e.ModuleKind={}))[X.None=0]="None",X[X.CommonJS=1]="CommonJS",X[X.AMD=2]="AMD",X[X.UMD=3]="UMD",X[X.System=4]="System",X[X.ES2015=5]="ES2015",X[X.ES2020=6]="ES2020",X[X.ES2022=7]="ES2022",X[X.ESNext=99]="ESNext",X[X.Node12=100]="Node12",X[X.NodeNext=199]="NodeNext",(Y=e.JsxEmit||(e.JsxEmit={}))[Y.None=0]="None",Y[Y.Preserve=1]="Preserve",Y[Y.React=2]="React",Y[Y.ReactNative=3]="ReactNative",Y[Y.ReactJSX=4]="ReactJSX",Y[Y.ReactJSXDev=5]="ReactJSXDev",(Q=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[Q.Remove=0]="Remove",Q[Q.Preserve=1]="Preserve",Q[Q.Error=2]="Error",(Z=e.NewLineKind||(e.NewLineKind={}))[Z.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",Z[Z.LineFeed=1]="LineFeed",($=e.ScriptKind||(e.ScriptKind={}))[$.Unknown=0]="Unknown",$[$.JS=1]="JS",$[$.JSX=2]="JSX",$[$.TS=3]="TS",$[$.TSX=4]="TSX",$[$.External=5]="External",$[$.JSON=6]="JSON",$[$.Deferred=7]="Deferred",(ee=e.ScriptTarget||(e.ScriptTarget={}))[ee.ES3=0]="ES3",ee[ee.ES5=1]="ES5",ee[ee.ES2015=2]="ES2015",ee[ee.ES2016=3]="ES2016",ee[ee.ES2017=4]="ES2017",ee[ee.ES2018=5]="ES2018",ee[ee.ES2019=6]="ES2019",ee[ee.ES2020=7]="ES2020",ee[ee.ES2021=8]="ES2021",ee[ee.ESNext=99]="ESNext",ee[ee.JSON=100]="JSON",ee[ee.Latest=99]="Latest",(ne=e.LanguageVariant||(e.LanguageVariant={}))[ne.Standard=0]="Standard",ne[ne.JSX=1]="JSX",(te=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[te.None=0]="None",te[te.Recursive=1]="Recursive",(re=e.CharacterCodes||(e.CharacterCodes={}))[re.nullCharacter=0]="nullCharacter",re[re.maxAsciiCharacter=127]="maxAsciiCharacter",re[re.lineFeed=10]="lineFeed",re[re.carriageReturn=13]="carriageReturn",re[re.lineSeparator=8232]="lineSeparator",re[re.paragraphSeparator=8233]="paragraphSeparator",re[re.nextLine=133]="nextLine",re[re.space=32]="space",re[re.nonBreakingSpace=160]="nonBreakingSpace",re[re.enQuad=8192]="enQuad",re[re.emQuad=8193]="emQuad",re[re.enSpace=8194]="enSpace",re[re.emSpace=8195]="emSpace",re[re.threePerEmSpace=8196]="threePerEmSpace",re[re.fourPerEmSpace=8197]="fourPerEmSpace",re[re.sixPerEmSpace=8198]="sixPerEmSpace",re[re.figureSpace=8199]="figureSpace",re[re.punctuationSpace=8200]="punctuationSpace",re[re.thinSpace=8201]="thinSpace",re[re.hairSpace=8202]="hairSpace",re[re.zeroWidthSpace=8203]="zeroWidthSpace",re[re.narrowNoBreakSpace=8239]="narrowNoBreakSpace",re[re.ideographicSpace=12288]="ideographicSpace",re[re.mathematicalSpace=8287]="mathematicalSpace",re[re.ogham=5760]="ogham",re[re._=95]="_",re[re.$=36]="$",re[re._0=48]="_0",re[re._1=49]="_1",re[re._2=50]="_2",re[re._3=51]="_3",re[re._4=52]="_4",re[re._5=53]="_5",re[re._6=54]="_6",re[re._7=55]="_7",re[re._8=56]="_8",re[re._9=57]="_9",re[re.a=97]="a",re[re.b=98]="b",re[re.c=99]="c",re[re.d=100]="d",re[re.e=101]="e",re[re.f=102]="f",re[re.g=103]="g",re[re.h=104]="h",re[re.i=105]="i",re[re.j=106]="j",re[re.k=107]="k",re[re.l=108]="l",re[re.m=109]="m",re[re.n=110]="n",re[re.o=111]="o",re[re.p=112]="p",re[re.q=113]="q",re[re.r=114]="r",re[re.s=115]="s",re[re.t=116]="t",re[re.u=117]="u",re[re.v=118]="v",re[re.w=119]="w",re[re.x=120]="x",re[re.y=121]="y",re[re.z=122]="z",re[re.A=65]="A",re[re.B=66]="B",re[re.C=67]="C",re[re.D=68]="D",re[re.E=69]="E",re[re.F=70]="F",re[re.G=71]="G",re[re.H=72]="H",re[re.I=73]="I",re[re.J=74]="J",re[re.K=75]="K",re[re.L=76]="L",re[re.M=77]="M",re[re.N=78]="N",re[re.O=79]="O",re[re.P=80]="P",re[re.Q=81]="Q",re[re.R=82]="R",re[re.S=83]="S",re[re.T=84]="T",re[re.U=85]="U",re[re.V=86]="V",re[re.W=87]="W",re[re.X=88]="X",re[re.Y=89]="Y",re[re.Z=90]="Z",re[re.ampersand=38]="ampersand",re[re.asterisk=42]="asterisk",re[re.at=64]="at",re[re.backslash=92]="backslash",re[re.backtick=96]="backtick",re[re.bar=124]="bar",re[re.caret=94]="caret",re[re.closeBrace=125]="closeBrace",re[re.closeBracket=93]="closeBracket",re[re.closeParen=41]="closeParen",re[re.colon=58]="colon",re[re.comma=44]="comma",re[re.dot=46]="dot",re[re.doubleQuote=34]="doubleQuote",re[re.equals=61]="equals",re[re.exclamation=33]="exclamation",re[re.greaterThan=62]="greaterThan",re[re.hash=35]="hash",re[re.lessThan=60]="lessThan",re[re.minus=45]="minus",re[re.openBrace=123]="openBrace",re[re.openBracket=91]="openBracket",re[re.openParen=40]="openParen",re[re.percent=37]="percent",re[re.plus=43]="plus",re[re.question=63]="question",re[re.semicolon=59]="semicolon",re[re.singleQuote=39]="singleQuote",re[re.slash=47]="slash",re[re.tilde=126]="tilde",re[re.backspace=8]="backspace",re[re.formFeed=12]="formFeed",re[re.byteOrderMark=65279]="byteOrderMark",re[re.tab=9]="tab",re[re.verticalTab=11]="verticalTab",(ae=e.Extension||(e.Extension={})).Ts=".ts",ae.Tsx=".tsx",ae.Dts=".d.ts",ae.Js=".js",ae.Jsx=".jsx",ae.Json=".json",ae.TsBuildInfo=".tsbuildinfo",ae.Mjs=".mjs",ae.Mts=".mts",ae.Dmts=".d.mts",ae.Cjs=".cjs",ae.Cts=".cts",ae.Dcts=".d.cts",(ie=e.TransformFlags||(e.TransformFlags={}))[ie.None=0]="None",ie[ie.ContainsTypeScript=1]="ContainsTypeScript",ie[ie.ContainsJsx=2]="ContainsJsx",ie[ie.ContainsESNext=4]="ContainsESNext",ie[ie.ContainsES2021=8]="ContainsES2021",ie[ie.ContainsES2020=16]="ContainsES2020",ie[ie.ContainsES2019=32]="ContainsES2019",ie[ie.ContainsES2018=64]="ContainsES2018",ie[ie.ContainsES2017=128]="ContainsES2017",ie[ie.ContainsES2016=256]="ContainsES2016",ie[ie.ContainsES2015=512]="ContainsES2015",ie[ie.ContainsGenerator=1024]="ContainsGenerator",ie[ie.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",ie[ie.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",ie[ie.ContainsLexicalThis=8192]="ContainsLexicalThis",ie[ie.ContainsRestOrSpread=16384]="ContainsRestOrSpread",ie[ie.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",ie[ie.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",ie[ie.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",ie[ie.ContainsBindingPattern=262144]="ContainsBindingPattern",ie[ie.ContainsYield=524288]="ContainsYield",ie[ie.ContainsAwait=1048576]="ContainsAwait",ie[ie.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",ie[ie.ContainsDynamicImport=4194304]="ContainsDynamicImport",ie[ie.ContainsClassFields=8388608]="ContainsClassFields",ie[ie.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",ie[ie.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",ie[ie.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",ie[ie.HasComputedFlags=536870912]="HasComputedFlags",ie[ie.AssertTypeScript=1]="AssertTypeScript",ie[ie.AssertJsx=2]="AssertJsx",ie[ie.AssertESNext=4]="AssertESNext",ie[ie.AssertES2021=8]="AssertES2021",ie[ie.AssertES2020=16]="AssertES2020",ie[ie.AssertES2019=32]="AssertES2019",ie[ie.AssertES2018=64]="AssertES2018",ie[ie.AssertES2017=128]="AssertES2017",ie[ie.AssertES2016=256]="AssertES2016",ie[ie.AssertES2015=512]="AssertES2015",ie[ie.AssertGenerator=1024]="AssertGenerator",ie[ie.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",ie[ie.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",ie[ie.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",ie[ie.NodeExcludes=536870912]="NodeExcludes",ie[ie.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",ie[ie.FunctionExcludes=591310848]="FunctionExcludes",ie[ie.ConstructorExcludes=591306752]="ConstructorExcludes",ie[ie.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",ie[ie.PropertyExcludes=570433536]="PropertyExcludes",ie[ie.ClassExcludes=536940544]="ClassExcludes",ie[ie.ModuleExcludes=589443072]="ModuleExcludes",ie[ie.TypeExcludes=-2]="TypeExcludes",ie[ie.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",ie[ie.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",ie[ie.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",ie[ie.ParameterExcludes=536870912]="ParameterExcludes",ie[ie.CatchClauseExcludes=536903680]="CatchClauseExcludes",ie[ie.BindingPatternExcludes=536887296]="BindingPatternExcludes",ie[ie.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",ie[ie.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(oe=e.SnippetKind||(e.SnippetKind={}))[oe.TabStop=0]="TabStop",oe[oe.Placeholder=1]="Placeholder",oe[oe.Choice=2]="Choice",oe[oe.Variable=3]="Variable",(se=e.EmitFlags||(e.EmitFlags={}))[se.None=0]="None",se[se.SingleLine=1]="SingleLine",se[se.AdviseOnEmitNode=2]="AdviseOnEmitNode",se[se.NoSubstitution=4]="NoSubstitution",se[se.CapturesThis=8]="CapturesThis",se[se.NoLeadingSourceMap=16]="NoLeadingSourceMap",se[se.NoTrailingSourceMap=32]="NoTrailingSourceMap",se[se.NoSourceMap=48]="NoSourceMap",se[se.NoNestedSourceMaps=64]="NoNestedSourceMaps",se[se.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",se[se.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",se[se.NoTokenSourceMaps=384]="NoTokenSourceMaps",se[se.NoLeadingComments=512]="NoLeadingComments",se[se.NoTrailingComments=1024]="NoTrailingComments",se[se.NoComments=1536]="NoComments",se[se.NoNestedComments=2048]="NoNestedComments",se[se.HelperName=4096]="HelperName",se[se.ExportName=8192]="ExportName",se[se.LocalName=16384]="LocalName",se[se.InternalName=32768]="InternalName",se[se.Indented=65536]="Indented",se[se.NoIndentation=131072]="NoIndentation",se[se.AsyncFunctionBody=262144]="AsyncFunctionBody",se[se.ReuseTempVariableScope=524288]="ReuseTempVariableScope",se[se.CustomPrologue=1048576]="CustomPrologue",se[se.NoHoisting=2097152]="NoHoisting",se[se.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",se[se.Iterator=8388608]="Iterator",se[se.NoAsciiEscaping=16777216]="NoAsciiEscaping",se[se.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",se[se.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",se[se.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",se[se.Immutable=268435456]="Immutable",se[se.IndirectCall=536870912]="IndirectCall",(ce=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[ce.Extends=1]="Extends",ce[ce.Assign=2]="Assign",ce[ce.Rest=4]="Rest",ce[ce.Decorate=8]="Decorate",ce[ce.Metadata=16]="Metadata",ce[ce.Param=32]="Param",ce[ce.Awaiter=64]="Awaiter",ce[ce.Generator=128]="Generator",ce[ce.Values=256]="Values",ce[ce.Read=512]="Read",ce[ce.SpreadArray=1024]="SpreadArray",ce[ce.Await=2048]="Await",ce[ce.AsyncGenerator=4096]="AsyncGenerator",ce[ce.AsyncDelegator=8192]="AsyncDelegator",ce[ce.AsyncValues=16384]="AsyncValues",ce[ce.ExportStar=32768]="ExportStar",ce[ce.ImportStar=65536]="ImportStar",ce[ce.ImportDefault=131072]="ImportDefault",ce[ce.MakeTemplateObject=262144]="MakeTemplateObject",ce[ce.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",ce[ce.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",ce[ce.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",ce[ce.CreateBinding=4194304]="CreateBinding",ce[ce.FirstEmitHelper=1]="FirstEmitHelper",ce[ce.LastEmitHelper=4194304]="LastEmitHelper",ce[ce.ForOfIncludes=256]="ForOfIncludes",ce[ce.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",ce[ce.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",ce[ce.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",ce[ce.SpreadIncludes=1536]="SpreadIncludes",(le=e.EmitHint||(e.EmitHint={}))[le.SourceFile=0]="SourceFile",le[le.Expression=1]="Expression",le[le.IdentifierName=2]="IdentifierName",le[le.MappedTypeParameter=3]="MappedTypeParameter",le[le.Unspecified=4]="Unspecified",le[le.EmbeddedStatement=5]="EmbeddedStatement",le[le.JsxAttributeValue=6]="JsxAttributeValue",(ue=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[ue.Parentheses=1]="Parentheses",ue[ue.TypeAssertions=2]="TypeAssertions",ue[ue.NonNullAssertions=4]="NonNullAssertions",ue[ue.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",ue[ue.Assertions=6]="Assertions",ue[ue.All=15]="All",ue[ue.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(de=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[de.None=0]="None",de[de.InParameters=1]="InParameters",de[de.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(pe=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",pe.EmitHelpers="emitHelpers",pe.NoDefaultLib="no-default-lib",pe.Reference="reference",pe.Type="type",pe.Lib="lib",pe.Prepend="prepend",pe.Text="text",pe.Internal="internal",(fe=e.ListFormat||(e.ListFormat={}))[fe.None=0]="None",fe[fe.SingleLine=0]="SingleLine",fe[fe.MultiLine=1]="MultiLine",fe[fe.PreserveLines=2]="PreserveLines",fe[fe.LinesMask=3]="LinesMask",fe[fe.NotDelimited=0]="NotDelimited",fe[fe.BarDelimited=4]="BarDelimited",fe[fe.AmpersandDelimited=8]="AmpersandDelimited",fe[fe.CommaDelimited=16]="CommaDelimited",fe[fe.AsteriskDelimited=32]="AsteriskDelimited",fe[fe.DelimitersMask=60]="DelimitersMask",fe[fe.AllowTrailingComma=64]="AllowTrailingComma",fe[fe.Indented=128]="Indented",fe[fe.SpaceBetweenBraces=256]="SpaceBetweenBraces",fe[fe.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",fe[fe.Braces=1024]="Braces",fe[fe.Parenthesis=2048]="Parenthesis",fe[fe.AngleBrackets=4096]="AngleBrackets",fe[fe.SquareBrackets=8192]="SquareBrackets",fe[fe.BracketsMask=15360]="BracketsMask",fe[fe.OptionalIfUndefined=16384]="OptionalIfUndefined",fe[fe.OptionalIfEmpty=32768]="OptionalIfEmpty",fe[fe.Optional=49152]="Optional",fe[fe.PreferNewLine=65536]="PreferNewLine",fe[fe.NoTrailingNewLine=131072]="NoTrailingNewLine",fe[fe.NoInterveningComments=262144]="NoInterveningComments",fe[fe.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",fe[fe.SingleElement=1048576]="SingleElement",fe[fe.SpaceAfterList=2097152]="SpaceAfterList",fe[fe.Modifiers=262656]="Modifiers",fe[fe.HeritageClauses=512]="HeritageClauses",fe[fe.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",fe[fe.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",fe[fe.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",fe[fe.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",fe[fe.UnionTypeConstituents=516]="UnionTypeConstituents",fe[fe.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",fe[fe.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",fe[fe.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",fe[fe.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",fe[fe.ImportClauseEntries=526226]="ImportClauseEntries",fe[fe.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",fe[fe.CommaListElements=528]="CommaListElements",fe[fe.CallExpressionArguments=2576]="CallExpressionArguments",fe[fe.NewExpressionArguments=18960]="NewExpressionArguments",fe[fe.TemplateExpressionSpans=262144]="TemplateExpressionSpans",fe[fe.SingleLineBlockStatements=768]="SingleLineBlockStatements",fe[fe.MultiLineBlockStatements=129]="MultiLineBlockStatements",fe[fe.VariableDeclarationList=528]="VariableDeclarationList",fe[fe.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",fe[fe.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",fe[fe.ClassHeritageClauses=0]="ClassHeritageClauses",fe[fe.ClassMembers=129]="ClassMembers",fe[fe.InterfaceMembers=129]="InterfaceMembers",fe[fe.EnumMembers=145]="EnumMembers",fe[fe.CaseBlockClauses=129]="CaseBlockClauses",fe[fe.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",fe[fe.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",fe[fe.JsxElementAttributes=262656]="JsxElementAttributes",fe[fe.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",fe[fe.HeritageClauseTypes=528]="HeritageClauseTypes",fe[fe.SourceFileStatements=131073]="SourceFileStatements",fe[fe.Decorators=2146305]="Decorators",fe[fe.TypeArguments=53776]="TypeArguments",fe[fe.TypeParameters=53776]="TypeParameters",fe[fe.Parameters=2576]="Parameters",fe[fe.IndexSignatureParameters=8848]="IndexSignatureParameters",fe[fe.JSDocComment=33]="JSDocComment",(me=e.PragmaKindFlags||(e.PragmaKindFlags={}))[me.None=0]="None",me[me.TripleSlashXML=1]="TripleSlashXML",me[me.SingleLine=2]="SingleLine",me[me.MultiLine=4]="MultiLine",me[me.All=7]="All",me[me.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],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}}}(ha||(ha={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var n=/\\/g;function t(e){return 47===e||92===e}function r(e){return l(e)>0}function a(e){return 0!==l(e)}function i(e){return/^\.\.?($|[\\/])/.test(e)}function o(n,t){return n.length>t.length&&e.endsWith(n,t)}function s(e){return e.length>0&&t(e.charCodeAt(e.length-1))}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(n){if(!n)return 0;var t=n.charCodeAt(0);if(47===t||92===t){if(n.charCodeAt(1)!==t)return 1;var r=n.indexOf(47===t?e.directorySeparator:e.altDirectorySeparator,2);return r<0?n.length:r+1}if(c(t)&&58===n.charCodeAt(1)){var a=n.charCodeAt(2);if(47===a||92===a)return 3;if(2===n.length)return 2}var i=n.indexOf("://");if(-1!==i){var o=i+"://".length,s=n.indexOf(e.directorySeparator,o);if(-1!==s){var l=n.slice(0,i),u=n.slice(o,s);if("file"===l&&(""===u||"localhost"===u)&&c(n.charCodeAt(s+1))){var d=function(e,n){var t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){var r=e.charCodeAt(n+2);if(97===r||65===r)return n+3}return-1}(n,s+2);if(-1!==d){if(47===n.charCodeAt(d))return~(d+1);if(d===n.length)return~d}}return~(s+1)}return~n.length}return 0}function u(e){var n=l(e);return n<0?~n:n}function d(n){var t=u(n=y(n));return t===n.length?n:(n=x(n)).slice(0,Math.max(t,n.lastIndexOf(e.directorySeparator)))}function p(n,t,r){if(u(n=y(n))===n.length)return"";var a=(n=x(n)).slice(Math.max(u(n),n.lastIndexOf(e.directorySeparator)+1)),i=void 0!==t&&void 0!==r?m(a,t,r):void 0;return i?a.slice(0,a.length-i.length):a}function f(n,t,r){if(e.startsWith(t,".")||(t="."+t),n.length>=t.length&&46===n.charCodeAt(n.length-t.length)){var a=n.slice(n.length-t.length);if(r(a,t))return a}}function m(n,t,r){if(t)return function(e,n,t){if("string"===typeof n)return f(e,n,t)||"";for(var r=0,a=n;r<a.length;r++){var i=f(e,a[r],t);if(i)return i}return""}(x(n),t,r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=p(n),i=a.lastIndexOf(".");return i>=0?a.substring(i):""}function _(n,t){return void 0===t&&(t=""),function(n,t){var r=n.substring(0,t),a=n.substring(t).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),pa([r],a,!0)}(n=v(t,n),u(n))}function g(n){return 0===n.length?"":(n[0]&&L(n[0]))+n.slice(1).join(e.directorySeparator)}function y(t){var r=t.indexOf("\\");return-1===r?t:(n.lastIndex=r,t.replace(n,e.directorySeparator))}function h(n){if(!e.some(n))return[];for(var t=[n[0]],r=1;r<n.length;r++){var a=n[r];if(a&&"."!==a){if(".."===a)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(a)}}return t}function v(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&(e=y(e));for(var r=0,a=n;r<a.length;r++){var i=a[r];i&&(i=y(i),e=e&&0===u(i)?L(e)+i:i)}return e}function b(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return S(e.some(t)?v.apply(void 0,pa([n],t,!1)):y(n))}function E(e,n){return h(_(e,n))}function T(e,n){return g(E(e,n))}function S(e){if(e=y(e),!C.test(e))return e;var n=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(n!==e&&(e=n,!C.test(e)))return e;var t=g(h(_(e)));return t&&s(e)?L(t):t}function x(e){return s(e)?e.substr(0,e.length-1):e}function L(n){return s(n)?n:n+e.directorySeparator}function D(e){return a(e)||i(e)?e:"./"+e}e.isAnyDirectorySeparator=t,e.isUrl=function(e){return l(e)<0},e.isRootedDiskPath=r,e.isDiskPathRoot=function(e){var n=l(e);return n>0&&n===e.length},e.pathIsAbsolute=a,e.pathIsRelative=i,e.pathIsBareSpecifier=function(e){return!a(e)&&!i(e)},e.hasExtension=function(n){return e.stringContains(p(n),".")},e.fileExtensionIs=o,e.fileExtensionIsOneOf=function(e,n){for(var t=0,r=n;t<r.length;t++){if(o(e,r[t]))return!0}return!1},e.hasTrailingDirectorySeparator=s,e.getRootLength=u,e.getDirectoryPath=d,e.getBaseFileName=p,e.getAnyExtensionFromPath=m,e.getPathComponents=_,e.getPathFromPathComponents=g,e.normalizeSlashes=y,e.reducePathComponents=h,e.combinePaths=v,e.resolvePath=b,e.getNormalizedPathComponents=E,e.getNormalizedAbsolutePath=T,e.normalizePath=S,e.getNormalizedAbsolutePathWithoutRoot=function(n,t){return 0===(r=E(n,t)).length?"":r.slice(1).join(e.directorySeparator);var r},e.toPath=function(e,n,t){return t(r(e)?S(e):T(e,n))},e.normalizePathAndParts=function(n){var t=h(_(n=y(n))),r=t[0],a=t.slice(1);if(a.length){var i=r+a.join(e.directorySeparator);return{path:s(n)?L(i):i,parts:a}}return{path:r,parts:a}},e.removeTrailingDirectorySeparator=x,e.ensureTrailingDirectorySeparator=L,e.ensurePathIsNonModuleName=D,e.changeAnyExtension=function(n,t,r,a){var i=void 0!==r&&void 0!==a?m(n,r,a):m(n);return i?n.slice(0,n.length-i.length)+(e.startsWith(t,".")?t:"."+t):n};var C=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function A(n,t,r){if(n===t)return 0;if(void 0===n)return-1;if(void 0===t)return 1;var a=n.substring(0,u(n)),i=t.substring(0,u(t)),o=e.compareStringsCaseInsensitive(a,i);if(0!==o)return o;var s=n.substring(a.length),c=t.substring(i.length);if(!C.test(s)&&!C.test(c))return r(s,c);for(var l=h(_(n)),d=h(_(t)),p=Math.min(l.length,d.length),f=1;f<p;f++){var m=r(l[f],d[f]);if(0!==m)return m}return e.compareValues(l.length,d.length)}function I(n,t,r,a){var i,o=h(_(n)),s=h(_(t));for(i=0;i<o.length&&i<s.length;i++){var c=a(o[i]),l=a(s[i]);if(!(0===i?e.equateStringsCaseInsensitive:r)(c,l))break}if(0===i)return s;for(var u=s.slice(i),d=[];i<o.length;i++)d.push("..");return pa(pa([""],d,!0),u,!0)}function k(n,t,r){e.Debug.assert(u(n)>0===u(t)>0,"Paths must either both be absolute or both be relative");var a="function"===typeof r?r:e.identity;return g(I(n,t,"boolean"===typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a))}function N(n,t,a,i,o){var s=I(b(a,n),b(a,t),e.equateStringsCaseSensitive,i),c=s[0];if(o&&r(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return g(s)}e.comparePathsCaseSensitive=function(n,t){return A(n,t,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(n,t){return A(n,t,e.compareStringsCaseInsensitive)},e.comparePaths=function(n,t,r,a){return"string"===typeof r?(n=v(r,n),t=v(r,t)):"boolean"===typeof r&&(a=r),A(n,t,e.getStringComparer(a))},e.containsPath=function(n,t,r,a){if("string"===typeof r?(n=v(r,n),t=v(r,t)):"boolean"===typeof r&&(a=r),void 0===n||void 0===t)return!1;if(n===t)return!0;var i=h(_(n)),o=h(_(t));if(o.length<i.length)return!1;for(var s=a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<i.length;c++){if(!(0===c?e.equateStringsCaseInsensitive:s)(i[c],o[c]))return!1}return!0},e.startsWithDirectory=function(n,t,r){var a=r(n),i=r(t);return e.startsWith(a,i+"/")||e.startsWith(a,i+"\\")},e.getPathComponentsRelativeTo=I,e.getRelativePathFromDirectory=k,e.convertToRelativePath=function(e,n,t){return r(e)?N(n,e,n,t,!1):e},e.getRelativePathFromFile=function(e,n,t){return D(k(d(e),n,t))},e.getRelativePathToDirectoryOrUrl=N,e.forEachAncestorDirectory=function(e,n){for(;;){var t=n(e);if(void 0!==t)return t;var r=d(e);if(r===e)return;e=r}},e.isNodeModulesDirectory=function(n){return e.endsWith(n,"/node_modules")}}(ha||(ha={})),function(e){var n,t,r,a;function i(n,t){return n.getModifiedTime(t)||e.missingFileModifiedTime}function o(e){var n;return(n={})[r.Low]=e.Low,n[r.Medium]=e.Medium,n[r.High]=e.High,n}e.generateDjb2Hash=function(e){for(var n=5381,t=0;t<e.length;t++)n=(n<<5)+n+e.charCodeAt(t);return n.toString()},e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(t=n=e.FileWatcherEventKind||(e.FileWatcherEventKind={}))[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",(a=r=e.PollingInterval||(e.PollingInterval={}))[a.High=2e3]="High",a[a.Medium=500]="Medium",a[a.Low=250]="Low",e.missingFileModifiedTime=new Date(0),e.getModifiedTime=i;var s,c={Low:32,Medium:64,High:256},l=o(c);function u(n){if(n.getEnvironmentVariable){var t=function(e,n){var t=a(e);if(t)return r("Low"),r("Medium"),r("High"),!0;return!1;function r(e){n[e]=t[e]||n[e]}}("TSC_WATCH_POLLINGINTERVAL",r);l=i("TSC_WATCH_POLLINGCHUNKSIZE",c)||l,e.unchangedPollThresholds=i("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",c)||e.unchangedPollThresholds}function a(e){var t;return r("Low"),r("Medium"),r("High"),t;function r(r){var a=function(e,t){return n.getEnvironmentVariable("".concat(e,"_").concat(t.toUpperCase()))}(e,r);a&&((t||(t={}))[r]=Number(a))}}function i(e,n){var r=a(e);return(t||r)&&o(r?fa(fa({},n),r):n)}}function d(e,n,t,r,a){for(var o=t,s=n.length;r&&s;u(),s--){var c=n[t];if(c)if(c.isClosed)n[t]=void 0;else{r--;var l=m(c,i(e,c.fileName));c.isClosed?n[t]=void 0:(null===a||void 0===a||a(c,t,l),n[t]&&(o<t&&(n[o]=c,n[t]=void 0),o++))}}return t;function u(){++t===n.length&&(o<t&&(n.length=o),t=0,o=0)}}function p(n){var t=[],a=[],o=u(r.Low),s=u(r.Medium),c=u(r.High);return function(r,a,o){var s={fileName:r,callback:a,unchangedPolls:0,mtime:i(n,r)};return t.push(s),g(s,o),{close:function(){s.isClosed=!0,e.unorderedRemoveItem(t,s)}}};function u(e){var n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function p(n){n.pollIndex=m(n,n.pollingInterval,n.pollIndex,l[n.pollingInterval]),n.length?h(n.pollingInterval):(e.Debug.assert(0===n.pollIndex),n.pollScheduled=!1)}function f(e){m(a,r.Low,0,a.length),p(e),!e.pollScheduled&&a.length&&h(r.Low)}function m(t,i,o,s){return d(n,t,o,s,(function(n,o,s){s?(n.unchangedPolls=0,t!==a&&(t[o]=void 0,c=n,a.push(c),y(r.Low))):n.unchangedPolls!==e.unchangedPollThresholds[i]?n.unchangedPolls++:t===a?(n.unchangedPolls=1,t[o]=void 0,g(n,r.Low)):i!==r.High&&(n.unchangedPolls++,t[o]=void 0,g(n,i===r.Low?r.Medium:r.High));var c}))}function _(e){switch(e){case r.Low:return o;case r.Medium:return s;case r.High:return c}}function g(e,n){_(n).push(e),y(n)}function y(e){_(e).pollScheduled||h(e)}function h(e){_(e).pollScheduled=n.setTimeout(e===r.Low?f:p,e,_(e))}}function f(t,a){var i=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(a);return function(a,c,l,u){var d=s(a);i.add(d,c);var p=e.getDirectoryPath(d)||".",f=o.get(p)||function(a,c,l){var u=t(a,1,(function(t,r){if(e.isString(r)){var o=e.getNormalizedAbsolutePath(r,a),c=o&&i.get(s(o));if(c)for(var l=0,u=c;l<u.length;l++){(0,u[l])(o,n.Changed)}}}),!1,r.Medium,l);return u.referenceCount=0,o.set(c,u),u}(e.getDirectoryPath(a)||".",p,u);return f.referenceCount++,{close:function(){1===f.referenceCount?(f.close(),o.delete(p)):f.referenceCount--,i.remove(d,c)}}}}function m(e,n){var t=e.mtime.getTime(),r=n.getTime();return t!==r&&(e.mtime=n,e.callback(e.fileName,_(t,r)),!0)}function _(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}function g(n){var t,r=n.watchDirectory,a=n.useCaseSensitiveFileNames,i=n.getCurrentDirectory,o=n.getAccessibleSortedChildDirectories,s=n.directoryExists,c=n.realpath,l=n.setTimeout,u=n.clearTimeout,d=new e.Map,p=e.createMultiMap(),f=new e.Map,m=e.getStringComparer(!a),_=e.createGetCanonicalFileName(a);return function(e,n,t,a){return t?g(e,a,n):r(e,n,t,a)};function g(n,a,i){var o=_(n),c=d.get(o);c?c.refCount++:(c={watcher:r(n,(function(e){T(e,a)||((null===a||void 0===a?void 0:a.synchronousWatchDirectory)?(h(o,e),E(n,o,a)):function(e,n,r,a){var i=d.get(n);if(i&&s(e))return void function(e,n,r,a){var i=f.get(n);i?i.fileNames.push(r):f.set(n,{dirName:e,options:a,fileNames:[r]});t&&(u(t),t=void 0);t=l(v,1e3)}(e,n,r,a);h(n,r),b(i)}(n,o,e,a))}),!1,a),refCount:1,childWatches:e.emptyArray},d.set(o,c),E(n,o,a));var m=i&&{dirName:n,callback:i};return m&&p.add(o,m),{dirName:n,close:function(){var n=e.Debug.checkDefined(d.get(o));m&&p.remove(o,m),n.refCount--,n.refCount||(d.delete(o),e.closeFileWatcherOf(n),n.childWatches.forEach(e.closeFileWatcher))}}}function h(n,t,r){var a,i;e.isString(t)?a=t:i=t,p.forEach((function(t,o){var s;if((!i||!0!==i.get(o))&&(o===n||e.startsWith(n,o)&&n[o.length]===e.directorySeparator))if(i)if(r){var c=i.get(o);c?(s=c).push.apply(s,r):i.set(o,r.slice())}else i.set(o,!0);else t.forEach((function(e){return(0,e.callback)(a)}))}))}function v(){t=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(f.size));for(var n=e.timestamp(),r=new e.Map;!t&&f.size;){var a=f.entries().next();e.Debug.assert(!a.done);var i=a.value,o=i[0],s=i[1],c=s.dirName,l=s.options,u=s.fileNames;f.delete(o);var d=E(c,o,l);h(o,r,d?void 0:u)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-n,"ms:: ").concat(f.size)),p.forEach((function(n,t){var a=r.get(t);a&&n.forEach((function(n){var t=n.callback,r=n.dirName;e.isArray(a)?a.forEach(t):t(r)}))}));var m=e.timestamp()-n;e.sysLog("sysLog:: Elapsed:: ".concat(m,"ms:: onTimerToUpdateChildWatches:: ").concat(f.size," ").concat(t))}function b(n){if(n){var t=n.childWatches;n.childWatches=e.emptyArray;for(var r=0,a=t;r<a.length;r++){var i=a[r];i.close(),b(d.get(_(i.dirName)))}}}function E(n,t,r){var a,i=d.get(t);if(!i)return!1;var l=e.enumerateInsertsAndDeletes(s(n)?e.mapDefined(o(n),(function(t){var a=e.getNormalizedAbsolutePath(t,n);return T(a,r)||0!==m(a,e.normalizePath(c(a)))?void 0:a})):e.emptyArray,i.childWatches,(function(e,n){return m(e,n.dirName)}),(function(e){u(g(e,r))}),e.closeFileWatcher,u);return i.childWatches=a||e.emptyArray,l;function u(e){(a||(a=[])).push(e)}}function T(n,t){return e.some(e.ignoredPaths,(function(t){return function(n,t){return!!e.stringContains(n,t)||!a&&e.stringContains(_(n),t)}(n,t)}))||y(n,t,a,i)}}function y(n,t,r,a){return((null===t||void 0===t?void 0:t.excludeDirectories)||(null===t||void 0===t?void 0:t.excludeFiles))&&(e.matchesExclude(n,null===t||void 0===t?void 0:t.excludeFiles,r,a())||e.matchesExclude(n,null===t||void 0===t?void 0:t.excludeDirectories,r,a()))}function h(n,t,r,a,i){return function(o,s){if("rename"===o){var c=s?e.normalizePath(e.combinePaths(n,s)):n;s&&y(c,r,a,i)||t(c)}}}e.unchangedPollThresholds=o(c),e.setCustomPollingValues=u,e.createDynamicPriorityPollingWatchFile=p,e.createSingleFileWatcherPerName=function(n,t){var r=new e.Map,a=e.createMultiMap(),i=e.createGetCanonicalFileName(t);return function(t,o,s,c){var l=i(t),u=r.get(l);return u?u.refCount++:r.set(l,{watcher:n(t,(function(n,t){return e.forEach(a.get(l),(function(e){return e(n,t)}))}),s,c),refCount:1}),a.add(l,o),{close:function(){var n=e.Debug.checkDefined(r.get(l));a.remove(l,o),n.refCount--,n.refCount||(r.delete(l),e.closeFileWatcherOf(n))}}}},e.onWatchedFileStat=m,e.getFileWatcherEventKind=_,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=function(n){e.sysLog=n},e.createDirectoryWatcherSupportingRecursive=g,(s=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[s.File=0]="File",s[s.Directory=1]="Directory",e.createFileWatcherCallback=function(e){return function(t,r){return e(r===n.Changed?"change":"rename","")}},e.createSystemWatchFunctions=function(t){var a,o,s,c,u=t.pollingWatchFile,m=t.getModifiedTime,_=t.setTimeout,y=t.clearTimeout,v=t.fsWatch,b=t.fileExists,E=t.useCaseSensitiveFileNames,T=t.getCurrentDirectory,S=t.fsSupportsRecursiveFsWatch,x=t.directoryExists,L=t.getAccessibleSortedChildDirectories,D=t.realpath,C=t.tscWatchFile,A=t.useNonPollingWatchers,I=t.tscWatchDirectory,k=t.defaultWatchFileKind;return{watchFile:function(t,a,i,o){o=function(n,t){if(n&&void 0!==n.watchFile)return n;switch(C){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return O(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,n);case"UseFsEventsWithFallbackDynamicPolling":return O(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,n);case"UseFsEventsOnParentDirectory":t=!0;default:return t?O(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,n):{watchFile:(null===k||void 0===k?void 0:k())||e.WatchFileKind.FixedPollingInterval}}}(o,A);var c=e.Debug.checkDefined(o.watchFile);switch(c){case e.WatchFileKind.FixedPollingInterval:return u(t,a,r.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return u(t,a,i,void 0);case e.WatchFileKind.DynamicPriorityPolling:return N()(t,a,i,void 0);case e.WatchFileKind.FixedChunkSizePolling:return R()(t,a,void 0,void 0);case e.WatchFileKind.UseFsEvents:return v(t,0,function(e,t,r){return function(a){t(e,"rename"===a?r(e)?n.Created:n.Deleted:n.Changed)}}(t,a,b),!1,i,e.getFallbackOptions(o));case e.WatchFileKind.UseFsEventsOnParentDirectory:return s||(s=f(v,E)),s(t,a,i,e.getFallbackOptions(o));default:e.Debug.assertNever(c)}},watchDirectory:function(n,t,a,i){if(S)return v(n,1,h(n,t,i,E,T),a,r.Medium,e.getFallbackOptions(i));c||(c=g({useCaseSensitiveFileNames:E,getCurrentDirectory:T,directoryExists:x,getAccessibleSortedChildDirectories:L,watchDirectory:w,realpath:D,setTimeout:_,clearTimeout:y}));return c(n,t,a,i)}};function N(){return a||(a=p({getModifiedTime:m,setTimeout:_}))}function R(){return o||(o=function(n){var t,a=[],o=0;return function(t,r){var o={fileName:t,callback:r,mtime:i(n,t)};return a.push(o),c(),{close:function(){o.isClosed=!0,e.unorderedRemoveItem(a,o)}}};function s(){t=void 0,o=d(n,a,o,l[r.Low]),c()}function c(){a.length&&!t&&(t=n.setTimeout(s,r.High))}}({getModifiedTime:m,setTimeout:_}))}function O(e,n,t){var r=null===t||void 0===t?void 0:t.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?n:r}}function w(n,t,a,i){e.Debug.assert(!a);var o=function(n){if(n&&void 0!==n.watchDirectory)return n;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var t=null===n||void 0===n?void 0:n.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==t?t:void 0}}}(i),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return u(n,(function(){return t(n)}),r.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return N()(n,(function(){return t(n)}),r.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return R()(n,(function(){return t(n)}),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return v(n,1,h(n,t,i,E,T),a,r.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}},e.patchWriteFileEnsuringDirectory=function(n){var t=n.writeFile;n.writeFile=function(r,a,i){return e.writeFileEnsuringDirectories(r,a,!!i,(function(e,r,a){return t.call(n,e,r,a)}),(function(e){return n.createDirectory(e)}),(function(e){return n.directoryExists(e)}))}},e.getNodeMajorVersion=function(){if("undefined"!==typeof process){var e=process.version;if(e){var n=e.indexOf(".");if(-1!==n)return parseInt(e.substring(1,n))}}},e.sys=void 0,e.setSys=function(n){e.sys=n},e.sys&&e.sys.getEnvironmentVariable&&(u(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(ha||(ha={})),function(e){function n(e,n,t,r,a,i,o){return{code:e,category:n,key:t,message:r,reportsUnnecessary:a,elidedInCompatabilityPyramid:i,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:n(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:n(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:n(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:n(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:n(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:n(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:n(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:n(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:n(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:n(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:n(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:n(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:n(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:n(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:n(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:n(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:n(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:n(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:n(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:n(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:n(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:n(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:n(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:n(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:n(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:n(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:n(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:n(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:n(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:n(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:n(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:n(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:n(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:n(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:n(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:n(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:n(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:n(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:n(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:n(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:n(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:n(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:n(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:n(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:n(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:n(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:n(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:n(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:n(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:n(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:n(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:n(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:n(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:n(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:n(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:n(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:n(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:n(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:n(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:n(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:n(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:n(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:n(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:n(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:n(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:n(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:n(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:n(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:n(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:n(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:n(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:n(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:n(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:n(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:n(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:n(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:n(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:n(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:n(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:n(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:n(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:n(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:n(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:n(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:n(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:n(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:n(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:n(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:n(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:n(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:n(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:n(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:n(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:n(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:n(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:n(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:n(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:n(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:n(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:n(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:n(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:n(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:n(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),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:n(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:n(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:n(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:n(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:n(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:n(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:n(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:n(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:n(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:n(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:n(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:n(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:n(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:n(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:n(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:n(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:n(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:n(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:n(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:n(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:n(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:n(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:n(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:n(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:n(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:n(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:n(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:n(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:n(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:n(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:n(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:n(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:n(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:n(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:n(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:n(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:n(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:n(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:n(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:n(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:n(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:n(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:n(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:n(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:n(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:n(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:n(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:n(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:n(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block:n(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:n(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),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:n(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:n(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:n(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:n(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:n(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:n(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:n(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:n(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:n(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext:n(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext:n(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext'."),Argument_of_dynamic_import_cannot_be_spread_element:n(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:n(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:n(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:n(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:n(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:n(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:n(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:n(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:n(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:n(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:n(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:n(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:n(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:n(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:n(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:n(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:n(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:n(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:n(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:n(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:n(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:n(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:n(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:n(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:n(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:n(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:n(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:n(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:n(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:n(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:n(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:n(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:n(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:n(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:n(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:n(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:n(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:n(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:n(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:n(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:n(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:n(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:n(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:n(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:n(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:n(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:n(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:n(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:n(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:n(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:n(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:n(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:n(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:n(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:n(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:n(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:n(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:n(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:n(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:n(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:n(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:n(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:n(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:n(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:n(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:n(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:n(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:n(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:n(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:n(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:n(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:n(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:n(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:n(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:n(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:n(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:n(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:n(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:n(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:n(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:n(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:n(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:n(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:n(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:n(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:n(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:n(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:n(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:n(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:n(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:n(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:n(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:n(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:n(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:n(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:n(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:n(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:n(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:n(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:n(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:n(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:n(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:n(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:n(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:n(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:n(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),The_types_of_0_are_incompatible_between_these_types:n(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:n(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:n(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:n(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:n(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:n(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:n(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:n(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),Duplicate_identifier_0:n(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:n(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:n(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:n(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:n(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:n(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:n(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:n(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:n(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:n(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:n(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:n(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:n(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:n(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:n(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:n(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:n(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:n(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:n(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:n(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:n(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:n(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:n(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:n(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:n(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:n(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:n(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:n(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:n(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:n(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:n(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:n(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:n(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:n(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:n(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:n(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:n(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:n(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:n(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:n(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:n(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:n(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:n(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:n(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:n(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:n(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:n(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:n(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:n(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:n(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:n(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:n(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol:n(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:n(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:n(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:n(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:n(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:n(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:n(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:n(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:n(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:n(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:n(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:n(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:n(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:n(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:n(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:n(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:n(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:n(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:n(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:n(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:n(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:n(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:n(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:n(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:n(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:n(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:n(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:n(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:n(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:n(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:n(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:n(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:n(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:n(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:n(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:n(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:n(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:n(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:n(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:n(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:n(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:n(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:n(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:n(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:n(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:n(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:n(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:n(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:n(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:n(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:n(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:n(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:n(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:n(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:n(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:n(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:n(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:n(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:n(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:n(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:n(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:n(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:n(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:n(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:n(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:n(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:n(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:n(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:n(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:n(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:n(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:n(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:n(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:n(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:n(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:n(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:n(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:n(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:n(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:n(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:n(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:n(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:n(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:n(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:n(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:n(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:n(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:n(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:n(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:n(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:n(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:n(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:n(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:n(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:n(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:n(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:n(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:n(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:n(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:n(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:n(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:n(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:n(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:n(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:n(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:n(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:n(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:n(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:n(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:n(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:n(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:n(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:n(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:n(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:n(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:n(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:n(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:n(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:n(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:n(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:n(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:n(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:n(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:n(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:n(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:n(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:n(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:n(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:n(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:n(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:n(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:n(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:n(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:n(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:n(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:n(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:n(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:n(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:n(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:n(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:n(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:n(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:n(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:n(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:n(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:n(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:n(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:n(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:n(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:n(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:n(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:n(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:n(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:n(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:n(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:n(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:n(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:n(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:n(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:n(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:n(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:n(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:n(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:n(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:n(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:n(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:n(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:n(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:n(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:n(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:n(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:n(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:n(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:n(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:n(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using '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:n(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:n(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:n(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:n(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:n(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:n(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:n(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:n(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:n(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:n(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:n(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:n(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:n(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:n(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:n(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:n(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:n(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:n(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:n(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:n(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:n(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:n(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:n(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:n(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:n(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:n(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:n(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:n(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:n(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:n(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:n(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:n(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:n(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:n(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:n(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:n(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:n(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:n(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:n(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:n(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:n(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:n(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:n(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:n(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:n(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:n(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:n(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:n(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:n(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:n(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:n(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:n(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:n(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:n(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:n(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:n(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:n(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:n(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:n(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:n(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:n(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:n(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:n(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:n(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:n(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:n(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:n(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:n(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:n(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:n(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:n(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:n(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:n(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:n(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:n(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:n(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:n(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:n(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:n(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:n(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:n(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:n(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:n(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:n(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:n(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:n(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:n(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:n(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:n(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:n(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:n(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:n(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:n(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:n(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:n(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:n(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:n(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:n(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:n(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:n(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:n(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:n(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:n(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:n(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:n(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:n(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:n(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:n(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:n(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:n(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:n(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:n(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:n(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:n(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:n(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:n(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:n(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:n(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:n(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:n(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:n(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:n(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:n(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:n(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:n(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:n(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:n(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:n(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:n(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:n(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:n(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:n(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:n(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:n(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:n(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:n(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:n(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:n(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:n(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:n(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:n(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:n(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:n(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:n(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:n(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:n(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:n(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:n(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:n(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:n(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:n(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:n(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:n(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:n(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:n(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:n(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:n(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:n(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:n(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:n(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:n(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:n(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:n(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:n(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:n(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:n(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:n(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:n(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:n(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:n(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:n(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:n(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:n(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:n(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:n(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:n(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:n(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:n(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:n(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:n(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:n(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:n(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:n(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:n(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:n(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:n(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:n(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext:n(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821","Import assertions are only supported when the '--module' option is set to 'esnext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:n(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:n(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:n(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:n(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_declaration_0_is_using_private_name_1:n(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:n(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:n(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:n(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:n(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:n(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:n(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:n(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:n(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:n(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:n(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:n(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:n(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:n(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:n(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:n(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:n(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:n(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:n(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:n(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:n(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:n(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:n(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:n(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:n(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:n(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:n(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:n(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:n(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:n(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:n(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:n(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:n(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:n(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:n(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:n(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:n(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:n(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:n(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:n(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:n(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:n(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:n(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:n(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:n(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:n(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:n(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:n(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:n(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:n(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:n(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:n(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:n(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:n(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:n(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:n(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:n(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:n(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:n(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:n(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:n(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:n(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:n(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:n(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:n(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:n(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:n(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:n(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:n(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:n(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:n(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:n(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:n(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:n(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:n(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:n(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:n(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:n(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:n(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:n(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:n(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:n(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:n(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:n(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:n(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:n(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:n(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:n(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:n(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:n(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:n(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:n(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:n(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:n(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:n(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:n(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:n(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:n(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:n(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:n(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:n(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:n(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:n(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:n(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:n(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:n(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:n(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:n(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:n(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:n(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:n(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:n(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:n(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:n(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:n(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:n(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:n(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:n(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:n(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:n(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:n(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:n(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:n(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:n(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:n(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:n(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:n(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:n(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:n(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:n(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:n(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:n(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:n(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:n(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:n(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:n(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:n(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:n(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:n(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:n(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:n(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:n(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:n(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:n(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:n(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:n(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:n(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:n(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:n(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:n(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:n(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:n(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:n(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:n(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:n(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:n(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:n(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:n(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:n(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:n(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:n(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:n(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:n(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:n(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:n(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:n(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:n(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:n(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:n(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:n(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:n(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:n(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:n(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:n(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:n(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:n(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:n(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:n(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:n(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:n(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:n(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:n(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:n(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:n(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:n(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:n(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:n(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:n(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:n(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:n(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:n(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:n(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:n(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:n(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:n(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:n(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:n(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:n(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:n(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:n(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:n(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:n(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:n(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:n(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:n(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:n(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:n(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:n(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:n(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:n(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:n(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:n(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:n(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:n(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:n(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:n(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:n(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:n(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:n(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:n(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:n(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:n(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:n(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:n(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:n(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:n(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:n(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:n(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:n(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:n(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:n(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:n(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:n(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:n(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:n(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:n(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:n(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:n(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:n(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:n(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:n(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:n(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:n(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:n(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:n(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:n(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:n(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:n(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:n(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:n(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:n(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:n(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:n(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:n(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:n(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:n(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:n(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:n(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:n(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:n(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:n(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:n(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:n(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:n(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:n(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:n(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:n(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:n(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:n(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:n(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:n(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:n(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:n(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:n(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:n(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:n(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:n(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:n(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:n(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:n(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:n(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:n(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:n(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:n(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:n(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:n(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:n(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:n(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:n(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:n(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:n(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:n(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:n(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:n(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:n(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:n(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:n(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:n(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:n(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:n(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:n(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:n(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:n(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:n(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:n(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:n(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:n(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:n(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:n(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:n(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:n(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:n(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:n(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:n(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:n(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:n(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:n(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:n(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:n(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:n(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:n(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:n(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:n(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:n(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:n(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:n(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:n(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:n(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:n(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:n(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:n(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:n(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:n(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:n(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:n(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:n(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:n(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:n(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:n(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:n(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:n(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:n(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:n(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:n(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:n(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:n(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:n(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:n(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:n(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:n(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:n(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:n(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:n(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:n(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:n(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:n(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:n(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:n(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:n(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:n(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:n(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:n(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:n(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:n(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:n(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:n(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:n(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:n(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:n(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:n(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:n(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:n(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:n(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:n(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:n(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:n(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:n(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:n(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:n(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:n(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:n(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:n(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:n(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:n(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:n(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:n(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:n(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:n(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:n(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:n(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:n(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:n(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:n(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:n(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:n(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:n(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:n(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:n(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:n(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:n(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:n(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:n(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:n(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:n(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:n(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:n(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:n(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:n(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:n(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:n(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:n(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:n(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:n(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:n(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:n(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:n(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:n(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:n(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:n(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:n(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:n(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:n(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:n(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:n(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:n(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:n(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:n(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:n(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:n(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:n(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:n(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:n(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:n(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:n(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:n(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:n(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:n(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:n(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:n(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:n(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:n(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:n(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:n(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:n(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:n(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:n(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:n(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:n(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:n(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:n(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:n(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:n(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:n(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:n(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:n(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:n(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:n(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:n(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:n(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:n(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:n(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:n(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:n(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:n(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:n(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:n(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:n(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:n(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:n(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:n(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:n(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:n(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:n(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:n(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:n(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:n(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:n(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:n(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:n(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:n(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:n(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:n(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:n(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:n(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:n(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:n(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:n(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:n(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:n(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:n(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:n(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:n(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:n(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:n(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:n(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:n(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:n(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:n(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:n(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:n(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:n(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:n(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:n(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:n(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:n(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:n(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:n(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:n(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:n(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:n(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:n(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:n(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:n(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:n(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:n(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:n(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:n(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:n(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:n(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:n(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:n(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:n(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:n(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:n(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:n(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:n(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:n(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:n(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:n(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:n(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:n(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:n(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:n(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:n(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:n(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:n(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:n(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:n(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:n(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:n(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:n(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:n(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:n(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:n(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:n(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:n(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:n(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:n(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:n(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:n(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:n(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:n(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:n(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:n(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:n(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:n(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:n(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:n(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:n(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:n(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:n(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:n(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:n(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:n(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:n(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:n(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:n(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:n(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:n(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:n(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:n(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:n(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:n(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:n(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:n(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:n(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:n(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:n(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:n(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:n(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:n(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:n(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:n(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:n(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:n(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:n(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:n(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:n(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:n(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:n(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:n(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:n(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:n(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:n(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:n(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:n(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:n(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:n(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:n(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:n(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:n(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:n(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:n(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:n(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:n(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:n(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:n(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:n(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:n(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:n(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:n(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:n(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:n(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:n(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:n(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:n(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:n(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:n(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:n(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:n(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:n(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:n(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:n(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:n(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:n(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:n(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:n(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:n(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:n(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:n(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:n(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:n(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:n(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:n(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:n(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:n(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:n(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:n(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:n(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:n(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:n(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:n(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:n(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:n(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:n(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:n(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:n(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:n(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:n(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:n(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:n(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:n(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:n(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:n(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:n(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:n(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:n(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:n(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:n(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:n(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:n(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:n(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:n(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:n(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:n(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:n(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:n(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:n(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:n(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(ha||(ha={})),function(e){var n;function t(e){return e>=79}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||t(e)},e.textToKeywordObj=((n={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=134,n.debugger=87,n.declare=135,n.default=88,n.delete=89,n.do=90,n.else=91,n.enum=92,n.export=93,n.extends=94,n.false=95,n.finally=96,n.for=97,n.from=155,n.function=98,n.get=136,n.if=99,n.implements=117,n.import=100,n.in=101,n.infer=137,n.instanceof=102,n.interface=118,n.intrinsic=138,n.is=139,n.keyof=140,n.let=119,n.module=141,n.namespace=142,n.never=143,n.new=103,n.null=104,n.number=146,n.object=147,n.package=120,n.private=121,n.protected=122,n.public=123,n.override=158,n.readonly=144,n.require=145,n.global=156,n.return=105,n.set=148,n.static=124,n.string=149,n.super=106,n.switch=107,n.symbol=150,n.this=108,n.throw=109,n.true=110,n.try=111,n.type=151,n.typeof=112,n.undefined=152,n.unique=153,n.unknown=154,n.var=113,n.void=114,n.while=115,n.with=116,n.yield=125,n.async=131,n.await=132,n.of=159,n);var r=new e.Map(e.getEntries(e.textToKeywordObj)),a=new e.Map(e.getEntries(fa(fa({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),i=[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],o=[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],s=[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],c=[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],l=[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],u=[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],d=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,n){if(e<n[0])return!1;for(var t,r=0,a=n.length;r+1<a;){if(t=r+(a-r)/2,n[t-=t%2]<=e&&e<=n[t+1])return!0;e<n[t]?a=t:r=t+2}return!1}function m(e,n){return f(e,n>=2?l:1===n?s:i)}e.isUnicodeIdentifierStart=m;var _=function(e){var n=[];return e.forEach((function(e,t){n[e]=t})),n}(a);function g(e){for(var n=new Array,t=0,r=0;t<e.length;){var a=e.charCodeAt(t);switch(t++,a){case 13:10===e.charCodeAt(t)&&t++;case 10:n.push(r),r=t;break;default:a>127&&S(a)&&(n.push(r),r=t)}}return n.push(r),n}function y(n,t,r,a,i){(t<0||t>=n.length)&&(i?t=t<0?0:t>=n.length?n.length-1:t:e.Debug.fail("Bad line number. Line: ".concat(t,", lineStarts.length: ").concat(n.length," , line map is correct? ").concat(void 0!==a?e.arraysEqual(n,g(a)):"unknown")));var o=n[t]+r;return i?o>n[t+1]?n[t+1]:"string"===typeof a&&o>a.length?a.length:o:(t<n.length-1?e.Debug.assert(o<n[t+1]):void 0!==a&&e.Debug.assert(o<=a.length),o)}function h(e){return e.lineMap||(e.lineMap=g(e.text))}function v(e,n){var t=b(e,n);return{line:t,character:n-e[t]}}function b(n,t,r){var a=e.binarySearch(n,t,e.identity,e.compareValues,r);return a<0&&(a=~a-1,e.Debug.assert(-1!==a,"position cannot precede the beginning of the file")),a}function E(e){return T(e)||S(e)}function T(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function S(e){return 10===e||13===e||8232===e||8233===e}function x(e){return e>=48&&e<=57}function L(e){return x(e)||e>=65&&e<=70||e>=97&&e<=102}function D(e){return e>=48&&e<=55}e.tokenToString=function(e){return _[e]},e.stringToToken=function(e){return a.get(e)},e.computeLineStarts=g,e.getPositionOfLineAndCharacter=function(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):y(h(e),n,t,e.text,r)},e.computePositionOfLineAndCharacter=y,e.getLineStarts=h,e.computeLineAndCharacterOfPosition=v,e.computeLineOfPosition=b,e.getLinesBetweenPositions=function(e,n,t){if(n===t)return 0;var r=h(e),a=Math.min(n,t),i=a===t,o=i?n:t,s=b(r,a),c=b(r,o,s);return i?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,n){return v(h(e),n)},e.isWhiteSpaceLike=E,e.isWhiteSpaceSingleLine=T,e.isLineBreak=S,e.isOctalDigit=D,e.couldStartTrivia=function(e,n){var t=e.charCodeAt(n);switch(t){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===n;default:return t>127}},e.skipTrivia=function(n,t,r,a,i){if(e.positionIsSynthesized(t))return t;for(var o=!1;;){var s=n.charCodeAt(t);switch(s){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(47===n.charCodeAt(t+1)){for(t+=2;t<n.length&&!S(n.charCodeAt(t));)t++;o=!1;continue}if(42===n.charCodeAt(t+1)){for(t+=2;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(A(n,t)){t=I(n,t),o=!1;continue}break;case 35:if(0===t&&N(n,t)){t=R(n,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(s>127&&E(s)){t++;continue}}return t}};var C="<<<<<<<".length;function A(n,t){if(e.Debug.assert(t>=0),0===t||S(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+C<n.length){for(var a=0;a<C;a++)if(n.charCodeAt(t+a)!==r)return!1;return 61===r||32===n.charCodeAt(t+C)}}return!1}function I(n,t,r){r&&r(e.Diagnostics.Merge_conflict_marker_encountered,t,C);var a=n.charCodeAt(t),i=n.length;if(60===a||62===a)for(;t<i&&!S(n.charCodeAt(t));)t++;else for(e.Debug.assert(124===a||61===a);t<i;){var o=n.charCodeAt(t);if((61===o||62===o)&&o!==a&&A(n,t))break;t++}return t}var k=/^#!.*/;function N(n,t){return e.Debug.assert(0===t),k.test(n)}function R(e,n){return n+=k.exec(e)[0].length}function O(e,n,t,r,a,i,o){var s,c,l,u,d=!1,p=r,f=o;if(0===t){p=!0;var m=F(n);m&&(t=m.length)}e:for(;t>=0&&t<n.length;){var _=n.charCodeAt(t);switch(_){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;p=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:var g=n.charCodeAt(t+1),y=!1;if(47===g||42===g){var h=47===g?2:3,v=t;if(t+=2,47===g)for(;t<n.length;){if(S(n.charCodeAt(t))){y=!0;break}t++}else for(;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}if(p){if(d&&(f=a(s,c,l,u,i,f),!e&&f))return f;s=v,c=t,l=h,u=y,d=!0}continue}break e;default:if(_>127&&E(_)){d&&S(_)&&(u=!0),t++;continue}break e}}return d&&(f=a(s,c,l,u,i,f)),f}function w(e,n,t,r,a){return O(!0,e,n,!1,t,r,a)}function M(e,n,t,r,a){return O(!0,e,n,!0,t,r,a)}function P(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function F(e){var n=k.exec(e);if(n)return n[0]}function G(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,n)}function B(e,n,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===t&&(45===e||58===e)||e>127&&function(e,n){return f(e,n>=2?u:1===n?c:o)}(e,n)}e.isShebangTrivia=N,e.scanShebangTrivia=R,e.forEachLeadingCommentRange=function(e,n,t,r){return O(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return O(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=w,e.reduceEachTrailingCommentRange=M,e.getLeadingCommentRanges=function(e,n){return w(e,n,P,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return M(e,n,P,void 0,void 0)},e.getShebang=F,e.isIdentifierStart=G,e.isIdentifierPart=B,e.isIdentifierText=function(e,n,t){var r=U(e,0);if(!G(r,n))return!1;for(var a=V(r);a<e.length;a+=V(r))if(!B(r=U(e,a),n,t))return!1;return!0},e.createScanner=function(n,a,i,o,s,c,l){void 0===i&&(i=0);var u,f,m,_,g,y,h,v,b=o,C=0;le(b,c,l);var k={getStartPos:function(){return m},getTextPos:function(){return u},getToken:function(){return g},getTokenPos:function(){return _},getTokenText:function(){return b.substring(_,u)},getTokenValue:function(){return y},hasUnicodeEscape:function(){return 0!==(1024&h)},hasExtendedUnicodeEscape:function(){return 0!==(8&h)},hasPrecedingLineBreak:function(){return 0!==(1&h)},hasPrecedingJSDocComment:function(){return 0!==(2&h)},isIdentifier:function(){return 79===g||g>116},isReservedWord:function(){return g>=81&&g<=116},isUnterminated:function(){return 0!==(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:function(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=72):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=71):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=_+1,g=63},reScanSlashToken:function(){if(43===g||68===g){for(var t=_+1,r=!1,a=!1;;){if(t>=f){h|=4,O(e.Diagnostics.Unterminated_regular_expression_literal);break}var i=b.charCodeAt(t);if(S(i)){h|=4,O(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===i&&!a){t++;break}91===i?a=!0:92===i?r=!0:93===i&&(a=!1)}t++}for(;t<f&&B(b.charCodeAt(t),n);)t++;u=t,y=b.substring(_,u),g=13}return g},reScanTemplateToken:function(n){return e.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),u=_,g=J(n)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return u=_,g=J(!0)},scanJsxIdentifier:function(){if(t(g)){for(var e=!1;u<f;){var n=b.charCodeAt(u);if(45!==n)if(58!==n||e){var r=u;if(y+=$(),u===r)break}else y+=":",u++,e=!0,g=79;else y+="-",u++}":"===y.slice(-1)&&(y=y.slice(0,-1),u--)}return g},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return u=_=m,se()},reScanJsxToken:function(e){void 0===e&&(e=!0);return u=_=m,g=oe(e)},reScanLessThanToken:function(){if(47===g)return u=_+1,g=29;return g},reScanHashToken:function(){if(80===g)return u=_+1,g=62;return g},reScanQuestionToken:function(){return e.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),u=_+1,g=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=_=m,h=0;var n=U(b,u),t=ae(n,99);if(t)return g=t;return u+=V(n),g},scanJsxToken:oe,scanJsDocToken:function(){if(m=_=u,h=0,u>=f)return g=1;var e=U(b,u);switch(u+=V(e),e){case 9:case 11:case 12:case 32:for(;u<f&&T(b.charCodeAt(u));)u++;return g=5;case 64:return g=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return h|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:u--;var t=Z();if(t>=0&&G(t,n))return u+=3,h|=8,y=Y()+$(),g=ee();var r=Q();return r>=0&&G(r,n)?(u+=6,h|=1024,y=String.fromCharCode(r)+$(),g=ee()):(u++,g=0)}if(G(e,n)){for(var a=e;u<f&&B(a=U(b,u),n)||45===b.charCodeAt(u);)u+=V(a);return y=b.substring(_,u),92===a&&(y+=$()),g=ee()}return g=0},scan:re,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:le,setScriptTarget:function(e){n=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){C+=e?1:-1},tryScan:function(e){return ce(e,!1)},lookAhead:function(e){return ce(e,!0)},scanRange:function(e,n,t){var r=f,a=u,i=m,o=_,s=g,c=y,l=h,d=v;le(b,e,n);var p=t();return f=r,u=a,m=i,_=o,g=s,y=c,h=l,v=d,p}};return e.Debug.isDebugging&&Object.defineProperty(k,"__debugShowCurrentPositionInText",{get:function(){var e=k.getText();return e.slice(0,k.getStartPos())+"\u2551"+e.slice(k.getStartPos())}}),k;function O(e,n,t){if(void 0===n&&(n=u),s){var r=u;u=n,s(e,t||0),u=r}}function w(){for(var n=u,t=!1,r=!1,a="";;){var i=b.charCodeAt(u);if(95!==i){if(!x(i))break;t=!0,r=!1,u++}else h|=512,t?(t=!1,r=!0,a+=b.substring(n,u)):O(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),n=++u}return 95===b.charCodeAt(u-1)&&O(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),a+b.substring(n,u)}function M(){var n,t,r=u,a=w();46===b.charCodeAt(u)&&(u++,n=w());var i,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,h|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=w();c?(t=b.substring(o,s)+c,o=u):O(e.Diagnostics.Digit_expected)}if(512&h?(i=a,n&&(i+="."+n),t&&(i+=t)):i=b.substring(r,o),void 0!==n||16&h)return P(r,void 0===n&&!!(16&h)),{type:8,value:""+ +i};y=i;var l=te();return P(r),{type:l,value:y}}function P(t,r){if(G(U(b,u),n)){var a=u,i=$().length;1===i&&"n"===b[a]?O(r?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,t,a-t+1):(O(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,a,i),u=a)}}function F(){for(var e=u;D(b.charCodeAt(u));)u++;return+b.substring(e,u)}function j(e,n){var t=W(e,!1,n);return t?parseInt(t,16):-1}function H(e,n){return W(e,!0,n)}function W(n,t,r){for(var a=[],i=!1,o=!1;a.length<n||t;){var s=b.charCodeAt(u);if(r&&95===s)h|=512,i?(i=!1,o=!0):O(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(i=r,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;a.push(s),u++,o=!1}}return a.length<n&&(a=[]),95===b.charCodeAt(u-1)&&O(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode.apply(String,a)}function z(n){void 0===n&&(n=!1);for(var t=b.charCodeAt(u),r="",a=++u;;){if(u>=f){r+=b.substring(a,u),h|=4,O(e.Diagnostics.Unterminated_string_literal);break}var i=b.charCodeAt(u);if(i===t){r+=b.substring(a,u),u++;break}if(92!==i||n){if(S(i)&&!n){r+=b.substring(a,u),h|=4,O(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=b.substring(a,u),r+=q(),a=u}return r}function J(n){for(var t,r=96===b.charCodeAt(u),a=++u,i="";;){if(u>=f){i+=b.substring(a,u),h|=4,O(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var o=b.charCodeAt(u);if(96===o){i+=b.substring(a,u),u++,t=r?14:17;break}if(36===o&&u+1<f&&123===b.charCodeAt(u+1)){i+=b.substring(a,u),u+=2,t=r?15:16;break}92!==o?13!==o?u++:(i+=b.substring(a,u),++u<f&&10===b.charCodeAt(u)&&u++,i+="\n",a=u):(i+=b.substring(a,u),i+=q(n),a=u)}return e.Debug.assert(void 0!==t),y=i,t}function q(n){var t=u;if(++u>=f)return O(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(u);switch(u++,r){case 48:return n&&u<f&&x(b.charCodeAt(u))?(u++,h|=2048,b.substring(t,u)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(n)for(var a=u;a<u+4;a++)if(a<f&&!L(b.charCodeAt(a))&&123!==b.charCodeAt(a))return u=a,h|=2048,b.substring(t,u);if(u<f&&123===b.charCodeAt(u)){if(u++,n&&!L(b.charCodeAt(u)))return h|=2048,b.substring(t,u);if(n){var i=u,o=H(1,!1),s=o?parseInt(o,16):-1;if(!(s<=1114111&&125===b.charCodeAt(u)))return h|=2048,b.substring(t,u);u=i}return h|=8,Y()}return h|=1024,X(4);case 120:if(n){if(!L(b.charCodeAt(u)))return h|=2048,b.substring(t,u);if(!L(b.charCodeAt(u+1)))return u++,h|=2048,b.substring(t,u)}return X(2);case 13:u<f&&10===b.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function X(n){var t=j(n,!1);return t>=0?String.fromCharCode(t):(O(e.Diagnostics.Hexadecimal_digit_expected),"")}function Y(){var n=H(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(O(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(O(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=f?(O(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(u)?u++:(O(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":K(t)}function Q(){if(u+5<f&&117===b.charCodeAt(u+1)){var e=u;u+=2;var n=j(4,!1);return u=e,n}return-1}function Z(){if(n>=2&&117===U(b,u+1)&&123===U(b,u+2)){var e=u;u+=3;var t=H(1,!1),r=t?parseInt(t,16):-1;return u=e,r}return-1}function $(){for(var e="",t=u;u<f;){var r=U(b,u);if(B(r,n))u+=V(r);else{if(92!==r)break;if((r=Z())>=0&&B(r,n)){u+=3,h|=8,e+=Y(),t=u;continue}if(!((r=Q())>=0&&B(r,n)))break;h|=1024,e+=b.substring(t,u),e+=K(r),t=u+=6}}return e+=b.substring(t,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var n=y.charCodeAt(0);if(n>=97&&n<=122){var t=r.get(y);if(void 0!==t)return g=t}}return g=79}function ne(n){for(var t="",r=!1,a=!1;;){var i=b.charCodeAt(u);if(95!==i){if(r=!0,!x(i)||i-48>=n)break;t+=b[u],u++,a=!1}else h|=512,r?(r=!1,a=!0):O(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&O(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t}function te(){if(110===b.charCodeAt(u))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var n=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+n,8}function re(){var t;m=u,h=0;for(var r=!1;;){if(_=u,u>=f)return g=1;var o=U(b,u);if(35===o&&0===u&&N(b,u)){if(u=R(b,u),a)continue;return g=6}switch(o){case 10:case 13:if(h|=1,a){u++;continue}return 13===o&&u+1<f&&10===b.charCodeAt(u+1)?u+=2:u++,g=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(a){u++;continue}for(;u<f&&T(b.charCodeAt(u));)u++;return g=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=37):(u+=2,g=35):(u++,g=53);case 34:case 39:return y=z(),g=10;case 96:return g=J(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,g=69):(u++,g=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=76):(u+=2,g=55):61===b.charCodeAt(u+1)?(u+=2,g=73):(u++,g=50);case 40:return u++,g=20;case 41:return u++,g=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,g=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,g=67):(u+=2,g=42);if(u++,C&&!r&&1&h){r=!0;continue}return g=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,g=45):61===b.charCodeAt(u+1)?(u+=2,g=64):(u++,g=39);case 44:return u++,g=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,g=46):61===b.charCodeAt(u+1)?(u+=2,g=65):(u++,g=40);case 46:return x(b.charCodeAt(u+1))?(y=M().value,g=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,g=25):(u++,g=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<f&&!S(b.charCodeAt(u));)u++;if(v=ie(v,b.slice(_,u),d,_),a)continue;return g=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(h|=2);for(var s=!1,c=_;u<f;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,S(l)&&(c=u,h|=1)}if(v=ie(v,b.slice(c,u),p,c),s||O(e.Diagnostics.Asterisk_Slash_expected),a)continue;return s||(h|=4),g=3}return 61===b.charCodeAt(u+1)?(u+=2,g=68):(u++,g=43);case 48:if(u+2<f&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(y=H(1,!0))||(O(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,h|=64,g=te();if(u+2<f&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(y=ne(2))||(O(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,h|=128,g=te();if(u+2<f&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(y=ne(8))||(O(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,h|=256,g=te();if(u+1<f&&D(b.charCodeAt(u+1)))return y=""+F(),h|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t=M(),g=t.type,y=t.value,g;case 58:return u++,g=58;case 59:return u++,g=26;case 60:if(A(b,u)){if(u=I(b,u,O),a)continue;return g=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=70):(u+=2,g=47):61===b.charCodeAt(u+1)?(u+=2,g=32):1===i&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,g=30):(u++,g=29);case 61:if(A(b,u)){if(u=I(b,u,O),a)continue;return g=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=36):(u+=2,g=34):62===b.charCodeAt(u+1)?(u+=2,g=38):(u++,g=63);case 62:if(A(b,u)){if(u=I(b,u,O),a)continue;return g=7}return u++,g=31;case 63:return 46!==b.charCodeAt(u+1)||x(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=77):(u+=2,g=60):(u++,g=57):(u+=2,g=28);case 91:return u++,g=22;case 93:return u++,g=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,g=78):(u++,g=52);case 123:return u++,g=18;case 124:if(A(b,u)){if(u=I(b,u,O),a)continue;return g=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=75):(u+=2,g=56):61===b.charCodeAt(u+1)?(u+=2,g=74):(u++,g=51);case 125:return u++,g=19;case 126:return u++,g=54;case 64:return u++,g=59;case 92:var E=Z();if(E>=0&&G(E,n))return u+=3,h|=8,y=Y()+$(),g=ee();var L=Q();return L>=0&&G(L,n)?(u+=6,h|=1024,y=String.fromCharCode(L)+$(),g=ee()):(O(e.Diagnostics.Invalid_character),u++,g=0);case 35:return 0!==u&&"!"===b[u+1]?(O(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0):(G(U(b,u+1),n)?(u++,ae(U(b,u),n)):(y=String.fromCharCode(U(b,u)),O(e.Diagnostics.Invalid_character,u++,V(o))),g=80);default:var k=ae(o,n);if(k)return g=k;if(T(o)){u+=V(o);continue}if(S(o)){h|=1,u+=V(o);continue}var w=V(o);return O(e.Diagnostics.Invalid_character,u,w),u+=w,g=0}}}function ae(e,n){var t=e;if(G(t,n)){for(u+=V(t);u<f&&B(t=U(b,u),n);)u+=V(t);return y=b.substring(_,u),92===t&&(y+=$()),ee()}}function ie(n,t,r,a){var i=function(e,n){var t=n.exec(e);if(!t)return;switch(t[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(e.trimStringStart(t),r);return void 0===i?n:e.append(n,{range:{pos:a,end:u},type:i})}function oe(n){if(void 0===n&&(n=!0),m=_=u,u>=f)return g=1;var t=b.charCodeAt(u);if(60===t)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===t)return u++,g=18;for(var r=0;u<f&&123!==(t=b.charCodeAt(u));){if(60===t){if(A(b,u))return u=I(b,u,O),g=7;break}if(62===t&&O(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===t&&O(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),S(t)&&0===r)r=-1;else{if(!n&&S(t)&&r>0)break;E(t)||(r=u)}u++}return y=b.substring(m,u),-1===r?12:11}function se(){switch(m=u,b.charCodeAt(u)){case 34:case 39:return y=z(!0),g=10;default:return re()}}function ce(e,n){var t=u,r=m,a=_,i=g,o=y,s=h,c=e();return c&&!n||(u=t,m=r,_=a,g=i,y=o,h=s),c}function le(e,n,t){b=e||"",f=void 0===t?b.length:n+t,ue(n||0)}function ue(n){e.Debug.assert(n>=0),u=n,m=n,_=n,g=0,y=void 0,h=0}};var U=String.prototype.codePointAt?function(e,n){return e.codePointAt(n)}:function(e,n){var t=e.length;if(!(n<0||n>=t)){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&t>n+1){var a=e.charCodeAt(n+1);if(a>=56320&&a<=57343)return 1024*(r-55296)+a-56320+65536}return r}};function V(e){return e>=65536?2:1}var j=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(n){if(e.Debug.assert(0<=n&&n<=1114111),n<=65535)return String.fromCharCode(n);var t=Math.floor((n-65536)/1024)+55296,r=(n-65536)%1024+56320;return String.fromCharCode(t,r)};function K(e){return j(e)}e.utf16EncodeAsString=K}(ha||(ha={})),function(e){function n(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,n){var t=i(e,n);return t&&0===t.length?void 0:t}function a(e,n,t,r){return t<=e+n&&t+r>=e}function i(e,t){var r=Math.max(e.start,t.start),a=Math.min(n(e),n(t));return r<=a?s(r,a):void 0}function o(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function s(e,n){return o(e,n-e)}function c(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function l(n){return!!$(n)&&e.every(n.elements,u)}function u(n){return!!e.isOmittedExpression(n)||l(n.name)}function d(n){for(var t=n.parent;e.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function p(n,t){e.isBindingElement(n)&&(n=d(n));var r=t(n);return 253===n.kind&&(n=n.parent),n&&254===n.kind&&(r|=t(n),n=n.parent),n&&236===n.kind&&(r|=t(n)),r}function f(e){return 0===(8&e.flags)}function m(e){var n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function _(e){return m(e.escapedText)}function g(n){var t=n.parent.parent;if(t){if(ce(t))return y(t);switch(t.kind){case 236:if(t.declarationList&&t.declarationList.declarations[0])return y(t.declarationList.declarations[0]);break;case 237:var r=t.expression;switch(220===r.kind&&63===r.operatorToken.kind&&(r=r.left),r.kind){case 205:return r.name;case 206:var a=r.argumentExpression;if(e.isIdentifier(a))return a}break;case 211:return y(t.expression);case 249:if(ce(t.statement)||ae(t.statement))return y(t.statement)}}}function y(n){var t=E(n);return t&&e.isIdentifier(t)?t:void 0}function h(e){return e.name||g(e)}function v(e){return!!e.name}function b(n){switch(n.kind){case 79:return n;case 345:case 338:var t=n.name;if(160===t.kind)return t.right;break;case 207:case 220:var r=n;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 343:return h(n);case 337:return g(n);case 270:var a=n.expression;return e.isIdentifier(a)?a:void 0;case 206:var i=n;if(e.isBindableStaticElementAccessExpression(i))return i.argumentExpression}return n.name}function E(n){if(void 0!==n)return b(n)||(e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isClassExpression(n)?T(n):void 0)}function T(n){if(n.parent){if(e.isPropertyAssignment(n.parent)||e.isBindingElement(n.parent))return n.parent.name;if(e.isBinaryExpression(n.parent)&&n===n.parent.right){if(e.isIdentifier(n.parent.left))return n.parent.left;if(e.isAccessExpression(n.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(n.parent.left)}else if(e.isVariableDeclaration(n.parent)&&e.isIdentifier(n.parent.name))return n.parent.name}}function S(n,t){if(n.name){if(e.isIdentifier(n.name)){var r=n.name.escapedText;return I(n.parent,t).filter((function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===r}))}var a=n.parent.parameters.indexOf(n);e.Debug.assert(a>-1,"Parameters should always be in their parents' parameter list");var i=I(n.parent,t).filter(e.isJSDocParameterTag);if(a<i.length)return[i[a]]}return e.emptyArray}function x(e){return S(e,!1)}function L(n,t){var r=n.name.escapedText;return I(n.parent,t).filter((function(n){return e.isJSDocTemplateTag(n)&&n.typeParameters.some((function(e){return e.name.escapedText===r}))}))}function D(n){return N(n,e.isJSDocReturnTag)}function C(n){var t=N(n,e.isJSDocTypeTag);if(t&&t.typeExpression&&t.typeExpression.type)return t}function A(n){var t=N(n,e.isJSDocTypeTag);return!t&&e.isParameter(n)&&(t=e.find(x(n),(function(e){return!!e.typeExpression}))),t&&t.typeExpression&&t.typeExpression.type}function I(n,t){var r=n.jsDocCache;if(void 0===r||t){var a=e.getJSDocCommentsAndTags(n,t);e.Debug.assert(a.length<2||a[0]!==a[1]),r=e.flatMap(a,(function(n){return e.isJSDoc(n)?n.tags:n})),t||(n.jsDocCache=r)}return r}function k(e){return I(e,!1)}function N(n,t,r){return e.find(I(n,r),t)}function R(e,n){return k(e).filter(n)}function O(e){var n=e.kind;return!!(32&e.flags)&&(205===n||206===n||207===n||229===n)}function w(n){return O(n)&&!e.isNonNullExpression(n)&&!!n.questionDotToken}function M(n){return e.skipOuterExpressions(n,8)}function P(e){switch(e.kind){case 300:case 301:return!0;default:return!1}}function F(e){return e>=160}function G(e){return e>=0&&e<=159}function B(e){return 8<=e&&e<=14}function U(e){return 14<=e&&e<=17}function V(n){return(e.isPropertyDeclaration(n)||Y(n))&&e.isPrivateIdentifier(n.name)}function j(e){switch(e){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}function K(n){return!!(16476&e.modifierToFlag(n))}function H(e){return!!e&&z(e.kind)}function W(e){switch(e){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function z(e){switch(e){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return W(e)}}function J(e){var n=e.kind;return 170===n||166===n||168===n||171===n||172===n||175===n||169===n||233===n}function q(e){return e&&(256===e.kind||225===e.kind)}function Y(e){switch(e.kind){case 168:case 171:case 172:return!0;default:return!1}}function Q(e){var n=e.kind;return 174===n||173===n||165===n||167===n||175===n}function Z(e){var n=e.kind;return 294===n||295===n||296===n||168===n||171===n||172===n}function $(e){if(e){var n=e.kind;return 201===n||200===n}return!1}function ee(e){switch(e.kind){case 200:case 204:return!0}return!1}function ne(e){switch(e.kind){case 201:case 203:return!0}return!1}function te(e){switch(e){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function re(e){switch(e){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return te(e)}}function ae(e){return function(e){switch(e){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return re(e)}}(M(e).kind)}function ie(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function oe(e){return 255===e||275===e||256===e||257===e||258===e||259===e||260===e||265===e||264===e||271===e||270===e||263===e}function se(e){return 245===e||244===e||252===e||239===e||237===e||235===e||242===e||243===e||241===e||238===e||249===e||246===e||248===e||250===e||251===e||236===e||240===e||247===e||347===e||351===e||350===e}function ce(n){return 162===n.kind?n.parent&&342!==n.parent.kind||e.isInJSFile(n):213===(t=n.kind)||202===t||256===t||225===t||169===t||170===t||259===t||297===t||274===t||255===t||212===t||171===t||266===t||264===t||269===t||257===t||284===t||168===t||167===t||260===t||263===t||267===t||273===t||163===t||294===t||166===t||165===t||172===t||295===t||258===t||162===t||253===t||343===t||336===t||345===t;var t}function le(e){return e.kind>=325&&e.kind<=345}e.isExternalModuleNameRelative=function(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)},e.sortAndDeduplicateDiagnostics=function(n){return e.sortAndDeduplicate(n,e.compareDiagnostics)},e.getDefaultLibFileName=function(n){switch(e.getEmitScriptTarget(n)){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=n,e.textSpanIsEmpty=t,e.textSpanContainsPosition=function(e,t){return t>=e.start&&t<n(e)},e.textRangeContainsPositionInclusive=function(e,n){return n>=e.pos&&n<=e.end},e.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&n(t)<=n(e)},e.textSpanOverlapsWith=function(e,n){return void 0!==r(e,n)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,n){return a(e.start,e.length,n.start,n.length)},e.textSpanIntersectsWith=function(e,n,t){return a(e.start,e.length,n,t)},e.decodedTextSpanIntersectsWith=a,e.textSpanIntersectsWithPosition=function(e,t){return t<=n(e)&&t>=e.start},e.textSpanIntersection=i,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],a=r.span.start,i=n(r.span),o=a+r.newLength,l=1;l<t.length;l++){var u=t[l],d=a,p=i,f=o,m=u.span.start,_=n(u.span),g=m+u.newLength;a=Math.min(d,m),i=Math.max(p,p+(_-f)),o=Math.max(g,g+(f-_))}return c(s(a,i),o-a)},e.getTypeParameterOwner=function(e){if(e&&162===e.kind)for(var n=e;n;n=n.parent)if(H(n)||q(n)||257===n.kind)return n},e.isParameterPropertyDeclaration=function(n,t){return e.hasSyntacticModifier(n,16476)&&170===t.kind},e.isEmptyBindingPattern=l,e.isEmptyBindingElement=u,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=function(n){return p(n,e.getEffectiveModifierFlags)},e.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(n){return p(n,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},e.getCombinedNodeFlags=function(e){return p(e,(function(e){return e.flags}))},e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=function(n,t,r){var a=n.toLowerCase(),i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(a);if(i){var o=i[1],s=i[3];e.contains(e.supportedLocaleDirectories,a)&&!c(o,s,r)&&c(o,void 0,r),e.setUILocale(n)}else r&&r.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(n,r,a){var i=e.normalizePath(t.getExecutingFilePath()),o=e.getDirectoryPath(i),s=e.combinePaths(o,n);if(r&&(s=s+"-"+r),s=t.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!t.fileExists(s))return!1;var c="";try{c=t.readFile(s)}catch(Oa){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(X){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=function(e,n){if(e)for(;void 0!==e.original;)e=e.original;return!n||n(e)?e:void 0},e.findAncestor=function(e,n){for(;e;){var t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}},e.isParseTreeNode=f,e.getParseTreeNode=function(e,n){if(void 0===e||f(e))return e;for(e=e.original;e;){if(f(e))return!n||n(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=_,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?_(e.valueDeclaration.name):m(e.escapedName)},e.nodeHasName=function n(t,r){return!(!v(t)||!e.isIdentifier(t.name)||_(t.name)!==_(r))||!(!e.isVariableStatement(t)||!e.some(t.declarationList.declarations,(function(e){return n(e,r)})))},e.getNameOfJSDocTypedef=h,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=E,e.getAssignedName=T,e.getJSDocParameterTags=x,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return L(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return L(e,!0)},e.hasJSDocParameterTags=function(n){return!!N(n,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(n){return N(n,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(n){return R(n,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(n){return N(n,e.isJSDocClassTag)},e.getJSDocPublicTag=function(n){return N(n,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(n){return N(n,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(n){return N(n,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(n){return N(n,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(n){return N(n,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(n){return N(n,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(n){return N(n,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(n){return N(n,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(n){return N(n,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(n){return N(n,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(n){return N(n,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(n){return N(n,e.isJSDocEnumTag)},e.getJSDocThisTag=function(n){return N(n,e.isJSDocThisTag)},e.getJSDocReturnTag=D,e.getJSDocTemplateTag=function(n){return N(n,e.isJSDocTemplateTag)},e.getJSDocTypeTag=C,e.getJSDocType=A,e.getJSDocReturnType=function(n){var t=D(n);if(t&&t.typeExpression)return t.typeExpression.type;var r=C(n);if(r&&r.typeExpression){var a=r.typeExpression.type;if(e.isTypeLiteralNode(a)){var i=e.find(a.members,e.isCallSignatureDeclaration);return i&&i.type}if(e.isFunctionTypeNode(a)||e.isJSDocFunctionType(a))return a.type}},e.getJSDocTags=k,e.getJSDocTagsNoCache=function(e){return I(e,!0)},e.getAllJSDocTags=R,e.getAllJSDocTagsOfKind=function(e,n){return k(e).filter((function(e){return e.kind===n}))},e.getTextOfJSDocComment=function(n){return"string"===typeof n?n:null===n||void 0===n?void 0:n.map((function(n){return 319===n.kind?n.text:"{@link ".concat(n.name?e.entityNameToString(n.name)+" ":"").concat(n.text,"}")})).join("")},e.getEffectiveTypeParameterDeclarations=function(n){if(e.isJSDocSignature(n))return e.emptyArray;if(e.isJSDocTypeAlias(n))return e.Debug.assert(318===n.parent.kind),e.flatMap(n.parent.tags,(function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0}));if(n.typeParameters)return n.typeParameters;if(e.isInJSFile(n)){var t=e.getJSDocTypeParameterDeclarations(n);if(t.length)return t;var r=A(n);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(n){return n.constraint?n.constraint:e.isJSDocTemplateTag(n.parent)&&n===n.parent.typeParameters[0]?n.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 172===e.kind||171===e.kind},e.isPropertyAccessChain=function(n){return e.isPropertyAccessExpression(n)&&!!(32&n.flags)},e.isElementAccessChain=function(n){return e.isElementAccessExpression(n)&&!!(32&n.flags)},e.isCallChain=function(n){return e.isCallExpression(n)&&!!(32&n.flags)},e.isOptionalChain=O,e.isOptionalChainRoot=w,e.isExpressionOfOptionalChainRoot=function(e){return w(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!O(e.parent)||w(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 220===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"const"===n.typeName.escapedText&&!n.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(n){return e.isNonNullExpression(n)&&!!(32&n.flags)},e.isBreakOrContinueStatement=function(e){return 245===e.kind||244===e.kind},e.isNamedExportBindings=function(e){return 273===e.kind||272===e.kind},e.isUnparsedTextLike=P,e.isUnparsedNode=function(e){return P(e)||298===e.kind||302===e.kind},e.isJSDocPropertyLikeTag=function(e){return 345===e.kind||338===e.kind},e.isNode=function(e){return F(e.kind)},e.isNodeKind=F,e.isTokenKind=G,e.isToken=function(e){return G(e.kind)},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=U,e.isTemplateLiteralToken=function(e){return U(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 16===n||17===n},e.isImportOrExportSpecifier=function(n){return e.isImportSpecifier(n)||e.isExportSpecifier(n)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 269:case 274:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 267:return e.parent.isTypeOnly;case 266:case 264:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(n){return e.isStringLiteral(n)||e.isIdentifier(n)},e.isStringTextContainingNode=function(e){return 10===e.kind||U(e.kind)},e.isGeneratedIdentifier=function(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(n){return e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name)},e.isModifierKind=j,e.isParameterPropertyModifier=K,e.isClassMemberModifier=function(e){return K(e)||124===e||158===e},e.isModifier=function(e){return j(e.kind)},e.isEntityName=function(e){var n=e.kind;return 160===n||79===n},e.isPropertyName=function(e){var n=e.kind;return 79===n||80===n||10===n||8===n||161===n},e.isBindingName=function(e){var n=e.kind;return 79===n||200===n||201===n},e.isFunctionLike=H,e.isFunctionLikeOrClassStaticBlockDeclaration=function(n){return!!n&&(z(n.kind)||e.isClassStaticBlockDeclaration(n))},e.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=z,e.isFunctionOrModuleBlock=function(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&H(n.parent)},e.isClassElement=J,e.isClassLike=q,e.isAccessor=function(e){return e&&(171===e.kind||172===e.kind)},e.isMethodOrAccessor=Y,e.isTypeElement=Q,e.isClassOrTypeElement=function(e){return Q(e)||J(e)},e.isObjectLiteralElementLike=Z,e.isTypeNode=function(n){return e.isTypeNodeKind(n.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 178:case 179:return!0}return!1},e.isBindingPattern=$,e.isAssignmentPattern=function(e){var n=e.kind;return 203===n||204===n},e.isArrayBindingElement=function(e){var n=e.kind;return 202===n||226===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 253:case 163:case 202:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return ee(e)||ne(e)},e.isObjectBindingOrAssignmentPattern=ee,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 202:case 294:case 295:case 296:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ne,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 205===n||160===n||199===n},e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 205===n||160===n},e.isCallLikeExpression=function(e){switch(e.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 207===e.kind||208===e.kind},e.isTemplateLiteral=function(e){var n=e.kind;return 222===n||14===n},e.isLeftHandSideExpression=function(e){return te(M(e).kind)},e.isUnaryExpression=function(e){return re(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 219:return!0;case 218:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ae,e.isAssertionExpression=function(e){var n=e.kind;return 210===n||228===n},e.isNotEmittedOrPartiallyEmittedNode=function(n){return e.isNotEmittedStatement(n)||e.isPartiallyEmittedExpression(n)},e.isIterationStatement=function e(n,t){switch(n.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return t&&e(n.statement,t)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=function(n){return e.some(n,ie)},e.needsScopeMarker=function(n){return!e.isAnyImportOrReExport(n)&&!e.isExportAssignment(n)&&!e.hasSyntacticModifier(n,1)&&!e.isAmbientModule(n)},e.isExternalModuleIndicator=function(n){return e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)},e.isForInOrOfStatement=function(e){return 242===e.kind||243===e.kind},e.isConciseBody=function(n){return e.isBlock(n)||ae(n)},e.isFunctionBody=function(n){return e.isBlock(n)},e.isForInitializer=function(n){return e.isVariableDeclarationList(n)||ae(n)},e.isModuleBody=function(e){var n=e.kind;return 261===n||260===n||79===n},e.isNamespaceBody=function(e){var n=e.kind;return 261===n||260===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 79===n||260===n},e.isNamedImportBindings=function(e){var n=e.kind;return 268===n||267===n},e.isModuleOrEnumDeclaration=function(e){return 260===e.kind||259===e.kind},e.isDeclaration=ce,e.isDeclarationStatement=function(e){return oe(e.kind)},e.isStatementButNotDeclaration=function(e){return se(e.kind)},e.isStatement=function(n){var t=n.kind;return se(t)||oe(t)||function(n){if(234!==n.kind)return!1;if(void 0!==n.parent&&(251===n.parent.kind||291===n.parent.kind))return!1;return!e.isFunctionBlock(n)}(n)},e.isStatementOrBlock=function(e){var n=e.kind;return se(n)||oe(n)||234===n},e.isModuleReference=function(e){var n=e.kind;return 276===n||160===n||79===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 108===n||79===n||205===n},e.isJsxChild=function(e){var n=e.kind;return 277===n||287===n||278===n||11===n||281===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 284===n||286===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 10===n||287===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 279===n||278===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 288===n||289===n},e.isJSDocNode=function(e){return e.kind>=307&&e.kind<=345},e.isJSDocCommentContainingNode=function(n){return 318===n.kind||317===n.kind||319===n.kind||de(n)||le(n)||e.isJSDocTypeLiteral(n)||e.isJSDocSignature(n)},e.isJSDocTag=le,e.isSetAccessor=function(e){return 172===e.kind},e.isGetAccessor=function(e){return 171===e.kind},e.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&n.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 284===e.kind||286===e.kind||Z(e)},e.isTypeReferenceType=function(e){return 177===e.kind||227===e.kind};var ue=1073741823;function de(e){return 322===e.kind||323===e.kind||324===e.kind}e.guessIndentation=function(n){for(var t=ue,r=0,a=n;r<a.length;r++){var i=a[r];if(i.length){for(var o=0;o<i.length&&o<t&&e.isWhiteSpaceLike(i.charCodeAt(o));o++);if(o<t&&(t=o),0===t)return 0}}return t===ue?void 0:t},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind},e.isJSDocLinkLike=de}(ha||(ha={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=function(e,n){var t=e.declarations;if(t)for(var r=0,a=t;r<a.length;r++){var i=a[r];if(i.kind===n)return i}},e.createUnderscoreEscapedMap=function(){return new e.Map},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(n){var t=new e.Map;if(n)for(var r=0,a=n;r<a.length;r++){var i=a[r];t.set(i.escapedName,i)}return t},e.isTransientSymbol=function(e){return 0!==(33554432&e.flags)};var n,t=function(){var n="",t=function(e){return n+=e};return{getText:function(){return n},write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:function(e,n){return t(e)},writeTrailingSemicolon:t,writeComment:t,getTextPos:function(){return n.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!n.length&&e.isWhiteSpaceLike(n.charCodeAt(n.length-1))},writeLine:function(){return n+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return n=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}();function r(n,t){return a(n,t,e.moduleResolutionOptionDeclarations)}function a(e,n,t){return e!==n&&t.some((function(t){return!_a(Nr(e,t),Nr(n,t))}))}function i(e){return e.end-e.pos}function o(n){return function(n){if(!(524288&n.flags)){(0!==(65536&n.flags)||e.forEachChild(n,o))&&(n.flags|=262144),n.flags|=524288}}(n),0!==(262144&n.flags)}function s(e){for(;e&&303!==e.kind;)e=e.parent;return e}function c(n,t){e.Debug.assert(n>=0);var r=e.getLineStarts(t),a=n,i=t.text;if(a+1===r.length)return i.length-1;var o=r[a],s=r[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function l(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function u(e){return!l(e)}function d(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r<e.length&&t(e[r]);++r);return e.splice.apply(e,pa([r,0],n,!1)),e}function p(e,n,t){if(void 0===n)return e;for(var r=0;r<e.length&&t(e[r]);++r);return e.splice(r,0,n),e}function f(e){return W(e)||!!(1048576&b(e))}function m(e,n){return 42===e.charCodeAt(n+1)&&33===e.charCodeAt(n+2)}function _(n,t,r){return l(n)?n.pos:e.isJSDocNode(n)||11===n.kind?e.skipTrivia((t||s(n)).text,n.pos,!1,!0):r&&e.hasJSDocNodes(n)?_(n.jsDoc[0],t):346===n.kind&&n._children.length>0?_(n._children[0],t,r):e.skipTrivia((t||s(n)).text,n.pos,!1,!1,be(n))}function g(e,n,t){return void 0===t&&(t=!1),y(e.text,n,t)}function y(n,t,r){if(void 0===r&&(r=!1),l(t))return"";var a=n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end);return function(n){return!!e.findAncestor(n,e.isJSDocTypeExpression)}(t)&&(a=a.split(/\r\n|\n|\r/).map((function(n){return e.trimStringStart(n.replace(/^\s*\*/,""))})).join("\n")),a}function h(e,n){return void 0===n&&(n=!1),g(s(e),e,n)}function v(e){return e.pos}function b(e){var n=e.emitNode;return n&&n.flags||0}function E(e){var n=In(e);return 253===n.kind&&291===n.parent.kind}function T(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||x(n))}function S(n){return e.isModuleDeclaration(n)||e.isIdentifier(n)}function x(e){return!!(1024&e.flags)}function L(e){return T(e)&&D(e)}function D(n){switch(n.parent.kind){case 303:return e.isExternalModule(n.parent);case 261:return T(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function C(n){var t;return null===(t=n.declarations)||void 0===t?void 0:t.find((function(n){return!L(n)&&!(e.isModuleDeclaration(n)&&x(n))}))}function A(n,t){switch(n.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration(t)}return!1}function I(n){switch(n.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(n),!1}}function k(e){switch(e.kind){case 265:case 264:return!0;default:return!1}}function N(n){return k(n)||e.isExportDeclaration(n)}function R(n){return e.findAncestor(n.parent,(function(e){return A(e,e.parent)}))}function O(e){return e&&0!==i(e)?h(e):"(Missing)"}function w(n){switch(n.kind){case 79:case 80:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 161:return Tn(n.expression)?e.escapeLeadingUnderscores(n.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(n)}}function M(n){switch(n.kind){case 108:return"this";case 80:case 79:return 0===i(n)?e.idText(n):h(n);case 160:return M(n.left)+"."+M(n.right);case 205:return e.isIdentifier(n.name)||e.isPrivateIdentifier(n.name)?M(n.expression)+"."+M(n.name):e.Debug.assertNever(n.name);case 309:return M(n.left)+M(n.right);default:return e.Debug.assertNever(n)}}function P(e,n,t,r,a,i,o){var s=U(e,n);return vr(e,s.start,s.length,t,r,a,i,o)}function F(n,t,r){e.Debug.assertGreaterThanOrEqual(t,0),e.Debug.assertGreaterThanOrEqual(r,0),n&&(e.Debug.assertLessThanOrEqual(t,n.text.length),e.Debug.assertLessThanOrEqual(t+r,n.text.length))}function G(e,n,t,r,a){return F(e,n,t),{file:e,start:n,length:t,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:a}}function B(n,t){var r=e.createScanner(n.languageVersion,!0,n.languageVariant,n.text,void 0,t);r.scan();var a=r.getTokenPos();return e.createTextSpanFromBounds(a,r.getTextPos())}function U(n,t){var r=t;switch(t.kind){case 303:var a=e.skipTrivia(n.text,0,!1);return a===n.text.length?e.createTextSpan(0,0):B(n,a);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:r=t.name;break;case 213:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&234===t.body.kind){var a=e.getLineAndCharacterOfPosition(n,t.body.pos).line;if(a<e.getLineAndCharacterOfPosition(n,t.body.end).line)return e.createTextSpan(r,c(a,n)-r+1)}return e.createTextSpanFromBounds(r,t.end)}(n,t);case 288:case 289:var i=e.skipTrivia(n.text,t.pos),o=t.statements.length>0?t.statements[0].pos:t.end;return e.createTextSpanFromBounds(i,o)}if(void 0===r)return B(n,t.pos);e.Debug.assert(!e.isJSDoc(r));var s=l(r),u=s||e.isJsxText(t)?r.pos:e.skipTrivia(n.text,r.pos);return s?(e.Debug.assert(u===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(u===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(u>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(u<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(u,r.end)}function V(e){return 6===e.scriptKind}function j(n){return!!(2&e.getCombinedNodeFlags(n))}function K(e){return 207===e.kind&&100===e.expression.kind}function H(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function W(e){return 237===e.kind&&10===e.expression.kind}function z(e){return!!(1048576&b(e))}function J(n){return e.isIdentifier(n.name)&&!n.initializer}e.changesAffectModuleResolution=function(e,n){return e.configFilePath!==n.configFilePath||r(e,n)},e.optionsHaveModuleResolutionChanges=r,e.changesAffectingProgramStructure=function(n,t){return a(n,t,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=a,e.forEachAncestor=function(n,t){for(;;){var r=t(n);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(n))return;n=n.parent}},e.forEachEntry=function(e,n){for(var t=e.entries(),r=t.next();!r.done;r=t.next()){var a=r.value,i=a[0],o=n(a[1],i);if(o)return o}},e.forEachKey=function(e,n){for(var t=e.keys(),r=t.next();!r.done;r=t.next()){var a=n(r.value);if(a)return a}},e.copyEntries=function(e,n){e.forEach((function(e,t){n.set(t,e)}))},e.usingSingleLineStringWriter=function(e){var n=t.getText();try{return e(t),t.getText()}finally{t.clear(),t.writeKeyword(n)}},e.getFullWidth=i,e.getResolvedModule=function(e,n,t){return e&&e.resolvedModules&&e.resolvedModules.get(n,t)},e.setResolvedModule=function(n,t,r,a){n.resolvedModules||(n.resolvedModules=e.createModeAwareCache()),n.resolvedModules.set(t,a,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),n.resolvedTypeReferenceDirectiveNames.set(t,void 0,r)},e.projectReferenceIsEqualTo=function(e,n){return e.path===n.path&&!e.prepend===!n.prepend&&!e.circular===!n.circular},e.moduleResolutionIsEqualTo=function(e,n){return e.isExternalLibraryImport===n.isExternalLibraryImport&&e.extension===n.extension&&e.resolvedFileName===n.resolvedFileName&&e.originalPath===n.originalPath&&(t=e.packageId,r=n.packageId,t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version);var t,r},e.packageIdToString=function(e){var n=e.name,t=e.subModuleName,r=e.version,a=t?"".concat(n,"/").concat(t):n;return"".concat(a,"@").concat(r)},e.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary&&e.originalPath===n.originalPath},e.hasChangesInResolutions=function(n,t,r,a,i){e.Debug.assert(n.length===t.length);for(var o=0;o<n.length;o++){var s=t[o],c=r&&r.get(n[o],a&&e.getModeForResolutionAtIndex(a,o));if(c?!s||!i(c,s):s)return!0}return!1},e.containsParseError=o,e.getSourceFileOfNode=s,e.getSourceFileOfModule=function(e){return s(e.valueDeclaration||C(e))},e.isStatementWithLocals=function(e){switch(e.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1},e.getStartPositionOfLine=function(n,t){return e.Debug.assert(n>=0),e.getLineStarts(t)[n]},e.nodePosToString=function(n){var t=s(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return"".concat(t.fileName,"(").concat(r.line+1,",").concat(r.character+1,")")},e.getEndLinePosition=c,e.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n))&&!e.identifiers.has(n)},e.nodeIsMissing=l,e.nodeIsPresent=u,e.insertStatementsAfterStandardPrologue=function(e,n){return d(e,n,W)},e.insertStatementsAfterCustomPrologue=function(e,n){return d(e,n,f)},e.insertStatementAfterStandardPrologue=function(e,n){return p(e,n,W)},e.insertStatementAfterCustomPrologue=function(e,n){return p(e,n,f)},e.isRecognizedTripleSlashComment=function(n,t,r){if(47===n.charCodeAt(t+1)&&t+2<r&&47===n.charCodeAt(t+2)){var a=n.substring(t,r);return!!(e.fullTripleSlashReferencePathRegEx.test(a)||e.fullTripleSlashAMDReferencePathRegEx.test(a)||q.test(a)||ee.test(a))}return!1},e.isPinnedComment=m,e.createCommentDirectivesMap=function(n,t){var r=new e.Map(t.map((function(t){return["".concat(e.getLineAndCharacterOfPosition(n,t.range.end).line),t]}))),a=new e.Map;return{getUnusedExpectations:function(){return e.arrayFrom(r.entries()).filter((function(e){var n=e[0];return 0===e[1].type&&!a.get(n)})).map((function(e){e[0];return e[1]}))},markUsed:function(e){if(!r.has("".concat(e)))return!1;return a.set("".concat(e),!0),!0}}},e.getTokenPosOfNode=_,e.getNonDecoratorTokenPosOfNode=function(n,t){return l(n)||!n.decorators?_(n,t):e.skipTrivia((t||s(n)).text,n.decorators.end)},e.getSourceTextOfNodeFromSourceFile=g,e.isExportNamespaceAsDefaultDeclaration=function(n){return!!(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause)&&"default"===n.exportClause.name.escapedText)},e.getTextOfNodeFromSourceText=y,e.getTextOfNode=h,e.indexOfNode=function(n,t){return e.binarySearch(n,t,v,e.compareValues)},e.getEmitFlags=b,e.getScriptTargetFeatures=function(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}},(n=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[n.None=0]="None",n[n.NeverAsciiEscape=1]="NeverAsciiEscape",n[n.JsxAttributeEscape=2]="JsxAttributeEscape",n[n.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",n[n.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=function(n,t,r){var a;if(function(n,t){if(kn(n)||!n.parent||4&t&&n.isUnterminated)return!1;if(e.isNumericLiteral(n)&&512&n.numericLiteralFlags)return!!(8&t);return!e.isBigIntLiteral(n)}(n,r))return g(t,n);switch(n.kind){case 10:var i=2&r?Xn:1&r||16777216&b(n)?jn:Hn;return n.singleQuote?"'"+i(n.text,39)+"'":'"'+i(n.text,34)+'"';case 14:case 15:case 16:case 17:i=1&r||16777216&b(n)?jn:Hn;var o=null!==(a=n.rawText)&&void 0!==a?a:i(n.text,96).replace(Mn,"\\${");switch(n.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return n.text;case 13:return 4&r&&n.isUnterminated?n.text+(92===n.text.charCodeAt(n.text.length-1)?" /":"/"):n.text}return e.Debug.fail("Literal kind '".concat(n.kind,"' not accounted for."))},e.getTextOfConstantValue=function(n){return e.isString(n)?'"'+Hn(n)+'"':""+n},e.makeIdentifierFromModuleName=function(n){return e.getBaseFileName(n).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(n){return 0!==(3&e.getCombinedNodeFlags(n))||E(n)},e.isCatchClauseVariableDeclarationOrBindingElement=E,e.isAmbientModule=T,e.isModuleWithStringLiteralName=function(n){return e.isModuleDeclaration(n)&&10===n.name.kind},e.isNonGlobalAmbientModule=function(n){return e.isModuleDeclaration(n)&&e.isStringLiteral(n.name)},e.isEffectiveModuleDeclaration=S,e.isShorthandAmbientModuleSymbol=function(e){return!!(n=e.valueDeclaration)&&260===n.kind&&!n.body;var n},e.isBlockScopedContainerTopLevel=function(n){return 303===n.kind||260===n.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(n)},e.isGlobalScopeAugmentation=x,e.isExternalModuleAugmentation=L,e.isModuleAugmentationExternal=D,e.getNonAugmentationDeclaration=C,e.isEffectiveExternalModule=function(n,t){return e.isExternalModule(n)||t.isolatedModules||((r=Dr(t))===e.ModuleKind.CommonJS||r===e.ModuleKind.Node12||r===e.ModuleKind.NodeNext)&&!!n.commonJsModuleIndicator;var r},e.isEffectiveStrictModeSourceFile=function(n,t){switch(n.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!n.isDeclarationFile&&(!!Ir(t,"alwaysStrict")||(!!e.startsWithUseStrict(n.statements)||!(!e.isExternalModule(n)&&!t.isolatedModules)&&(Dr(t)>=e.ModuleKind.ES2015||!t.noImplicitUseStrict)))},e.isBlockScope=A,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 336:case 343:case 321:return!0;default:return e.assertType(n),I(n)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=k,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(n){return N(n)||e.isModuleDeclaration(n)||e.isImportTypeNode(n)||K(n)},e.isAnyImportOrReExport=N,e.getEnclosingBlockScopeContainer=R,e.forEachEnclosingBlockScopeContainer=function(e,n){for(var t=R(e);t;)n(t),t=R(t)},e.declarationNameToString=O,e.getNameFromIndexInfo=function(e){return e.declaration?O(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 161===e.kind&&!Tn(e.expression)},e.getTextOfPropertyName=w,e.entityNameToString=M,e.createDiagnosticForNode=function(e,n,t,r,a,i){return P(s(e),e,n,t,r,a,i)},e.createDiagnosticForNodeArray=function(n,t,r,a,i,o,s){var c=e.skipTrivia(n.text,t.pos);return vr(n,c,t.end-c,r,a,i,o,s)},e.createDiagnosticForNodeInSourceFile=P,e.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=s(e),a=U(r,e);return G(r,a.start,a.length,n,t)},e.createFileDiagnosticFromMessageChain=G,e.createDiagnosticForFileFromMessageChain=function(e,n,t){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}},e.createDiagnosticForRange=function(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}},e.getSpanOfTokenAtPosition=B,e.getErrorSpanForNode=U,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=V,e.isEnumConst=function(n){return!!(2048&e.getCombinedModifierFlags(n))},e.isDeclarationReadonly=function(n){return!(!(64&e.getCombinedModifierFlags(n))||e.isParameterPropertyDeclaration(n,n.parent))},e.isVarConst=j,e.isLet=function(n){return!!(1&e.getCombinedNodeFlags(n))},e.isSuperCall=function(e){return 207===e.kind&&106===e.expression.kind},e.isImportCall=K,e.isImportMeta=function(n){return e.isMetaProperty(n)&&100===n.keywordToken&&"meta"===n.name.escapedText},e.isLiteralImportTypeNode=H,e.isPrologueDirective=W,e.isCustomPrologue=z,e.isHoistedFunction=function(n){return z(n)&&e.isFunctionDeclaration(n)},e.isHoistedVariableStatement=function(n){return z(n)&&e.isVariableStatement(n)&&e.every(n.declarationList.declarations,J)},e.getLeadingCommentRangesOfNode=function(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=163===n.kind||162===n.kind||212===n.kind||213===n.kind||211===n.kind||253===n.kind?e.concatenate(e.getTrailingCommentRanges(t,n.pos),e.getLeadingCommentRanges(t,n.pos)):e.getLeadingCommentRanges(t,n.pos);return e.filter(r,(function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var q=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Y,Q,Z,$,ee=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function ne(n){if(176<=n.kind&&n.kind<=199)return!0;switch(n.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return 216!==n.parent.kind;case 227:return!Vt(n);case 162:return 194===n.parent.kind||189===n.parent.kind;case 79:(160===n.parent.kind&&n.parent.right===n||205===n.parent.kind&&n.parent.name===n)&&(n=n.parent),e.Debug.assert(79===n.kind||160===n.kind||205===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:var t=n.parent;if(180===t.kind)return!1;if(199===t.kind)return!t.isTypeOf;if(176<=t.kind&&t.kind<=199)return!0;switch(t.kind){case 227:return!Vt(t);case 162:case 342:return n===t.constraint;case 166:case 165:case 163:case 253:case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:case 173:case 174:case 175:case 210:return n===t.type;case 207:case 208:return e.contains(t.typeArguments,n);case 209:return!1}}return!1}function te(e){if(e)switch(e.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}function re(e){return 254===e.parent.kind&&236===e.parent.parent.kind}function ae(e,n,t){return e.properties.filter((function(e){if(294===e.kind){var r=w(e.name);return n===r||!!t&&t===r}return!1}))}function ie(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function oe(n,t){var r=ie(n);return r?ae(r,t):e.emptyArray}function se(n,t){for(e.Debug.assert(303!==n.kind);;){if(!(n=n.parent))return e.Debug.fail();switch(n.kind){case 161:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 164:163===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 213:if(!t)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return n}}}function ce(e){var n=e.kind;return(205===n||206===n)&&106===e.expression.kind}function le(n,t,r){if(e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name))return!1;switch(n.kind){case 256:return!0;case 166:return 256===t.kind;case 171:case 172:case 168:return void 0!==n.body&&256===t.kind;case 163:return void 0!==t.body&&(170===t.kind||168===t.kind||172===t.kind)&&256===r.kind}return!1}function ue(e,n,t){return void 0!==e.decorators&&le(e,n,t)}function de(e,n,t){return ue(e,n,t)||pe(e,n)}function pe(n,t){switch(n.kind){case 256:return e.some(n.members,(function(e){return de(e,n,t)}));case 168:case 172:case 170:return e.some(n.parameters,(function(e){return ue(e,n,t)}));default:return!1}}function fe(e){var n=e.parent;return(279===n.kind||278===n.kind||280===n.kind)&&n.tagName===e}function me(n){switch(n.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;160===n.parent.kind;)n=n.parent;return 180===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||fe(n);case 309:for(;e.isJSDocMemberName(n.parent);)n=n.parent;return 180===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||fe(n);case 80:return e.isBinaryExpression(n.parent)&&n.parent.left===n&&101===n.parent.operatorToken.kind;case 79:if(180===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||fe(n))return!0;case 8:case 9:case 10:case 14:case 108:return _e(n);default:return!1}}function _e(e){var n=e.parent;switch(n.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return n.initializer===e;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return n.expression===e;case 241:var t=n;return t.initializer===e&&254!==t.initializer.kind||t.condition===e||t.incrementor===e;case 242:case 243:var r=n;return r.initializer===e&&254!==r.initializer.kind||r.expression===e;case 210:case 228:case 232:case 161:return e===n.expression;case 164:case 287:case 286:case 296:return!0;case 227:return n.expression===e&&Vt(n);case 295:return n.objectAssignmentInitializer===e;default:return me(n)}}function ge(e){for(;160===e.kind||79===e.kind;)e=e.parent;return 180===e.kind}function ye(e){return 264===e.kind&&276===e.moduleReference.kind}function he(e){return ve(e)}function ve(e){return!!e&&!!(131072&e.flags)}function be(e){return!!e&&!!(4194304&e.flags)}function Ee(n,t){if(207!==n.kind)return!1;var r=n,a=r.expression,i=r.arguments;if(79!==a.kind||"require"!==a.escapedText)return!1;if(1!==i.length)return!1;var o=i[0];return!t||e.isStringLiteralLike(o)}function Te(e){return xe(e,!1)}function Se(e){return xe(e,!0)}function xe(n,t){return 202===n.kind&&(n=n.parent.parent),e.isVariableDeclaration(n)&&!!n.initializer&&Ee(t?sr(n.initializer):n.initializer,!0)}function Le(n){return e.isBinaryExpression(n)||or(n)||e.isIdentifier(n)||e.isCallExpression(n)}function De(n){return ve(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&(56===n.initializer.operatorToken.kind||60===n.initializer.operatorToken.kind)&&n.name&&jt(n.name)&&Ae(n.name,n.initializer.left)?n.initializer.right:n.initializer}function Ce(n,t){if(e.isCallExpression(n)){var r=un(n.expression);return 212===r.kind||213===r.kind?n:void 0}return 212===n.kind||225===n.kind||213===n.kind||e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function Ae(n,t){if(Cn(n)&&Cn(t))return An(n)===An(t);if(e.isIdentifier(n)&&Me(t)&&(108===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Ue(t);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ae(n,r)}return!(!Me(n)||!Me(t))&&(je(n)===je(t)&&Ae(n.expression,t.expression))}function Ie(e){for(;Ut(e,!0);)e=e.right;return e}function ke(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function Ne(n){return e.isIdentifier(n)&&"module"===n.escapedText}function Re(n){return(e.isPropertyAccessExpression(n)||Pe(n))&&Ne(n.expression)&&"exports"===je(n)}function Oe(n){var t=function(n){if(e.isCallExpression(n)){if(!we(n))return 0;var t=n.arguments[0];return ke(t)||Re(t)?8:Fe(t)&&"prototype"===je(t)?9:7}if(63!==n.operatorToken.kind||!or(n.left)||(r=Ie(n),e.isVoidExpression(r)&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text))return 0;var r;if(Be(n.left.expression,!0)&&"prototype"===je(n.left)&&e.isObjectLiteralExpression(He(n)))return 6;return Ke(n.left)}(n);return 5===t||ve(n)?t:0}function we(n){return 3===e.length(n.arguments)&&e.isPropertyAccessExpression(n.expression)&&e.isIdentifier(n.expression.expression)&&"Object"===e.idText(n.expression.expression)&&"defineProperty"===e.idText(n.expression.name)&&Tn(n.arguments[1])&&Be(n.arguments[0],!0)}function Me(n){return e.isPropertyAccessExpression(n)||Pe(n)}function Pe(n){return e.isElementAccessExpression(n)&&Tn(n.argumentExpression)}function Fe(n,t){return e.isPropertyAccessExpression(n)&&(!t&&108===n.expression.kind||e.isIdentifier(n.name)&&Be(n.expression,!0))||Ge(n,t)}function Ge(e,n){return Pe(e)&&(!n&&108===e.expression.kind||jt(e.expression)||Fe(e.expression,!0))}function Be(e,n){return jt(e)||Fe(e,n)}function Ue(n){return e.isPropertyAccessExpression(n)?n.name:n.argumentExpression}function Ve(n){if(e.isPropertyAccessExpression(n))return n.name;var t=un(n.argumentExpression);return e.isNumericLiteral(t)||e.isStringLiteralLike(t)?t:n}function je(n){var t=Ve(n);if(t){if(e.isIdentifier(t))return t.escapedText;if(e.isStringLiteralLike(t)||e.isNumericLiteral(t))return e.escapeLeadingUnderscores(t.text)}}function Ke(n){if(108===n.expression.kind)return 4;if(Re(n))return 2;if(Be(n.expression,!0)){if(Ht(n.expression))return 3;for(var t=n;!e.isIdentifier(t.expression);)t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===je(t))&&Fe(n))return 1;if(Be(n,!0)||e.isElementAccessExpression(n)&&Ln(n))return 5}return 0}function He(n){for(;e.isBinaryExpression(n.right);)n=n.right;return n.right}function We(n){switch(n.parent.kind){case 265:case 271:return n.parent;case 276:return n.parent.parent;case 207:return K(n.parent)||Ee(n.parent,!1)?n.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function ze(n){switch(n.kind){case 265:case 271:return n.moduleSpecifier;case 264:return 276===n.moduleReference.kind?n.moduleReference.expression:void 0;case 199:return H(n)?n.argument.literal:void 0;case 207:return n.arguments[0];case 260:return 10===n.name.kind?n.name:void 0;default:return e.Debug.assertNever(n)}}function Je(e){return 343===e.kind||336===e.kind||337===e.kind}function qe(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==Oe(n.expression)&&e.isBinaryExpression(n.expression.right)&&(56===n.expression.right.operatorToken.kind||60===n.expression.right.operatorToken.kind)?n.expression.right.right:void 0}function Xe(e){switch(e.kind){case 236:var n=Ye(e);return n&&n.initializer;case 166:case 294:return e.initializer}}function Ye(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function Qe(n){return e.isModuleDeclaration(n)&&n.body&&260===n.body.kind?n.body:void 0}function Ze(n,t){if(e.isJSDoc(t)){var r=e.filter(t.tags,(function(e){return $e(n,e)}));return t.tags===r?[t]:r}return $e(n,t)?[t]:void 0}function $e(n,t){return!e.isJSDocTypeTag(t)||!t.parent||!e.isJSDoc(t.parent)||!e.isParenthesizedExpression(t.parent.parent)||t.parent.parent===n}function en(n){var t=n.parent;return 294===t.kind||270===t.kind||166===t.kind||237===t.kind&&205===n.kind||246===t.kind||Qe(t)||e.isBinaryExpression(n)&&63===n.operatorToken.kind?t:t.parent&&(Ye(t.parent)===n||e.isBinaryExpression(t)&&63===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Ye(t.parent.parent)||Xe(t.parent.parent)===n||qe(t.parent.parent))?t.parent.parent:void 0}function nn(n){var t=tn(n);return t&&e.isFunctionLike(t)?t:void 0}function tn(n){var t=rn(n);if(t)return qe(t)||function(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&63===n.expression.operatorToken.kind?Ie(n.expression):void 0}(t)||Xe(t)||Ye(t)||Qe(t)||t}function rn(n){var t=an(n);if(t){var r=t.parent;return r&&r.jsDoc&&t===e.lastOrUndefined(r.jsDoc)?r:void 0}}function an(n){return e.findAncestor(n.parent,e.isJSDoc)}function on(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&316===t.kind}function sn(e){for(var n=e.parent;;){switch(n.kind){case 220:var t=n.operatorToken.kind;return Ft(t)&&n.left===e?63===t||Pt(t)?1:2:0;case 218:case 219:var r=n.operator;return 45===r||46===r?2:0;case 242:case 243:return n.initializer===e?1:0;case 211:case 203:case 224:case 229:e=n;break;case 296:e=n.parent;break;case 295:if(n.name!==e)return 0;e=n.parent;break;case 294:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function cn(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function ln(e){return cn(e,211)}function un(n,t){var r=t?17:1;return e.skipOuterExpressions(n,r)}function dn(n){return jt(n)||e.isClassExpression(n)}function pn(e){return dn(fn(e))}function fn(n){return e.isExportAssignment(n)?n.expression:n.right}function mn(n){var t=_n(n);if(t&&ve(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function _n(e){var n=hn(e.heritageClauses,94);return n&&n.types.length>0?n.types[0]:void 0}function gn(n){if(ve(n))return e.getJSDocImplementsTags(n).map((function(e){return e.class}));var t=hn(n.heritageClauses,117);return null===t||void 0===t?void 0:t.types}function yn(e){var n=hn(e.heritageClauses,94);return n?n.types:void 0}function hn(e,n){if(e)for(var t=0,r=e;t<r.length;t++){var a=r[t];if(a.token===n)return a}}function vn(e){return 81<=e&&e<=159}function bn(e){return 126<=e&&e<=159}function En(e){return vn(e)&&!bn(e)}function Tn(n){return e.isStringLiteralLike(n)||e.isNumericLiteral(n)}function Sn(n){return e.isPrefixUnaryExpression(n)&&(39===n.operator||40===n.operator)&&e.isNumericLiteral(n.operand)}function xn(n){var t=e.getNameOfDeclaration(n);return!!t&&Ln(t)}function Ln(n){if(161!==n.kind&&206!==n.kind)return!1;var t=e.isElementAccessExpression(n)?un(n.argumentExpression):n.expression;return!Tn(t)&&!Sn(t)}function Dn(n){switch(n.kind){case 79:case 80:return n.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(n.text);case 161:var t=n.expression;return Tn(t)?e.escapeLeadingUnderscores(t.text):Sn(t)?40===t.operator?e.tokenToString(t.operator)+t.operand.text:t.operand.text:void 0;default:return e.Debug.assertNever(n)}}function Cn(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function An(n){return e.isMemberName(n)?e.idText(n):n.text}function In(e){for(;202===e.kind;)e=e.parent.parent;return e}function kn(e){return ua(e.pos)||ua(e.end)}function Nn(e,n,t){switch(e){case 208:return t?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch(n){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Rn(e){return 220===e.kind?e.operatorToken.kind:218===e.kind||219===e.kind?e.operator:e.kind}function On(e,n,t){switch(e){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch(n){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return wn(n)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return t?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}function wn(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=ne,e.isChildOfNodeWithKind=function(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(n,t){return function n(r){switch(r.kind){case 246:return t(r);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(r,n)}}(n)},e.forEachYieldExpression=function(n,t){return function n(r){switch(r.kind){case 223:t(r);var a=r.expression;return void(a&&n(a));case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(r)){if(r.name&&161===r.name.kind)return void n(r.name.expression)}else ne(r)||e.forEachChild(r,n)}}(n)},e.getRestParameterElementType=function(n){return n&&182===n.kind?n.elementType:n&&177===n.kind?e.singleOrUndefined(n.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 257:case 256:case 225:case 181:return e.members;case 204:return e.properties}},e.isVariableLike=te,e.isVariableLikeOrAccessor=function(n){return te(n)||e.isAccessor(n)},e.isVariableDeclarationInVariableStatement=re,e.isValidESSymbolDeclaration=function(n){return e.isVariableDeclaration(n)?j(n)&&e.isIdentifier(n.name)&&re(n):e.isPropertyDeclaration(n)?Dt(n)&&Lt(n):e.isPropertySignature(n)&&Dt(n)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,n){for(;;){if(n&&n(e),249!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(n){return n&&234===n.kind&&e.isFunctionLike(n.parent)},e.isObjectLiteralMethod=function(e){return e&&168===e.kind&&204===e.parent.kind},e.isObjectLiteralOrClassExpressionMethodOrAccessor=function(e){return(168===e.kind||171===e.kind||172===e.kind)&&(204===e.parent.kind||225===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=ae,e.getPropertyArrayElementValue=function(n,t,r){return e.firstDefined(ae(n,t),(function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,(function(n){return e.isStringLiteral(n)&&n.text===r})):void 0}))},e.getTsConfigObjectLiteralExpression=ie,e.getTsConfigPropArrayElementValue=function(n,t,r){return e.firstDefined(oe(n,t),(function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,(function(n){return e.isStringLiteral(n)&&n.text===r})):void 0}))},e.getTsConfigPropArray=oe,e.getContainingFunction=function(n){return e.findAncestor(n.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(n){return e.findAncestor(n.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(n){return e.findAncestor(n.parent,e.isClassLike)},e.getContainingClassStaticBlock=function(n){return e.findAncestor(n.parent,(function(n){return e.isClassLike(n)||e.isFunctionLike(n)?"quit":e.isClassStaticBlockDeclaration(n)}))},e.getContainingFunctionOrClassStaticBlock=function(n){return e.findAncestor(n.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)},e.getThisContainer=se,e.isInTopLevelContext=function(n){e.isIdentifier(n)&&(e.isClassDeclaration(n.parent)||e.isFunctionDeclaration(n.parent))&&n.parent.name===n&&(n=n.parent);var t=se(n,!0);return e.isSourceFile(t)},e.getNewTargetContainer=function(e){var n=se(e,!1);if(n)switch(n.kind){case 170:case 255:case 212:return n}},e.getSuperContainer=function(n,t){for(;;){if(!(n=n.parent))return n;switch(n.kind){case 161:n=n.parent;break;case 255:case 212:case 213:if(!t)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return n;case 164:163===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(212===e.kind||213===e.kind){for(var n=e,t=e.parent;211===t.kind;)n=t,t=t.parent;if(207===t.kind&&t.expression===n)return t}},e.isSuperOrSuperProperty=function(e){return 106===e.kind||ce(e)},e.isSuperProperty=ce,e.isThisProperty=function(e){var n=e.kind;return(205===n||206===n)&&108===e.expression.kind},e.isThisInitializedDeclaration=function(n){var t;return!!n&&e.isVariableDeclaration(n)&&108===(null===(t=n.initializer)||void 0===t?void 0:t.kind)},e.isThisInitializedObjectBindingExpression=function(n){return!!n&&(e.isShorthandPropertyAssignment(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&63===n.parent.parent.operatorToken.kind&&108===n.parent.parent.right.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 177:return e.typeName;case 227:return jt(e.expression)?e.expression:void 0;case 79:case 160:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 209:return e.tag;case 279:case 278:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=le,e.nodeIsDecorated=ue,e.nodeOrChildIsDecorated=de,e.childIsDecorated=pe,e.classOrConstructorParameterIsDecorated=function(e){if(ue(e))return!0;var n=dt(e);return!!n&&pe(n,e)},e.isJSXTagName=fe,e.isExpressionNode=me,e.isInExpressionContext=_e,e.isPartOfTypeQuery=ge,e.isNamespaceReexportDeclaration=function(n){return e.isNamespaceExport(n)&&!!n.parent.moduleSpecifier},e.isExternalModuleImportEqualsDeclaration=ye,e.getExternalModuleImportEqualsDeclarationExpression=function(n){return e.Debug.assert(ye(n)),n.moduleReference.expression},e.getExternalModuleRequireArgument=function(e){return Se(e)&&sr(e.initializer).arguments[0]},e.isInternalModuleImportEqualsDeclaration=function(e){return 264===e.kind&&276!==e.moduleReference.kind},e.isSourceFileJS=he,e.isSourceFileNotJS=function(e){return!ve(e)},e.isInJSFile=ve,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},e.isSourceFileNotJson=function(e){return!V(e)},e.isInJSDoc=be,e.isJSDocIndexSignature=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&n.typeArguments&&2===n.typeArguments.length&&(149===n.typeArguments[0].kind||146===n.typeArguments[0].kind)},e.isRequireCall=Ee,e.isVariableDeclarationInitializedToRequire=Te,e.isVariableDeclarationInitializedToBareOrAccessedRequire=Se,e.isRequireVariableStatement=function(n){return e.isVariableStatement(n)&&n.declarationList.declarations.length>0&&e.every(n.declarationList.declarations,(function(e){return Te(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,n){return 34===g(n,e).charCodeAt(0)},e.isAssignmentDeclaration=Le,e.getEffectiveInitializer=De,e.getDeclaredExpandoInitializer=function(e){var n=De(e);return n&&Ce(n,Ht(e.name))},e.getAssignedExpandoInitializer=function(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind){var t=Ht(n.parent.left);return Ce(n.parent.right,t)||function(n,t,r){var a=e.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&Ce(t.right,r);if(a&&Ae(n,t.left))return a}(n.parent.left,n.parent.right,t)}if(n&&e.isCallExpression(n)&&we(n)){var r=function(n,t){return e.forEach(n.properties,(function(n){return e.isPropertyAssignment(n)&&e.isIdentifier(n.name)&&"value"===n.name.escapedText&&n.initializer&&Ce(n.initializer,t)}))}(n.arguments[2],"prototype"===n.arguments[1].text);if(r)return r}},e.getExpandoInitializer=Ce,e.isDefaultedExpandoInitializer=function(n){var t=e.isVariableDeclaration(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind?n.parent.left:void 0;return t&&Ce(n.right,Ht(t))&&jt(t)&&Ae(t,n.left)},e.getNameOfExpando=function(n){if(e.isBinaryExpression(n.parent)){var t=56!==n.parent.operatorToken.kind&&60!==n.parent.operatorToken.kind||!e.isBinaryExpression(n.parent.parent)?n.parent:n.parent.parent;if(63===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name},e.isSameEntityName=Ae,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=ke,e.isModuleIdentifier=Ne,e.isModuleExportsAccessExpression=Re,e.getAssignmentDeclarationKind=Oe,e.isBindableObjectDefinePropertyCall=we,e.isLiteralLikeAccess=Me,e.isLiteralLikeElementAccess=Pe,e.isBindableStaticAccessExpression=Fe,e.isBindableStaticElementAccessExpression=Ge,e.isBindableStaticNameExpression=Be,e.getNameOrArgument=Ue,e.getElementOrPropertyAccessArgumentExpressionOrName=Ve,e.getElementOrPropertyAccessName=je,e.getAssignmentDeclarationPropertyAccessKind=Ke,e.getInitializerOfBinaryExpression=He,e.isPrototypePropertyAssignment=function(n){return e.isBinaryExpression(n)&&3===Oe(n)},e.isSpecialPropertyDeclaration=function(n){return ve(n)&&n.parent&&237===n.parent.kind&&(!e.isElementAccessExpression(n)||Pe(n))&&!!e.getJSDocTypeTag(n.parent)},e.setValueDeclaration=function(e,n){var t=e.valueDeclaration;(!t||(!(8388608&n.flags)||8388608&t.flags)&&Le(t)&&!Le(n)||t.kind!==n.kind&&S(t))&&(e.valueDeclaration=n)},e.isFunctionSymbol=function(n){if(!n||!n.valueDeclaration)return!1;var t=n.valueDeclaration;return 255===t.kind||e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionLike(t.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(n){var t,r,a;switch(n.kind){case 253:return n.initializer.arguments[0].text;case 265:return null===(t=e.tryCast(n.moduleSpecifier,e.isStringLiteralLike))||void 0===t?void 0:t.text;case 264:return null===(a=e.tryCast(null===(r=e.tryCast(n.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike))||void 0===a?void 0:a.text;default:e.Debug.assertNever(n)}},e.importFromModuleSpecifier=function(n){return We(n)||e.Debug.failBadSyntaxKind(n.parent)},e.tryGetImportFromModuleSpecifier=We,e.getExternalModuleName=ze,e.getNamespaceDeclarationNode=function(n){switch(n.kind){case 265:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 264:return n;case 271:return n.exportClause&&e.tryCast(n.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(n)}},e.isDefaultImport=function(e){return 265===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(n,t){var r;if(n.name&&(r=t(n)))return r;if(n.namedBindings&&(r=e.isNamespaceImport(n.namedBindings)?t(n.namedBindings):e.forEach(n.namedBindings.elements,t)))return r},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(n){var t=e.isJSDocFunctionType(n)?e.firstOrUndefined(n.parameters):void 0,r=e.tryCast(t&&t.name,e.isIdentifier);return!!r&&"new"===r.escapedText},e.isJSDocTypeAlias=Je,e.isTypeAlias=function(n){return Je(n)||e.isTypeAliasDeclaration(n)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Xe,e.getSingleVariableOfVariableStatement=Ye,e.getJSDocCommentsAndTags=function(n,t){var r;te(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(r=e.addRange(r,Ze(n,e.last(n.initializer.jsDoc))));for(var a=n;a&&a.parent;){if(e.hasJSDocNodes(a)&&(r=e.addRange(r,Ze(n,e.last(a.jsDoc)))),163===a.kind){r=e.addRange(r,(t?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(a));break}if(162===a.kind){r=e.addRange(r,(t?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(a));break}a=en(a)}return r||e.emptyArray},e.getNextJSDocCommentLocation=en,e.getParameterSymbolFromJSDoc=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=nn(n);if(r){var a=e.find(r.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===t}));return a&&a.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(n){if(e.isJSDoc(n.parent)&&n.parent.tags){var t=e.find(n.parent.tags,Je);if(t)return t}return nn(n)},e.getHostSignatureFromJSDoc=nn,e.getEffectiveJSDocHost=tn,e.getJSDocHost=rn,e.getJSDocRoot=an,e.getTypeParameterFromJsDoc=function(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return r&&e.find(r,(function(e){return e.name.escapedText===t}))},e.hasRestParameter=function(n){var t=e.lastOrUndefined(n.parameters);return!!t&&on(t)},e.isRestParameter=on,e.hasTypeArguments=function(e){return!!e.typeArguments},(Y=e.AssignmentKind||(e.AssignmentKind={}))[Y.None=0]="None",Y[Y.Definite=1]="Definite",Y[Y.Compound=2]="Compound",e.getAssignmentTargetKind=sn,e.isAssignmentTarget=function(e){return 0!==sn(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1},e.isValueSignatureDeclaration=function(n){return e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isMethodOrAccessor(n)||e.isFunctionDeclaration(n)||e.isConstructorDeclaration(n)},e.walkUpParenthesizedTypes=function(e){return cn(e,190)},e.walkUpParenthesizedExpressions=ln,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var n;e&&190===e.kind;)n=e,e=e.parent;return[n,e]},e.skipParentheses=un,e.isDeleteTarget=function(e){return(205===e.kind||206===e.kind)&&((e=ln(e.parent))&&214===e.kind)},e.isNodeDescendantOf=function(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1},e.isDeclarationName=function(n){return!e.isSourceFile(n)&&!e.isBindingPattern(n)&&e.isDeclaration(n.parent)&&n.parent.name===n},e.getDeclarationFromName=function(n){var t=n.parent;switch(n.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(t))return t.parent;case 79:if(e.isDeclaration(t))return t.name===n?t:void 0;if(e.isQualifiedName(t)){var r=t.parent;return e.isJSDocParameterTag(r)&&r.name===t?r:void 0}var a=t.parent;return e.isBinaryExpression(a)&&0!==Oe(a)&&(a.left.symbol||a.symbol)&&e.getNameOfDeclaration(a)===n?a:void 0;case 80:return e.isDeclaration(t)&&t.name===n?t:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(n){return Tn(n)&&161===n.parent.kind&&e.isDeclaration(n.parent.parent)},e.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return n.name===e;case 160:return n.right===e;case 202:case 269:return n.propertyName===e;case 274:case 284:return!0}return!1},e.isAliasSymbolDeclaration=function(n){return 264===n.kind||263===n.kind||266===n.kind&&!!n.name||267===n.kind||273===n.kind||269===n.kind||274===n.kind||270===n.kind&&pn(n)||e.isBinaryExpression(n)&&2===Oe(n)&&pn(n)||e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind&&dn(n.parent.right)||295===n.kind||294===n.kind&&dn(n.initializer)},e.getAliasDeclarationFromName=function e(n){switch(n.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return n.parent;case 160:do{n=n.parent}while(160===n.parent.kind);return e(n)}},e.isAliasableExpression=dn,e.exportAssignmentIsAlias=pn,e.getExportAssignmentExpression=fn,e.getPropertyAssignmentAliasLikeExpression=function(e){return 295===e.kind?e.name:294===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=mn,e.getClassExtendsHeritageElement=_n,e.getEffectiveImplementsTypeNodes=gn,e.getAllSuperTypeNodes=function(n){return e.isInterfaceDeclaration(n)?yn(n)||e.emptyArray:e.isClassLike(n)&&e.concatenate(e.singleElementArray(mn(n)),gn(n))||e.emptyArray},e.getInterfaceBaseTypeNodes=yn,e.getHeritageClause=hn,e.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},e.isKeyword=vn,e.isContextualKeyword=bn,e.isNonContextualKeyword=En,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&En(t)},e.isStringAKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&vn(t)},e.isIdentifierANonContextualKeyword=function(e){var n=e.originalKeywordKind;return!!n&&!bn(n)},e.isTrivia=function(e){return 2<=e&&e<=7},(Q=e.FunctionFlags||(e.FunctionFlags={}))[Q.Normal=0]="Normal",Q[Q.Generator=1]="Generator",Q[Q.Async=2]="Async",Q[Q.Invalid=4]="Invalid",Q[Q.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var n=0;switch(e.kind){case 255:case 212:case 168:e.asteriskToken&&(n|=1);case 213:St(e,256)&&(n|=2)}return e.body||(n|=4),n},e.isAsyncFunction=function(e){switch(e.kind){case 255:case 212:case 213:case 168:return void 0!==e.body&&void 0===e.asteriskToken&&St(e,256)}return!1},e.isStringOrNumericLiteralLike=Tn,e.isSignedNumericLiteral=Sn,e.hasDynamicName=xn,e.isDynamicName=Ln,e.getPropertyNameForPropertyNameNode=Dn,e.isPropertyNameLiteral=Cn,e.getTextOfIdentifierOrLiteral=An,e.getEscapedTextOfIdentifierOrLiteral=function(n){return e.isMemberName(n)?n.escapedText:e.escapeLeadingUnderscores(n.text)},e.getPropertyNameForUniqueESSymbol=function(n){return"__@".concat(e.getSymbolId(n),"@").concat(n.escapedName)},e.getSymbolNameForPrivateIdentifier=function(n,t){return"__#".concat(e.getSymbolId(n),"@").concat(t)},e.isKnownSymbol=function(n){return e.startsWith(n.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(n){return e.startsWith(n.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 163===In(e).kind},e.getRootDeclaration=In,e.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 170===n||212===n||255===n||213===n||168===n||171===n||172===n||260===n||303===n},e.nodeIsSynthesized=kn,e.getOriginalSourceFile=function(n){return e.getParseTreeNode(n,e.isSourceFile)||n},(Z=e.Associativity||(e.Associativity={}))[Z.Left=0]="Left",Z[Z.Right=1]="Right",e.getExpressionAssociativity=function(e){var n=Rn(e),t=208===e.kind&&void 0!==e.arguments;return Nn(e.kind,n,t)},e.getOperatorAssociativity=Nn,e.getExpressionPrecedence=function(e){var n=Rn(e),t=208===e.kind&&void 0!==e.arguments;return On(e.kind,n,t)},e.getOperator=Rn,($=e.OperatorPrecedence||(e.OperatorPrecedence={}))[$.Comma=0]="Comma",$[$.Spread=1]="Spread",$[$.Yield=2]="Yield",$[$.Assignment=3]="Assignment",$[$.Conditional=4]="Conditional",$[$.Coalesce=4]="Coalesce",$[$.LogicalOR=5]="LogicalOR",$[$.LogicalAND=6]="LogicalAND",$[$.BitwiseOR=7]="BitwiseOR",$[$.BitwiseXOR=8]="BitwiseXOR",$[$.BitwiseAND=9]="BitwiseAND",$[$.Equality=10]="Equality",$[$.Relational=11]="Relational",$[$.Shift=12]="Shift",$[$.Additive=13]="Additive",$[$.Multiplicative=14]="Multiplicative",$[$.Exponentiation=15]="Exponentiation",$[$.Unary=16]="Unary",$[$.Update=17]="Update",$[$.LeftHandSide=18]="LeftHandSide",$[$.Member=19]="Member",$[$.Primary=20]="Primary",$[$.Highest=20]="Highest",$[$.Lowest=0]="Lowest",$[$.Invalid=-1]="Invalid",e.getOperatorPrecedence=On,e.getBinaryOperatorPrecedence=wn,e.getSemanticJsxChildren=function(n){return e.filter(n,(function(e){switch(e.kind){case 287:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var n=[],t=[],r=new e.Map,a=!1;return{add:function(i){var o;i.file?(o=r.get(i.file.fileName))||(o=[],r.set(i.file.fileName,o),e.insertSorted(t,i.file.fileName,e.compareStringsCaseSensitive)):(a&&(a=!1,n=n.slice()),o=n);e.insertSorted(o,i,Tr)},lookup:function(t){var a;a=t.file?r.get(t.file.fileName):n;if(!a)return;var i=e.binarySearch(a,t,e.identity,Sr);if(i>=0)return a[i];return},getGlobalDiagnostics:function(){return a=!0,n},getDiagnostics:function(a){if(a)return r.get(a)||[];var i=e.flatMapToMutable(t,(function(e){return r.get(e)}));if(!n.length)return i;return i.unshift.apply(i,n),i}}};var Mn=/\$\{/g;e.hasInvalidEscape=function(n){return n&&!!(e.isNoSubstitutionTemplateLiteral(n)?n.templateFlags:n.head.templateFlags||e.some(n.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Pn=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Fn=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Gn=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Bn=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function Un(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Vn(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Bn.get(e)||Un(e.charCodeAt(0))}function jn(e,n){var t=96===n?Gn:39===n?Fn:Pn;return e.replace(t,Vn)}e.escapeString=jn;var Kn=/[^\u0000-\u007F]/g;function Hn(e,n){return e=jn(e,n),Kn.test(e)?e.replace(Kn,(function(e){return Un(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Hn;var Wn=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,zn=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Jn=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function qn(e){return 0===e.charCodeAt(0)?"&#0;":Jn.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Xn(e,n){var t=39===n?zn:Wn;return e.replace(t,qn)}e.escapeJsxAttributeString=Xn,e.stripQuotes=function(e){var n,t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e},e.isIntrinsicJsxName=function(n){var t=n.charCodeAt(0);return t>=97&&t<=122||e.stringContains(n,"-")||e.stringContains(n,":")};var Yn=[""," "];function Qn(e){for(var n=Yn[1],t=Yn.length;t<=e;t++)Yn.push(Yn[t-1]+n);return Yn[e]}function Zn(){return Yn[1].length}function $n(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function et(e,n,t){return n.moduleName||tt(e,n.fileName,t&&t.fileName)}function nt(n,t){return n.getCanonicalFileName(e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()))}function tt(n,t,r){var a=function(e){return n.getCanonicalFileName(e)},i=e.toPath(r?e.getDirectoryPath(r):n.getCommonSourceDirectory(),n.getCurrentDirectory(),a),o=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s=oa(e.getRelativePathToDirectoryOrUrl(i,o,i,a,!1));return r?e.ensurePathIsNonModuleName(s):s}function rt(e,n,t,r,a){var i=n.declarationDir||n.outDir,o=i?ct(e,i,t,r,a):e,s=at(o);return oa(o)+s}function at(n){return e.fileExtensionIsOneOf(n,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(n,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(n,[".json"])?".json.d.ts":".d.ts"}function it(e){return e.outFile||e.out}function ot(e,n,t){return!(n.getCompilerOptions().noEmitForJsFiles&&he(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&(t||!(V(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&!n.isSourceOfProjectReferenceRedirect(e.fileName))}function st(e,n,t){return ct(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function ct(n,t,r,a,i){var o=e.getNormalizedAbsolutePath(n,r);return o=0===i(o).indexOf(i(a))?o.substring(a.length):o,e.combinePaths(t,o)}function lt(n,t,r){n.length>e.getRootLength(n)&&!r(n)&&(lt(e.getDirectoryPath(n),t,r),t(n))}function ut(n,t){return e.computeLineOfPosition(n,t)}function dt(n){return e.find(n.members,(function(n){return e.isConstructorDeclaration(n)&&u(n.body)}))}function pt(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&ft(e.parameters[0]);return e.parameters[n?1:0]}}function ft(e){return mt(e.name)}function mt(e){return!!e&&79===e.kind&&_t(e)}function _t(e){return 108===e.originalKeywordKind}function gt(n){if(ve(n)||!e.isFunctionDeclaration(n)){var t=n.type;return t||!ve(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}}function yt(e,n,t,r){ht(e,n,t.pos,r)}function ht(e,n,t,r){r&&r.length&&t!==r[0].pos&&ut(e,t)!==ut(e,r[0].pos)&&n.writeLine()}function vt(e,n,t,r,a,i,o,s){if(r&&r.length>0){a&&t.writeSpace(" ");for(var c=!1,l=0,u=r;l<u.length;l++){var d=u[l];c&&(t.writeSpace(" "),c=!1),s(e,n,t,d.pos,d.end,o),d.hasTrailingNewLine?t.writeLine():c=!0}c&&i&&t.writeSpace(" ")}}function bt(n,t,r,a,i,o){var s=Math.min(t,o-1),c=e.trimString(n.substring(i,s));c?(r.writeComment(c),s!==t&&r.writeLine()):r.rawWrite(a)}function Et(n,t,r){for(var a=0;t<r&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));t++)9===n.charCodeAt(t)?a+=Zn()-a%Zn():a++;return a}function Tt(e,n){return!!Ct(e,n)}function St(e,n){return!!At(e,n)}function xt(n){return e.isClassElement(n)&&Lt(n)||e.isClassStaticBlockDeclaration(n)}function Lt(e){return St(e,32)}function Dt(e){return Tt(e,64)}function Ct(e,n){return kt(e)&n}function At(e,n){return Nt(e)&n}function It(e,n,t){return e.kind>=0&&e.kind<=159?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Ot(e)),!n||4096&e.modifierFlagsCache||!t&&!ve(e)||!e.parent||(e.modifierFlagsCache|=4096|Rt(e)),-536875009&e.modifierFlagsCache)}function kt(e){return It(e,!0)}function Nt(e){return It(e,!1)}function Rt(n){var t=0;return n.parent&&!e.isParameter(n)&&(ve(n)&&(e.getJSDocPublicTagNoCache(n)&&(t|=4),e.getJSDocPrivateTagNoCache(n)&&(t|=8),e.getJSDocProtectedTagNoCache(n)&&(t|=16),e.getJSDocReadonlyTagNoCache(n)&&(t|=64),e.getJSDocOverrideTagNoCache(n)&&(t|=16384)),e.getJSDocDeprecatedTagNoCache(n)&&(t|=8192)),t}function Ot(e){var n=wt(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function wt(e){var n=0;if(e)for(var t=0,r=e;t<r.length;t++){n|=Mt(r[t].kind)}return n}function Mt(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}function Pt(e){return 75===e||76===e||77===e}function Ft(e){return e>=63&&e<=78}function Gt(e){var n=Bt(e);return n&&!n.isImplements?n.class:void 0}function Bt(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:117===n.parent.token}:void 0}function Ut(n,t){return e.isBinaryExpression(n)&&(t?63===n.operatorToken.kind:Ft(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function Vt(e){return void 0!==Gt(e)}function jt(e){return 79===e.kind||Kt(e)}function Kt(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&jt(n.expression)}function Ht(e){return Fe(e)&&"prototype"===je(e)}e.getIndentString=Qn,e.getIndentSize=Zn,e.createTextWriter=function(n){var t,r,a,i,o,s=!1;function c(n){var r=e.computeLineStarts(n);r.length>1?(i=i+r.length-1,o=t.length-n.length+e.last(r),a=o-t.length===0):a=!1}function l(e){e&&e.length&&(a&&(e=Qn(r)+e,a=!1),t+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){t="",r=0,a=!0,i=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(t+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){a&&!e||(i++,o=(t+=n).length,a=!0,s=!1)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return i},getColumn:function(){return a?r*Zn():t.length-o},getText:function(){return t},isAtStartOfLine:function(){return a},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,n){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return a?t.length:t.length+n.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return fa(fa({},e),{writeTrailingSemicolon:function(){n=!0},writeLiteral:function(n){t(),e.writeLiteral(n)},writeStringLiteral:function(n){t(),e.writeStringLiteral(n)},writeSymbol:function(n,r){t(),e.writeSymbol(n,r)},writePunctuation:function(n){t(),e.writePunctuation(n)},writeKeyword:function(n){t(),e.writeKeyword(n)},writeOperator:function(n){t(),e.writeOperator(n)},writeParameter:function(n){t(),e.writeParameter(n)},writeSpace:function(n){t(),e.writeSpace(n)},writeProperty:function(n){t(),e.writeProperty(n)},writeComment:function(n){t(),e.writeComment(n)},writeLine:function(){t(),e.writeLine()},increaseIndent:function(){t(),e.increaseIndent()},decreaseIndent:function(){t(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=$n,e.hostGetCanonicalFileName=function(n){return e.createGetCanonicalFileName($n(n))},e.getResolvedExternalModuleName=et,e.getExternalModuleNameFromDeclaration=function(n,t,r){var a=t.getExternalModuleFileFromDeclaration(r);if(a&&!a.isDeclarationFile){var i=ze(r);if(!i||!e.isStringLiteralLike(i)||e.pathIsRelative(i.text)||-1!==nt(n,a.path).indexOf(nt(n,e.ensureTrailingDirectorySeparator(n.getCommonSourceDirectory()))))return et(n,a)}},e.getExternalModuleNameFromPath=tt,e.getOwnEmitOutputFilePath=function(e,n,t){var r=n.getCompilerOptions();return(r.outDir?oa(st(e,n,r.outDir)):oa(e))+t},e.getDeclarationEmitOutputFilePath=function(e,n){return rt(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=rt,e.getDeclarationEmitExtensionForPath=at,e.outFile=it,e.getPathsBasePath=function(n,t){var r,a;if(n.paths)return null!==(r=n.baseUrl)&&void 0!==r?r:e.Debug.checkDefined(n.pathsBasePath||(null===(a=t.getCurrentDirectory)||void 0===a?void 0:a.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(n,t,r){var a=n.getCompilerOptions();if(it(a)){var i=Dr(a),o=a.emitDeclarationOnly||i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(n.getSourceFiles(),(function(t){return(o||!e.isExternalModule(t))&&ot(t,n,r)}))}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,(function(e){return ot(e,n,r)}))},e.sourceFileMayBeEmitted=ot,e.getSourceFilePathInNewDir=st,e.getSourceFilePathInNewDirWorker=ct,e.writeFile=function(n,t,r,a,i,o){n.writeFile(r,a,i,(function(n){t.add(br(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))}),o)},e.writeFileEnsuringDirectories=function(n,t,r,a,i,o){try{a(n,t,r)}catch(X){lt(e.getDirectoryPath(e.normalizePath(n)),i,o),a(n,t,r)}},e.getLineOfLocalPosition=function(n,t){var r=e.getLineStarts(n);return e.computeLineOfPosition(r,t)},e.getLineOfLocalPositionFromLineMap=ut,e.getFirstConstructorWithBody=dt,e.getSetAccessorValueParameter=pt,e.getSetAccessorTypeAnnotationNode=function(e){var n=pt(e);return n&&n.type},e.getThisParameter=function(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(ft(t))return t}},e.parameterIsThisKeyword=ft,e.isThisIdentifier=mt,e.isThisInTypeQuery=function(n){if(!mt(n))return!1;for(;e.isQualifiedName(n.parent)&&n.parent.left===n;)n=n.parent;return 180===n.parent.kind},e.identifierIsThisKeyword=_t,e.getAllAccessorDeclarations=function(n,t){var r,a,i,o;return xn(t)?(r=t,171===t.kind?i=t:172===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,(function(n){e.isAccessor(n)&&xt(n)===xt(t)&&(Dn(n.name)===Dn(t.name)&&(r?a||(a=n):r=n,171!==n.kind||i||(i=n),172!==n.kind||o||(o=n)))})),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}},e.getEffectiveTypeAnnotationNode=gt,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(n){return e.isJSDocSignature(n)?n.type&&n.type.typeExpression&&n.type.typeExpression.type:n.type||(ve(n)?e.getJSDocReturnType(n):void 0)},e.getJSDocTypeParameterDeclarations=function(n){return e.flatMap(e.getJSDocTags(n),(function(n){return function(n){return e.isJSDocTemplateTag(n)&&!(318===n.parent.kind&&n.parent.tags.some(Je))}(n)?n.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=pt(e);return n&&gt(n)},e.emitNewLineBeforeLeadingComments=yt,e.emitNewLineBeforeLeadingCommentsOfPosition=ht,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&ut(e,t)!==ut(e,r)&&n.writeLine()},e.emitComments=vt,e.emitDetachedComments=function(n,t,r,a,i,o,s){var c,l;if(s?0===i.pos&&(c=e.filter(e.getLeadingCommentRanges(n,i.pos),(function(e){return m(n,e.pos)}))):c=e.getLeadingCommentRanges(n,i.pos),c){for(var u=[],d=void 0,p=0,f=c;p<f.length;p++){var _=f[p];if(d){var g=ut(t,d.end);if(ut(t,_.pos)>=g+2)break}u.push(_),d=_}if(u.length){g=ut(t,e.last(u).end);ut(t,e.skipTrivia(n,i.pos))>=g+2&&(yt(t,r,i,c),vt(n,t,r,u,!1,!0,o,a),l={nodePos:i.pos,detachedCommentEndPos:e.last(u).end})}}return l},e.writeCommentRange=function(n,t,r,a,i,o){if(42===n.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(t,a),c=t.length,l=void 0,u=a,d=s.line;u<i;d++){var p=d+1===c?n.length+1:t[d+1];if(u!==a){void 0===l&&(l=Et(n,t[s.line],a));var f=r.getIndent()*Zn()-l+Et(n,u,p);if(f>0){var m=f%Zn(),_=Qn((f-m)/Zn());for(r.rawWrite(_);m;)r.rawWrite(" "),m--}else r.rawWrite("")}bt(n,i,r,o,u,p),u=p}else r.writeComment(n.substring(a,i))},e.hasEffectiveModifiers=function(e){return 0!==kt(e)},e.hasSyntacticModifiers=function(e){return 0!==Nt(e)},e.hasEffectiveModifier=Tt,e.hasSyntacticModifier=St,e.isStatic=xt,e.hasStaticModifier=Lt,e.hasOverrideModifier=function(e){return Tt(e,16384)},e.hasAbstractModifier=function(e){return St(e,128)},e.hasAmbientModifier=function(e){return St(e,2)},e.hasEffectiveReadonlyModifier=Dt,e.getSelectedEffectiveModifierFlags=Ct,e.getSelectedSyntacticModifierFlags=At,e.getEffectiveModifierFlags=kt,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return It(e,!0,!0)},e.getSyntacticModifierFlags=Nt,e.getEffectiveModifierFlagsNoCache=function(e){return Ot(e)|Rt(e)},e.getSyntacticModifierFlagsNoCache=Ot,e.modifiersToFlags=wt,e.modifierToFlag=Mt,e.createModifiers=function(n){return n?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(n)):void 0},e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Pt,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Pt(e.operatorToken.kind)},e.isAssignmentOperator=Ft,e.tryGetClassExtendingExpressionWithTypeArguments=Gt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Bt,e.isAssignmentExpression=Ut,e.isLeftHandSideOfAssignment=function(e){return Ut(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Ut(e,!0)){var n=e.left.kind;return 204===n||203===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Vt,e.isEntityNameExpression=jt,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 160:do{e=e.left}while(79!==e.kind);return e;case 205:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(n){return 79===n.kind||108===n.kind||106===n.kind||230===n.kind||205===n.kind&&e(n.expression)||211===n.kind&&e(n.expression)},e.isPropertyAccessEntityNameExpression=Kt,e.tryGetPropertyAccessOrIdentifierToString=function n(t){if(e.isPropertyAccessExpression(t)){if(void 0!==(r=n(t.expression)))return r+"."+M(t.name)}else if(e.isElementAccessExpression(t)){var r;if(void 0!==(r=n(t.expression))&&e.isPropertyName(t.argumentExpression))return r+"."+Dn(t.argumentExpression)}else if(e.isIdentifier(t))return e.unescapeLeadingUnderscores(t.escapedText)},e.isPrototypeAccess=Ht,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 160===e.parent.kind&&e.parent.right===e||205===e.parent.kind&&e.parent.name===e},e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(n){return e.isQualifiedName(n.parent)&&n.parent.right===n||e.isPropertyAccessExpression(n.parent)&&n.parent.name===n||e.isJSDocMemberName(n.parent)&&n.parent.right===n},e.isEmptyObjectLiteral=function(e){return 204===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 203===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(n){if(function(n){return n&&e.length(n.declarations)>0&&St(n.declarations[0],512)}(n)&&n.declarations)for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];if(a.localSymbol)return a.localSymbol}},e.tryExtractTSExtension=function(n){return e.find($r,(function(t){return e.fileExtensionIs(n,t)}))};var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function zt(n){for(var t,r,a,i,o="",s=function(n){for(var t=[],r=n.length,a=0;a<r;a++){var i=n.charCodeAt(a);i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i<131072?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point")}return t}(n),c=0,l=s.length;c<l;)t=s[c]>>2,r=(3&s[c])<<4|s[c+1]>>4,a=(15&s[c+1])<<2|s[c+2]>>6,i=63&s[c+2],c+1>=l?a=i=64:c+2>=l&&(i=64),o+=Wt.charAt(t)+Wt.charAt(r)+Wt.charAt(a)+Wt.charAt(i),c+=3;return o}e.convertToBase64=zt,e.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):zt(n)},e.base64decode=function(e,n){if(e&&e.base64decode)return e.base64decode(n);for(var t=n.length,r=[],a=0;a<t&&n.charCodeAt(a)!==Wt.charCodeAt(64);){var i=Wt.indexOf(n[a]),o=Wt.indexOf(n[a+1]),s=Wt.indexOf(n[a+2]),c=Wt.indexOf(n[a+3]),l=(63&i)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?r.push(l):0===d&&0!==c?r.push(l,u):r.push(l,u,d),a+=4}return function(e){for(var n="",t=0,r=e.length;t<r;){var a=e[t];if(a<128)n+=String.fromCharCode(a),t++;else if(192===(192&a)){for(var i=63&a,o=e[++t];128===(192&o);)i=i<<6|63&o,o=e[++t];n+=String.fromCharCode(i)}else n+=String.fromCharCode(a),t++}return n}(r)},e.readJson=function(n,t){try{var r=t.readFile(n);if(!r)return{};var a=e.parseConfigFileTextToJson(n,r);return a.error?{}:a.config}catch(Oa){return{}}},e.directoryProbablyExists=function(e,n){return!n.directoryExists||n.directoryExists(e)};var Jt,qt;function Xt(n,t){return void 0===t&&(t=n),e.Debug.assert(t>=n||-1===t),{pos:n,end:t}}function Yt(e,n){return Xt(n,e.end)}function Qt(e){return e.decorators&&e.decorators.length>0?Yt(e,e.decorators.end):e}function Zt(e,n,t){return $t(er(e,t,!1),n.end,t)}function $t(n,t,r){return 0===e.getLinesBetweenPositions(r,n,t)}function er(n,t,r){return ua(n.pos)?-1:e.skipTrivia(t.text,n.pos,!1,r)}function nr(e){return void 0!==e.initializer}function tr(e){return 33554432&e.flags?e.checkFlags:0}function rr(n){var t=n.parent;if(!t)return 0;switch(t.kind){case 211:case 203:return rr(t);case 219:case 218:var r=t.operator;return 45===r||46===r?c():0;case 220:var a=t,i=a.left,o=a.operatorToken;return i===n&&Ft(o.kind)?63===o.kind?1:c():0;case 205:return t.name!==n?0:rr(t);case 294:var s=rr(t.parent);return n===t.name?function(n){switch(n){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(n)}}(s):s;case 295:return n===t.objectAssignmentInitializer?0:rr(t.parent);default:return 0}function c(){return t.parent&&237===ln(t.parent).kind?1:2}}function ar(e,n,t){var r=t.onDeleteValue,a=t.onExistingValue;e.forEach((function(t,i){var o=n.get(i);void 0===o?(e.delete(i),r(t,i)):a&&a(t,o,i)}))}function ir(n){var t;return null===(t=n.declarations)||void 0===t?void 0:t.find(e.isClassLike)}function or(e){return 205===e.kind||206===e.kind}function sr(e){for(;or(e);)e=e.expression;return e}function cr(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function lr(n,t){this.flags=t,(e.Debug.isDebugging||e.tracing)&&(this.checker=n)}function ur(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function dr(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function pr(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function fr(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function mr(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function _r(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,(function(n,a){return""+e.Debug.checkDefined(t[+a+r])}))}function gr(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function yr(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"===typeof e.fileName}function hr(n,t){var r=t.fileName||"",a=t.text.length;e.Debug.assertEqual(n.fileName,r),e.Debug.assertLessThanOrEqual(n.start,a),e.Debug.assertLessThanOrEqual(n.start+n.length,a);var i={file:t,start:n.start,length:n.length,messageText:n.messageText,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary};if(n.relatedInformation){i.relatedInformation=[];for(var o=0,s=n.relatedInformation;o<s.length;o++){var c=s[o];yr(c)&&c.fileName===r?(e.Debug.assertLessThanOrEqual(c.start,a),e.Debug.assertLessThanOrEqual(c.start+c.length,a),i.relatedInformation.push(hr(c,t))):i.relatedInformation.push(c)}}return i}function vr(e,n,t,r){F(e,n,t);var a=gr(r);return arguments.length>4&&(a=_r(a,arguments,4)),{file:e,start:n,length:t,messageText:a,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function br(e){var n=gr(e);return arguments.length>1&&(n=_r(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Er(e){return e.file?e.file.path:void 0}function Tr(n,t){return Sr(n,t)||function(n,t){if(!n.relatedInformation&&!t.relatedInformation)return 0;if(n.relatedInformation&&t.relatedInformation)return e.compareValues(n.relatedInformation.length,t.relatedInformation.length)||e.forEach(n.relatedInformation,(function(e,n){return Tr(e,t.relatedInformation[n])}))||0;return n.relatedInformation?-1:1}(n,t)||0}function Sr(n,t){return e.compareStringsCaseSensitive(Er(n),Er(t))||e.compareValues(n.start,t.start)||e.compareValues(n.length,t.length)||e.compareValues(n.code,t.code)||xr(n.messageText,t.messageText)||0}function xr(n,t){if("string"===typeof n&&"string"===typeof t)return e.compareStringsCaseSensitive(n,t);if("string"===typeof n)return-1;if("string"===typeof t)return 1;var r=e.compareStringsCaseSensitive(n.messageText,t.messageText);if(r)return r;if(!n.next&&!t.next)return 0;if(!n.next)return-1;if(!t.next)return 1;for(var a=Math.min(n.next.length,t.next.length),i=0;i<a;i++)if(r=xr(n.next[i],t.next[i]))return r;return n.next.length<t.next.length?-1:n.next.length>t.next.length?1:0}function Lr(n){return n.target||n.module===e.ModuleKind.Node12&&7||n.module===e.ModuleKind.NodeNext&&99||0}function Dr(n){return"number"===typeof n.module?n.module:Lr(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Cr(n){if(void 0!==n.esModuleInterop)return n.esModuleInterop;switch(Dr(n)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}function Ar(e){return!(!e.declaration&&!e.composite)}function Ir(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function kr(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Nr(e,n){return n.strictFlag?Ir(e,n.name):e[n.name]}function Rr(n,t,r,a){for(var i=e.getPathComponents(e.getNormalizedAbsolutePath(n,r)),o=e.getPathComponents(e.getNormalizedAbsolutePath(t,r)),s=!1;i.length>=2&&o.length>=2&&!Or(i[i.length-2],a)&&!Or(o[o.length-2],a)&&a(i[i.length-1])===a(o[o.length-1]);)i.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(i),e.getPathFromPathComponents(o)]:void 0}function Or(n,t){return void 0!==n&&("node_modules"===t(n)||e.startsWith(n,"@"))}e.getNewLineCharacter=function(n,t){switch(n.newLine){case 0:return"\r\n";case 1:return"\n"}return t?t():e.sys?e.sys.newLine:"\r\n"},e.createRange=Xt,e.moveRangeEnd=function(e,n){return Xt(e.pos,n)},e.moveRangePos=Yt,e.moveRangePastDecorators=Qt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Yt(e,e.modifiers.end):Qt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return Xt(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return Zt(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return $t(er(e,t,!1),er(n,t,!1),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return $t(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=Zt,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return $t(e.end,er(n,t,!1),t)},e.getLinesBetweenRangeEndAndRangeStart=function(n,t,r,a){var i=er(t,r,a);return e.getLinesBetweenPositions(r,n.end,i)},e.getLinesBetweenRangeEndPositions=function(n,t,r){return e.getLinesBetweenPositions(r,n.end,t.end)},e.isNodeArrayMultiLine=function(e,n){return!$t(e.pos,e.end,n)},e.positionsAreOnSameLine=$t,e.getStartPositionOfRange=er,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(n,t,r,a){var i=e.skipTrivia(r.text,n,!1,a),o=function(n,t,r){void 0===t&&(t=0);for(;n-- >t;)if(!e.isWhiteSpaceLike(r.text.charCodeAt(n)))return n}(i,t,r);return e.getLinesBetweenPositions(r,null!==o&&void 0!==o?o:t,i)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(n,t,r,a){var i=e.skipTrivia(r.text,n,!1,a);return e.getLinesBetweenPositions(r,n,Math.min(t,i))},e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 259:case 260:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,nr)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=tr,e.getDeclarationModifierFlagsFromSymbol=function(n,t){if(void 0===t&&(t=!1),n.valueDeclaration){var r=t&&n.declarations&&e.find(n.declarations,(function(e){return 172===e.kind}))||n.valueDeclaration,a=e.getCombinedModifierFlags(r);return n.parent&&32&n.parent.flags?a:-29&a}if(6&tr(n)){var i=n.checkFlags;return(1024&i?8:256&i?4:16)|(2048&i?32:0)}return 4194304&n.flags?36:0},e.skipAlias=function(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===rr(e)},e.isWriteAccess=function(e){return 0!==rr(e)},(qt=Jt||(Jt={}))[qt.Read=0]="Read",qt[qt.Write=1]="Write",qt[qt.ReadWrite=2]="ReadWrite",e.compareDataObjects=function e(n,t){if(!n||!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(var r in n)if("object"===typeof n[r]){if(!e(n[r],t[r]))return!1}else if("function"!==typeof n[r]&&n[r]!==t[r])return!1;return!0},e.clearMap=function(e,n){e.forEach(n),e.clear()},e.mutateMapSkippingNewValues=ar,e.mutateMap=function(e,n,t){ar(e,n,t);var r=t.createNewValue;n.forEach((function(n,t){e.has(t)||e.set(t,r(t,n))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var n=ir(e);return!!n&&St(n,128)}return!1},e.getClassLikeDeclarationOfSymbol=ir,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(n,t){return!!e.forEachAncestorDirectory(n,(function(e){return!!t(e)||void 0}))},e.isUMDExportSymbol=function(n){return!!n&&!!n.declarations&&!!n.declarations[0]&&e.isNamespaceExportDeclaration(n.declarations[0])},e.showModuleSpecifier=function(n){var t=n.moduleSpecifier;return e.isStringLiteral(t)?t.text:h(t)},e.getLastChild=function(n){var t;return e.forEachChild(n,(function(e){u(e)&&(t=e)}),(function(e){for(var n=e.length-1;n>=0;n--)if(u(e[n])){t=e[n];break}})),t},e.addToSeen=function(e,n,t){return void 0===t&&(t=!0),!e.has(n)&&(e.set(n,t),!0)},e.isObjectTypeDeclaration=function(n){return e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isTypeLiteralNode(n)},e.isTypeNodeKind=function(e){return e>=176&&e<=199||130===e||154===e||146===e||157===e||147===e||133===e||149===e||150===e||114===e||152===e||143===e||227===e||310===e||311===e||312===e||313===e||314===e||315===e||316===e},e.isAccessExpression=or,e.getNameOfAccessExpression=function(n){return 205===n.kind?n.name:(e.Debug.assert(206===n.kind),n.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 268===e.kind||272===e.kind},e.getLeftmostAccessExpression=sr,e.getLeftmostExpression=function(e,n){for(;;){switch(e.kind){case 219:e=e.operand;continue;case 220:e=e.left;continue;case 221:e=e.condition;continue;case 209:e=e.tag;continue;case 207:if(n)return e;case 228:case 206:case 205:case 229:case 348:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return dr},getTokenConstructor:function(){return pr},getIdentifierConstructor:function(){return fr},getPrivateIdentifierConstructor:function(){return dr},getSourceFileConstructor:function(){return dr},getSymbolConstructor:function(){return cr},getTypeConstructor:function(){return lr},getSignatureConstructor:function(){return ur},getSourceMapSourceConstructor:function(){return mr}},e.setObjectAllocator=function(n){e.objectAllocator=n},e.formatStringFromArgs=_r,e.setLocalizedDiagnosticMessages=function(n){e.localizedDiagnosticMessages=n},e.getLocaleSpecificMessage=gr,e.createDetachedDiagnostic=function(e,n,t,r){F(void 0,n,t);var a=gr(r);return arguments.length>4&&(a=_r(a,arguments,4)),{file:void 0,start:n,length:t,messageText:a,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,n){for(var t=[],r=0,a=e;r<a.length;r++){var i=a[r];t.push(hr(i,n))}return t},e.createFileDiagnostic=vr,e.formatMessage=function(e,n){var t=gr(n);return arguments.length>2&&(t=_r(t,arguments,2)),t},e.createCompilerDiagnostic=br,e.createCompilerDiagnosticFromMessageChain=function(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}},e.chainDiagnosticMessages=function(e,n){var t=gr(n);return arguments.length>2&&(t=_r(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next[0];t.next=[n]},e.compareDiagnostics=Tr,e.compareDiagnosticsSkipRelatedInformation=Sr,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=Lr,e.getEmitModuleKind=Dr,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;if(void 0===t)switch(Dr(n)){case e.ModuleKind.CommonJS:t=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:t=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:t=e.ModuleResolutionKind.NodeNext;break;default:t=e.ModuleResolutionKind.Classic}return t},e.hasJsonModuleEmitEnabled=function(n){switch(Dr(n)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Ar(e)||!e.declarationMap)},e.getESModuleInterop=Cr,e.getAllowSyntheticDefaultImports=function(n){var t=Dr(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:Cr(n)||t===e.ModuleKind.System},e.getEmitDeclarations=Ar,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=Ir,e.getAllowJSCompilerOption=kr,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?99===Lr(e):e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(n,t){return a(t,n,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(n,t){return a(t,n,e.affectsEmitOptionDeclarations)},e.getCompilerOptionValue=Nr,e.getJSXTransformEnabled=function(e){var n=e.jsx;return 2===n||4===n||5===n},e.getJSXImplicitImportBase=function(n,t){var r=null===t||void 0===t?void 0:t.pragmas.get("jsximportsource"),a=e.isArray(r)?r[r.length-1]:r;return 4===n.jsx||5===n.jsx||n.jsxImportSource||a?(null===a||void 0===a?void 0:a.arguments.factory)||n.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,n){return e?"".concat(e,"/").concat(5===n.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var n=!1,t=0;t<e.length;t++)if(42===e.charCodeAt(t)){if(n)return!1;n=!0}return!0},e.createSymlinkCache=function(n,t){var r,a,i,o=!1;return{getSymlinkedFiles:function(){return i},getSymlinkedDirectories:function(){return r},getSymlinkedDirectoriesByRealpath:function(){return a},setSymlinkedFile:function(n,t){return(i||(i=new e.Map)).set(n,t)},setSymlinkedDirectory:function(i,o){var s=e.toPath(i,n,t);Ea(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null===r||void 0===r?void 0:r.has(s))||(a||(a=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),i),(r||(r=new e.Map)).set(s,o))},setSymlinkedDirectoryFromSymlinkedFile:function(r,a){this.setSymlinkedFile(e.toPath(r,n,t),a);var i=Rr(a,r,n,t)||e.emptyArray,o=i[0],s=i[1];o&&s&&this.setSymlinkedDirectory(s,{real:o,realPath:e.toPath(o,n,t)})},setSymlinksFromResolutions:function(n,t){var r,a=this;e.Debug.assert(!o),o=!0;for(var i=0,c=n;i<c.length;i++){null===(r=c[i].resolvedModules)||void 0===r||r.forEach((function(e){return s(a,e)}))}null===t||void 0===t||t.forEach((function(e){return s(a,e)}))},hasProcessedResolutions:function(){return o}};function s(r,a){if(a&&a.originalPath&&a.resolvedFileName){var i=a.resolvedFileName,o=a.originalPath;r.setSymlinkedFile(e.toPath(o,n,t),i);var s=Rr(i,o,n,t)||e.emptyArray,c=s[0],l=s[1];c&&l&&r.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,n,t)})}}},e.tryRemoveDirectoryPrefix=function(n,t,r){var a,i=e.tryRemovePrefix(n,t,r);return void 0===i?void 0:(a=i,e.isAnyDirectorySeparator(a.charCodeAt(0))?a.slice(1):void 0)};var wr=/[^\w\s\/]/g;function Mr(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(wr,Mr)};var Pr=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Fr="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Gr={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Fr,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return zr(e,Gr.singleAsteriskRegexFragment)}},Br={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Fr,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return zr(e,Br.singleAsteriskRegexFragment)}},Ur={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return zr(e,Ur.singleAsteriskRegexFragment)}},Vr={files:Gr,directories:Br,exclude:Ur};function jr(e,n,t){var r=Kr(e,n,t);if(r&&r.length){var a=r.map((function(e){return"(".concat(e,")")})).join("|"),i="exclude"===t?"($|/)":"$";return"^(".concat(a,")").concat(i)}}function Kr(n,t,r){if(void 0!==n&&0!==n.length)return e.flatMap(n,(function(e){return e&&Wr(e,t,r,Vr[r])}))}function Hr(e){return!/[.*?]/.test(e)}function Wr(n,t,r,a){var i=a.singleAsteriskRegexFragment,o=a.doubleAsteriskRegexFragment,s=a.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(n,t),d=e.last(u);if("exclude"===r||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Hr(d)&&u.push("**","*");for(var p=0,f=0,m=u;f<m.length;f++){var _=m[f];if("**"===_)c+=o;else if("directories"===r&&(c+="(",p++),l&&(c+=e.directorySeparator),"exclude"!==r){var g="";42===_.charCodeAt(0)?(g+="([^./]"+i+")?",_=_.substr(1)):63===_.charCodeAt(0)&&(g+="[^./]",_=_.substr(1)),(g+=_.replace(wr,s))!==_&&(c+=Fr),c+=g}else c+=_.replace(wr,s);l=!0}for(;p>0;)c+=")?",p--;return c}}function zr(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function Jr(n,t,r,a,i){n=e.normalizePath(n),i=e.normalizePath(i);var o=e.combinePaths(i,n);return{includeFilePatterns:e.map(Kr(r,o,"files"),(function(e){return"^".concat(e,"$")})),includeFilePattern:jr(r,o,"files"),includeDirectoryPattern:jr(r,o,"directories"),excludePattern:jr(t,o,"exclude"),basePaths:Xr(n,r,a)}}function qr(e,n){return new RegExp(e,n?"":"i")}function Xr(n,t,r){var a=[n];if(t){for(var i=[],o=0,s=t;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(n,c));i.push(Yr(l))}i.sort(e.getStringComparer(!r));for(var u=function(t){e.every(a,(function(a){return!e.containsPath(a,t,n,!r)}))&&a.push(t)},d=0,p=i;d<p.length;d++){u(p[d])}}return a}function Yr(n){var t=e.indexOfAnyCharCode(n,Pr);return t<0?e.hasExtension(n)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(n)):n:n.substring(0,n.lastIndexOf(e.directorySeparator,t))}function Qr(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}}e.getRegularExpressionForWildcard=jr,e.getRegularExpressionsForWildcards=Kr,e.isImplicitGlob=Hr,e.getPatternFromSpec=function(e,n,t){var r=e&&Wr(e,n,t,Vr[t]);return r&&"^(".concat(r,")").concat("exclude"===t?"($|/)":"$")},e.getFileMatcherPatterns=Jr,e.getRegexFromPattern=qr,e.matchFiles=function(n,t,r,a,i,o,s,c,l){n=e.normalizePath(n),o=e.normalizePath(o);for(var u=Jr(n,r,a,i,o),d=u.includeFilePatterns&&u.includeFilePatterns.map((function(e){return qr(e,i)})),p=u.includeDirectoryPattern&&qr(u.includeDirectoryPattern,i),f=u.excludePattern&&qr(u.excludePattern,i),m=d?d.map((function(){return[]})):[[]],_=new e.Map,g=e.createGetCanonicalFileName(i),y=0,h=u.basePaths;y<h.length;y++){var v=h[y];b(v,e.combinePaths(o,v),s)}return e.flatten(m);function b(n,r,a){var i=g(l(r));if(!_.has(i)){_.set(i,!0);for(var o=c(n),s=o.files,u=o.directories,y=function(a){var i=e.combinePaths(n,a),o=e.combinePaths(r,a);if(t&&!e.fileExtensionIsOneOf(i,t))return"continue";if(f&&f.test(o))return"continue";if(d){var s=e.findIndex(d,(function(e){return e.test(o)}));-1!==s&&m[s].push(i)}else m[0].push(i)},h=0,v=e.sort(s,e.compareStringsCaseSensitive);h<v.length;h++){y(S=v[h])}if(void 0===a||0!==--a)for(var E=0,T=e.sort(u,e.compareStringsCaseSensitive);E<T.length;E++){var S=T[E],x=e.combinePaths(n,S),L=e.combinePaths(r,S);p&&!p.test(L)||f&&f.test(L)||b(x,L,a)}}}},e.ensureScriptKind=function(e,n){return n||Qr(e)||3},e.getScriptKindFromFileName=Qr,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var Zr=pa(pa([],e.supportedTSExtensions,!0),[[".json"]],!1),$r=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var ea=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],na=pa(pa([],ea,!0),[[".json"]],!1);function ta(n,t){var r=n&&kr(n);if(!t||0===t.length)return r?ea:e.supportedTSExtensions;var a=r?ea:e.supportedTSExtensions,i=e.flatten(a);return pa(pa([],a,!0),e.mapDefined(t,(function(e){return 7===e.scriptKind||r&&(1===(n=e.scriptKind)||2===n)&&-1===i.indexOf(e.extension)?[e.extension]:void 0;var n})),!0)}function ra(n,t){return n&&n.resolveJsonModule?t===ea?na:t===e.supportedTSExtensions?Zr:pa(pa([],t,!0),[[".json"]],!1):t}function aa(e){var n=e.match(/\//g);return n?n.length:0}e.getSupportedExtensions=ta,e.getSupportedExtensionsWithJsonIfResolveJsonModule=ra,e.hasJSFileExtension=function(n){return e.some(e.supportedJSExtensionsFlat,(function(t){return e.fileExtensionIs(n,t)}))},e.hasTSFileExtension=function(n){return e.some(e.supportedTSExtensionsFlat,(function(t){return e.fileExtensionIs(n,t)}))},e.isSupportedSourceFileName=function(n,t,r){if(!n)return!1;for(var a=ta(t,r),i=0,o=e.flatten(ra(t,a));i<o.length;i++){var s=o[i];if(e.fileExtensionIs(n,s))return!0}return!1},e.compareNumberOfDirectorySeparators=function(n,t){return e.compareValues(aa(n),aa(t))};var ia=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function oa(e){for(var n=0,t=ia;n<t.length;n++){var r=sa(e,t[n]);if(void 0!==r)return r}return e}function sa(n,t){return e.fileExtensionIs(n,t)?ca(n,t):void 0}function ca(e,n){return e.substring(0,e.length-n.length)}function la(e){var n=e.indexOf("*");return-1===n?e:-1!==e.indexOf("*",n+1)?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function ua(e){return!(e>=0)}function da(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function ma(n){return e.find(ia,(function(t){return e.fileExtensionIs(n,t)}))}function _a(n,t){return n===t||"object"===typeof n&&null!==n&&"object"===typeof t&&null!==t&&e.equalOwnProperties(n,t,_a)}function ga(e,n){return e.pos=n,e}function ya(e,n){return e.end=n,e}function ha(e,n,t){return ya(ga(e,n),t)}function va(e,n){return e&&n&&(e.parent=n),e}function ba(n){return!e.isOmittedExpression(n)}function Ea(n){return e.some(e.ignoredPaths,(function(t){return e.stringContains(n,t)}))}function Ta(e){return 253===e.kind&&291===e.parent.kind}e.removeFileExtension=oa,e.tryRemoveExtension=sa,e.removeExtension=ca,e.changeExtension=function(n,t){return e.changeAnyExtension(n,t,ia,!1)},e.tryParsePattern=la,e.tryParsePatterns=function(n){return e.mapDefined(e.getOwnKeys(n),(function(e){return la(e)}))},e.positionIsSynthesized=ua,e.extensionIsTS=da,e.resolutionExtensionIsTSOrJson=function(e){return da(e)||".json"===e},e.extensionFromPath=function(n){var t=ma(n);return void 0!==t?t:e.Debug.fail("File ".concat(n," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==ma(e)},e.tryGetExtensionFromPath=ma,e.isCheckJsEnabledForFile=function(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(n,t){for(var r=[],a=0,i=n;a<i.length;a++){var o=i[a];if(o===t)return t;e.isString(o)||r.push(o)}return e.findBestPatternMatch(r,(function(e){return e}),t)},e.sliceAfter=function(n,t){var r=n.indexOf(t);return e.Debug.assert(-1!==r),n.slice(r)},e.addRelatedInfo=function(n){for(var t,r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return r.length?(n.relatedInformation||(n.relatedInformation=[]),e.Debug.assert(n.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(t=n.relatedInformation).push.apply(t,r),n):n},e.minAndMax=function(n,t){e.Debug.assert(0!==n.length);for(var r=t(n[0]),a=r,i=1;i<n.length;i++){var o=t(n[i]);o<r?r=o:o>a&&(a=o)}return{min:r,max:a}},e.rangeOfNode=function(e){return{pos:_(e),end:e.end}},e.rangeOfTypeParameters=function(n,t){return{pos:t.pos-1,end:e.skipTrivia(n.text,t.end)+1}},e.skipTypeChecking=function(e,n,t){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||t.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=_a,e.parsePseudoBigInt=function(e){var n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:for(var t=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}for(var a=e.length-1,i=(a-2)*n,o=new Uint16Array((i>>>4)+(15&i?1:0)),s=a-1,c=0;s>=2;s--,c+=n){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var f="",m=o.length-1,_=!0;_;){var g=0;_=!1;for(l=m;l>=0;l--){var y=g<<16|o[l],h=y/10|0;o[l]=h,g=y-10*h,h&&!_&&(m=l,_=!0)}f=g+f}return f},e.pseudoBigIntToString=function(e){var n=e.negative,t=e.base10Value;return(n&&"0"!==t?"-":"")+t},e.isValidTypeOnlyAliasUseSite=function(n){return!!(8388608&n.flags)||ge(n)||function(n){if(79!==n.kind)return!1;var t=e.findAncestor(n.parent,(function(e){switch(e.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}}));return 117===(null===t||void 0===t?void 0:t.token)||257===(null===t||void 0===t?void 0:t.parent.kind)}(n)||function(e){for(;79===e.kind||205===e.kind;)e=e.parent;if(161!==e.kind)return!1;if(St(e.parent,128))return!0;var n=e.parent.parent.kind;return 257===n||181===n}(n)||!(me(n)||function(n){return e.isIdentifier(n)&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n}(n))},e.isIdentifierTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)},e.arrayIsHomogeneous=function(n,t){if(void 0===t&&(t=e.equateValues),n.length<2)return!0;for(var r=n[0],a=1,i=n.length;a<i;a++){if(!t(r,n[a]))return!1}return!0},e.setTextRangePos=ga,e.setTextRangeEnd=ya,e.setTextRangePosEnd=ha,e.setTextRangePosWidth=function(e,n,t){return ha(e,n,n+t)},e.setNodeFlags=function(e,n){return e&&(e.flags=n),e},e.setParent=va,e.setEachParent=function(e,n){if(e)for(var t=0,r=e;t<r.length;t++){va(r[t],n)}return e},e.setParentRecursive=function(n,t){return n?(e.forEachChildRecursively(n,e.isJSDocNode(n)?r:function(n,t){return r(n,t)||function(n){if(e.hasJSDocNodes(n))for(var t=0,a=n.jsDoc;t<a.length;t++){var i=a[t];r(i,n),e.forEachChildRecursively(i,r)}}(n)}),n):n;function r(e,n){if(t&&e.parent===n)return"skip";va(e,n)}},e.isPackedArrayLiteral=function(n){return e.isArrayLiteralExpression(n)&&e.every(n.elements,ba)},e.expressionResultIsUnused=function(n){for(e.Debug.assertIsDefined(n.parent);;){var t=n.parent;if(e.isParenthesizedExpression(t))n=t;else{if(e.isExpressionStatement(t)||e.isVoidExpression(t)||e.isForStatement(t)&&(t.initializer===n||t.incrementor===n))return!0;if(e.isCommaListExpression(t)){if(n!==e.last(t.elements))return!0;n=t}else{if(!e.isBinaryExpression(t)||27!==t.operatorToken.kind)return!1;if(n===t.left)return!0;n=t}}}},e.containsIgnoredPath=Ea,e.getContainingNodeArray=function(n){if(n.parent){switch(n.kind){case 162:var t=n.parent;return 189===t.kind?void 0:t.typeParameters;case 163:return n.parent.parameters;case 198:case 232:return n.parent.templateSpans;case 164:return n.parent.decorators;case 290:return n.parent.heritageClauses}var r=n.parent;if(e.isJSDocTag(n))return e.isJSDocTypeLiteral(n.parent)?void 0:n.parent.tags;switch(r.kind){case 181:case 257:return e.isTypeElement(n)?r.members:void 0;case 186:case 187:return r.types;case 183:case 203:case 349:case 268:case 272:return r.elements;case 204:case 285:return r.properties;case 207:case 208:return e.isTypeNode(n)?r.typeArguments:r.expression===n?void 0:r.arguments;case 277:case 281:return e.isJsxChild(n)?r.children:void 0;case 279:case 278:return e.isTypeNode(n)?r.typeArguments:void 0;case 234:case 288:case 289:case 261:case 303:return r.statements;case 262:return r.clauses;case 256:case 225:return e.isClassElement(n)?r.members:void 0;case 259:return e.isEnumMember(n)?r.members:void 0}}},e.hasContextSensitiveParameters=function(n){if(!n.typeParameters){if(e.some(n.parameters,(function(e){return!gt(e)})))return!0;if(213!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!ft(t))return!0}}return!1},e.isInfinityOrNaNString=function(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e},e.isCatchClauseVariableDeclaration=Ta,e.isParameterOrCatchClauseVariable=function(n){var t=n.valueDeclaration&&In(n.valueDeclaration);return!!t&&(e.isParameter(t)||Ta(t))},e.isFunctionExpressionOrArrowFunction=function(e){return 212===e.kind||213===e.kind},e.escapeSnippetText=function(e){return e.replace(/\$/gm,"\\$")}}(ha||(ha={})),function(e){e.createBaseNodeFactory=function(){var n,t,r,a,i;return{createBaseSourceFileNode:function(n){return new(i||(i=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(r||(r=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(a||(a=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(t||(t=e.objectAllocator.getTokenConstructor()))(n,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}}}}(ha||(ha={})),function(e){e.createParenthesizerRules=function(n){var t,r;return{getParenthesizeLeftSideOfBinaryForOperator:function(n){t||(t=new e.Map);var r=t.get(n);r||(r=function(e){return o(n,e)},t.set(n,r));return r},getParenthesizeRightSideOfBinaryForOperator:function(n){r||(r=new e.Map);var t=r.get(n);t||(t=function(e){return s(n,void 0,e)},r.set(n,t));return t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(t){return e.isCommaSequence(t)?n.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){var r=e.getOperatorPrecedence(221,57),a=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(a);if(1!==e.compareValues(i,r))return n.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isCommaSequence(r)?n.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){var r=e.skipPartiallyEmittedExpressions(t),a=e.isCommaSequence(r);if(!a)switch(e.getLeftmostExpression(r,!1).kind){case 225:case 212:a=!0}return a?n.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){var r=e.getLeftmostExpression(t,!0);switch(r.kind){case 207:return n.createParenthesizedExpression(t);case 208:return r.arguments?t:n.createParenthesizedExpression(t)}return c(t)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(n.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return e.isUnaryExpression(t)?t:e.setTextRange(n.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){var r=e.sameMap(t,l);return e.setTextRange(n.createNodeArray(r,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var a=r.expression,i=e.skipPartiallyEmittedExpressions(a).kind;if(212===i||213===i){var o=n.updateCallExpression(r,e.setTextRange(n.createParenthesizedExpression(a),a),r.typeArguments,r.arguments);return n.restoreOuterExpressions(t,o,8)}}var s=e.getLeftmostExpression(r,!1).kind;if(204===s||212===s)return e.setTextRange(n.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!e.isBlock(t)&&(e.isCommaSequence(t)||204===e.getLeftmostExpression(t,!1).kind))return e.setTextRange(n.createParenthesizedExpression(t),t);return t},parenthesizeMemberOfConditionalType:u,parenthesizeMemberOfElementType:d,parenthesizeElementTypeOfArrayType:function(e){switch(e.kind){case 180:case 192:case 189:return n.createParenthesizedType(e)}return d(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return n.createNodeArray(e.sameMap(t,d))},parenthesizeTypeArguments:function(t){if(e.some(t))return n.createNodeArray(e.sameMap(t,p))}};function a(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isLiteralKind(n.kind))return n.kind;if(220===n.kind&&39===n.operatorToken.kind){if(void 0!==n.cachedLiteralKind)return n.cachedLiteralKind;var t=a(n.left),r=e.isLiteralKind(t)&&t===a(n.right)?t:0;return n.cachedLiteralKind=r,r}return 0}function i(t,r,i,o){return 211===e.skipPartiallyEmittedExpressions(r).kind?r:function(n,t,r,i){var o=e.getOperatorPrecedence(220,n),s=e.getOperatorAssociativity(220,n),c=e.skipPartiallyEmittedExpressions(t);if(!r&&213===t.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!r&&1===s&&223===t.kind);case 1:return!1;case 0:if(r)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===n){if(function(e){return 41===e||51===e||50===e||52===e}(n))return!1;if(39===n){var u=i?a(i):0;if(e.isLiteralKind(u)&&u===a(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(t,r,i,o)?n.createParenthesizedExpression(r):r}function o(e,n){return i(e,n,!0)}function s(e,n,t){return i(e,t,!1,n)}function c(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(208!==r.kind||r.arguments)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function l(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(220,27)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function u(e){return 188===e.kind?n.createParenthesizedType(e):e}function d(e){switch(e.kind){case 186:case 187:case 178:case 179:return n.createParenthesizedType(e)}return u(e)}function p(t,r){return 0===r&&e.isFunctionOrConstructorTypeNode(t)&&t.typeParameters?n.createParenthesizedType(t):t}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(n){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(n){return e.identity},parenthesizeLeftSideOfBinary:function(e,n){return n},parenthesizeRightSideOfBinary:function(e,n,t){return t},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(n){return e.cast(n,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(n){return e.cast(n,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(n){return e.cast(n,e.isNodeArray)},parenthesizeTypeArguments:function(n){return n&&e.cast(n,e.isNodeArray)}}}(ha||(ha={})),function(e){e.createNodeConverters=function(n){return{convertToFunctionBlock:function(t,r){if(e.isBlock(t))return t;var a=n.createReturnStatement(t);e.setTextRange(a,t);var i=n.createBlock([a],r);return e.setTextRange(i,t),i},convertToFunctionExpression:function(t){if(!t.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var r=n.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:r,convertToAssignmentPattern:a,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function t(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadElement(t.name),t),t);var r=s(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(n.createAssignment(r,t.initializer),t),t):r}return e.cast(t,e.isExpression)}function r(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=s(t.name);return e.setOriginalNode(e.setTextRange(n.createPropertyAssignment(t.propertyName,t.initializer?n.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.cast(t,e.isObjectLiteralElementLike)}function a(e){switch(e.kind){case 201:case 203:return o(e);case 200:case 204:return i(e)}}function i(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(n.createObjectLiteralExpression(e.map(t.elements,r)),t),t):e.cast(t,e.isObjectLiteralExpression)}function o(r){return e.isArrayBindingPattern(r)?e.setOriginalNode(e.setTextRange(n.createArrayLiteralExpression(e.map(r.elements,t)),r),r):e.cast(r,e.isArrayLiteralExpression)}function s(n){return e.isBindingPattern(n)?a(n):e.cast(n,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(ha||(ha={})),function(e){var n,t,r=0;function a(n,a){var f=8&n?i:o,m=e.memoize((function(){return 1&n?e.nullParenthesizerRules:e.createParenthesizerRules(C)})),_=e.memoize((function(){return 2&n?e.nullNodeConverters:e.createNodeConverters(C)})),g=e.memoizeOne((function(e){return function(n,t){return Mn(n,e,t)}})),y=e.memoizeOne((function(e){return function(n){return On(e,n)}})),v=e.memoizeOne((function(e){return function(n){return wn(n,e)}})),b=e.memoizeOne((function(e){return function(){return function(e){return I(e)}(e)}})),E=e.memoizeOne((function(e){return function(n){return nr(e,n)}})),T=e.memoizeOne((function(e){return function(n,t){return function(e,n,t){return n.type!==t?f(nr(e,t),n):n}(e,n,t)}})),S=e.memoizeOne((function(e){return function(n,t){return Er(e,n,t)}})),x=e.memoizeOne((function(e){return function(n,t,r){return function(e,n,t,r){void 0===t&&(t=or(n));return n.tagName!==t||n.comment!==r?f(Er(e,t,r),n):n}(e,n,t,r)}})),L=e.memoizeOne((function(e){return function(n,t,r){return Tr(e,n,t,r)}})),D=e.memoizeOne((function(e){return function(n,t,r,a){return function(e,n,t,r,a){void 0===t&&(t=or(n));return n.tagName!==t||n.typeExpression!==r||n.comment!==a?f(Tr(e,t,r,a),n):n}(e,n,t,r,a)}})),C={get parenthesizer(){return m()},get converters(){return _()},createNodeArray:A,createNumericLiteral:j,createBigIntLiteral:K,createStringLiteral:W,createStringLiteralFromNode:function(n){var t=H(e.getTextOfIdentifierOrLiteral(n),void 0);return t.textSourceNode=n,t},createRegularExpressionLiteral:z,createLiteralLikeNode:function(e,n){switch(e){case 8:return j(n,0);case 9:return K(n);case 10:return W(n,void 0);case 11:return Nr(n,!1);case 12:return Nr(n,!0);case 13:return z(n);case 14:return Un(e,n,void 0,0)}},createIdentifier:X,updateIdentifier:function(n,t){return n.typeArguments!==t?f(X(e.idText(n),t),n):n},createTempVariable:Y,createLoopVariable:function(e){var n=2;e&&(n|=8);return q("",n)},createUniqueName:function(n,t){void 0===t&&(t=0);return e.Debug.assert(!(7&t),"Argument out of range: flags"),e.Debug.assert(32!==(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),q(n,3|t)},getGeneratedNameForNode:Q,createPrivateIdentifier:function(n){e.startsWith(n,"#")||e.Debug.fail("First character of private identifier must be #: "+n);var t=a.createBasePrivateIdentifierNode(80);return t.escapedText=e.escapeLeadingUnderscores(n),t.transformFlags|=8388608,t},createToken:$,createSuper:function(){return $(106)},createThis:ee,createNull:function(){return $(104)},createTrue:ne,createFalse:te,createModifier:re,createModifiersFromModifierFlags:ae,createQualifiedName:ie,updateQualifiedName:function(e,n,t){return e.left!==n||e.right!==t?f(ie(n,t),e):e},createComputedPropertyName:oe,updateComputedPropertyName:function(e,n){return e.expression!==n?f(oe(n),e):e},createTypeParameterDeclaration:se,updateTypeParameterDeclaration:function(e,n,t,r){return e.name!==n||e.constraint!==t||e.default!==r?f(se(n,t,r),e):e},createParameterDeclaration:ce,updateParameterDeclaration:le,createDecorator:ue,updateDecorator:function(e,n){return e.expression!==n?f(ue(n),e):e},createPropertySignature:de,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:me,createMethodSignature:_e,updateMethodSignature:ge,createMethodDeclaration:ye,updateMethodDeclaration:he,createConstructorDeclaration:be,updateConstructorDeclaration:Ee,createGetAccessorDeclaration:Te,updateGetAccessorDeclaration:Se,createSetAccessorDeclaration:xe,updateSetAccessorDeclaration:Le,createCallSignature:De,updateCallSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(De(n,t,r),e):e},createConstructSignature:Ce,updateConstructSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Ce(n,t,r),e):e},createIndexSignature:Ae,updateIndexSignature:Ie,createClassStaticBlockDeclaration:ve,updateClassStaticBlockDeclaration:function(e,n,t,r){return e.decorators!==n||e.modifier!==t||e.body!==r?f(ve(n,t,r),e):e},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,n,t){return e.type!==n||e.literal!==t?f(ke(n,t),e):e},createKeywordTypeNode:function(e){return $(e)},createTypePredicateNode:Ne,updateTypePredicateNode:function(e,n,t,r){return e.assertsModifier!==n||e.parameterName!==t||e.type!==r?f(Ne(n,t,r),e):e},createTypeReferenceNode:Re,updateTypeReferenceNode:function(e,n,t){return e.typeName!==n||e.typeArguments!==t?f(Re(n,t),e):e},createFunctionTypeNode:Oe,updateFunctionTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Oe(n,t,r),e):e},createConstructorTypeNode:we,updateConstructorTypeNode:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 5===n.length?Fe.apply(void 0,n):4===n.length?Ge.apply(void 0,n):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Be,updateTypeQueryNode:function(e,n){return e.exprName!==n?f(Be(n),e):e},createTypeLiteralNode:Ue,updateTypeLiteralNode:function(e,n){return e.members!==n?f(Ue(n),e):e},createArrayTypeNode:Ve,updateArrayTypeNode:function(e,n){return e.elementType!==n?f(Ve(n),e):e},createTupleTypeNode:je,updateTupleTypeNode:function(e,n){return e.elements!==n?f(je(n),e):e},createNamedTupleMember:Ke,updateNamedTupleMember:function(e,n,t,r,a){return e.dotDotDotToken!==n||e.name!==t||e.questionToken!==r||e.type!==a?f(Ke(n,t,r,a),e):e},createOptionalTypeNode:He,updateOptionalTypeNode:function(e,n){return e.type!==n?f(He(n),e):e},createRestTypeNode:We,updateRestTypeNode:function(e,n){return e.type!==n?f(We(n),e):e},createUnionTypeNode:function(e){return ze(186,e)},updateUnionTypeNode:function(e,n){return Je(e,n)},createIntersectionTypeNode:function(e){return ze(187,e)},updateIntersectionTypeNode:function(e,n){return Je(e,n)},createConditionalTypeNode:qe,updateConditionalTypeNode:function(e,n,t,r,a){return e.checkType!==n||e.extendsType!==t||e.trueType!==r||e.falseType!==a?f(qe(n,t,r,a),e):e},createInferTypeNode:Xe,updateInferTypeNode:function(e,n){return e.typeParameter!==n?f(Xe(n),e):e},createImportTypeNode:Qe,updateImportTypeNode:function(e,n,t,r,a){void 0===a&&(a=e.isTypeOf);return e.argument!==n||e.qualifier!==t||e.typeArguments!==r||e.isTypeOf!==a?f(Qe(n,t,r,a),e):e},createParenthesizedType:Ze,updateParenthesizedType:function(e,n){return e.type!==n?f(Ze(n),e):e},createThisTypeNode:function(){var e=I(191);return e.transformFlags=1,e},createTypeOperatorNode:$e,updateTypeOperatorNode:function(e,n){return e.type!==n?f($e(e.operator,n),e):e},createIndexedAccessTypeNode:en,updateIndexedAccessTypeNode:function(e,n,t){return e.objectType!==n||e.indexType!==t?f(en(n,t),e):e},createMappedTypeNode:nn,updateMappedTypeNode:function(e,n,t,r,a,i,o){return e.readonlyToken!==n||e.typeParameter!==t||e.nameType!==r||e.questionToken!==a||e.type!==i||e.members!==o?f(nn(n,t,r,a,i,o),e):e},createLiteralTypeNode:tn,updateLiteralTypeNode:function(e,n){return e.literal!==n?f(tn(n),e):e},createTemplateLiteralType:Ye,updateTemplateLiteralType:function(e,n,t){return e.head!==n||e.templateSpans!==t?f(Ye(n,t),e):e},createObjectBindingPattern:rn,updateObjectBindingPattern:function(e,n){return e.elements!==n?f(rn(n),e):e},createArrayBindingPattern:an,updateArrayBindingPattern:function(e,n){return e.elements!==n?f(an(n),e):e},createBindingElement:on,updateBindingElement:function(e,n,t,r,a){return e.propertyName!==t||e.dotDotDotToken!==n||e.name!==r||e.initializer!==a?f(on(n,t,r,a),e):e},createArrayLiteralExpression:cn,updateArrayLiteralExpression:function(e,n){return e.elements!==n?f(cn(n,e.multiLine),e):e},createObjectLiteralExpression:ln,updateObjectLiteralExpression:function(e,n){return e.properties!==n?f(ln(n,e.multiLine),e):e},createPropertyAccessExpression:4&n?function(n,t){return e.setEmitFlags(un(n,t),131072)}:un,updatePropertyAccessExpression:function(n,t,r){if(e.isPropertyAccessChain(n))return pn(n,t,n.questionDotToken,e.cast(r,e.isIdentifier));return n.expression!==t||n.name!==r?f(un(t,r),n):n},createPropertyAccessChain:4&n?function(n,t,r){return e.setEmitFlags(dn(n,t,r),131072)}:dn,updatePropertyAccessChain:pn,createElementAccessExpression:fn,updateElementAccessExpression:function(n,t,r){if(e.isElementAccessChain(n))return _n(n,t,n.questionDotToken,r);return n.expression!==t||n.argumentExpression!==r?f(fn(t,r),n):n},createElementAccessChain:mn,updateElementAccessChain:_n,createCallExpression:gn,updateCallExpression:function(n,t,r,a){if(e.isCallChain(n))return hn(n,t,n.questionDotToken,r,a);return n.expression!==t||n.typeArguments!==r||n.arguments!==a?f(gn(t,r,a),n):n},createCallChain:yn,updateCallChain:hn,createNewExpression:vn,updateNewExpression:function(e,n,t,r){return e.expression!==n||e.typeArguments!==t||e.arguments!==r?f(vn(n,t,r),e):e},createTaggedTemplateExpression:bn,updateTaggedTemplateExpression:function(e,n,t,r){return e.tag!==n||e.typeArguments!==t||e.template!==r?f(bn(n,t,r),e):e},createTypeAssertion:En,updateTypeAssertion:Tn,createParenthesizedExpression:Sn,updateParenthesizedExpression:xn,createFunctionExpression:Ln,updateFunctionExpression:Dn,createArrowFunction:Cn,updateArrowFunction:An,createDeleteExpression:In,updateDeleteExpression:function(e,n){return e.expression!==n?f(In(n),e):e},createTypeOfExpression:kn,updateTypeOfExpression:function(e,n){return e.expression!==n?f(kn(n),e):e},createVoidExpression:Nn,updateVoidExpression:function(e,n){return e.expression!==n?f(Nn(n),e):e},createAwaitExpression:Rn,updateAwaitExpression:function(e,n){return e.expression!==n?f(Rn(n),e):e},createPrefixUnaryExpression:On,updatePrefixUnaryExpression:function(e,n){return e.operand!==n?f(On(e.operator,n),e):e},createPostfixUnaryExpression:wn,updatePostfixUnaryExpression:function(e,n){return e.operand!==n?f(wn(n,e.operator),e):e},createBinaryExpression:Mn,updateBinaryExpression:function(e,n,t,r){return e.left!==n||e.operatorToken!==t||e.right!==r?f(Mn(n,t,r),e):e},createConditionalExpression:Fn,updateConditionalExpression:function(e,n,t,r,a,i){return e.condition!==n||e.questionToken!==t||e.whenTrue!==r||e.colonToken!==a||e.whenFalse!==i?f(Fn(n,t,r,a,i),e):e},createTemplateExpression:Gn,updateTemplateExpression:function(e,n,t){return e.head!==n||e.templateSpans!==t?f(Gn(n,t),e):e},createTemplateHead:function(e,n,t){return Bn(15,e,n,t)},createTemplateMiddle:function(e,n,t){return Bn(16,e,n,t)},createTemplateTail:function(e,n,t){return Bn(17,e,n,t)},createNoSubstitutionTemplateLiteral:function(e,n,t){return Bn(14,e,n,t)},createTemplateLiteralLikeNode:Un,createYieldExpression:Vn,updateYieldExpression:function(e,n,t){return e.expression!==t||e.asteriskToken!==n?f(Vn(n,t),e):e},createSpreadElement:jn,updateSpreadElement:function(e,n){return e.expression!==n?f(jn(n),e):e},createClassExpression:Kn,updateClassExpression:Hn,createOmittedExpression:function(){return sn(226)},createExpressionWithTypeArguments:Wn,updateExpressionWithTypeArguments:function(e,n,t){return e.expression!==n||e.typeArguments!==t?f(Wn(n,t),e):e},createAsExpression:zn,updateAsExpression:Jn,createNonNullExpression:qn,updateNonNullExpression:Xn,createNonNullChain:Yn,updateNonNullChain:Qn,createMetaProperty:Zn,updateMetaProperty:function(e,n){return e.name!==n?f(Zn(e.keywordToken,n),e):e},createTemplateSpan:$n,updateTemplateSpan:function(e,n,t){return e.expression!==n||e.literal!==t?f($n(n,t),e):e},createSemicolonClassElement:function(){var e=I(233);return e.transformFlags|=512,e},createBlock:et,updateBlock:function(e,n){return e.statements!==n?f(et(n,e.multiLine),e):e},createVariableStatement:nt,updateVariableStatement:tt,createEmptyStatement:rt,createExpressionStatement:at,updateExpressionStatement:function(e,n){return e.expression!==n?f(at(n),e):e},createIfStatement:it,updateIfStatement:function(e,n,t,r){return e.expression!==n||e.thenStatement!==t||e.elseStatement!==r?f(it(n,t,r),e):e},createDoStatement:ot,updateDoStatement:function(e,n,t){return e.statement!==n||e.expression!==t?f(ot(n,t),e):e},createWhileStatement:st,updateWhileStatement:function(e,n,t){return e.expression!==n||e.statement!==t?f(st(n,t),e):e},createForStatement:ct,updateForStatement:function(e,n,t,r,a){return e.initializer!==n||e.condition!==t||e.incrementor!==r||e.statement!==a?f(ct(n,t,r,a),e):e},createForInStatement:lt,updateForInStatement:function(e,n,t,r){return e.initializer!==n||e.expression!==t||e.statement!==r?f(lt(n,t,r),e):e},createForOfStatement:ut,updateForOfStatement:function(e,n,t,r,a){return e.awaitModifier!==n||e.initializer!==t||e.expression!==r||e.statement!==a?f(ut(n,t,r,a),e):e},createContinueStatement:dt,updateContinueStatement:function(e,n){return e.label!==n?f(dt(n),e):e},createBreakStatement:pt,updateBreakStatement:function(e,n){return e.label!==n?f(pt(n),e):e},createReturnStatement:ft,updateReturnStatement:function(e,n){return e.expression!==n?f(ft(n),e):e},createWithStatement:mt,updateWithStatement:function(e,n,t){return e.expression!==n||e.statement!==t?f(mt(n,t),e):e},createSwitchStatement:_t,updateSwitchStatement:function(e,n,t){return e.expression!==n||e.caseBlock!==t?f(_t(n,t),e):e},createLabeledStatement:gt,updateLabeledStatement:yt,createThrowStatement:ht,updateThrowStatement:function(e,n){return e.expression!==n?f(ht(n),e):e},createTryStatement:vt,updateTryStatement:function(e,n,t,r){return e.tryBlock!==n||e.catchClause!==t||e.finallyBlock!==r?f(vt(n,t,r),e):e},createDebuggerStatement:function(){return I(252)},createVariableDeclaration:bt,updateVariableDeclaration:function(e,n,t,r,a){return e.name!==n||e.type!==r||e.exclamationToken!==t||e.initializer!==a?f(bt(n,t,r,a),e):e},createVariableDeclarationList:Et,updateVariableDeclarationList:function(e,n){return e.declarations!==n?f(Et(n,e.flags),e):e},createFunctionDeclaration:Tt,updateFunctionDeclaration:St,createClassDeclaration:xt,updateClassDeclaration:Lt,createInterfaceDeclaration:Dt,updateInterfaceDeclaration:Ct,createTypeAliasDeclaration:At,updateTypeAliasDeclaration:It,createEnumDeclaration:kt,updateEnumDeclaration:Nt,createModuleDeclaration:Rt,updateModuleDeclaration:Ot,createModuleBlock:wt,updateModuleBlock:function(e,n){return e.statements!==n?f(wt(n),e):e},createCaseBlock:Mt,updateCaseBlock:function(e,n){return e.clauses!==n?f(Mt(n),e):e},createNamespaceExportDeclaration:Pt,updateNamespaceExportDeclaration:function(e,n){return e.name!==n?f(Pt(n),e):e},createImportEqualsDeclaration:Ft,updateImportEqualsDeclaration:Gt,createImportDeclaration:Bt,updateImportDeclaration:Ut,createImportClause:Vt,updateImportClause:function(e,n,t,r){return e.isTypeOnly!==n||e.name!==t||e.namedBindings!==r?f(Vt(n,t,r),e):e},createAssertClause:jt,updateAssertClause:function(e,n,t){return e.elements!==n||e.multiLine!==t?f(jt(n,t),e):e},createAssertEntry:Kt,updateAssertEntry:function(e,n,t){return e.name!==n||e.value!==t?f(Kt(n,t),e):e},createNamespaceImport:Ht,updateNamespaceImport:function(e,n){return e.name!==n?f(Ht(n),e):e},createNamespaceExport:Wt,updateNamespaceExport:function(e,n){return e.name!==n?f(Wt(n),e):e},createNamedImports:zt,updateNamedImports:function(e,n){return e.elements!==n?f(zt(n),e):e},createImportSpecifier:Jt,updateImportSpecifier:function(e,n,t,r){return e.isTypeOnly!==n||e.propertyName!==t||e.name!==r?f(Jt(n,t,r),e):e},createExportAssignment:qt,updateExportAssignment:Xt,createExportDeclaration:Yt,updateExportDeclaration:Qt,createNamedExports:Zt,updateNamedExports:function(e,n){return e.elements!==n?f(Zt(n),e):e},createExportSpecifier:$t,updateExportSpecifier:function(e,n,t,r){return e.isTypeOnly!==n||e.propertyName!==t||e.name!==r?f($t(n,t,r),e):e},createMissingDeclaration:function(){return k(275,void 0,void 0)},createExternalModuleReference:er,updateExternalModuleReference:function(e,n){return e.expression!==n?f(er(n),e):e},get createJSDocAllType(){return b(310)},get createJSDocUnknownType(){return b(311)},get createJSDocNonNullableType(){return E(313)},get updateJSDocNonNullableType(){return T(313)},get createJSDocNullableType(){return E(312)},get updateJSDocNullableType(){return T(312)},get createJSDocOptionalType(){return E(314)},get updateJSDocOptionalType(){return T(314)},get createJSDocVariadicType(){return E(316)},get updateJSDocVariadicType(){return T(316)},get createJSDocNamepathType(){return E(317)},get updateJSDocNamepathType(){return T(317)},createJSDocFunctionType:tr,updateJSDocFunctionType:function(e,n,t){return e.parameters!==n||e.type!==t?f(tr(n,t),e):e},createJSDocTypeLiteral:rr,updateJSDocTypeLiteral:function(e,n,t){return e.jsDocPropertyTags!==n||e.isArrayType!==t?f(rr(n,t),e):e},createJSDocTypeExpression:ar,updateJSDocTypeExpression:function(e,n){return e.type!==n?f(ar(n),e):e},createJSDocSignature:ir,updateJSDocSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?f(ir(n,t,r),e):e},createJSDocTemplateTag:cr,updateJSDocTemplateTag:function(e,n,t,r,a){void 0===n&&(n=or(e));return e.tagName!==n||e.constraint!==t||e.typeParameters!==r||e.comment!==a?f(cr(n,t,r,a),e):e},createJSDocTypedefTag:lr,updateJSDocTypedefTag:function(e,n,t,r,a){void 0===n&&(n=or(e));return e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==a?f(lr(n,t,r,a),e):e},createJSDocParameterTag:ur,updateJSDocParameterTag:function(e,n,t,r,a,i,o){void 0===n&&(n=or(e));return e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==a||e.isNameFirst!==i||e.comment!==o?f(ur(n,t,r,a,i,o),e):e},createJSDocPropertyTag:dr,updateJSDocPropertyTag:function(e,n,t,r,a,i,o){void 0===n&&(n=or(e));return e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==a||e.isNameFirst!==i||e.comment!==o?f(dr(n,t,r,a,i,o),e):e},createJSDocCallbackTag:pr,updateJSDocCallbackTag:function(e,n,t,r,a){void 0===n&&(n=or(e));return e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==a?f(pr(n,t,r,a),e):e},createJSDocAugmentsTag:fr,updateJSDocAugmentsTag:function(e,n,t,r){void 0===n&&(n=or(e));return e.tagName!==n||e.class!==t||e.comment!==r?f(fr(n,t,r),e):e},createJSDocImplementsTag:mr,updateJSDocImplementsTag:function(e,n,t,r){void 0===n&&(n=or(e));return e.tagName!==n||e.class!==t||e.comment!==r?f(mr(n,t,r),e):e},createJSDocSeeTag:_r,updateJSDocSeeTag:function(e,n,t,r){return e.tagName!==n||e.name!==t||e.comment!==r?f(_r(n,t,r),e):e},createJSDocNameReference:gr,updateJSDocNameReference:function(e,n){return e.name!==n?f(gr(n),e):e},createJSDocMemberName:yr,updateJSDocMemberName:function(e,n,t){return e.left!==n||e.right!==t?f(yr(n,t),e):e},createJSDocLink:hr,updateJSDocLink:function(e,n,t){return e.name!==n?f(hr(n,t),e):e},createJSDocLinkCode:vr,updateJSDocLinkCode:function(e,n,t){return e.name!==n?f(vr(n,t),e):e},createJSDocLinkPlain:br,updateJSDocLinkPlain:function(e,n,t){return e.name!==n?f(br(n,t),e):e},get createJSDocTypeTag(){return L(341)},get updateJSDocTypeTag(){return D(341)},get createJSDocReturnTag(){return L(339)},get updateJSDocReturnTag(){return D(339)},get createJSDocThisTag(){return L(340)},get updateJSDocThisTag(){return D(340)},get createJSDocEnumTag(){return L(337)},get updateJSDocEnumTag(){return D(337)},get createJSDocAuthorTag(){return S(328)},get updateJSDocAuthorTag(){return x(328)},get createJSDocClassTag(){return S(330)},get updateJSDocClassTag(){return x(330)},get createJSDocPublicTag(){return S(331)},get updateJSDocPublicTag(){return x(331)},get createJSDocPrivateTag(){return S(332)},get updateJSDocPrivateTag(){return x(332)},get createJSDocProtectedTag(){return S(333)},get updateJSDocProtectedTag(){return x(333)},get createJSDocReadonlyTag(){return S(334)},get updateJSDocReadonlyTag(){return x(334)},get createJSDocOverrideTag(){return S(335)},get updateJSDocOverrideTag(){return x(335)},get createJSDocDeprecatedTag(){return S(329)},get updateJSDocDeprecatedTag(){return x(329)},createJSDocUnknownTag:Sr,updateJSDocUnknownTag:function(e,n,t){return e.tagName!==n||e.comment!==t?f(Sr(n,t),e):e},createJSDocText:xr,updateJSDocText:function(e,n){return e.text!==n?f(xr(n),e):e},createJSDocComment:Lr,updateJSDocComment:function(e,n,t){return e.comment!==n||e.tags!==t?f(Lr(n,t),e):e},createJsxElement:Dr,updateJsxElement:function(e,n,t,r){return e.openingElement!==n||e.children!==t||e.closingElement!==r?f(Dr(n,t,r),e):e},createJsxSelfClosingElement:Cr,updateJsxSelfClosingElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?f(Cr(n,t,r),e):e},createJsxOpeningElement:Ar,updateJsxOpeningElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?f(Ar(n,t,r),e):e},createJsxClosingElement:Ir,updateJsxClosingElement:function(e,n){return e.tagName!==n?f(Ir(n),e):e},createJsxFragment:kr,createJsxText:Nr,updateJsxText:function(e,n,t){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==t?f(Nr(n,t),e):e},createJsxOpeningFragment:function(){var e=I(282);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=I(283);return e.transformFlags|=2,e},updateJsxFragment:function(e,n,t,r){return e.openingFragment!==n||e.children!==t||e.closingFragment!==r?f(kr(n,t,r),e):e},createJsxAttribute:Rr,updateJsxAttribute:function(e,n,t){return e.name!==n||e.initializer!==t?f(Rr(n,t),e):e},createJsxAttributes:Or,updateJsxAttributes:function(e,n){return e.properties!==n?f(Or(n),e):e},createJsxSpreadAttribute:wr,updateJsxSpreadAttribute:function(e,n){return e.expression!==n?f(wr(n),e):e},createJsxExpression:Mr,updateJsxExpression:function(e,n){return e.expression!==n?f(Mr(e.dotDotDotToken,n),e):e},createCaseClause:Pr,updateCaseClause:function(e,n,t){return e.expression!==n||e.statements!==t?f(Pr(n,t),e):e},createDefaultClause:Fr,updateDefaultClause:function(e,n){return e.statements!==n?f(Fr(n),e):e},createHeritageClause:Gr,updateHeritageClause:function(e,n){return e.types!==n?f(Gr(e.token,n),e):e},createCatchClause:Br,updateCatchClause:function(e,n,t){return e.variableDeclaration!==n||e.block!==t?f(Br(n,t),e):e},createPropertyAssignment:Ur,updatePropertyAssignment:function(e,n,t){return e.name!==n||e.initializer!==t?function(e,n){n.decorators&&(e.decorators=n.decorators);n.modifiers&&(e.modifiers=n.modifiers);n.questionToken&&(e.questionToken=n.questionToken);n.exclamationToken&&(e.exclamationToken=n.exclamationToken);return f(e,n)}(Ur(n,t),e):e},createShorthandPropertyAssignment:Vr,updateShorthandPropertyAssignment:function(e,n,t){return e.name!==n||e.objectAssignmentInitializer!==t?function(e,n){n.decorators&&(e.decorators=n.decorators);n.modifiers&&(e.modifiers=n.modifiers);n.equalsToken&&(e.equalsToken=n.equalsToken);n.questionToken&&(e.questionToken=n.questionToken);n.exclamationToken&&(e.exclamationToken=n.exclamationToken);return f(e,n)}(Vr(n,t),e):e},createSpreadAssignment:jr,updateSpreadAssignment:function(e,n){return e.expression!==n?f(jr(n),e):e},createEnumMember:Kr,updateEnumMember:function(e,n,t){return e.name!==n||e.initializer!==t?f(Kr(n,t),e):e},createSourceFile:function(e,n,t){var r=a.createBaseSourceFileNode(303);return r.statements=A(e),r.endOfFileToken=n,r.flags|=t,r.fileName="",r.text="",r.languageVersion=0,r.languageVariant=0,r.scriptKind=0,r.isDeclarationFile=!1,r.hasNoDefaultLib=!1,r.transformFlags|=d(r.statements)|u(r.endOfFileToken),r},updateSourceFile:function(n,t,r,i,o,s,c){void 0===r&&(r=n.isDeclarationFile);void 0===i&&(i=n.referencedFiles);void 0===o&&(o=n.typeReferenceDirectives);void 0===s&&(s=n.hasNoDefaultLib);void 0===c&&(c=n.libReferenceDirectives);return n.statements!==t||n.isDeclarationFile!==r||n.referencedFiles!==i||n.typeReferenceDirectives!==o||n.hasNoDefaultLib!==s||n.libReferenceDirectives!==c?f(function(n,t,r,i,o,s,c){var l=a.createBaseSourceFileNode(303);for(var p in n)"emitNode"!==p&&!e.hasProperty(l,p)&&e.hasProperty(n,p)&&(l[p]=n[p]);return l.flags|=n.flags,l.statements=A(t),l.endOfFileToken=n.endOfFileToken,l.isDeclarationFile=r,l.referencedFiles=i,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=d(l.statements)|u(l.endOfFileToken),l.impliedNodeFormat=n.impliedNodeFormat,l}(n,t,r,i,o,s,c),n):n},createBundle:Hr,updateBundle:function(n,t,r){void 0===r&&(r=e.emptyArray);return n.sourceFiles!==t||n.prepends!==r?f(Hr(t,r),n):n},createUnparsedSource:function(n,t,r){var a=I(305);return a.prologues=n,a.syntheticReferences=t,a.texts=r,a.fileName="",a.text="",a.referencedFiles=e.emptyArray,a.libReferenceDirectives=e.emptyArray,a.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(a,n)},a},createUnparsedPrologue:function(e){return Wr(298,e)},createUnparsedPrepend:function(e,n){var t=Wr(299,e);return t.texts=n,t},createUnparsedTextLike:function(e,n){return Wr(n?301:300,e)},createUnparsedSyntheticReference:function(e){var n=I(302);return n.data=e.data,n.section=e,n},createInputFiles:function(){var e=I(306);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,n,t){void 0===n&&(n=!1);var r=I(231);return r.type=e,r.isSpread=n,r.tupleNameSource=t,r},createSyntaxList:function(e){var n=I(346);return n._children=e,n},createNotEmittedStatement:function(n){var t=I(347);return t.original=n,e.setTextRange(t,n),t},createPartiallyEmittedExpression:zr,updatePartiallyEmittedExpression:Jr,createCommaListExpression:Xr,updateCommaListExpression:function(e,n){return e.elements!==n?f(Xr(n),e):e},createEndOfDeclarationMarker:function(e){var n=I(351);return n.emitNode={},n.original=e,n},createMergeDeclarationMarker:function(e){var n=I(350);return n.emitNode={},n.original=e,n},createSyntheticReferenceExpression:Yr,updateSyntheticReferenceExpression:function(e,n,t){return e.expression!==n||e.thisArg!==t?f(Yr(n,t),e):e},cloneNode:Qr,get createComma(){return g(27)},get createAssignment(){return g(63)},get createLogicalOr(){return g(56)},get createLogicalAnd(){return g(55)},get createBitwiseOr(){return g(51)},get createBitwiseXor(){return g(52)},get createBitwiseAnd(){return g(50)},get createStrictEquality(){return g(36)},get createStrictInequality(){return g(37)},get createEquality(){return g(34)},get createInequality(){return g(35)},get createLessThan(){return g(29)},get createLessThanEquals(){return g(32)},get createGreaterThan(){return g(31)},get createGreaterThanEquals(){return g(33)},get createLeftShift(){return g(47)},get createRightShift(){return g(48)},get createUnsignedRightShift(){return g(49)},get createAdd(){return g(39)},get createSubtract(){return g(40)},get createMultiply(){return g(41)},get createDivide(){return g(43)},get createModulo(){return g(44)},get createExponent(){return g(42)},get createPrefixPlus(){return y(39)},get createPrefixMinus(){return y(40)},get createPrefixIncrement(){return y(45)},get createPrefixDecrement(){return y(46)},get createBitwiseNot(){return y(54)},get createLogicalNot(){return y(53)},get createPostfixIncrement(){return v(45)},get createPostfixDecrement(){return v(46)},createImmediatelyInvokedFunctionExpression:function(e,n,t){return gn(Ln(void 0,void 0,void 0,void 0,n?[n]:[],void 0,et(e,!0)),void 0,t?[t]:[])},createImmediatelyInvokedArrowFunction:function(e,n,t){return gn(Cn(void 0,void 0,n?[n]:[],void 0,void 0,et(e,!0)),void 0,t?[t]:[])},createVoidZero:Zr,createExportDefault:function(e){return qt(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Yt(void 0,void 0,!1,Zt([$t(!1,void 0,e)]))},createTypeCheck:function(e,n){return"undefined"===n?C.createStrictEquality(e,Zr()):C.createStrictEquality(kn(e),W(n))},createMethodCall:$r,createGlobalMethodCall:ea,createFunctionBindCall:function(e,n,t){return $r(e,"bind",pa([n],t,!0))},createFunctionCallCall:function(e,n,t){return $r(e,"call",pa([n],t,!0))},createFunctionApplyCall:function(e,n,t){return $r(e,"apply",[n,t])},createArraySliceCall:function(e,n){return $r(e,"slice",void 0===n?[]:[fa(n)])},createArrayConcatCall:function(e,n){return $r(e,"concat",n)},createObjectDefinePropertyCall:function(e,n,t){return ea("Object","defineProperty",[e,fa(n),t])},createReflectGetCall:function(e,n,t){return ea("Reflect","get",t?[e,n,t]:[e,n])},createReflectSetCall:function(e,n,t,r){return ea("Reflect","set",r?[e,n,t,r]:[e,n,t])},createPropertyDescriptor:function(n,t){var r=[];na(r,"enumerable",fa(n.enumerable)),na(r,"configurable",fa(n.configurable));var a=na(r,"writable",fa(n.writable));a=na(r,"value",n.value)||a;var i=na(r,"get",n.get);return i=na(r,"set",n.set)||i,e.Debug.assert(!(a&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ln(r,!t)},createCallBinding:function(n,t,r,a){void 0===a&&(a=!1);var i,o,s=e.skipOuterExpressions(n,15);e.isSuperProperty(s)?(i=ee(),o=s):e.isSuperKeyword(s)?(i=ee(),o=void 0!==r&&r<2?e.setTextRange(X("_super"),s):s):4096&e.getEmitFlags(s)?(i=Zr(),o=m().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?ta(s.expression,a)?(i=Y(t),o=un(e.setTextRange(C.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s):e.isElementAccessExpression(s)?ta(s.expression,a)?(i=Y(t),o=fn(e.setTextRange(C.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s):(i=Zr(),o=m().parenthesizeLeftSideOfAccess(n));return{target:o,thisArg:i}},createAssignmentTargetWrapper:function(e,n){return un(Sn(ln([xe(void 0,void 0,"value",[ce(void 0,void 0,void 0,e,void 0,void 0,void 0)],et([at(n)]))])),"value")},inlineExpressions:function(n){return n.length>10?Xr(n):e.reduceLeft(n,C.createComma)},getInternalName:function(e,n,t){return ra(e,n,t,49152)},getLocalName:function(e,n,t){return ra(e,n,t,16384)},getExportName:aa,getDeclarationName:function(e,n,t){return ra(e,n,t)},getNamespaceMemberName:ia,getExternalModuleOrNamespaceExportName:function(n,t,r,a){if(n&&e.hasSyntacticModifier(t,1))return ia(n,ra(t),r,a);return aa(t,r,a)},restoreOuterExpressions:function n(t,r,a){void 0===a&&(a=15);if(t&&e.isOuterExpression(t,a)&&(i=t,!(e.isParenthesizedExpression(i)&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i))))return function(e,n){switch(e.kind){case 211:return xn(e,n);case 210:return Tn(e,e.type,n);case 228:return Jn(e,n,e.type);case 229:return Xn(e,n);case 348:return Jr(e,n)}}(t,n(t.expression,r));var i;return r},restoreEnclosingLabel:function n(t,r,a){if(!r)return t;var i=yt(r,r.label,e.isLabeledStatement(r.statement)?n(t,r.statement):t);a&&a(r);return i},createUseStrictPrologue:oa,copyPrologue:function(e,n,t,r){var a=sa(e,n,t);return ca(e,n,a,r)},copyStandardPrologue:sa,copyCustomPrologue:ca,ensureUseStrict:function(n){if(!e.findUseStrictPrologue(n))return e.setTextRange(A(pa([oa()],n,!0)),n);return n},liftToBlock:function(n){return e.Debug.assert(e.every(n,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(n)||et(n)},mergeLexicalEnvironment:function(n,t){if(!e.some(t))return n;var r=la(n,e.isPrologueDirective,0),a=la(n,e.isHoistedFunction,r),i=la(n,e.isHoistedVariableStatement,a),o=la(t,e.isPrologueDirective,0),s=la(t,e.isHoistedFunction,o),c=la(t,e.isHoistedVariableStatement,s),l=la(t,e.isCustomPrologue,c);e.Debug.assert(l===t.length,"Expected declarations to be valid standard or custom prologues");var u=e.isNodeArray(n)?n.slice():n;l>c&&u.splice.apply(u,pa([i,0],t.slice(c,l),!1));c>s&&u.splice.apply(u,pa([a,0],t.slice(s,c),!1));s>o&&u.splice.apply(u,pa([r,0],t.slice(o,s),!1));if(o>0)if(0===r)u.splice.apply(u,pa([0,0],t.slice(0,o),!1));else{for(var d=new e.Map,p=0;p<r;p++){var f=n[p];d.set(f.expression.text,!0)}for(p=o-1;p>=0;p--){var m=t[p];d.has(m.expression.text)||u.unshift(m)}}if(e.isNodeArray(n))return e.setTextRange(A(u,n.hasTrailingComma),n);return n},updateModifiers:function(n,t){var r;"number"===typeof t&&(t=ae(t));return e.isParameter(n)?le(n,n.decorators,t,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):e.isPropertySignature(n)?pe(n,t,n.name,n.questionToken,n.type):e.isPropertyDeclaration(n)?me(n,n.decorators,t,n.name,null!==(r=n.questionToken)&&void 0!==r?r:n.exclamationToken,n.type,n.initializer):e.isMethodSignature(n)?ge(n,t,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):e.isMethodDeclaration(n)?he(n,n.decorators,t,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):e.isConstructorDeclaration(n)?Ee(n,n.decorators,t,n.parameters,n.body):e.isGetAccessorDeclaration(n)?Se(n,n.decorators,t,n.name,n.parameters,n.type,n.body):e.isSetAccessorDeclaration(n)?Le(n,n.decorators,t,n.name,n.parameters,n.body):e.isIndexSignatureDeclaration(n)?Ie(n,n.decorators,t,n.parameters,n.type):e.isFunctionExpression(n)?Dn(n,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isArrowFunction(n)?An(n,t,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):e.isClassExpression(n)?Hn(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isVariableStatement(n)?tt(n,t,n.declarationList):e.isFunctionDeclaration(n)?St(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isClassDeclaration(n)?Lt(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isInterfaceDeclaration(n)?Ct(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isTypeAliasDeclaration(n)?It(n,n.decorators,t,n.name,n.typeParameters,n.type):e.isEnumDeclaration(n)?Nt(n,n.decorators,t,n.name,n.members):e.isModuleDeclaration(n)?Ot(n,n.decorators,t,n.name,n.body):e.isImportEqualsDeclaration(n)?Gt(n,n.decorators,t,n.isTypeOnly,n.name,n.moduleReference):e.isImportDeclaration(n)?Ut(n,n.decorators,t,n.importClause,n.moduleSpecifier,n.assertClause):e.isExportAssignment(n)?Xt(n,n.decorators,t,n.expression):e.isExportDeclaration(n)?Qt(n,n.decorators,t,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.assertClause):e.Debug.assertNever(n)}};return C;function A(n,t){if(void 0===n||n===e.emptyArray)n=[];else if(e.isNodeArray(n)){if(void 0===t||n.hasTrailingComma===t)return void 0===n.transformFlags&&p(n),e.Debug.attachNodeArrayDebugInfo(n),n;var r=n.slice();return r.pos=n.pos,r.end=n.end,r.hasTrailingComma=t,r.transformFlags=n.transformFlags,e.Debug.attachNodeArrayDebugInfo(r),r}var a=n.length,i=a>=1&&a<=4?n.slice():n;return e.setTextRangePosEnd(i,-1,-1),i.hasTrailingComma=!!t,p(i),e.Debug.attachNodeArrayDebugInfo(i),i}function I(e){return a.createBaseNode(e)}function k(e,n,t){var r=I(e);return r.decorators=ua(n),r.modifiers=ua(t),r.transformFlags|=d(r.decorators)|d(r.modifiers),r.symbol=void 0,r.localSymbol=void 0,r.locals=void 0,r.nextContainer=void 0,r}function N(n,t,r,a){var i=k(n,t,r);if(a=da(a),i.name=a,a)switch(i.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(a)){i.transformFlags|=l(a);break}default:i.transformFlags|=u(a)}return i}function R(e,n,t,r,a){var i=N(e,n,t,r);return i.typeParameters=ua(a),i.transformFlags|=d(i.typeParameters),a&&(i.transformFlags|=1),i}function O(e,n,t,r,a,i,o){var s=R(e,n,t,r,a);return s.parameters=A(i),s.type=o,s.transformFlags|=d(s.parameters)|u(s.type),o&&(s.transformFlags|=1),s}function w(e,n){return n.typeArguments&&(e.typeArguments=n.typeArguments),f(e,n)}function M(e,n,t,r,a,i,o,s){var c=O(e,n,t,r,a,i,o);return c.body=s,c.transformFlags|=-16777217&u(c.body),s||(c.transformFlags|=1),c}function P(e,n){return n.exclamationToken&&(e.exclamationToken=n.exclamationToken),n.typeArguments&&(e.typeArguments=n.typeArguments),w(e,n)}function F(e,n,t,r,a,i){var o=R(e,n,t,r,a);return o.heritageClauses=ua(i),o.transformFlags|=d(o.heritageClauses),o}function G(e,n,t,r,a,i,o){var s=F(e,n,t,r,a,i);return s.members=A(o),s.transformFlags|=d(s.members),s}function B(e,n,t,r,a){var i=N(e,n,t,r);return i.initializer=a,i.transformFlags|=u(i.initializer),i}function U(e,n,t,r,a,i){var o=B(e,n,t,r,i);return o.type=a,o.transformFlags|=u(a),a&&(o.transformFlags|=1),o}function V(e,n){var t=Z(e);return t.text=n,t}function j(e,n){void 0===n&&(n=0);var t=V(8,"number"===typeof e?e+"":e);return t.numericLiteralFlags=n,384&n&&(t.transformFlags|=512),t}function K(n){var t=V(9,"string"===typeof n?n:e.pseudoBigIntToString(n)+"n");return t.transformFlags|=4,t}function H(e,n){var t=V(10,e);return t.singleQuote=n,t}function W(e,n,t){var r=H(e,n);return r.hasExtendedUnicodeEscape=t,t&&(r.transformFlags|=512),r}function z(e){return V(13,e)}function J(n,t){void 0===t&&n&&(t=e.stringToToken(n)),79===t&&(t=void 0);var r=a.createBaseIdentifierNode(79);return r.originalKeywordKind=t,r.escapedText=e.escapeLeadingUnderscores(n),r}function q(e,n){var t=J(e,void 0);return t.autoGenerateFlags=n,t.autoGenerateId=r,r++,t}function X(e,n,t){var r=J(e,t);return n&&(r.typeArguments=A(n)),132===r.originalKeywordKind&&(r.transformFlags|=16777216),r}function Y(e,n){var t=1;n&&(t|=8);var r=q("",t);return e&&e(r),r}function Q(n,t){void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags");var r=q(n&&e.isIdentifier(n)?e.idText(n):"",4|t);return r.original=n,r}function Z(e){return a.createBaseTokenNode(e)}function $(n){e.Debug.assert(n>=0&&n<=159,"Invalid token"),e.Debug.assert(n<=14||n>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(n<=8||n>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==n,"Invalid token. Use 'createIdentifier' to create identifiers");var t=Z(n),r=0;switch(n){case 131:r=192;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:r=1;break;case 106:r=33554944;break;case 124:r=512;break;case 108:r=8192}return r&&(t.transformFlags|=r),t}function ee(){return $(108)}function ne(){return $(110)}function te(){return $(95)}function re(e){return $(e)}function ae(e){var n=[];return 1&e&&n.push(re(93)),2&e&&n.push(re(135)),512&e&&n.push(re(88)),2048&e&&n.push(re(85)),4&e&&n.push(re(123)),8&e&&n.push(re(121)),16&e&&n.push(re(122)),128&e&&n.push(re(126)),32&e&&n.push(re(124)),16384&e&&n.push(re(158)),64&e&&n.push(re(144)),256&e&&n.push(re(131)),n}function ie(e,n){var t=I(160);return t.left=e,t.right=da(n),t.transformFlags|=u(t.left)|l(t.right),t}function oe(e){var n=I(161);return n.expression=m().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=66048|u(n.expression),n}function se(e,n,t){var r=N(162,void 0,void 0,e);return r.constraint=n,r.default=t,r.transformFlags=1,r}function ce(n,t,r,a,i,o,s){var c=U(163,n,t,a,o,s&&m().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=r,c.questionToken=i,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=u(c.dotDotDotToken)|u(c.questionToken),i&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||r)&&(c.transformFlags|=512)),c}function le(e,n,t,r,a,i,o,s){return e.decorators!==n||e.modifiers!==t||e.dotDotDotToken!==r||e.name!==a||e.questionToken!==i||e.type!==o||e.initializer!==s?f(ce(n,t,r,a,i,o,s),e):e}function ue(e){var n=I(164);return n.expression=m().parenthesizeLeftSideOfAccess(e),n.transformFlags|=4097|u(n.expression),n}function de(e,n,t,r){var a=N(165,void 0,e,n);return a.type=r,a.questionToken=t,a.transformFlags=1,a}function pe(e,n,t,r,a){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==a?f(de(n,t,r,a),e):e}function fe(n,t,r,a,i,o){var s=U(166,n,t,r,i,o);return s.questionToken=a&&e.isQuestionToken(a)?a:void 0,s.exclamationToken=a&&e.isExclamationToken(a)?a:void 0,s.transformFlags|=u(s.questionToken)|u(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(a||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function me(n,t,r,a,i,o,s){return n.decorators!==t||n.modifiers!==r||n.name!==a||n.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||n.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||n.type!==o||n.initializer!==s?f(fe(t,r,a,i,o,s),n):n}function _e(e,n,t,r,a,i){var o=O(167,void 0,e,n,r,a,i);return o.questionToken=t,o.transformFlags=1,o}function ge(e,n,t,r,a,i,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==a||e.parameters!==i||e.type!==o?w(_e(n,t,r,a,i,o),e):e}function ye(n,t,r,a,i,o,s,c,l){var d=M(168,n,t,a,o,s,c,l);return d.asteriskToken=r,d.questionToken=i,d.transformFlags|=u(d.asteriskToken)|u(d.questionToken)|512,i&&(d.transformFlags|=1),256&e.modifiersToFlags(d.modifiers)?d.transformFlags|=r?64:128:r&&(d.transformFlags|=1024),d}function he(e,n,t,r,a,i,o,s,c,l){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.questionToken!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?P(ye(n,t,r,a,i,o,s,c,l),e):e}function ve(e,n,t){var r=R(169,e,n,void 0,void 0);return r.body=t,r.transformFlags=8388608|u(t),r}function be(e,n,t,r){var a=M(170,e,n,void 0,void 0,t,void 0,r);return a.transformFlags|=512,a}function Ee(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.parameters!==r||e.body!==a?P(be(n,t,r,a),e):e}function Te(e,n,t,r,a,i){return M(171,e,n,t,void 0,r,a,i)}function Se(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.type!==i||e.body!==o?P(Te(n,t,r,a,i,o),e):e}function xe(e,n,t,r,a){return M(172,e,n,t,void 0,r,void 0,a)}function Le(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.body!==i?P(xe(n,t,r,a,i),e):e}function De(e,n,t){var r=O(173,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ce(e,n,t){var r=O(174,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ae(e,n,t,r){var a=O(175,e,n,void 0,void 0,t,r);return a.transformFlags=1,a}function Ie(e,n,t,r,a){return e.parameters!==r||e.type!==a||e.decorators!==n||e.modifiers!==t?w(Ae(n,t,r,a),e):e}function ke(e,n){var t=I(198);return t.type=e,t.literal=n,t.transformFlags=1,t}function Ne(e,n,t){var r=I(176);return r.assertsModifier=e,r.parameterName=da(n),r.type=t,r.transformFlags=1,r}function Re(e,n){var t=I(177);return t.typeName=da(e),t.typeArguments=n&&m().parenthesizeTypeArguments(A(n)),t.transformFlags=1,t}function Oe(e,n,t){var r=O(178,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function we(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 4===n.length?Me.apply(void 0,n):3===n.length?Pe.apply(void 0,n):e.Debug.fail("Incorrect number of arguments specified.")}function Me(e,n,t,r){var a=O(179,void 0,e,void 0,n,t,r);return a.transformFlags=1,a}function Pe(e,n,t){return Me(void 0,e,n,t)}function Fe(e,n,t,r,a){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==a?w(we(n,t,r,a),e):e}function Ge(e,n,t,r){return Fe(e,e.modifiers,n,t,r)}function Be(e){var n=I(180);return n.exprName=e,n.transformFlags=1,n}function Ue(e){var n=I(181);return n.members=A(e),n.transformFlags=1,n}function Ve(e){var n=I(182);return n.elementType=m().parenthesizeElementTypeOfArrayType(e),n.transformFlags=1,n}function je(e){var n=I(183);return n.elements=A(e),n.transformFlags=1,n}function Ke(e,n,t,r){var a=I(196);return a.dotDotDotToken=e,a.name=n,a.questionToken=t,a.type=r,a.transformFlags=1,a}function He(e){var n=I(184);return n.type=m().parenthesizeElementTypeOfArrayType(e),n.transformFlags=1,n}function We(e){var n=I(185);return n.type=e,n.transformFlags=1,n}function ze(e,n){var t=I(e);return t.types=m().parenthesizeConstituentTypesOfUnionOrIntersectionType(n),t.transformFlags=1,t}function Je(e,n){return e.types!==n?f(ze(e.kind,n),e):e}function qe(e,n,t,r){var a=I(188);return a.checkType=m().parenthesizeMemberOfConditionalType(e),a.extendsType=m().parenthesizeMemberOfConditionalType(n),a.trueType=t,a.falseType=r,a.transformFlags=1,a}function Xe(e){var n=I(189);return n.typeParameter=e,n.transformFlags=1,n}function Ye(e,n){var t=I(197);return t.head=e,t.templateSpans=A(n),t.transformFlags=1,t}function Qe(e,n,t,r){void 0===r&&(r=!1);var a=I(199);return a.argument=e,a.qualifier=n,a.typeArguments=t&&m().parenthesizeTypeArguments(t),a.isTypeOf=r,a.transformFlags=1,a}function Ze(e){var n=I(190);return n.type=e,n.transformFlags=1,n}function $e(e,n){var t=I(192);return t.operator=e,t.type=m().parenthesizeMemberOfElementType(n),t.transformFlags=1,t}function en(e,n){var t=I(193);return t.objectType=m().parenthesizeMemberOfElementType(e),t.indexType=n,t.transformFlags=1,t}function nn(e,n,t,r,a,i){var o=I(194);return o.readonlyToken=e,o.typeParameter=n,o.nameType=t,o.questionToken=r,o.type=a,o.members=i&&A(i),o.transformFlags=1,o}function tn(e){var n=I(195);return n.literal=e,n.transformFlags=1,n}function rn(e){var n=I(200);return n.elements=A(e),n.transformFlags|=262656|d(n.elements),16384&n.transformFlags&&(n.transformFlags|=32832),n}function an(e){var n=I(201);return n.elements=A(e),n.transformFlags|=262656|d(n.elements),n}function on(n,t,r,a){var i=B(202,void 0,void 0,r,a&&m().parenthesizeExpressionForDisallowedComma(a));return i.propertyName=da(t),i.dotDotDotToken=n,i.transformFlags|=512|u(i.dotDotDotToken),i.propertyName&&(i.transformFlags|=e.isIdentifier(i.propertyName)?l(i.propertyName):u(i.propertyName)),n&&(i.transformFlags|=16384),i}function sn(e){return I(e)}function cn(n,t){var r=sn(203),a=n&&e.lastOrUndefined(n),i=A(n,!(!a||!e.isOmittedExpression(a))||void 0);return r.elements=m().parenthesizeExpressionsOfCommaDelimitedList(i),r.multiLine=t,r.transformFlags|=d(r.elements),r}function ln(e,n){var t=sn(204);return t.properties=A(e),t.multiLine=n,t.transformFlags|=d(t.properties),t}function un(n,t){var r=sn(205);return r.expression=m().parenthesizeLeftSideOfAccess(n),r.name=da(t),r.transformFlags=u(r.expression)|(e.isIdentifier(r.name)?l(r.name):u(r.name)),e.isSuperKeyword(n)&&(r.transformFlags|=192),r}function dn(n,t,r){var a=sn(205);return a.flags|=32,a.expression=m().parenthesizeLeftSideOfAccess(n),a.questionDotToken=t,a.name=da(r),a.transformFlags|=16|u(a.expression)|u(a.questionDotToken)|(e.isIdentifier(a.name)?l(a.name):u(a.name)),a}function pn(n,t,r,a){return e.Debug.assert(!!(32&n.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==t||n.questionDotToken!==r||n.name!==a?f(dn(t,r,a),n):n}function fn(n,t){var r=sn(206);return r.expression=m().parenthesizeLeftSideOfAccess(n),r.argumentExpression=fa(t),r.transformFlags|=u(r.expression)|u(r.argumentExpression),e.isSuperKeyword(n)&&(r.transformFlags|=192),r}function mn(e,n,t){var r=sn(206);return r.flags|=32,r.expression=m().parenthesizeLeftSideOfAccess(e),r.questionDotToken=n,r.argumentExpression=fa(t),r.transformFlags|=u(r.expression)|u(r.questionDotToken)|u(r.argumentExpression)|16,r}function _n(n,t,r,a){return e.Debug.assert(!!(32&n.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==t||n.questionDotToken!==r||n.argumentExpression!==a?f(mn(t,r,a),n):n}function gn(n,t,r){var a=sn(207);return a.expression=m().parenthesizeLeftSideOfAccess(n),a.typeArguments=ua(t),a.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(A(r)),a.transformFlags|=u(a.expression)|d(a.typeArguments)|d(a.arguments),a.typeArguments&&(a.transformFlags|=1),e.isImportKeyword(a.expression)?a.transformFlags|=4194304:e.isSuperProperty(a.expression)&&(a.transformFlags|=8192),a}function yn(n,t,r,a){var i=sn(207);return i.flags|=32,i.expression=m().parenthesizeLeftSideOfAccess(n),i.questionDotToken=t,i.typeArguments=ua(r),i.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(A(a)),i.transformFlags|=u(i.expression)|u(i.questionDotToken)|d(i.typeArguments)|d(i.arguments)|16,i.typeArguments&&(i.transformFlags|=1),e.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function hn(n,t,r,a,i){return e.Debug.assert(!!(32&n.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==t||n.questionDotToken!==r||n.typeArguments!==a||n.arguments!==i?f(yn(t,r,a,i),n):n}function vn(e,n,t){var r=sn(208);return r.expression=m().parenthesizeExpressionOfNew(e),r.typeArguments=ua(n),r.arguments=t?m().parenthesizeExpressionsOfCommaDelimitedList(t):void 0,r.transformFlags|=u(r.expression)|d(r.typeArguments)|d(r.arguments)|16,r.typeArguments&&(r.transformFlags|=1),r}function bn(n,t,r){var a=sn(209);return a.tag=m().parenthesizeLeftSideOfAccess(n),a.typeArguments=ua(t),a.template=r,a.transformFlags|=u(a.tag)|d(a.typeArguments)|u(a.template)|512,a.typeArguments&&(a.transformFlags|=1),e.hasInvalidEscape(a.template)&&(a.transformFlags|=64),a}function En(e,n){var t=sn(210);return t.expression=m().parenthesizeOperandOfPrefixUnary(n),t.type=e,t.transformFlags|=u(t.expression)|u(t.type)|1,t}function Tn(e,n,t){return e.type!==n||e.expression!==t?f(En(n,t),e):e}function Sn(e){var n=sn(211);return n.expression=e,n.transformFlags=u(n.expression),n}function xn(e,n){return e.expression!==n?f(Sn(n),e):e}function Ln(n,t,r,a,i,o,s){var c=M(212,void 0,n,r,a,i,o,s);return c.asteriskToken=t,c.transformFlags|=u(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=64:c.transformFlags|=128:c.asteriskToken&&(c.transformFlags|=1024),c}function Dn(e,n,t,r,a,i,o,s){return e.name!==r||e.modifiers!==n||e.asteriskToken!==t||e.typeParameters!==a||e.parameters!==i||e.type!==o||e.body!==s?P(Ln(n,t,r,a,i,o,s),e):e}function Cn(n,t,r,a,i,o){var s=M(213,void 0,n,void 0,t,r,a,m().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!==i&&void 0!==i?i:$(38),s.transformFlags|=512|u(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8320),s}function An(e,n,t,r,a,i,o){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==a||e.equalsGreaterThanToken!==i||e.body!==o?P(Cn(n,t,r,a,i,o),e):e}function In(e){var n=sn(214);return n.expression=m().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=u(n.expression),n}function kn(e){var n=sn(215);return n.expression=m().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=u(n.expression),n}function Nn(e){var n=sn(216);return n.expression=m().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=u(n.expression),n}function Rn(e){var n=sn(217);return n.expression=m().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=1048768|u(n.expression),n}function On(n,t){var r=sn(218);return r.operator=n,r.operand=m().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=u(r.operand),45!==n&&46!==n||!e.isIdentifier(r.operand)||e.isGeneratedIdentifier(r.operand)||e.isLocalName(r.operand)||(r.transformFlags|=67108864),r}function wn(n,t){var r=sn(219);return r.operator=t,r.operand=m().parenthesizeOperandOfPostfixUnary(n),r.transformFlags|=u(r.operand),!e.isIdentifier(r.operand)||e.isGeneratedIdentifier(r.operand)||e.isLocalName(r.operand)||(r.transformFlags|=67108864),r}function Mn(n,t,r){var a,i=sn(220),o="number"===typeof(a=t)?$(a):a,s=o.kind;return i.left=m().parenthesizeLeftSideOfBinary(s,n),i.operatorToken=o,i.right=m().parenthesizeRightSideOfBinary(s,i.left,r),i.transformFlags|=u(i.left)|u(i.operatorToken)|u(i.right),60===s?i.transformFlags|=16:63===s?e.isObjectLiteralExpression(i.left)?i.transformFlags|=2624|Pn(i.left):e.isArrayLiteralExpression(i.left)&&(i.transformFlags|=2560|Pn(i.left)):42===s||67===s?i.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(s)&&(i.transformFlags|=8),i}function Pn(n){if(32768&n.transformFlags)return 32768;if(64&n.transformFlags)for(var t=0,r=e.getElementsOfBindingOrAssignmentPattern(n);t<r.length;t++){var a=r[t],i=e.getTargetOfBindingOrAssignmentElement(a);if(i&&e.isAssignmentPattern(i)){if(32768&i.transformFlags)return 32768;if(64&i.transformFlags){var o=Pn(i);if(o)return o}}}return 0}function Fn(e,n,t,r,a){var i=sn(221);return i.condition=m().parenthesizeConditionOfConditionalExpression(e),i.questionToken=null!==n&&void 0!==n?n:$(57),i.whenTrue=m().parenthesizeBranchOfConditionalExpression(t),i.colonToken=null!==r&&void 0!==r?r:$(58),i.whenFalse=m().parenthesizeBranchOfConditionalExpression(a),i.transformFlags|=u(i.condition)|u(i.questionToken)|u(i.whenTrue)|u(i.colonToken)|u(i.whenFalse),i}function Gn(e,n){var t=sn(222);return t.head=e,t.templateSpans=A(n),t.transformFlags|=u(t.head)|d(t.templateSpans)|512,t}function Bn(n,r,a,i){void 0===i&&(i=0),e.Debug.assert(!(-2049&i),"Unsupported template flags.");var o=void 0;if(void 0!==a&&a!==r&&(o=function(n,r){t||(t=e.createScanner(99,!1,0));switch(n){case 14:t.setText("`"+r+"`");break;case 15:t.setText("`"+r+"${");break;case 16:t.setText("}"+r+"${");break;case 17:t.setText("}"+r+"`")}var a,i=t.scan();19===i&&(i=t.reScanTemplateToken(!1));if(t.isUnterminated())return t.setText(void 0),c;switch(i){case 14:case 15:case 16:case 17:a=t.getTokenValue()}if(void 0===a||1!==t.scan())return t.setText(void 0),c;return t.setText(void 0),a}(n,a),"object"===typeof o))return e.Debug.fail("Invalid raw text");if(void 0===r){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");r=o}else void 0!==o&&e.Debug.assert(r===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Un(n,r,a,i)}function Un(e,n,t,r){var a=Z(e);return a.text=n,a.rawText=t,a.templateFlags=2048&r,a.transformFlags|=512,a.templateFlags&&(a.transformFlags|=64),a}function Vn(n,t){e.Debug.assert(!n||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");var r=sn(223);return r.expression=t&&m().parenthesizeExpressionForDisallowedComma(t),r.asteriskToken=n,r.transformFlags|=524864|(u(r.expression)|u(r.asteriskToken)),r}function jn(e){var n=sn(224);return n.expression=m().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=16896|u(n.expression),n}function Kn(e,n,t,r,a,i){var o=G(225,e,n,t,r,a,i);return o.transformFlags|=512,o}function Hn(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?f(Kn(n,t,r,a,i,o),e):e}function Wn(e,n){var t=I(227);return t.expression=m().parenthesizeLeftSideOfAccess(e),t.typeArguments=n&&m().parenthesizeTypeArguments(n),t.transformFlags|=u(t.expression)|d(t.typeArguments)|512,t}function zn(e,n){var t=sn(228);return t.expression=e,t.type=n,t.transformFlags|=u(t.expression)|u(t.type)|1,t}function Jn(e,n,t){return e.expression!==n||e.type!==t?f(zn(n,t),e):e}function qn(e){var n=sn(229);return n.expression=m().parenthesizeLeftSideOfAccess(e),n.transformFlags|=1|u(n.expression),n}function Xn(n,t){return e.isNonNullChain(n)?Qn(n,t):n.expression!==t?f(qn(t),n):n}function Yn(e){var n=sn(229);return n.flags|=32,n.expression=m().parenthesizeLeftSideOfAccess(e),n.transformFlags|=1|u(n.expression),n}function Qn(n,t){return e.Debug.assert(!!(32&n.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==t?f(Yn(t),n):n}function Zn(n,t){var r=sn(230);switch(r.keywordToken=n,r.name=t,r.transformFlags|=u(r.name),n){case 103:r.transformFlags|=512;break;case 100:r.transformFlags|=4;break;default:return e.Debug.assertNever(n)}return r}function $n(e,n){var t=I(232);return t.expression=e,t.literal=n,t.transformFlags|=u(t.expression)|u(t.literal)|512,t}function et(e,n){var t=I(234);return t.statements=A(e),t.multiLine=n,t.transformFlags|=d(t.statements),t}function nt(n,t){var r=k(236,void 0,n);return r.declarationList=e.isArray(t)?Et(t):t,r.transformFlags|=u(r.declarationList),2&e.modifiersToFlags(r.modifiers)&&(r.transformFlags=1),r}function tt(e,n,t){return e.modifiers!==n||e.declarationList!==t?f(nt(n,t),e):e}function rt(){return I(235)}function at(e){var n=I(237);return n.expression=m().parenthesizeExpressionOfExpressionStatement(e),n.transformFlags|=u(n.expression),n}function it(e,n,t){var r=I(238);return r.expression=e,r.thenStatement=ma(n),r.elseStatement=ma(t),r.transformFlags|=u(r.expression)|u(r.thenStatement)|u(r.elseStatement),r}function ot(e,n){var t=I(239);return t.statement=ma(e),t.expression=n,t.transformFlags|=u(t.statement)|u(t.expression),t}function st(e,n){var t=I(240);return t.expression=e,t.statement=ma(n),t.transformFlags|=u(t.expression)|u(t.statement),t}function ct(e,n,t,r){var a=I(241);return a.initializer=e,a.condition=n,a.incrementor=t,a.statement=ma(r),a.transformFlags|=u(a.initializer)|u(a.condition)|u(a.incrementor)|u(a.statement),a}function lt(e,n,t){var r=I(242);return r.initializer=e,r.expression=n,r.statement=ma(t),r.transformFlags|=u(r.initializer)|u(r.expression)|u(r.statement),r}function ut(e,n,t,r){var a=I(243);return a.awaitModifier=e,a.initializer=n,a.expression=m().parenthesizeExpressionForDisallowedComma(t),a.statement=ma(r),a.transformFlags|=u(a.awaitModifier)|u(a.initializer)|u(a.expression)|u(a.statement)|512,e&&(a.transformFlags|=64),a}function dt(e){var n=I(244);return n.label=da(e),n.transformFlags|=2097152|u(n.label),n}function pt(e){var n=I(245);return n.label=da(e),n.transformFlags|=2097152|u(n.label),n}function ft(e){var n=I(246);return n.expression=e,n.transformFlags|=2097216|u(n.expression),n}function mt(e,n){var t=I(247);return t.expression=e,t.statement=ma(n),t.transformFlags|=u(t.expression)|u(t.statement),t}function _t(e,n){var t=I(248);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.caseBlock=n,t.transformFlags|=u(t.expression)|u(t.caseBlock),t}function gt(e,n){var t=I(249);return t.label=da(e),t.statement=ma(n),t.transformFlags|=u(t.label)|u(t.statement),t}function yt(e,n,t){return e.label!==n||e.statement!==t?f(gt(n,t),e):e}function ht(e){var n=I(250);return n.expression=e,n.transformFlags|=u(n.expression),n}function vt(e,n,t){var r=I(251);return r.tryBlock=e,r.catchClause=n,r.finallyBlock=t,r.transformFlags|=u(r.tryBlock)|u(r.catchClause)|u(r.finallyBlock),r}function bt(e,n,t,r){var a=U(253,void 0,void 0,e,t,r&&m().parenthesizeExpressionForDisallowedComma(r));return a.exclamationToken=n,a.transformFlags|=u(a.exclamationToken),n&&(a.transformFlags|=1),a}function Et(e,n){void 0===n&&(n=0);var t=I(254);return t.flags|=3&n,t.declarations=A(e),t.transformFlags|=2097152|d(t.declarations),3&n&&(t.transformFlags|=131584),t}function Tt(n,t,r,a,i,o,s,c){var l=M(255,n,t,a,i,o,s,c);return l.asteriskToken=r,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=2097152|u(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=64:l.transformFlags|=128:l.asteriskToken&&(l.transformFlags|=1024)),l}function St(e,n,t,r,a,i,o,s,c){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?P(Tt(n,t,r,a,i,o,s,c),e):e}function xt(n,t,r,a,i,o){var s=G(256,n,t,r,a,i,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=512,4096&s.transformFlags&&(s.transformFlags|=1)),s}function Lt(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?f(xt(n,t,r,a,i,o),e):e}function Dt(e,n,t,r,a,i){var o=F(257,e,n,t,r,a);return o.members=A(i),o.transformFlags=1,o}function Ct(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?f(Dt(n,t,r,a,i,o),e):e}function At(e,n,t,r,a){var i=R(258,e,n,t,r);return i.type=a,i.transformFlags=1,i}function It(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.type!==i?f(At(n,t,r,a,i),e):e}function kt(e,n,t,r){var a=N(259,e,n,t);return a.members=A(r),a.transformFlags|=1|d(a.members),a.transformFlags&=-16777217,a}function Nt(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.members!==a?f(kt(n,t,r,a),e):e}function Rt(n,t,r,a,i){void 0===i&&(i=0);var o=k(260,n,t);return o.flags|=1044&i,o.name=r,o.body=a,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=u(o.name)|u(o.body)|1,o.transformFlags&=-16777217,o}function Ot(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.body!==a?f(Rt(n,t,r,a,e.flags),e):e}function wt(e){var n=I(261);return n.statements=A(e),n.transformFlags|=d(n.statements),n}function Mt(e){var n=I(262);return n.clauses=A(e),n.transformFlags|=d(n.clauses),n}function Pt(e){var n=N(263,void 0,void 0,e);return n.transformFlags=1,n}function Ft(n,t,r,a,i){var o=N(264,n,t,a);return o.isTypeOnly=r,o.moduleReference=i,o.transformFlags|=u(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-16777217,o}function Gt(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.isTypeOnly!==r||e.name!==a||e.moduleReference!==i?f(Ft(n,t,r,a,i),e):e}function Bt(e,n,t,r,a){var i=k(265,e,n);return i.importClause=t,i.moduleSpecifier=r,i.assertClause=a,i.transformFlags|=u(i.importClause)|u(i.moduleSpecifier),i.transformFlags&=-16777217,i}function Ut(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==a||e.assertClause!==i?f(Bt(n,t,r,a,i),e):e}function Vt(e,n,t){var r=I(266);return r.isTypeOnly=e,r.name=n,r.namedBindings=t,r.transformFlags|=u(r.name)|u(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-16777217,r}function jt(e,n){var t=I(292);return t.elements=e,t.multiLine=n,t.transformFlags|=4,t}function Kt(e,n){var t=I(293);return t.name=e,t.value=n,t.transformFlags|=4,t}function Ht(e){var n=I(267);return n.name=e,n.transformFlags|=u(n.name),n.transformFlags&=-16777217,n}function Wt(e){var n=I(273);return n.name=e,n.transformFlags|=4|u(n.name),n.transformFlags&=-16777217,n}function zt(e){var n=I(268);return n.elements=A(e),n.transformFlags|=d(n.elements),n.transformFlags&=-16777217,n}function Jt(e,n,t){var r=I(269);return r.isTypeOnly=e,r.propertyName=n,r.name=t,r.transformFlags|=u(r.propertyName)|u(r.name),r.transformFlags&=-16777217,r}function qt(e,n,t,r){var a=k(270,e,n);return a.isExportEquals=t,a.expression=t?m().parenthesizeRightSideOfBinary(63,void 0,r):m().parenthesizeExpressionOfExportDefault(r),a.transformFlags|=u(a.expression),a.transformFlags&=-16777217,a}function Xt(e,n,t,r){return e.decorators!==n||e.modifiers!==t||e.expression!==r?f(qt(n,t,e.isExportEquals,r),e):e}function Yt(e,n,t,r,a,i){var o=k(271,e,n);return o.isTypeOnly=t,o.exportClause=r,o.moduleSpecifier=a,o.assertClause=i,o.transformFlags|=u(o.exportClause)|u(o.moduleSpecifier),o.transformFlags&=-16777217,o}function Qt(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==a||e.moduleSpecifier!==i||e.assertClause!==o?f(Yt(n,t,r,a,i,o),e):e}function Zt(e){var n=I(272);return n.elements=A(e),n.transformFlags|=d(n.elements),n.transformFlags&=-16777217,n}function $t(e,n,t){var r=I(274);return r.isTypeOnly=e,r.propertyName=da(n),r.name=da(t),r.transformFlags|=u(r.propertyName)|u(r.name),r.transformFlags&=-16777217,r}function er(e){var n=I(276);return n.expression=e,n.transformFlags|=u(n.expression),n.transformFlags&=-16777217,n}function nr(e,n){var t=I(e);return t.type=n,t}function tr(e,n){return O(315,void 0,void 0,void 0,void 0,e,n)}function rr(e,n){void 0===n&&(n=!1);var t=I(320);return t.jsDocPropertyTags=ua(e),t.isArrayType=n,t}function ar(e){var n=I(307);return n.type=e,n}function ir(e,n,t){var r=I(321);return r.typeParameters=ua(e),r.parameters=A(n),r.type=t,r}function or(n){var t=s(n.kind);return n.tagName.escapedText===e.escapeLeadingUnderscores(t)?n.tagName:X(t)}function sr(e,n,t){var r=I(e);return r.tagName=n,r.comment=t,r}function cr(e,n,t,r){var a=sr(342,null!==e&&void 0!==e?e:X("template"),r);return a.constraint=n,a.typeParameters=A(t),a}function lr(n,t,r,a){var i=sr(343,null!==n&&void 0!==n?n:X("typedef"),a);return i.typeExpression=t,i.fullName=r,i.name=e.getJSDocTypeAliasName(r),i}function ur(e,n,t,r,a,i){var o=sr(338,null!==e&&void 0!==e?e:X("param"),i);return o.typeExpression=r,o.name=n,o.isNameFirst=!!a,o.isBracketed=t,o}function dr(e,n,t,r,a,i){var o=sr(345,null!==e&&void 0!==e?e:X("prop"),i);return o.typeExpression=r,o.name=n,o.isNameFirst=!!a,o.isBracketed=t,o}function pr(n,t,r,a){var i=sr(336,null!==n&&void 0!==n?n:X("callback"),a);return i.typeExpression=t,i.fullName=r,i.name=e.getJSDocTypeAliasName(r),i}function fr(e,n,t){var r=sr(326,null!==e&&void 0!==e?e:X("augments"),t);return r.class=n,r}function mr(e,n,t){var r=sr(327,null!==e&&void 0!==e?e:X("implements"),t);return r.class=n,r}function _r(e,n,t){var r=sr(344,null!==e&&void 0!==e?e:X("see"),t);return r.name=n,r}function gr(e){var n=I(308);return n.name=e,n}function yr(e,n){var t=I(309);return t.left=e,t.right=n,t.transformFlags|=u(t.left)|u(t.right),t}function hr(e,n){var t=I(322);return t.name=e,t.text=n,t}function vr(e,n){var t=I(323);return t.name=e,t.text=n,t}function br(e,n){var t=I(324);return t.name=e,t.text=n,t}function Er(e,n,t){return sr(e,null!==n&&void 0!==n?n:X(s(e)),t)}function Tr(e,n,t,r){var a=sr(e,null!==n&&void 0!==n?n:X(s(e)),r);return a.typeExpression=t,a}function Sr(e,n){return sr(325,e,n)}function xr(e){var n=I(319);return n.text=e,n}function Lr(e,n){var t=I(318);return t.comment=e,t.tags=ua(n),t}function Dr(e,n,t){var r=I(277);return r.openingElement=e,r.children=A(n),r.closingElement=t,r.transformFlags|=u(r.openingElement)|d(r.children)|u(r.closingElement)|2,r}function Cr(e,n,t){var r=I(278);return r.tagName=e,r.typeArguments=ua(n),r.attributes=t,r.transformFlags|=u(r.tagName)|d(r.typeArguments)|u(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ar(e,n,t){var r=I(279);return r.tagName=e,r.typeArguments=ua(n),r.attributes=t,r.transformFlags|=u(r.tagName)|d(r.typeArguments)|u(r.attributes)|2,n&&(r.transformFlags|=1),r}function Ir(e){var n=I(280);return n.tagName=e,n.transformFlags|=2|u(n.tagName),n}function kr(e,n,t){var r=I(281);return r.openingFragment=e,r.children=A(n),r.closingFragment=t,r.transformFlags|=u(r.openingFragment)|d(r.children)|u(r.closingFragment)|2,r}function Nr(e,n){var t=I(11);return t.text=e,t.containsOnlyTriviaWhiteSpaces=!!n,t.transformFlags|=2,t}function Rr(e,n){var t=I(284);return t.name=e,t.initializer=n,t.transformFlags|=u(t.name)|u(t.initializer)|2,t}function Or(e){var n=I(285);return n.properties=A(e),n.transformFlags|=2|d(n.properties),n}function wr(e){var n=I(286);return n.expression=e,n.transformFlags|=2|u(n.expression),n}function Mr(e,n){var t=I(287);return t.dotDotDotToken=e,t.expression=n,t.transformFlags|=u(t.dotDotDotToken)|u(t.expression)|2,t}function Pr(e,n){var t=I(288);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.statements=A(n),t.transformFlags|=u(t.expression)|d(t.statements),t}function Fr(e){var n=I(289);return n.statements=A(e),n.transformFlags=d(n.statements),n}function Gr(n,t){var r=I(290);switch(r.token=n,r.types=A(t),r.transformFlags|=d(r.types),n){case 94:r.transformFlags|=512;break;case 117:r.transformFlags|=1;break;default:return e.Debug.assertNever(n)}return r}function Br(n,t){var r=I(291);return("string"===typeof n||n&&!e.isVariableDeclaration(n))&&(n=bt(n,void 0,void 0,void 0)),r.variableDeclaration=n,r.block=t,r.transformFlags|=u(r.variableDeclaration)|u(r.block),n||(r.transformFlags|=32),r}function Ur(e,n){var t=N(294,void 0,void 0,e);return t.initializer=m().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=u(t.name)|u(t.initializer),t}function Vr(e,n){var t=N(295,void 0,void 0,e);return t.objectAssignmentInitializer=n&&m().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=512|u(t.objectAssignmentInitializer),t}function jr(e){var n=I(296);return n.expression=m().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=32832|u(n.expression),n}function Kr(e,n){var t=I(297);return t.name=da(e),t.initializer=n&&m().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=u(t.name)|u(t.initializer)|1,t}function Hr(n,t){void 0===t&&(t=e.emptyArray);var r=I(304);return r.prepends=t,r.sourceFiles=n,r}function Wr(e,n){var t=I(e);return t.data=n,t}function zr(n,t){var r=I(348);return r.expression=n,r.original=t,r.transformFlags|=1|u(r.expression),e.setTextRange(r,t),r}function Jr(e,n){return e.expression!==n?f(zr(n,e.original),e):e}function qr(n){if(e.nodeIsSynthesized(n)&&!e.isParseTreeNode(n)&&!n.original&&!n.emitNode&&!n.id){if(e.isCommaListExpression(n))return n.elements;if(e.isBinaryExpression(n)&&e.isCommaToken(n.operatorToken))return[n.left,n.right]}return n}function Xr(n){var t=I(349);return t.elements=A(e.sameFlatMap(n,qr)),t.transformFlags|=d(t.elements),t}function Yr(e,n){var t=I(352);return t.expression=e,t.thisArg=n,t.transformFlags|=u(t.expression)|u(t.thisArg),t}function Qr(n){if(void 0===n)return n;var t=e.isSourceFile(n)?a.createBaseSourceFileNode(303):e.isIdentifier(n)?a.createBaseIdentifierNode(79):e.isPrivateIdentifier(n)?a.createBasePrivateIdentifierNode(80):e.isNodeKind(n.kind)?a.createBaseNode(n.kind):a.createBaseTokenNode(n.kind);for(var r in t.flags|=-9&n.flags,t.transformFlags=n.transformFlags,h(t,n),n)!t.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function Zr(){return Nn(j("0"))}function $r(n,t,r){return e.isCallChain(n)?yn(dn(n,void 0,t),void 0,void 0,r):gn(un(n,t),void 0,r)}function ea(e,n,t){return $r(X(e),n,t)}function na(e,n,t){return!!t&&(e.push(Ur(n,t)),!0)}function ta(n,t){var r=e.skipParentheses(n);switch(r.kind){case 79:return t;case 108:case 8:case 9:case 10:return!1;case 203:return 0!==r.elements.length;case 204:return r.properties.length>0;default:return!0}}function ra(n,t,r,a){void 0===a&&(a=0);var i=e.getNameOfDeclaration(n);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.setParent(e.setTextRange(Qr(i),i),i.parent);return a|=e.getEmitFlags(i),r||(a|=48),t||(a|=1536),a&&e.setEmitFlags(o,a),o}return Q(n)}function aa(e,n,t){return ra(e,n,t,8192)}function ia(n,t,r,a){var i=un(n,e.nodeIsSynthesized(t)?t:Qr(t));e.setTextRange(i,t);var o=0;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function oa(){return e.startOnNewLine(at(W("use strict")))}function sa(n,t,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a,i=!1,o=0,s=n.length;o<s;){var c=n[o];if(!e.isPrologueDirective(c))break;a=c,e.isStringLiteral(a.expression)&&"use strict"===a.expression.text&&(i=!0),t.push(c),o++}return r&&!i&&t.push(oa()),o}function ca(n,t,r,a,i){void 0===i&&(i=e.returnTrue);for(var o=n.length;void 0!==r&&r<o;){var s=n[r];if(!(1048576&e.getEmitFlags(s)&&i(s)))break;e.append(t,a?e.visitNode(s,a,e.isStatement):s),r++}return r}function la(e,n,t){for(var r=t;r<e.length&&n(e[r]);)r++;return r}function ua(e){return e?A(e):void 0}function da(e){return"string"===typeof e?X(e):e}function fa(e){return"string"===typeof e?W(e):"number"===typeof e?j(e):"boolean"===typeof e?e?ne():te():e}function ma(n){return n&&e.isNotEmittedStatement(n)?e.setTextRange(h(rt(),n),n):n}}function i(n,t){return n!==t&&e.setTextRange(n,t),n}function o(n,t){return n!==t&&(h(n,t),e.setTextRange(n,t)),n}function s(n){switch(n){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(n)))}}(n=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[n.None=0]="None",n[n.NoParenthesizerRules=1]="NoParenthesizerRules",n[n.NoNodeConverters=2]="NoNodeConverters",n[n.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",n[n.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=a;var c={};function l(e){return-16777217&u(e)}function u(n){if(!n)return 0;var t,r=n.transformFlags&~f(n.kind);return e.isNamedDeclaration(n)&&e.isPropertyName(n.name)?(t=n.name,r|33562624&t.transformFlags):r}function d(e){return e?e.transformFlags:0}function p(e){for(var n=0,t=0,r=e;t<r.length;t++){n|=u(r[t])}e.transformFlags=n}function f(e){if(e>=176&&e<=199)return-2;switch(e){case 207:case 208:case 203:case 200:case 201:return 536887296;case 260:return 589443072;case 163:case 210:case 228:case 348:case 211:case 106:case 205:case 206:default:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680}}e.getTransformFlagsSubtreeExclusions=f;var m=e.createBaseNodeFactory();function _(e){return e.flags|=8,e}var g,y={createBaseSourceFileNode:function(e){return _(m.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return _(m.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return _(m.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return _(m.createBaseTokenNode(e))},createBaseNode:function(e){return _(m.createBaseNode(e))}};function h(n,t){if(n.original=t,t){var r=t.emitNode;r&&(n.emitNode=function(n,t){var r=n.flags,a=n.leadingComments,i=n.trailingComments,o=n.commentRange,s=n.sourceMapRange,c=n.tokenSourceMapRanges,l=n.constantValue,u=n.helpers,d=n.startsOnNewLine;t||(t={});a&&(t.leadingComments=e.addRange(a.slice(),t.leadingComments));i&&(t.trailingComments=e.addRange(i.slice(),t.trailingComments));r&&(t.flags=-268435457&r);o&&(t.commentRange=o);s&&(t.sourceMapRange=s);c&&(t.tokenSourceMapRanges=function(e,n){n||(n=[]);for(var t in e)n[t]=e[t];return n}(c,t.tokenSourceMapRanges));void 0!==l&&(t.constantValue=l);if(u)for(var p=0,f=u;p<f.length;p++){var m=f[p];t.helpers=e.appendIfUnique(t.helpers,m)}void 0!==d&&(t.startsOnNewLine=d);return t}(r,n.emitNode))}return n}e.factory=a(4,y),e.createUnparsedSourceFile=function(n,t,r){var a,i,o,s,c,l,u,d,p,f;e.isString(n)?(o="",s=n,c=n.length,l=t,u=r):(e.Debug.assert("js"===t||"dts"===t),o=("js"===t?n.javascriptPath:n.declarationPath)||"",l="js"===t?n.javascriptMapPath:n.declarationMapPath,d=function(){return"js"===t?n.javascriptText:n.declarationText},p=function(){return"js"===t?n.javascriptMapText:n.declarationMapText},c=function(){return d().length},n.buildInfo&&n.buildInfo.bundle&&(e.Debug.assert(void 0===r||"boolean"===typeof r),a=r,i="js"===t?n.buildInfo.bundle.js:n.buildInfo.bundle.dts,f=n.oldFileOfCurrentEmit));var m=f?function(n){for(var t,r,a=0,i=n.sections;a<i.length;a++){var o=i[a];switch(o.kind){case"internal":case"text":t=e.append(t,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"lib":r=e.append(r,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,r,null!==t&&void 0!==t?t:e.emptyArray);return e.setEachParent(r,s),e.setEachParent(t,s),s.helpers=e.map(n.sources&&n.sources.helpers,(function(n){return e.getAllUnscopedEmitHelpers().get(n)})),s}(e.Debug.assertDefined(i)):function(n,t,r){for(var a,i,o,s,c,l,u,d,p=0,f=n?n.sections:e.emptyArray;p<f.length;p++){var m=f[p];switch(m.kind){case"prologue":a=e.append(a,e.setTextRange(e.factory.createUnparsedPrologue(m.data),m));break;case"emitHelpers":i=e.append(i,e.getAllUnscopedEmitHelpers().get(m.data));break;case"no-default-lib":d=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:m.data});break;case"type":s=e.append(s,m.data);break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:m.data});break;case"prepend":for(var _=void 0,g=0,y=m.texts;g<y.length;g++){var h=y[g];t&&"internal"===h.kind||(_=e.append(_,e.setTextRange(e.factory.createUnparsedTextLike(h.data,"internal"===h.kind),h)))}l=e.addRange(l,_),u=e.append(u,e.factory.createUnparsedPrepend(m.data,null!==_&&void 0!==_?_:e.emptyArray));break;case"internal":if(t){u||(u=[]);break}case"text":u=e.append(u,e.setTextRange(e.factory.createUnparsedTextLike(m.data,"internal"===m.kind),m));break;default:e.Debug.assertNever(m)}}if(!u){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"===typeof r?r():r),u=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!==a&&void 0!==a?a:e.emptyArray,void 0,u);return e.setEachParent(a,b),e.setEachParent(u,b),e.setEachParent(l,b),b.hasNoDefaultLib=d,b.helpers=i,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b}(i,a,c);return m.fileName=o,m.sourceMapPath=l,m.oldFileOfCurrentEmit=f,d&&p?(Object.defineProperty(m,"text",{get:d}),Object.defineProperty(m,"sourceMapText",{get:p})):(e.Debug.assert(!f),m.text=null!==s&&void 0!==s?s:"",m.sourceMapText=u),m},e.createInputFiles=function(n,t,r,a,i,o,s,c,l,u,d){var p=e.parseNodeFactory.createInputFiles();if(e.isString(n))p.javascriptText=n,p.javascriptMapPath=r,p.javascriptMapText=a,p.declarationText=t,p.declarationMapPath=i,p.declarationMapText=o,p.javascriptPath=s,p.declarationPath=c,p.buildInfoPath=l,p.buildInfo=u,p.oldFileOfCurrentEmit=d;else{var f,m=new e.Map,_=function(e){if(void 0!==e){var t=m.get(e);return void 0===t&&(t=n(e),m.set(e,void 0!==t&&t)),!1!==t?t:void 0}},g=function(e){var n=_(e);return void 0!==n?n:"/* Input file ".concat(e," was missing */\r\n")};p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=e.Debug.assertDefined(a),p.declarationMapPath=i,p.buildInfoPath=o,Object.defineProperties(p,{javascriptText:{get:function(){return g(t)}},javascriptMapText:{get:function(){return _(r)}},declarationText:{get:function(){return g(e.Debug.assertDefined(a))}},declarationMapText:{get:function(){return _(i)}},buildInfo:{get:function(){return function(n){if(void 0===f){var t=n();f=void 0!==t&&e.getBuildInfo(t)}return f||void 0}((function(){return _(o)}))}}})}return p},e.createSourceMapSource=function(n,t,r){return new(g||(g=e.objectAllocator.getSourceMapSourceConstructor()))(n,t,r)},e.setOriginalNode=h}(ha||(ha={})),function(e){function n(t){var r;if(t.emitNode)e.Debug.assert(!(268435456&t.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(t)){if(303===t.kind)return t.emitNode={annotatedNodes:[t]};n(null!==(r=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(t))))&&void 0!==r?r:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function t(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.leadingComments}function r(e,t){return n(e).leadingComments=t,e}function a(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.trailingComments}function i(e,t){return n(e).trailingComments=t,e}e.getOrCreateEmitNode=n,e.disposeEmitNodes=function(n){var t,r,a=null===(r=null===(t=e.getSourceFileOfNode(e.getParseTreeNode(n)))||void 0===t?void 0:t.emitNode)||void 0===r?void 0:r.annotatedNodes;if(a)for(var i=0,o=a;i<o.length;i++){o[i].emitNode=void 0}},e.removeAllComments=function(e){var t=n(e);return t.flags|=1536,t.leadingComments=void 0,t.trailingComments=void 0,e},e.setEmitFlags=function(e,t){return n(e).flags=t,e},e.addEmitFlags=function(e,t){var r=n(e);return r.flags=r.flags|t,e},e.getSourceMapRange=function(e){var n,t;return null!==(t=null===(n=e.emitNode)||void 0===n?void 0:n.sourceMapRange)&&void 0!==t?t:e},e.setSourceMapRange=function(e,t){return n(e).sourceMapRange=t,e},e.getTokenSourceMapRange=function(e,n){var t,r;return null===(r=null===(t=e.emitNode)||void 0===t?void 0:t.tokenSourceMapRanges)||void 0===r?void 0:r[n]},e.setTokenSourceMapRange=function(e,t,r){var a,i=n(e);return(null!==(a=i.tokenSourceMapRanges)&&void 0!==a?a:i.tokenSourceMapRanges=[])[t]=r,e},e.getStartsOnNewLine=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.startsOnNewLine},e.setStartsOnNewLine=function(e,t){return n(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var n,t;return null!==(t=null===(n=e.emitNode)||void 0===n?void 0:n.commentRange)&&void 0!==t?t:e},e.setCommentRange=function(e,t){return n(e).commentRange=t,e},e.getSyntheticLeadingComments=t,e.setSyntheticLeadingComments=r,e.addSyntheticLeadingComment=function(n,a,i,o){return r(n,e.append(t(n),{kind:a,pos:-1,end:-1,hasTrailingNewLine:o,text:i}))},e.getSyntheticTrailingComments=a,e.setSyntheticTrailingComments=i,e.addSyntheticTrailingComment=function(n,t,r,o){return i(n,e.append(a(n),{kind:t,pos:-1,end:-1,hasTrailingNewLine:o,text:r}))},e.moveSyntheticComments=function(e,o){r(e,t(o)),i(e,a(o));var s=n(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.constantValue},e.setConstantValue=function(e,t){return n(e).constantValue=t,e},e.addEmitHelper=function(t,r){var a=n(t);return a.helpers=e.append(a.helpers,r),t},e.addEmitHelpers=function(t,r){if(e.some(r))for(var a=n(t),i=0,o=r;i<o.length;i++){var s=o[i];a.helpers=e.appendIfUnique(a.helpers,s)}return t},e.removeEmitHelper=function(n,t){var r,a=null===(r=n.emitNode)||void 0===r?void 0:r.helpers;return!!a&&e.orderedRemoveItem(a,t)},e.getEmitHelpers=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.helpers},e.moveEmitHelpers=function(t,r,a){var i=t.emitNode,o=i&&i.helpers;if(e.some(o)){for(var s=n(r),c=0,l=0;l<o.length;l++){var u=o[l];a(u)?(c++,s.helpers=e.appendIfUnique(s.helpers,u)):c>0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var n;return null===(n=e.emitNode)||void 0===n?void 0:n.snippetElement},e.setSnippetElement=function(e,t){return n(e).snippetElement=t,e},e.ignoreSourceNewlines=function(e){return n(e).flags|=134217728,e}}(ha||(ha={})),function(e){function n(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return function(t){for(var r="",a=0;a<n.length;a++)r+=e[a],r+=t(n[a]);return r+=e[e.length-1]}}var t;e.createEmitHelperFactory=function(n){var t=n.factory,r=e.memoize((function(){return e.setEmitFlags(t.createTrue(),268435456)})),a=e.memoize((function(){return e.setEmitFlags(t.createFalse(),268435456)}));return{getUnscopedHelperName:i,createDecorateHelper:function(r,a,o,s){n.requestEmitHelper(e.decorateHelper);var c=[];c.push(t.createArrayLiteralExpression(r,!0)),c.push(a),o&&(c.push(o),s&&c.push(s));return t.createCallExpression(i("__decorate"),void 0,c)},createMetadataHelper:function(r,a){return n.requestEmitHelper(e.metadataHelper),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(r),a])},createParamHelper:function(r,a,o){return n.requestEmitHelper(e.paramHelper),e.setTextRange(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(a+""),r]),o)},createAssignHelper:function(r){if(e.getEmitScriptTarget(n.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,r);return n.requestEmitHelper(e.assignHelper),t.createCallExpression(i("__assign"),void 0,r)},createAwaitHelper:function(r){return n.requestEmitHelper(e.awaitHelper),t.createCallExpression(i("__await"),void 0,[r])},createAsyncGeneratorHelper:function(r,a){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=786432,t.createCallExpression(i("__asyncGenerator"),void 0,[a?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),r])},createAsyncDelegatorHelper:function(r){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),t.createCallExpression(i("__asyncDelegator"),void 0,[r])},createAsyncValuesHelper:function(r){return n.requestEmitHelper(e.asyncValues),t.createCallExpression(i("__asyncValues"),void 0,[r])},createRestHelper:function(r,a,o,s){n.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u<a.length-1;u++){var d=e.getPropertyNameOfBindingOrAssignmentElement(a[u]);if(d)if(e.isComputedPropertyName(d)){e.Debug.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var p=o[l];l++,c.push(t.createConditionalExpression(t.createTypeCheck(p,"symbol"),void 0,p,void 0,t.createAdd(p,t.createStringLiteral(""))))}else c.push(t.createStringLiteralFromNode(d))}return t.createCallExpression(i("__rest"),void 0,[r,e.setTextRange(t.createArrayLiteralExpression(c),s)])},createAwaiterHelper:function(r,a,o,s){n.requestEmitHelper(e.awaiterHelper);var c=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,t.createCallExpression(i("__awaiter"),void 0,[r?t.createThis():t.createVoidZero(),a?t.createIdentifier("arguments"):t.createVoidZero(),o?e.createExpressionFromEntityName(t,o):t.createVoidZero(),c])},createExtendsHelper:function(r){return n.requestEmitHelper(e.extendsHelper),t.createCallExpression(i("__extends"),void 0,[r,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(r,a){return n.requestEmitHelper(e.templateObjectHelper),t.createCallExpression(i("__makeTemplateObject"),void 0,[r,a])},createSpreadArrayHelper:function(o,s,c){return n.requestEmitHelper(e.spreadArrayHelper),t.createCallExpression(i("__spreadArray"),void 0,[o,s,c?r():a()])},createValuesHelper:function(r){return n.requestEmitHelper(e.valuesHelper),t.createCallExpression(i("__values"),void 0,[r])},createReadHelper:function(r,a){return n.requestEmitHelper(e.readHelper),t.createCallExpression(i("__read"),void 0,void 0!==a?[r,t.createNumericLiteral(a+"")]:[r])},createGeneratorHelper:function(r){return n.requestEmitHelper(e.generatorHelper),t.createCallExpression(i("__generator"),void 0,[t.createThis(),r])},createCreateBindingHelper:function(r,a,o){return n.requestEmitHelper(e.createBindingHelper),t.createCallExpression(i("__createBinding"),void 0,pa([t.createIdentifier("exports"),r,a],o?[o]:[],!0))},createImportStarHelper:function(r){return n.requestEmitHelper(e.importStarHelper),t.createCallExpression(i("__importStar"),void 0,[r])},createImportStarCallbackHelper:function(){return n.requestEmitHelper(e.importStarHelper),i("__importStar")},createImportDefaultHelper:function(r){return n.requestEmitHelper(e.importDefaultHelper),t.createCallExpression(i("__importDefault"),void 0,[r])},createExportStarHelper:function(r,a){void 0===a&&(a=t.createIdentifier("exports"));return n.requestEmitHelper(e.exportStarHelper),n.requestEmitHelper(e.createBindingHelper),t.createCallExpression(i("__exportStar"),void 0,[r,a])},createClassPrivateFieldGetHelper:function(r,a,o,s){var c;n.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[r,a,t.createStringLiteral(o),s]:[r,a,t.createStringLiteral(o)];return t.createCallExpression(i("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper:function(r,a,o,s,c){var l;n.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[r,a,o,t.createStringLiteral(s),c]:[r,a,o,t.createStringLiteral(s)];return t.createCallExpression(i("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:function(r,a){return n.requestEmitHelper(e.classPrivateFieldInHelper),t.createCallExpression(i("__classPrivateFieldIn"),void 0,[r,a])}};function i(n){return e.setEmitFlags(t.createIdentifier(n),4098)}},e.compareEmitHelpers=function(n,t){return n===t||n.priority===t.priority?0:void 0===n.priority?1:void 0===t.priority?-1:e.compareValues(n.priority,t.priority)},e.helperString=n,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return t||(t=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:n(ma(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:n(ma(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(n,t){return e.isCallExpression(n)&&e.isIdentifier(n.expression)&&0!==(4096&e.getEmitFlags(n.expression))&&n.expression.escapedText===t}}(ha||(ha={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 131===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 132===e.kind},e.isReadonlyKeyword=function(e){return 144===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 160===e.kind},e.isComputedPropertyName=function(e){return 161===e.kind},e.isTypeParameterDeclaration=function(e){return 162===e.kind},e.isParameter=function(e){return 163===e.kind},e.isDecorator=function(e){return 164===e.kind},e.isPropertySignature=function(e){return 165===e.kind},e.isPropertyDeclaration=function(e){return 166===e.kind},e.isMethodSignature=function(e){return 167===e.kind},e.isMethodDeclaration=function(e){return 168===e.kind},e.isClassStaticBlockDeclaration=function(e){return 169===e.kind},e.isConstructorDeclaration=function(e){return 170===e.kind},e.isGetAccessorDeclaration=function(e){return 171===e.kind},e.isSetAccessorDeclaration=function(e){return 172===e.kind},e.isCallSignatureDeclaration=function(e){return 173===e.kind},e.isConstructSignatureDeclaration=function(e){return 174===e.kind},e.isIndexSignatureDeclaration=function(e){return 175===e.kind},e.isTypePredicateNode=function(e){return 176===e.kind},e.isTypeReferenceNode=function(e){return 177===e.kind},e.isFunctionTypeNode=function(e){return 178===e.kind},e.isConstructorTypeNode=function(e){return 179===e.kind},e.isTypeQueryNode=function(e){return 180===e.kind},e.isTypeLiteralNode=function(e){return 181===e.kind},e.isArrayTypeNode=function(e){return 182===e.kind},e.isTupleTypeNode=function(e){return 183===e.kind},e.isNamedTupleMember=function(e){return 196===e.kind},e.isOptionalTypeNode=function(e){return 184===e.kind},e.isRestTypeNode=function(e){return 185===e.kind},e.isUnionTypeNode=function(e){return 186===e.kind},e.isIntersectionTypeNode=function(e){return 187===e.kind},e.isConditionalTypeNode=function(e){return 188===e.kind},e.isInferTypeNode=function(e){return 189===e.kind},e.isParenthesizedTypeNode=function(e){return 190===e.kind},e.isThisTypeNode=function(e){return 191===e.kind},e.isTypeOperatorNode=function(e){return 192===e.kind},e.isIndexedAccessTypeNode=function(e){return 193===e.kind},e.isMappedTypeNode=function(e){return 194===e.kind},e.isLiteralTypeNode=function(e){return 195===e.kind},e.isImportTypeNode=function(e){return 199===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 198===e.kind},e.isTemplateLiteralTypeNode=function(e){return 197===e.kind},e.isObjectBindingPattern=function(e){return 200===e.kind},e.isArrayBindingPattern=function(e){return 201===e.kind},e.isBindingElement=function(e){return 202===e.kind},e.isArrayLiteralExpression=function(e){return 203===e.kind},e.isObjectLiteralExpression=function(e){return 204===e.kind},e.isPropertyAccessExpression=function(e){return 205===e.kind},e.isElementAccessExpression=function(e){return 206===e.kind},e.isCallExpression=function(e){return 207===e.kind},e.isNewExpression=function(e){return 208===e.kind},e.isTaggedTemplateExpression=function(e){return 209===e.kind},e.isTypeAssertionExpression=function(e){return 210===e.kind},e.isParenthesizedExpression=function(e){return 211===e.kind},e.isFunctionExpression=function(e){return 212===e.kind},e.isArrowFunction=function(e){return 213===e.kind},e.isDeleteExpression=function(e){return 214===e.kind},e.isTypeOfExpression=function(e){return 215===e.kind},e.isVoidExpression=function(e){return 216===e.kind},e.isAwaitExpression=function(e){return 217===e.kind},e.isPrefixUnaryExpression=function(e){return 218===e.kind},e.isPostfixUnaryExpression=function(e){return 219===e.kind},e.isBinaryExpression=function(e){return 220===e.kind},e.isConditionalExpression=function(e){return 221===e.kind},e.isTemplateExpression=function(e){return 222===e.kind},e.isYieldExpression=function(e){return 223===e.kind},e.isSpreadElement=function(e){return 224===e.kind},e.isClassExpression=function(e){return 225===e.kind},e.isOmittedExpression=function(e){return 226===e.kind},e.isExpressionWithTypeArguments=function(e){return 227===e.kind},e.isAsExpression=function(e){return 228===e.kind},e.isNonNullExpression=function(e){return 229===e.kind},e.isMetaProperty=function(e){return 230===e.kind},e.isSyntheticExpression=function(e){return 231===e.kind},e.isPartiallyEmittedExpression=function(e){return 348===e.kind},e.isCommaListExpression=function(e){return 349===e.kind},e.isTemplateSpan=function(e){return 232===e.kind},e.isSemicolonClassElement=function(e){return 233===e.kind},e.isBlock=function(e){return 234===e.kind},e.isVariableStatement=function(e){return 236===e.kind},e.isEmptyStatement=function(e){return 235===e.kind},e.isExpressionStatement=function(e){return 237===e.kind},e.isIfStatement=function(e){return 238===e.kind},e.isDoStatement=function(e){return 239===e.kind},e.isWhileStatement=function(e){return 240===e.kind},e.isForStatement=function(e){return 241===e.kind},e.isForInStatement=function(e){return 242===e.kind},e.isForOfStatement=function(e){return 243===e.kind},e.isContinueStatement=function(e){return 244===e.kind},e.isBreakStatement=function(e){return 245===e.kind},e.isReturnStatement=function(e){return 246===e.kind},e.isWithStatement=function(e){return 247===e.kind},e.isSwitchStatement=function(e){return 248===e.kind},e.isLabeledStatement=function(e){return 249===e.kind},e.isThrowStatement=function(e){return 250===e.kind},e.isTryStatement=function(e){return 251===e.kind},e.isDebuggerStatement=function(e){return 252===e.kind},e.isVariableDeclaration=function(e){return 253===e.kind},e.isVariableDeclarationList=function(e){return 254===e.kind},e.isFunctionDeclaration=function(e){return 255===e.kind},e.isClassDeclaration=function(e){return 256===e.kind},e.isInterfaceDeclaration=function(e){return 257===e.kind},e.isTypeAliasDeclaration=function(e){return 258===e.kind},e.isEnumDeclaration=function(e){return 259===e.kind},e.isModuleDeclaration=function(e){return 260===e.kind},e.isModuleBlock=function(e){return 261===e.kind},e.isCaseBlock=function(e){return 262===e.kind},e.isNamespaceExportDeclaration=function(e){return 263===e.kind},e.isImportEqualsDeclaration=function(e){return 264===e.kind},e.isImportDeclaration=function(e){return 265===e.kind},e.isImportClause=function(e){return 266===e.kind},e.isAssertClause=function(e){return 292===e.kind},e.isAssertEntry=function(e){return 293===e.kind},e.isNamespaceImport=function(e){return 267===e.kind},e.isNamespaceExport=function(e){return 273===e.kind},e.isNamedImports=function(e){return 268===e.kind},e.isImportSpecifier=function(e){return 269===e.kind},e.isExportAssignment=function(e){return 270===e.kind},e.isExportDeclaration=function(e){return 271===e.kind},e.isNamedExports=function(e){return 272===e.kind},e.isExportSpecifier=function(e){return 274===e.kind},e.isMissingDeclaration=function(e){return 275===e.kind},e.isNotEmittedStatement=function(e){return 347===e.kind},e.isSyntheticReference=function(e){return 352===e.kind},e.isMergeDeclarationMarker=function(e){return 350===e.kind},e.isEndOfDeclarationMarker=function(e){return 351===e.kind},e.isExternalModuleReference=function(e){return 276===e.kind},e.isJsxElement=function(e){return 277===e.kind},e.isJsxSelfClosingElement=function(e){return 278===e.kind},e.isJsxOpeningElement=function(e){return 279===e.kind},e.isJsxClosingElement=function(e){return 280===e.kind},e.isJsxFragment=function(e){return 281===e.kind},e.isJsxOpeningFragment=function(e){return 282===e.kind},e.isJsxClosingFragment=function(e){return 283===e.kind},e.isJsxAttribute=function(e){return 284===e.kind},e.isJsxAttributes=function(e){return 285===e.kind},e.isJsxSpreadAttribute=function(e){return 286===e.kind},e.isJsxExpression=function(e){return 287===e.kind},e.isCaseClause=function(e){return 288===e.kind},e.isDefaultClause=function(e){return 289===e.kind},e.isHeritageClause=function(e){return 290===e.kind},e.isCatchClause=function(e){return 291===e.kind},e.isPropertyAssignment=function(e){return 294===e.kind},e.isShorthandPropertyAssignment=function(e){return 295===e.kind},e.isSpreadAssignment=function(e){return 296===e.kind},e.isEnumMember=function(e){return 297===e.kind},e.isUnparsedPrepend=function(e){return 299===e.kind},e.isSourceFile=function(e){return 303===e.kind},e.isBundle=function(e){return 304===e.kind},e.isUnparsedSource=function(e){return 305===e.kind},e.isJSDocTypeExpression=function(e){return 307===e.kind},e.isJSDocNameReference=function(e){return 308===e.kind},e.isJSDocMemberName=function(e){return 309===e.kind},e.isJSDocLink=function(e){return 322===e.kind},e.isJSDocLinkCode=function(e){return 323===e.kind},e.isJSDocLinkPlain=function(e){return 324===e.kind},e.isJSDocAllType=function(e){return 310===e.kind},e.isJSDocUnknownType=function(e){return 311===e.kind},e.isJSDocNullableType=function(e){return 312===e.kind},e.isJSDocNonNullableType=function(e){return 313===e.kind},e.isJSDocOptionalType=function(e){return 314===e.kind},e.isJSDocFunctionType=function(e){return 315===e.kind},e.isJSDocVariadicType=function(e){return 316===e.kind},e.isJSDocNamepathType=function(e){return 317===e.kind},e.isJSDoc=function(e){return 318===e.kind},e.isJSDocTypeLiteral=function(e){return 320===e.kind},e.isJSDocSignature=function(e){return 321===e.kind},e.isJSDocAugmentsTag=function(e){return 326===e.kind},e.isJSDocAuthorTag=function(e){return 328===e.kind},e.isJSDocClassTag=function(e){return 330===e.kind},e.isJSDocCallbackTag=function(e){return 336===e.kind},e.isJSDocPublicTag=function(e){return 331===e.kind},e.isJSDocPrivateTag=function(e){return 332===e.kind},e.isJSDocProtectedTag=function(e){return 333===e.kind},e.isJSDocReadonlyTag=function(e){return 334===e.kind},e.isJSDocOverrideTag=function(e){return 335===e.kind},e.isJSDocDeprecatedTag=function(e){return 329===e.kind},e.isJSDocSeeTag=function(e){return 344===e.kind},e.isJSDocEnumTag=function(e){return 337===e.kind},e.isJSDocParameterTag=function(e){return 338===e.kind},e.isJSDocReturnTag=function(e){return 339===e.kind},e.isJSDocThisTag=function(e){return 340===e.kind},e.isJSDocTypeTag=function(e){return 341===e.kind},e.isJSDocTemplateTag=function(e){return 342===e.kind},e.isJSDocTypedefTag=function(e){return 343===e.kind},e.isJSDocUnknownTag=function(e){return 325===e.kind},e.isJSDocPropertyTag=function(e){return 345===e.kind},e.isJSDocImplementsTag=function(e){return 327===e.kind},e.isSyntaxList=function(e){return 346===e.kind}}(ha||(ha={})),function(e){function n(n,t,r,a){if(e.isComputedPropertyName(r))return e.setTextRange(n.createElementAccessExpression(t,r.expression),a);var i=e.setTextRange(e.isMemberName(r)?n.createPropertyAccessExpression(t,r):n.createElementAccessExpression(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function t(n,t){var r=e.parseNodeFactory.createIdentifier(n||"React");return e.setParent(r,e.getParseTreeNode(t)),r}function r(n,a,i){if(e.isQualifiedName(a)){var o=r(n,a.left,i),s=n.createIdentifier(e.idText(a.right));return s.escapedText=a.right.escapedText,n.createPropertyAccessExpression(o,s)}return t(e.idText(a),i)}function a(e,n,a,i){return n?r(e,n,i):e.createPropertyAccessExpression(t(a,i),"createElement")}function i(n,t){return e.isIdentifier(t)?n.createStringLiteralFromNode(t):e.isComputedPropertyName(t)?e.setParent(e.setTextRange(n.cloneNode(t.expression),t.expression),t.expression.parent):e.setParent(e.setTextRange(n.cloneNode(t),t),t.parent)}function o(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function s(n){return e.isParenthesizedExpression(n)&&e.isInJSFile(n)&&!!e.getJSDocTypeTag(n)}function c(e,n){switch(void 0===n&&(n=15),e.kind){case 211:return!(16&n&&s(e))&&0!==(1&n);case 210:case 228:return 0!==(2&n);case 229:return 0!==(4&n);case 348:return 0!==(8&n)}return!1}function l(e,n){for(void 0===n&&(n=15);c(e,n);)e=e.expression;return e}function u(n){return e.setStartsOnNewLine(n,!0)}function d(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function p(n,t,r,a,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var o=d(t);if(o)return o;var s=e.getEmitModuleKind(r),c=(a||e.getESModuleInterop(r)&&i)&&s!==e.ModuleKind.System&&(s<e.ModuleKind.ES2015||t.impliedNodeFormat===e.ModuleKind.CommonJS);if(!c){var l=e.getEmitHelpers(t);if(l)for(var u=0,p=l;u<p.length;u++){if(!p[u].scoped){c=!0;break}}}if(c){var f=e.getOriginalNode(t,e.isSourceFile),m=e.getOrCreateEmitNode(f);return m.externalHelpersModuleName||(m.externalHelpersModuleName=n.createUniqueName(e.externalHelpersModuleNameText))}}}function f(n,t,r,a){if(t)return t.moduleName?n.createStringLiteral(t.moduleName):!t.isDeclarationFile&&e.outFile(a)?n.createStringLiteral(e.getExternalModuleNameFromPath(r,t.fileName)):void 0}function m(n){if(e.isDeclarationBindingElement(n))return n.name;if(!e.isObjectLiteralElementLike(n))return e.isAssignmentExpression(n,!0)?m(n.left):e.isSpreadElement(n)?m(n.expression):n;switch(n.kind){case 294:return m(n.initializer);case 295:return n.name;case 296:return m(n.expression)}}function _(n){switch(n.kind){case 202:if(n.propertyName){var t=n.propertyName;return e.isPrivateIdentifier(t)?e.Debug.failBadSyntaxKind(t):e.isComputedPropertyName(t)&&g(t.expression)?t.expression:t}break;case 294:if(n.name){t=n.name;return e.isPrivateIdentifier(t)?e.Debug.failBadSyntaxKind(t):e.isComputedPropertyName(t)&&g(t.expression)?t.expression:t}break;case 296:return n.name&&e.isPrivateIdentifier(n.name)?e.Debug.failBadSyntaxKind(n.name):n.name}var r=m(n);if(r&&e.isPropertyName(r))return r}function g(e){var n=e.kind;return 10===n||8===n}function y(n){return function(n){return 60===n||function(e){return function(e){return 55===e||56===e}(e)||function(e){return function(e){return 50===e||51===e||52===e}(e)||function(e){return function(e){return 34===e||36===e||35===e||37===e}(e)||function(e){return function(e){return 29===e||32===e||31===e||33===e||102===e||101===e}(e)||function(e){return function(e){return 47===e||48===e||49===e}(e)||function(e){return function(e){return 39===e||40===e}(e)||function(e){return function(e){return 42===e}(e)||function(e){return 41===e||43===e||44===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(n)||e.isAssignmentOperator(n)}(n)||27===n}var h;e.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},e.createMemberAccessForPropertyName=n,e.createJsxFactoryExpression=a,e.createExpressionForJsxElement=function(n,t,r,a,i,o){var s=[r];if(a&&s.push(a),i&&i.length>0)if(a||s.push(n.createNull()),i.length>1)for(var c=0,l=i;c<l.length;c++){var d=l[c];u(d),s.push(d)}else s.push(i[0]);return e.setTextRange(n.createCallExpression(t,void 0,s),o)},e.createExpressionForJsxFragment=function(n,i,o,s,c,l,d){var p=function(e,n,a,i){return n?r(e,n,i):e.createPropertyAccessExpression(t(a,i),"Fragment")}(n,o,s,l),f=[p,n.createNull()];if(c&&c.length>0)if(c.length>1)for(var m=0,_=c;m<_.length;m++){var g=_[m];u(g),f.push(g)}else f.push(c[0]);return e.setTextRange(n.createCallExpression(a(n,i,s,l),void 0,f),d)},e.createForOfBindingStatement=function(n,t,r){if(e.isVariableDeclarationList(t)){var a=e.first(t.declarations),i=n.updateVariableDeclaration(a,a.name,void 0,void 0,r);return e.setTextRange(n.createVariableStatement(void 0,n.updateVariableDeclarationList(t,[i])),t)}var o=e.setTextRange(n.createAssignment(t,r),t);return e.setTextRange(n.createExpressionStatement(o),t)},e.insertLeadingStatement=function(n,t,r){return e.isBlock(t)?n.updateBlock(t,e.setTextRange(n.createNodeArray(pa([r],t.statements,!0)),t.statements)):n.createBlock(n.createNodeArray([t,r]),!0)},e.createExpressionFromEntityName=function n(t,r){if(e.isQualifiedName(r)){var a=n(t,r.left),i=e.setParent(e.setTextRange(t.cloneNode(r.right),r.right),r.right.parent);return e.setTextRange(t.createPropertyAccessExpression(a,i),r)}return e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)},e.createExpressionForPropertyName=i,e.createExpressionForObjectLiteralElementLike=function(t,r,a,o){switch(a.name&&e.isPrivateIdentifier(a.name)&&e.Debug.failBadSyntaxKind(a.name,"Private identifiers are not allowed in object literals."),a.kind){case 171:case 172:return function(n,t,r,a,o){var s=e.getAllAccessorDeclarations(t,r),c=s.firstAccessor,l=s.getAccessor,u=s.setAccessor;if(r===c)return e.setTextRange(n.createObjectDefinePropertyCall(a,i(n,r.name),n.createPropertyDescriptor({enumerable:n.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(n.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&e.setTextRange(e.setOriginalNode(n.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),c)}(t,r.properties,a,o,!!r.multiLine);case 294:return function(t,r,a){return e.setOriginalNode(e.setTextRange(t.createAssignment(n(t,a,r.name,r.name),r.initializer),r),r)}(t,a,o);case 295:return function(t,r,a){return e.setOriginalNode(e.setTextRange(t.createAssignment(n(t,a,r.name,r.name),t.cloneNode(r.name)),r),r)}(t,a,o);case 168:return function(t,r,a){return e.setOriginalNode(e.setTextRange(t.createAssignment(n(t,a,r.name,r.name),e.setOriginalNode(e.setTextRange(t.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r)}(t,a,o)}},e.expandPreOrPostfixIncrementOrDecrementExpression=function(n,t,r,a,i){var o=t.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=n.createTempVariable(a);r=n.createAssignment(s,r),e.setTextRange(r,t.operand);var c=e.isPrefixUnaryExpression(t)?n.createPrefixUnaryExpression(o,s):n.createPostfixUnaryExpression(s,o);return e.setTextRange(c,t),i&&(c=n.createAssignment(i,c),e.setTextRange(c,t)),r=n.createComma(r,c),e.setTextRange(r,t),e.isPostfixUnaryExpression(t)&&(r=n.createComma(r,s),e.setTextRange(r,t)),r},e.isInternalName=function(n){return 0!==(32768&e.getEmitFlags(n))},e.isLocalName=function(n){return 0!==(16384&e.getEmitFlags(n))},e.isExportName=function(n){return 0!==(8192&e.getEmitFlags(n))},e.findUseStrictPrologue=function(n){for(var t=0,r=n;t<r.length;t++){var a=r[t];if(!e.isPrologueDirective(a))break;if(o(a))return a}},e.startsWithUseStrict=function(n){var t=e.firstOrUndefined(n);return void 0!==t&&e.isPrologueDirective(t)&&o(t)},e.isCommaSequence=function(e){return 220===e.kind&&27===e.operatorToken.kind||349===e.kind},e.isJSDocTypeAssertion=s,e.getJSDocTypeAssertionType=function(n){var t=e.getJSDocType(n);return e.Debug.assertIsDefined(t),t},e.isOuterExpression=c,e.skipOuterExpressions=l,e.skipAssertions=function(e){return l(e,6)},e.startOnNewLine=u,e.getExternalHelpersModuleName=d,e.hasRecordedExternalHelpers=function(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(n,t,r,a,i,o,s){if(a.importHelpers&&e.isEffectiveExternalModule(r,a)){var c=void 0,l=e.getEmitModuleKind(a);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||r.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(r);if(u){for(var d=[],f=0,m=u;f<m.length;f++){var _=m[f];if(!_.scoped){var g=_.importName;g&&e.pushIfUnique(d,g)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=n.createNamedImports(e.map(d,(function(a){return e.isFileLevelUniqueName(r,a)?n.createImportSpecifier(!1,void 0,n.createIdentifier(a)):n.createImportSpecifier(!1,n.createIdentifier(a),t.getUnscopedHelperName(a))})));var y=e.getOriginalNode(r,e.isSourceFile);e.getOrCreateEmitNode(y).externalHelpers=!0}}}else{var h=p(n,r,a,i,o||s);h&&(c=n.createNamespaceImport(h))}if(c){var v=n.createImportDeclaration(void 0,void 0,n.createImportClause(!1,void 0,c),n.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=p,e.getLocalNameForExternalImport=function(n,t,r){var a=e.getNamespaceDeclarationNode(t);if(a&&!e.isDefaultImport(t)&&!e.isExportNamespaceAsDefaultDeclaration(t)){var i=a.name;return e.isGeneratedIdentifier(i)?i:n.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,i)||e.idText(i))}return 265===t.kind&&t.importClause||271===t.kind&&t.moduleSpecifier?n.getGeneratedNameForNode(t):void 0},e.getExternalModuleNameLiteral=function(n,t,r,a,i,o){var s=e.getExternalModuleName(t);if(s&&e.isStringLiteral(s))return function(e,n,t,r,a){return f(t,r.getExternalModuleFileFromDeclaration(e),n,a)}(t,a,n,i,o)||function(e,n,t){var r=t.renamedDependencies&&t.renamedDependencies.get(n.text);return r?e.createStringLiteral(r):void 0}(n,s,r)||n.cloneNode(s)},e.tryGetModuleNameFromFile=f,e.getInitializerOfBindingOrAssignmentElement=function n(t){if(e.isDeclarationBindingElement(t))return t.initializer;if(e.isPropertyAssignment(t)){var r=t.initializer;return e.isAssignmentExpression(r,!0)?r.right:void 0}return e.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:e.isAssignmentExpression(t,!0)?t.right:e.isSpreadElement(t)?n(t.expression):void 0},e.getTargetOfBindingOrAssignmentElement=m,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 163:case 202:return e.dotDotDotToken;case 224:case 296:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(n){var t=_(n);return e.Debug.assert(!!t||e.isSpreadAssignment(n),"Invalid property name for binding element."),t},e.tryGetPropertyNameOfBindingOrAssignmentElement=_,e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 200:case 201:case 203:return e.elements;case 204:return e.properties}},e.getJSDocTypeAliasName=function(n){if(n)for(var t=n;;){if(e.isIdentifier(t)||!t.body)return e.isIdentifier(t)?t:t.name;t=t.body}},e.canHaveModifiers=function(e){var n=e.kind;return 163===n||165===n||166===n||167===n||168===n||170===n||171===n||172===n||175===n||212===n||213===n||225===n||236===n||255===n||256===n||257===n||258===n||259===n||260===n||264===n||265===n||270===n||271===n},e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral),e.isLiteralTypeLikeExpression=function(n){var t=n.kind;return 104===t||110===t||95===t||e.isLiteralExpression(n)||e.isPrefixUnaryExpression(n)},e.isBinaryOperatorToken=function(e){return y(e.kind)},function(n){function t(n,r,a,i,o,s,l){var u=r>0?o[r-1]:void 0;return e.Debug.assertEqual(a[r],t),o[r]=n.onEnter(i[r],u,l),a[r]=c(n,t),r}function r(n,t,a,i,o,s,d){e.Debug.assertEqual(a[t],r),e.Debug.assertIsDefined(n.onLeft),a[t]=c(n,r);var p=n.onLeft(i[t].left,o[t],i[t]);return p?(u(t,i,p),l(t,a,i,o,p)):t}function a(n,t,r,i,o,s,l){return e.Debug.assertEqual(r[t],a),e.Debug.assertIsDefined(n.onOperator),r[t]=c(n,a),n.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(n,t,r,a,o,s,d){e.Debug.assertEqual(r[t],i),e.Debug.assertIsDefined(n.onRight),r[t]=c(n,i);var p=n.onRight(a[t].right,o[t],a[t]);return p?(u(t,a,p),l(t,r,a,o,p)):t}function o(n,t,r,a,i,s,l){e.Debug.assertEqual(r[t],o),r[t]=c(n,o);var u=n.onExit(a[t],i[t]);if(t>0){if(t--,n.foldState){var d=r[t]===o?"right":"left";i[t]=n.foldState(i[t],u,d)}}else s.value=u;return t}function s(n,t,r,a,i,o,c){return e.Debug.assertEqual(r[t],s),t}function c(n,c){switch(c){case t:if(n.onLeft)return r;case r:if(n.onOperator)return a;case a:if(n.onRight)return i;case i:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,n,r,a,i){return n[++e]=t,r[e]=i,a[e]=void 0,e}function u(n,t,r){if(e.Debug.shouldAssert(2))for(;n>=0;)e.Debug.assert(t[n]!==r,"Circular traversal detected."),n--}n.enter=t,n.left=r,n.operator=a,n.right=i,n.exit=o,n.done=s,n.nextState=c}(h||(h={}));var v=function(e,n,t,r,a,i){this.onEnter=e,this.onLeft=n,this.onOperator=t,this.onRight=r,this.onExit=a,this.foldState=i};e.createBinaryExpressionTrampoline=function(n,t,r,a,i,o){var s=new v(n,t,r,a,i,o);return function(n,t){var r={value:void 0},a=[h.enter],i=[n],o=[void 0],c=0;for(;a[c]!==h.done;)c=a[c](s,c,a,i,o,r,t);return e.Debug.assertEqual(c,0),r.value}}}(ha||(ha={})),function(e){e.setTextRange=function(n,t){return t?e.setTextRangePosEnd(n,t.pos,t.end):n}}(ha||(ha={})),function(e){var n,t,r,a,i,o,s,c,l,u,d;function p(e,n){return n&&e(n)}function f(e,n,t){if(t){if(n)return n(t);for(var r=0,a=t;r<a.length;r++){var i=e(a[r]);if(i)return i}}}function m(e,n){return 42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&47!==e.charCodeAt(n+3)}function _(n,t,r){if(n&&!(n.kind<=159))switch(n.kind){case 160:case 309:return p(t,n.left)||p(t,n.right);case 162:return p(t,n.name)||p(t,n.constraint)||p(t,n.default)||p(t,n.expression);case 295:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.questionToken)||p(t,n.exclamationToken)||p(t,n.equalsToken)||p(t,n.objectAssignmentInitializer);case 296:case 211:case 214:case 215:case 216:case 217:case 229:case 224:case 237:case 246:case 250:case 164:case 161:case 276:case 286:case 348:return p(t,n.expression);case 163:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.dotDotDotToken)||p(t,n.name)||p(t,n.questionToken)||p(t,n.type)||p(t,n.initializer);case 166:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.questionToken)||p(t,n.exclamationToken)||p(t,n.type)||p(t,n.initializer);case 165:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.questionToken)||p(t,n.type)||p(t,n.initializer);case 294:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.questionToken)||p(t,n.initializer);case 253:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.exclamationToken)||p(t,n.type)||p(t,n.initializer);case 202:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.dotDotDotToken)||p(t,n.propertyName)||p(t,n.name)||p(t,n.initializer);case 178:case 179:case 173:case 174:case 175:return f(t,r,n.decorators)||f(t,r,n.modifiers)||f(t,r,n.typeParameters)||f(t,r,n.parameters)||p(t,n.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.asteriskToken)||p(t,n.name)||p(t,n.questionToken)||p(t,n.exclamationToken)||f(t,r,n.typeParameters)||f(t,r,n.parameters)||p(t,n.type)||p(t,n.equalsGreaterThanToken)||p(t,n.body);case 169:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.body);case 177:return p(t,n.typeName)||f(t,r,n.typeArguments);case 176:return p(t,n.assertsModifier)||p(t,n.parameterName)||p(t,n.type);case 180:return p(t,n.exprName);case 181:return f(t,r,n.members);case 182:return p(t,n.elementType);case 183:case 200:case 201:case 203:case 292:case 268:case 272:case 349:return f(t,r,n.elements);case 186:case 187:case 290:return f(t,r,n.types);case 188:return p(t,n.checkType)||p(t,n.extendsType)||p(t,n.trueType)||p(t,n.falseType);case 189:return p(t,n.typeParameter);case 199:return p(t,n.argument)||p(t,n.qualifier)||f(t,r,n.typeArguments);case 190:case 192:case 184:case 185:case 307:case 313:case 312:case 314:case 316:return p(t,n.type);case 193:return p(t,n.objectType)||p(t,n.indexType);case 194:return p(t,n.readonlyToken)||p(t,n.typeParameter)||p(t,n.nameType)||p(t,n.questionToken)||p(t,n.type)||f(t,r,n.members);case 195:return p(t,n.literal);case 196:return p(t,n.dotDotDotToken)||p(t,n.name)||p(t,n.questionToken)||p(t,n.type);case 204:case 285:return f(t,r,n.properties);case 205:return p(t,n.expression)||p(t,n.questionDotToken)||p(t,n.name);case 206:return p(t,n.expression)||p(t,n.questionDotToken)||p(t,n.argumentExpression);case 207:case 208:return p(t,n.expression)||p(t,n.questionDotToken)||f(t,r,n.typeArguments)||f(t,r,n.arguments);case 209:return p(t,n.tag)||p(t,n.questionDotToken)||f(t,r,n.typeArguments)||p(t,n.template);case 210:return p(t,n.type)||p(t,n.expression);case 218:case 219:return p(t,n.operand);case 223:return p(t,n.asteriskToken)||p(t,n.expression);case 220:return p(t,n.left)||p(t,n.operatorToken)||p(t,n.right);case 228:return p(t,n.expression)||p(t,n.type);case 230:case 263:case 267:case 273:case 308:case 322:case 323:case 324:return p(t,n.name);case 221:return p(t,n.condition)||p(t,n.questionToken)||p(t,n.whenTrue)||p(t,n.colonToken)||p(t,n.whenFalse);case 234:case 261:case 289:return f(t,r,n.statements);case 303:return f(t,r,n.statements)||p(t,n.endOfFileToken);case 236:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.declarationList);case 254:return f(t,r,n.declarations);case 238:return p(t,n.expression)||p(t,n.thenStatement)||p(t,n.elseStatement);case 239:return p(t,n.statement)||p(t,n.expression);case 240:case 247:return p(t,n.expression)||p(t,n.statement);case 241:return p(t,n.initializer)||p(t,n.condition)||p(t,n.incrementor)||p(t,n.statement);case 242:return p(t,n.initializer)||p(t,n.expression)||p(t,n.statement);case 243:return p(t,n.awaitModifier)||p(t,n.initializer)||p(t,n.expression)||p(t,n.statement);case 244:case 245:return p(t,n.label);case 248:return p(t,n.expression)||p(t,n.caseBlock);case 262:return f(t,r,n.clauses);case 288:return p(t,n.expression)||f(t,r,n.statements);case 249:return p(t,n.label)||p(t,n.statement);case 251:return p(t,n.tryBlock)||p(t,n.catchClause)||p(t,n.finallyBlock);case 291:return p(t,n.variableDeclaration)||p(t,n.block);case 256:case 225:case 257:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||f(t,r,n.typeParameters)||f(t,r,n.heritageClauses)||f(t,r,n.members);case 258:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||f(t,r,n.typeParameters)||p(t,n.type);case 259:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||f(t,r,n.members);case 297:case 284:return p(t,n.name)||p(t,n.initializer);case 260:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.body);case 264:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.name)||p(t,n.moduleReference);case 265:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.importClause)||p(t,n.moduleSpecifier)||p(t,n.assertClause);case 266:return p(t,n.name)||p(t,n.namedBindings);case 293:return p(t,n.name)||p(t,n.value);case 271:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.exportClause)||p(t,n.moduleSpecifier)||p(t,n.assertClause);case 269:case 274:return p(t,n.propertyName)||p(t,n.name);case 270:return f(t,r,n.decorators)||f(t,r,n.modifiers)||p(t,n.expression);case 222:case 197:return p(t,n.head)||f(t,r,n.templateSpans);case 232:return p(t,n.expression)||p(t,n.literal);case 198:return p(t,n.type)||p(t,n.literal);case 227:return p(t,n.expression)||f(t,r,n.typeArguments);case 275:return f(t,r,n.decorators);case 277:return p(t,n.openingElement)||f(t,r,n.children)||p(t,n.closingElement);case 281:return p(t,n.openingFragment)||f(t,r,n.children)||p(t,n.closingFragment);case 278:case 279:return p(t,n.tagName)||f(t,r,n.typeArguments)||p(t,n.attributes);case 287:return p(t,n.dotDotDotToken)||p(t,n.expression);case 280:return p(t,n.tagName);case 315:return f(t,r,n.parameters)||p(t,n.type);case 318:return("string"===typeof n.comment?void 0:f(t,r,n.comment))||f(t,r,n.tags);case 344:return p(t,n.tagName)||p(t,n.name)||("string"===typeof n.comment?void 0:f(t,r,n.comment));case 338:case 345:return p(t,n.tagName)||(n.isNameFirst?p(t,n.name)||p(t,n.typeExpression)||("string"===typeof n.comment?void 0:f(t,r,n.comment)):p(t,n.typeExpression)||p(t,n.name)||("string"===typeof n.comment?void 0:f(t,r,n.comment)));case 328:case 325:case 330:case 331:case 332:case 333:case 334:case 329:return p(t,n.tagName)||("string"===typeof n.comment?void 0:f(t,r,n.comment));case 327:case 326:return p(t,n.tagName)||p(t,n.class)||("string"===typeof n.comment?void 0:f(t,r,n.comment));case 342:return p(t,n.tagName)||p(t,n.constraint)||f(t,r,n.typeParameters)||("string"===typeof n.comment?void 0:f(t,r,n.comment));case 343:return p(t,n.tagName)||(n.typeExpression&&307===n.typeExpression.kind?p(t,n.typeExpression)||p(t,n.fullName)||("string"===typeof n.comment?void 0:f(t,r,n.comment)):p(t,n.fullName)||p(t,n.typeExpression)||("string"===typeof n.comment?void 0:f(t,r,n.comment)));case 336:return p(t,n.tagName)||p(t,n.fullName)||p(t,n.typeExpression)||("string"===typeof n.comment?void 0:f(t,r,n.comment));case 339:case 341:case 340:case 337:return p(t,n.tagName)||p(t,n.typeExpression)||("string"===typeof n.comment?void 0:f(t,r,n.comment));case 321:return e.forEach(n.typeParameters,t)||e.forEach(n.parameters,t)||p(t,n.type);case 320:return e.forEach(n.jsDocPropertyTags,t)}}function g(e){var n=[];return _(e,t,t),n;function t(e){n.unshift(e)}}function y(e){return void 0!==e.externalModuleIndicator}function h(n){return e.fileExtensionIsOneOf(n,[".d.ts",".d.mts",".d.cts"])}function v(n,t){for(var r=[],a=0,i=e.getLeadingCommentRanges(t,0)||e.emptyArray;a<i.length;a++){var o=i[a];L(r,o,t.substring(o.pos,o.end))}n.pragmas=new e.Map;for(var s=0,c=r;s<c.length;s++){var l=c[s];if(n.pragmas.has(l.name)){var u=n.pragmas.get(l.name);u instanceof Array?u.push(l.args):n.pragmas.set(l.name,[u,l.args])}else n.pragmas.set(l.name,l.args)}}function b(n,t){n.checkJsDirective=void 0,n.referencedFiles=[],n.typeReferenceDirectives=[],n.libReferenceDirectives=[],n.amdDependencies=[],n.hasNoDefaultLib=!1,n.pragmas.forEach((function(r,a){switch(a){case"reference":var i=n.referencedFiles,o=n.typeReferenceDirectives,s=n.libReferenceDirectives;e.forEach(e.toArray(r),(function(r){var a=r.arguments,c=a.types,l=a.lib,u=a.path;r.arguments["no-default-lib"]?n.hasNoDefaultLib=!0:c?o.push({pos:c.pos,end:c.end,fileName:c.value}):l?s.push({pos:l.pos,end:l.end,fileName:l.value}):u?i.push({pos:u.pos,end:u.end,fileName:u.value}):t(r.range.pos,r.range.end-r.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":n.amdDependencies=e.map(e.toArray(r),(function(e){return{name:e.arguments.name,path:e.arguments.path}}));break;case"amd-module":if(r instanceof Array)for(var c=0,l=r;c<l.length;c++){var u=l[c];n.moduleName&&t(u.range.pos,u.range.end-u.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),n.moduleName=u.arguments.name}else n.moduleName=r.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(r),(function(e){(!n.checkJsDirective||e.range.pos>n.checkJsDirective.pos)&&(n.checkJsDirective={enabled:"ts-check"===a,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}(t=n||(n={}))[t.None=0]="None",t[t.Yield=1]="Yield",t[t.Await=2]="Await",t[t.Type=4]="Type",t[t.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",t[t.JSDoc=32]="JSDoc",(a=r||(r={}))[a.TryParse=0]="TryParse",a[a.Lookahead=1]="Lookahead",a[a.Reparse=2]="Reparse",e.parseBaseNodeFactory={createBaseSourceFileNode:function(n){return new(l||(l=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(s||(s=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(c||(c=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(o||(o=e.objectAllocator.getTokenConstructor()))(n,-1,-1)},createBaseNode:function(n){return new(i||(i=e.objectAllocator.getNodeConstructor()))(n,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=m,e.forEachChild=_,e.forEachChildRecursively=function(n,t,r){for(var a=g(n),i=[];i.length<a.length;)i.push(n);for(;0!==a.length;){var o=a.pop(),s=i.pop();if(e.isArray(o)){if(r)if(l=r(o,s)){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)a.push(o[c]),i.push(s)}else{var l;if(l=t(o,s)){if("skip"===l)continue;return l}if(o.kind>=160)for(var u=0,d=g(o);u<d.length;u++){var p=d[u];a.push(p),i.push(o)}}}},e.createSourceFile=function(n,t,r,a,i){var o;return void 0===a&&(a=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:n},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(n),o=100===r?u.parseSourceFile(n,t,r,void 0,a,6):u.parseSourceFile(n,t,r,void 0,a,i),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=function(e,n){return u.parseIsolatedEntityName(e,n)},e.parseJsonText=function(e,n){return u.parseJsonText(e,n)},e.isExternalModule=y,e.updateSourceFile=function(e,n,t,r){void 0===r&&(r=!1);var a=d.updateSourceFile(e,n,t,r);return a.flags|=3145728&e.flags,a},e.parseIsolatedJSDocComment=function(e,n,t){var r=u.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&u.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,n,t){return u.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(n){var t,r,a,i,o,s=e.createScanner(99,!0),c=20480;function l(e){return A++,e}var u,p,f,g,E,T,S,x,L,D,A,I,k,N,R,O,w,M={createBaseSourceFileNode:function(e){return l(new o(e,0,0))},createBaseIdentifierNode:function(e){return l(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return l(new i(e,0,0))},createBaseTokenNode:function(e){return l(new r(e,0,0))},createBaseNode:function(e){return l(new t(e,0,0))}},P=e.createNodeFactory(11,M),F=!0,G=!1;function B(n,t,r,a,i){void 0===r&&(r=2),void 0===i&&(i=!1),U(n,t,r,a,6),p=w,ye();var o,s,c=pe();if(1===me())o=qe([],c,c),s=He();else{for(var l=void 0;1!==me();){var u=void 0;switch(me()){case 22:u=kr();break;case 110:case 95:case 104:u=He();break;case 40:u=De((function(){return 8===ye()&&58!==ye()}))?ir():Rr();break;case 8:case 10:if(De((function(){return 58!==ye()}))){u=Un();break}default:u=Rr()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==me()&&se(e.Diagnostics.Unexpected_token))}var d=e.isArray(l)?Xe(P.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),f=P.createExpressionStatement(d);Xe(f,c),o=qe([f],c),s=Ke(1,e.Diagnostics.Unexpected_token)}var m=z(n,2,6,!1,o,s,p);i&&W(m),m.nodeCount=A,m.identifierCount=N,m.identifiers=I,m.parseDiagnostics=e.attachFileToDiagnostics(S,m),x&&(m.jsDocDiagnostics=e.attachFileToDiagnostics(x,m));var _=m;return V(),_}function U(n,c,l,d,m){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),i=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),u=e.normalizePath(n),f=c,g=l,L=d,E=m,T=e.getLanguageVariant(m),S=[],R=0,I=new e.Map,k=new e.Map,N=0,A=0,p=0,F=!0,E){case 1:case 2:w=131072;break;case 6:w=33685504;break;default:w=0}G=!1,s.setText(f),s.setOnError(de),s.setScriptTarget(g),s.setLanguageVariant(T)}function V(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),f=void 0,g=void 0,L=void 0,E=void 0,T=void 0,p=0,S=void 0,x=void 0,R=0,I=void 0,O=void 0,F=!0}function j(e,n){return n?H(e):e}n.parseSourceFile=function(n,t,r,a,i,o){var c;if(void 0===i&&(i=!1),6===(o=e.ensureScriptKind(n,o))){var l=B(n,t,r,a,i);return e.convertToObjectWorker(l,null===(c=l.statements[0])||void 0===c?void 0:c.expression,l.parseDiagnostics,!1,void 0,void 0),l.referencedFiles=e.emptyArray,l.typeReferenceDirectives=e.emptyArray,l.libReferenceDirectives=e.emptyArray,l.amdDependencies=e.emptyArray,l.hasNoDefaultLib=!1,l.pragmas=e.emptyMap,l}U(n,t,r,a,o);var d=function(n,t,r){var a=h(u);a&&(w|=8388608);p=w,ye();var i=Sn(0,Yr);e.Debug.assert(1===me());var o=H(He()),c=z(u,n,r,a,i,o,p);v(c,f),b(c,l),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=A,c.identifierCount=N,c.identifiers=I,c.parseDiagnostics=e.attachFileToDiagnostics(S,c),x&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(x,c));t&&W(c);return c;function l(n,t,r){S.push(e.createDetachedDiagnostic(u,n,t,r))}}(r,i,o);return V(),d},n.parseIsolatedEntityName=function(e,n){U("",e,n,void 0,1),ye();var t=Rn(!0),r=1===me()&&!S.length;return V(),r?t:void 0},n.parseJsonText=B;var K=!1;function H(n){e.Debug.assert(!n.jsDoc);var t=e.mapDefined(e.getJSDocCommentRanges(n,f),(function(e){return Me.parseJSDocComment(n,e.pos,e.end-e.pos)}));return t.length&&(n.jsDoc=t),K&&(K=!1,n.flags|=134217728),n}function W(n){e.setParentRecursive(n,!0)}function z(n,t,r,a,i,o,c){var l=P.createSourceFile(i,o,c);return e.setTextRangePosWidth(l,0,f.length),function(n){n.externalModuleIndicator=e.forEach(n.statements,qa)||function(e){return 2097152&e.flags?Xa(e):void 0}(n)}(l),!a&&y(l)&&16777216&l.transformFlags&&(l=function(n){var t=L,r=d.createSyntaxCursor(n);L={currentNode:function(e){var n=r.currentNode(e);return F&&n&&f(n)&&(n.intersectsChange=!0),n}};var a=[],i=S;S=[];for(var o=0,c=m(n.statements,0),l=function(){var t=n.statements[o],r=n.statements[c];e.addRange(a,n.statements,o,c),o=_(n.statements,c);var l=e.findIndex(i,(function(e){return e.start>=t.pos})),u=l>=0?e.findIndex(i,(function(e){return e.start>=r.pos}),l):-1;l>=0&&e.addRange(S,i,l,u>=0?u:void 0),Le((function(){var e=w;for(w|=32768,s.setTextPos(r.pos),ye();1!==me();){var t=s.getStartPos(),i=xn(0,Yr);if(a.push(i),t===s.getStartPos()&&ye(),o>=0){var c=n.statements[o];if(i.end===c.pos)break;i.end>c.pos&&(o=_(n.statements,o+1))}}w=e}),2),c=o>=0?m(n.statements,o):-1};-1!==c;)l();if(o>=0){var u=n.statements[o];e.addRange(a,n.statements,o);var p=e.findIndex(i,(function(e){return e.start>=u.pos}));p>=0&&e.addRange(S,i,p)}return L=t,P.updateSourceFile(n,e.setTextRange(P.createNodeArray(a),n.statements));function f(e){return!(32768&e.flags)&&!!(16777216&e.transformFlags)}function m(e,n){for(var t=n;t<e.length;t++)if(f(e[t]))return t;return-1}function _(e,n){for(var t=n;t<e.length;t++)if(!f(e[t]))return t;return-1}}(l)),l.text=f,l.bindDiagnostics=[],l.bindSuggestionDiagnostics=void 0,l.languageVersion=t,l.fileName=n,l.languageVariant=e.getLanguageVariant(r),l.isDeclarationFile=a,l.scriptKind=r,l}function J(e,n){e?w|=n:w&=~n}function q(e){J(e,4096)}function X(e){J(e,8192)}function Y(e){J(e,16384)}function Q(e){J(e,32768)}function Z(e,n){var t=e&w;if(t){J(!1,t);var r=n();return J(!0,t),r}return n()}function $(e,n){var t=e&~w;if(t){J(!0,t);var r=n();return J(!1,t),r}return n()}function ee(e){return Z(4096,e)}function ne(e){return $(32768,e)}function te(e){return 0!==(w&e)}function re(){return te(8192)}function ae(){return te(4096)}function ie(){return te(16384)}function oe(){return te(32768)}function se(e,n){le(s.getTokenPos(),s.getTextPos(),e,n)}function ce(n,t,r,a){var i=e.lastOrUndefined(S);i&&n===i.start||S.push(e.createDetachedDiagnostic(u,n,t,r,a)),G=!0}function le(e,n,t,r){ce(e,n-e,t,r)}function ue(e,n,t){le(e.pos,e.end,n,t)}function de(e,n){ce(s.getTextPos(),n,e)}function pe(){return s.getStartPos()}function fe(){return s.hasPrecedingJSDocComment()}function me(){return D}function _e(){return D=s.scan()}function ge(e){return ye(),e()}function ye(){return e.isKeyword(D)&&(s.hasUnicodeEscape()||s.hasExtendedUnicodeEscape())&&le(s.getTokenPos(),s.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),_e()}function he(){return D=s.scanJsDocToken()}function ve(){return D=s.reScanGreaterToken()}function be(){return D=s.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ee(){return D=s.reScanLessThanToken()}function Te(){return D=s.reScanHashToken()}function Se(){return D=s.scanJsxIdentifier()}function xe(){return D=s.scanJsxToken()}function Le(n,t){var r=D,a=S.length,i=G,o=w,c=0!==t?s.lookAhead(n):s.tryScan(n);return e.Debug.assert(o===w),c&&0===t||(D=r,2!==t&&(S.length=a),G=i),c}function De(e){return Le(e,1)}function Ce(e){return Le(e,0)}function Ae(){return 79===me()||me()>116}function Ie(){return 79===me()||(125!==me()||!re())&&((132!==me()||!oe())&&me()>116)}function ke(n,t,r){return void 0===r&&(r=!0),me()===n?(r&&ye(),!0):(t?se(t):se(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}n.fixupParentReferences=W;var Ne,Re,Oe,we,Me,Pe=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Fe(n){var t;if(e.isTaggedTemplateExpression(n))le(e.skipTrivia(f,n.template.pos),n.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var r=e.isIdentifier(n)?e.idText(n):void 0;if(r&&e.isIdentifierText(r,g)){var a=e.skipTrivia(f,n.pos);switch(r){case"const":case"let":case"var":return void le(a,n.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ge(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void le(a,s.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ge(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ge(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var i=null!==(t=e.getSpellingSuggestion(r,Pe,(function(e){return e})))&&void 0!==t?t:function(n){for(var t=0,r=Pe;t<r.length;t++){var a=r[t];if(n.length>a.length+2&&e.startsWith(n,a))return"".concat(a," ").concat(n.slice(a.length))}return}(r);i?le(a,n.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,i):0!==me()&&le(a,n.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else se(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ge(e,n,t){me()===t?se(n):se(e,s.getTokenValue())}function Be(n){return me()===n?(he(),!0):(se(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function Ue(e){return me()===e&&(ye(),!0)}function Ve(e){if(me()===e)return He()}function je(e){if(me()===e)return function(){var e=pe(),n=me();return he(),Xe(P.createToken(n),e)}()}function Ke(n,t,r){return Ve(n)||Ye(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function He(){var e=pe(),n=me();return ye(),Xe(P.createToken(n),e)}function We(){return 26===me()||(19===me()||1===me()||s.hasPrecedingLineBreak())}function ze(){return!!We()&&(26===me()&&ye(),!0)}function Je(){return ze()||ke(26)}function qe(n,t,r,a){var i=P.createNodeArray(n,a);return e.setTextRangePosEnd(i,t,null!==r&&void 0!==r?r:s.getStartPos()),i}function Xe(n,t,r){return e.setTextRangePosEnd(n,t,null!==r&&void 0!==r?r:s.getStartPos()),w&&(n.flags|=w),G&&(G=!1,n.flags|=65536),n}function Ye(n,t,r,a){t?ce(s.getStartPos(),0,r,a):r&&se(r,a);var i=pe();return Xe(79===n?P.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(n)?P.createTemplateLiteralLikeNode(n,"","",void 0):8===n?P.createNumericLiteral("",void 0):10===n?P.createStringLiteral("",void 0):275===n?P.createMissingDeclaration():P.createToken(n),i)}function Qe(e){var n=I.get(e);return void 0===n&&I.set(e,n=e),n}function Ze(n,t,r){if(n){N++;var a=pe(),i=me(),o=Qe(s.getTokenValue());return _e(),Xe(P.createIdentifier(o,void 0,i),a)}if(80===me())return se(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ze(!0);if(0===me()&&s.tryScan((function(){return 79===s.reScanInvalidIdentifier()})))return Ze(!0);N++;var c=1===me(),l=s.isReservedWord(),u=s.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ye(79,c,t||d,u)}function $e(e){return Ze(Ae(),void 0,e)}function en(e,n){return Ze(Ie(),e,n)}function nn(n){return Ze(e.tokenIsIdentifierOrKeyword(me()),n)}function tn(){return e.tokenIsIdentifierOrKeyword(me())||10===me()||8===me()}function rn(e){if(10===me()||8===me()){var n=Un();return n.text=Qe(n.text),n}return e&&22===me()?function(){var e=pe();ke(22);var n=ee(zt);return ke(23),Xe(P.createComputedPropertyName(n),e)}():80===me()?on():nn()}function an(){return rn(!0)}function on(){var e=pe(),n=P.createPrivateIdentifier(function(e){var n=k.get(e);return void 0===n&&k.set(e,n=e),n}(s.getTokenText()));return ye(),Xe(n,e)}function sn(e){return me()===e&&Ce(ln)}function cn(){return ye(),!s.hasPrecedingLineBreak()&&pn()}function ln(){switch(me()){case 85:return 92===ye();case 93:return ye(),88===me()?De(fn):151===me()?De(dn):un();case 88:return fn();case 124:case 136:case 148:return ye(),pn();default:return cn()}}function un(){return 41!==me()&&127!==me()&&18!==me()&&pn()}function dn(){return ye(),un()}function pn(){return 22===me()||18===me()||41===me()||25===me()||tn()}function fn(){return ye(),84===me()||98===me()||118===me()||126===me()&&De(Kr)||131===me()&&De(Hr)}function mn(n,t){if(Ln(n))return!0;switch(n){case 0:case 1:case 3:return!(26===me()&&t)&&qr();case 2:return 82===me()||88===me();case 4:return De(ut);case 5:return De(ha)||26===me()&&!t;case 6:return 22===me()||tn();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return tn()}case 18:return tn();case 9:return 22===me()||25===me()||tn();case 24:return e.tokenIsIdentifierOrKeyword(me())||10===me();case 7:return 18===me()?De(_n):t?Ie()&&!vn():Ht()&&!vn();case 8:return aa();case 10:return 27===me()||25===me()||aa();case 19:return Ie();case 15:switch(me()){case 27:case 24:return!0}case 11:return 25===me()||Wt();case 16:return Zn(!1);case 17:return Zn(!0);case 20:case 21:return 27===me()||It();case 22:return Oa();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||18===me();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function _n(){if(e.Debug.assert(18===me()),19===ye()){var n=ye();return 27===n||18===n||94===n||117===n}return!0}function gn(){return ye(),Ie()}function yn(){return ye(),e.tokenIsIdentifierOrKeyword(me())}function hn(){return ye(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function vn(){return(117===me()||94===me())&&De(bn)}function bn(){return ye(),Wt()}function En(){return ye(),It()}function Tn(e){if(1===me())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===me();case 3:return 19===me()||82===me()||88===me();case 7:return 18===me()||94===me()||117===me();case 8:return function(){if(We())return!0;if(tr(me()))return!0;if(38===me())return!0;return!1}();case 19:return 31===me()||20===me()||18===me()||94===me()||117===me();case 11:return 21===me()||26===me();case 15:case 21:case 10:return 23===me();case 17:case 16:case 18:return 21===me()||23===me();case 20:return 27!==me();case 22:return 18===me()||19===me();case 13:return 31===me()||43===me();case 14:return 29===me()&&De(Ua);default:return!1}}function Sn(e,n){var t=R;R|=1<<e;for(var r=[],a=pe();!Tn(e);)if(mn(e,!1))r.push(xn(e,n));else if(Cn(e))break;return R=t,qe(r,a)}function xn(e,n){var t=Ln(e);return t?Dn(t):n()}function Ln(n){if(L&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(n)&&!G){var t=L.currentNode(s.getStartPos());if(!(e.nodeIsMissing(t)||t.intersectsChange||e.containsParseError(t)))if((25358336&t.flags)===w&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var n=e;return!(79===n.name.kind&&134===n.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 288:case 289:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1}(e);case 6:return function(e){return 297===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1}(e);case 8:return function(e){if(253!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(163!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(t,n))return t.jsDocCache&&(t.jsDocCache=void 0),t}}function Dn(e){return s.setTextPos(e.end),ye(),e}function Cn(n){return function(n){switch(n){case 0:return 88===me()?se(e.Diagnostics._0_expected,e.tokenToString(93)):se(e.Diagnostics.Declaration_or_statement_expected);case 1:return se(e.Diagnostics.Declaration_or_statement_expected);case 2:return se(e.Diagnostics.case_or_default_expected);case 3:return se(e.Diagnostics.Statement_expected);case 18:case 4:return se(e.Diagnostics.Property_or_signature_expected);case 5:return se(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return se(e.Diagnostics.Enum_member_expected);case 7:return se(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(me())?se(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(me())):se(e.Diagnostics.Variable_declaration_expected);case 9:return se(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return se(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return se(e.Diagnostics.Argument_expression_expected);case 12:return se(e.Diagnostics.Property_assignment_expected);case 15:return se(e.Diagnostics.Expression_or_comma_expected);case 17:return se(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(me())?se(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(me())):se(e.Diagnostics.Parameter_declaration_expected);case 19:return se(e.Diagnostics.Type_parameter_declaration_expected);case 20:return se(e.Diagnostics.Type_argument_expected);case 21:return se(e.Diagnostics.Type_expected);case 22:return se(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:return se(e.Diagnostics.Identifier_expected);default:;}}(n),!!function(){for(var e=0;e<25;e++)if(R&1<<e&&(mn(e,!0)||Tn(e)))return!0;return!1}()||(ye(),!1)}function An(e,n,t){var r=R;R|=1<<e;for(var a=[],i=pe(),o=-1;;)if(mn(e,!1)){var c=s.getStartPos();if(a.push(xn(e,n)),o=s.getTokenPos(),Ue(27))continue;if(o=-1,Tn(e))break;ke(27,In(e)),t&&26===me()&&!s.hasPrecedingLineBreak()&&ye(),c===s.getStartPos()&&ye()}else{if(Tn(e))break;if(Cn(e))break}return R=r,qe(a,i,void 0,o>=0)}function In(n){return 6===n?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function kn(){var e=qe([],pe());return e.isMissingList=!0,e}function Nn(e,n,t,r){if(ke(t)){var a=An(e,n);return ke(r),a}return kn()}function Rn(e,n){for(var t=pe(),r=e?nn(n):en(n),a=pe();Ue(24);){if(29===me()){r.jsdocDotPos=a;break}a=pe(),r=Xe(P.createQualifiedName(r,wn(e,!1)),t)}return r}function On(e,n){return Xe(P.createQualifiedName(e,n),e.pos)}function wn(n,t){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())&&De(jr))return Ye(79,!0,e.Diagnostics.Identifier_expected);if(80===me()){var r=on();return t?r:Ye(79,!0,e.Diagnostics.Identifier_expected)}return n?nn():en()}function Mn(e){var n=pe();return Xe(P.createTemplateExpression(Vn(e),function(e){var n,t=pe(),r=[];do{n=Bn(e),r.push(n)}while(16===n.literal.kind);return qe(r,t)}(e)),n)}function Pn(){var e=pe();return Xe(P.createTemplateLiteralType(Vn(!1),function(){var e,n=pe(),t=[];do{e=Fn(),t.push(e)}while(16===e.literal.kind);return qe(t,n)}()),e)}function Fn(){var e=pe();return Xe(P.createTemplateLiteralTypeSpan(Vt(),Gn(!1)),e)}function Gn(n){return 19===me()?(function(e){D=s.reScanTemplateToken(e)}(n),function(){var n=jn(me());return e.Debug.assert(16===n.kind||17===n.kind,"Template fragment has wrong token kind"),n}()):Ke(17,e.Diagnostics._0_expected,e.tokenToString(19))}function Bn(e){var n=pe();return Xe(P.createTemplateSpan(ee(zt),Gn(e)),n)}function Un(){return jn(me())}function Vn(n){n&&be();var t=jn(me());return e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t}function jn(n){var t=pe(),r=e.isTemplateLiteralKind(n)?P.createTemplateLiteralLikeNode(n,s.getTokenValue(),function(e){var n=14===e||17===e,t=s.getTokenText();return t.substring(1,t.length-(s.isUnterminated()?0:n?1:2))}(n),2048&s.getTokenFlags()):8===n?P.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===n?P.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(n)?P.createLiteralLikeNode(n,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(r.isUnterminated=!0),ye(),Xe(r,t)}function Kn(){return Rn(!0,e.Diagnostics.Type_expected)}function Hn(){if(!s.hasPrecedingLineBreak()&&29===Ee())return Nn(20,Vt,29,31)}function Wn(){var e=pe();return Xe(P.createTypeReferenceNode(Kn(),Hn()),e)}function zn(n){switch(n.kind){case 177:return e.nodeIsMissing(n.typeName);case 178:case 179:var t=n,r=t.parameters,a=t.type;return!!r.isMissingList||zn(a);case 190:return zn(n.type);default:return!1}}function Jn(){var e=pe();return ye(),Xe(P.createThisTypeNode(),e)}function qn(){var e,n=pe();return 108!==me()&&103!==me()||(e=nn(),ke(58)),Xe(P.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Xn(),void 0),n)}function Xn(){s.setInJSDocType(!0);var e=pe();if(Ue(141)){var n=P.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:he()}return s.setInJSDocType(!1),Xe(n,e)}var t=Ue(25),r=Bt();return s.setInJSDocType(!1),t&&(r=Xe(P.createJSDocVariadicType(r),e)),63===me()?(ye(),Xe(P.createJSDocOptionalType(r),e)):r}function Yn(){var e,n,t=pe(),r=en();Ue(94)&&(It()||!Wt()?e=Vt():n=or());var a=Ue(63)?Vt():void 0,i=P.createTypeParameterDeclaration(r,e,a);return i.expression=n,Xe(i,t)}function Qn(){if(29===me())return Nn(19,Yn,29,31)}function Zn(n){return 25===me()||aa()||e.isModifierKind(me())||59===me()||It(!n)}function $n(){return nt(!0)}function et(){return nt(!1)}function nt(n){var t=pe(),r=fe(),a=n?ne(Ta):Ta();if(108===me()){var i=P.createParameterDeclaration(a,void 0,void 0,Ze(!0),void 0,Kt(),void 0);return a&&ue(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),j(Xe(i,t),r)}var o=F;F=!1;var s=xa(),c=j(Xe(P.createParameterDeclaration(a,s,Ve(25),function(n){var t=ia(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(t)&&!e.some(n)&&e.isModifierKind(me())&&ye(),t}(s),Ve(57),Kt(),Jt()),t),r);return F=o,c}function tt(n,t){if(function(n,t){if(38===n)return ke(n),!0;if(Ue(58))return!0;if(t&&38===me())return se(e.Diagnostics._0_expected,e.tokenToString(58)),ye(),!0;return!1}(n,t))return Bt()}function rt(e){var n=re(),t=oe();X(!!(1&e)),Q(!!(2&e));var r=32&e?An(17,qn):An(16,t?$n:et);return X(n),Q(t),r}function at(e){if(!ke(20))return kn();var n=rt(e);return ke(21),n}function it(){Ue(27)||Je()}function ot(e){var n=pe(),t=fe();174===e&&ke(103);var r=Qn(),a=at(4),i=tt(58,!0);return it(),j(Xe(173===e?P.createCallSignature(r,a,i):P.createConstructSignature(r,a,i),n),t)}function st(){return 22===me()&&De(ct)}function ct(){if(ye(),25===me()||23===me())return!0;if(e.isModifierKind(me())){if(ye(),Ie())return!0}else{if(!Ie())return!1;ye()}return 58===me()||27===me()||57===me()&&(ye(),58===me()||27===me()||23===me())}function lt(e,n,t,r){var a=Nn(16,et,22,23),i=Kt();return it(),j(Xe(P.createIndexSignature(t,r,a,i),e),n)}function ut(){if(20===me()||29===me()||136===me()||148===me())return!0;for(var n=!1;e.isModifierKind(me());)n=!0,ye();return 22===me()||(tn()&&(n=!0,ye()),!!n&&(20===me()||29===me()||57===me()||58===me()||27===me()||We()))}function dt(){if(20===me()||29===me())return ot(173);if(103===me()&&De(pt))return ot(174);var e=pe(),n=fe(),t=xa();return sn(136)?ya(e,n,void 0,t,171):sn(148)?ya(e,n,void 0,t,172):st()?lt(e,n,void 0,t):function(e,n,t){var r,a=an(),i=Ve(57);if(20===me()||29===me()){var o=Qn(),s=at(4),c=tt(58,!0);r=P.createMethodSignature(t,a,i,o,s,c)}else c=Kt(),r=P.createPropertySignature(t,a,i,c),63===me()&&(r.initializer=Jt());return it(),j(Xe(r,e),n)}(e,n,t)}function pt(){return ye(),20===me()||29===me()}function ft(){return 24===ye()}function mt(){switch(ye()){case 20:case 29:case 24:return!0}return!1}function _t(){var e;return ke(18)?(e=Sn(4,dt),ke(19)):e=kn(),e}function gt(){return ye(),39===me()||40===me()?144===ye():(144===me()&&ye(),22===me()&&gn()&&101===ye())}function yt(){var e,n=pe();ke(18),144!==me()&&39!==me()&&40!==me()||144!==(e=He()).kind&&ke(144),ke(22);var t,r=function(){var e=pe(),n=nn();ke(101);var t=Vt();return Xe(P.createTypeParameterDeclaration(n,t,void 0),e)}(),a=Ue(127)?Vt():void 0;ke(23),57!==me()&&39!==me()&&40!==me()||57!==(t=He()).kind&&ke(57);var i=Kt();Je();var o=Sn(4,dt);return ke(19),Xe(P.createMappedTypeNode(e,r,a,t,i,o),n)}function ht(){var n=pe();if(Ue(25))return Xe(P.createRestTypeNode(Vt()),n);var t=Vt();if(e.isJSDocNullableType(t)&&t.pos===t.type.pos){var r=P.createOptionalTypeNode(t.type);return e.setTextRange(r,t),r.flags=t.flags,r}return t}function vt(){return 58===ye()||57===me()&&58===ye()}function bt(){return 25===me()?e.tokenIsIdentifierOrKeyword(ye())&&vt():e.tokenIsIdentifierOrKeyword(me())&&vt()}function Et(){if(De(bt)){var e=pe(),n=fe(),t=Ve(25),r=nn(),a=Ve(57);ke(58);var i=ht();return j(Xe(P.createNamedTupleMember(t,r,a,i),e),n)}return ht()}function Tt(){var e=pe(),n=fe(),t=function(){var e;if(126===me()){var n=pe();ye(),e=qe([Xe(P.createToken(126),n)],n)}return e}(),r=Ue(103),a=Qn(),i=at(4),o=tt(38,!1),s=r?P.createConstructorTypeNode(t,a,i,o):P.createFunctionTypeNode(a,i,o);return r||(s.modifiers=t),j(Xe(s,e),n)}function St(){var e=He();return 24===me()?void 0:e}function xt(e){var n=pe();e&&ye();var t=110===me()||95===me()||104===me()?He():jn(me());return e&&(t=Xe(P.createPrefixUnaryExpression(40,t),n)),Xe(P.createLiteralTypeNode(t),n)}function Lt(){return ye(),100===me()}function Dt(){p|=1048576;var e=pe(),n=Ue(112);ke(100),ke(20);var t=Vt();ke(21);var r=Ue(24)?Kn():void 0,a=Hn();return Xe(P.createImportTypeNode(t,r,a,n),e)}function Ct(){return ye(),8===me()||9===me()}function At(){switch(me()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return Ce(St)||Wn();case 66:s.reScanAsteriskEqualsToken();case 41:return function(){var e=pe();return ye(),Xe(P.createJSDocAllType(),e)}();case 60:s.reScanQuestionToken();case 57:return function(){var e=pe();return ye(),27===me()||19===me()||21===me()||31===me()||63===me()||51===me()?Xe(P.createJSDocUnknownType(),e):Xe(P.createJSDocNullableType(Vt()),e)}();case 98:return function(){var e=pe(),n=fe();if(De(Ga)){ye();var t=at(36),r=tt(58,!1);return j(Xe(P.createJSDocFunctionType(t,r),e),n)}return Xe(P.createTypeReferenceNode(nn(),void 0),e)}();case 53:return function(){var e=pe();return ye(),Xe(P.createJSDocNonNullableType(At()),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return xt();case 40:return De(Ct)?xt(!0):Wn();case 114:return He();case 108:var e=Jn();return 139!==me()||s.hasPrecedingLineBreak()?e:(n=e,ye(),Xe(P.createTypePredicateNode(void 0,n,Vt()),n.pos));case 112:return De(Lt)?Dt():function(){var e=pe();return ke(112),Xe(P.createTypeQueryNode(Rn(!0)),e)}();case 18:return De(gt)?yt():function(){var e=pe();return Xe(P.createTypeLiteralNode(_t()),e)}();case 22:return function(){var e=pe();return Xe(P.createTupleTypeNode(Nn(21,Et,22,23)),e)}();case 20:return function(){var e=pe();ke(20);var n=Vt();return ke(21),Xe(P.createParenthesizedType(n),e)}();case 100:return Dt();case 128:return De(jr)?function(){var e=pe(),n=Ke(128),t=108===me()?Jn():en(),r=Ue(139)?Vt():void 0;return Xe(P.createTypePredicateNode(n,t,r),e)}():Wn();case 15:return Pn();default:return Wn()}var n}function It(e){switch(me()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&De(Ct);case 20:return!e&&De(kt);default:return Ie()}}function kt(){return ye(),21===me()||Zn(!1)||It()}function Nt(){var e=pe();return ke(137),Xe(P.createInferTypeNode(function(){var e=pe();return Xe(P.createTypeParameterDeclaration(en(),void 0,void 0),e)}()),e)}function Rt(){var e=me();switch(e){case 140:case 153:case 144:return function(e){var n=pe();return ke(e),Xe(P.createTypeOperatorNode(e,Rt()),n)}(e);case 137:return Nt()}return function(){for(var e=pe(),n=At();!s.hasPrecedingLineBreak();)switch(me()){case 53:ye(),n=Xe(P.createJSDocNonNullableType(n),e);break;case 57:if(De(En))return n;ye(),n=Xe(P.createJSDocNullableType(n),e);break;case 22:if(ke(22),It()){var t=Vt();ke(23),n=Xe(P.createIndexedAccessTypeNode(n,t),e)}else ke(23),n=Xe(P.createArrayTypeNode(n),e);break;default:return n}return n}()}function Ot(n){if(Ft()){var t=Tt();return ue(t,e.isFunctionTypeNode(t)?n?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:n?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),t}}function wt(e,n,t){var r=pe(),a=51===e,i=Ue(e),o=i&&Ot(a)||n();if(me()===e||i){for(var s=[o];Ue(e);)s.push(Ot(a)||n());o=Xe(t(qe(s,r)),r)}return o}function Mt(){return wt(50,Rt,P.createIntersectionTypeNode)}function Pt(){return ye(),103===me()}function Ft(){return 29===me()||(!(20!==me()||!De(Gt))||(103===me()||126===me()&&De(Pt)))}function Gt(){if(ye(),21===me()||25===me())return!0;if(function(){if(e.isModifierKind(me())&&xa(),Ie()||108===me())return ye(),!0;if(22===me()||18===me()){var n=S.length;return ia(),n===S.length}return!1}()){if(58===me()||27===me()||57===me()||63===me())return!0;if(21===me()&&(ye(),38===me()))return!0}return!1}function Bt(){var e=pe(),n=Ie()&&Ce(Ut),t=Vt();return n?Xe(P.createTypePredicateNode(void 0,n,t),e):t}function Ut(){var e=en();if(139===me()&&!s.hasPrecedingLineBreak())return ye(),e}function Vt(){return Z(40960,jt)}function jt(e){if(Ft())return Tt();var n=pe(),t=wt(51,Mt,P.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Ue(94)){var r=jt(!0);ke(57);var a=jt();ke(58);var i=jt();return Xe(P.createConditionalTypeNode(t,r,a,i),n)}return t}function Kt(){return Ue(58)?Vt():void 0}function Ht(){switch(me()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return De(mt);default:return Ie()}}function Wt(){if(Ht())return!0;switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return!!function(){if(ae()&&101===me())return!1;return e.getBinaryOperatorPrecedence(me())>0}()||Ie()}}function zt(){var e=ie();e&&Y(!1);for(var n,t=pe(),r=qt();n=Ve(27);)r=ar(r,n,qt(),t);return e&&Y(!0),r}function Jt(){return Ue(63)?qt():void 0}function qt(){if(function(){if(125===me())return!!re()||De(Wr);return!1}())return function(){var e=pe();return ye(),s.hasPrecedingLineBreak()||41!==me()&&!Wt()?Xe(P.createYieldExpression(void 0,void 0),e):Xe(P.createYieldExpression(Ve(41),qt()),e)}();var n=function(){var e=function(){if(20===me()||29===me()||131===me())return De(Yt);if(38===me())return 1;return 0}();if(0===e)return;return 1===e?$t(!0):Ce(Qt)}()||function(){if(131===me()&&1===De(Zt)){var e=pe(),n=La();return Xt(e,nr(0),n)}return}();if(n)return n;var t=pe(),r=nr(0);return 79===r.kind&&38===me()?Xt(t,r,void 0):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(ve())?ar(r,He(),qt(),t):function(n,t){var r,a=Ve(57);if(!a)return n;return Xe(P.createConditionalExpression(n,a,Z(c,qt),r=Ke(58),e.nodeIsPresent(r)?qt():Ye(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),t)}(r,t)}function Xt(n,t,r){e.Debug.assert(38===me(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=P.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);Xe(a,t.pos);var i=qe([a],a.pos,a.end),o=Ke(38),s=er(!!r);return H(Xe(P.createArrowFunction(r,void 0,i,void 0,o,s),n))}function Yt(){if(131===me()){if(ye(),s.hasPrecedingLineBreak())return 0;if(20!==me()&&29!==me())return 0}var n=me(),t=ye();if(20===n){if(21===t)switch(ye()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(e.isModifierKind(t)&&131!==t&&De(gn))return 1;if(!Ie()&&108!==t)return 0;switch(ye()){case 58:return 1;case 57:return ye(),58===me()||27===me()||63===me()||21===me()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===n),Ie()?1===T?De((function(){var e=ye();if(94===e)switch(ye()){case 63:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Qt(){var n=s.getTokenPos();if(!(null===O||void 0===O?void 0:O.has(n))){var t=$t(!1);return t||(O||(O=new e.Set)).add(n),t}}function Zt(){if(131===me()){if(ye(),s.hasPrecedingLineBreak()||38===me())return 0;var e=nr(0);if(!s.hasPrecedingLineBreak()&&79===e.kind&&38===me())return 1}return 0}function $t(n){var t,r=pe(),a=fe(),i=La(),o=e.some(i,e.isAsyncModifier)?2:0,s=Qn();if(ke(20)){if(t=rt(o),!ke(21)&&!n)return}else{if(!n)return;t=kn()}var c=tt(58,!1);if(!c||n||!zn(c)){var l=c&&e.isJSDocFunctionType(c);if(n||38===me()||!l&&18===me()){var u=me(),d=Ke(38),p=38===u||18===u?er(e.some(i,e.isAsyncModifier)):en();return j(Xe(P.createArrowFunction(i,s,t,c,d,p),r),a)}}}function er(e){if(18===me())return Pr(e?2:0);if(26!==me()&&98!==me()&&84!==me()&&qr()&&(18===me()||98===me()||84===me()||59===me()||!Wt()))return Pr(16|(e?2:0));var n=F;F=!1;var t=e?ne(qt):Z(32768,qt);return F=n,t}function nr(e){var n=pe();return rr(e,or(),n)}function tr(e){return 101===e||159===e}function rr(n,t,r){for(;;){ve();var a=e.getBinaryOperatorPrecedence(me());if(!(42===me()?a>=n:a>n))break;if(101===me()&&ae())break;if(127===me()){if(s.hasPrecedingLineBreak())break;ye(),i=t,o=Vt(),t=Xe(P.createAsExpression(i,o),i.pos)}else t=ar(t,He(),nr(a),r)}var i,o;return t}function ar(e,n,t,r){return Xe(P.createBinaryExpression(e,n,t),r)}function ir(){var e=pe();return Xe(P.createPrefixUnaryExpression(me(),ge(sr)),e)}function or(){if(function(){switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==T)return!1;default:return!0}}()){var n=pe(),t=cr();return 42===me()?rr(e.getBinaryOperatorPrecedence(me()),t,n):t}var r=me(),a=sr();if(42===me()){n=e.skipTrivia(f,a.pos);var i=a.end;210===a.kind?le(n,i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):le(n,i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return a}function sr(){switch(me()){case 39:case 40:case 54:case 53:return ir();case 89:return function(){var e=pe();return Xe(P.createDeleteExpression(ge(sr)),e)}();case 112:return function(){var e=pe();return Xe(P.createTypeOfExpression(ge(sr)),e)}();case 114:return function(){var e=pe();return Xe(P.createVoidExpression(ge(sr)),e)}();case 29:return function(){var e=pe();ke(29);var n=Vt();ke(31);var t=sr();return Xe(P.createTypeAssertion(n,t),e)}();case 132:if(132===me()&&(oe()||De(Wr)))return function(){var e=pe();return Xe(P.createAwaitExpression(ge(sr)),e)}();default:return cr()}}function cr(){if(45===me()||46===me()){var n=pe();return Xe(P.createPrefixUnaryExpression(me(),ge(lr)),n)}if(1===T&&29===me()&&De(hn))return dr(!0);var t=lr();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(45===me()||46===me())&&!s.hasPrecedingLineBreak()){var r=me();return ye(),Xe(P.createPostfixUnaryExpression(t,r),t.pos)}return t}function lr(){var n,t=pe();return 100===me()?De(pt)?(p|=1048576,n=He()):De(ft)?(ye(),ye(),n=Xe(P.createMetaProperty(100,nn()),t),p|=2097152):n=ur():n=106===me()?function(){var n=pe(),t=He();if(29===me()){var r=pe();void 0!==Ce(Dr)&&le(r,pe(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===me()||24===me()||22===me())return t;return Ke(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Xe(P.createPropertyAccessExpression(t,wn(!0,!0)),n)}():ur(),xr(t,n)}function ur(){return Er(pe(),Cr(),!0)}function dr(n,t,r){var a,i=pe(),o=function(e){var n=pe();if(ke(29),31===me())return xe(),Xe(P.createJsxOpeningFragment(),n);var t,r=mr(),a=0===(131072&w)?Ra():void 0,i=function(){var e=pe();return Xe(P.createJsxAttributes(Sn(13,gr)),e)}();31===me()?(xe(),t=P.createJsxOpeningElement(r,a,i)):(ke(43),ke(31,void 0,!1)&&(e?ye():xe()),t=P.createJsxSelfClosingElement(r,a,i));return Xe(t,n)}(n);if(279===o.kind){var s=fr(o),c=void 0,l=s[s.length-1];if(277===(null===l||void 0===l?void 0:l.kind)&&!C(l.openingElement.tagName,l.closingElement.tagName)&&C(o.tagName,l.closingElement.tagName)){var u=l.children.end,d=Xe(P.createJsxElement(l.openingElement,l.children,Xe(P.createJsxClosingElement(Xe(P.createIdentifier(""),u,u)),u,u)),l.openingElement.pos,u);s=qe(pa(pa([],s.slice(0,s.length-1),!0),[d],!1),s.pos,u),c=l.closingElement}else c=function(e,n){var t=pe();ke(30);var r=mr();ke(31,void 0,!1)&&(n||!C(e.tagName,r)?ye():xe());return Xe(P.createJsxClosingElement(r),t)}(o,n),C(o.tagName,c.tagName)||(r&&e.isJsxOpeningElement(r)&&C(c.tagName,r.tagName)?ue(o.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,o.tagName)):ue(c.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(f,o.tagName)));a=Xe(P.createJsxElement(o,s,c),i)}else 282===o.kind?a=Xe(P.createJsxFragment(o,fr(o),function(n){var t=pe();ke(30),e.tokenIsIdentifierOrKeyword(me())&&ue(mr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);ke(31,void 0,!1)&&(n?ye():xe());return Xe(P.createJsxJsxClosingFragment(),t)}(n)),i):(e.Debug.assert(278===o.kind),a=o);if(n&&29===me()){var p="undefined"===typeof t?a.pos:t,m=Ce((function(){return dr(!0,p)}));if(m){var _=Ye(27,!1);return e.setTextRangePosWidth(_,m.pos,0),le(e.skipTrivia(f,p),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Xe(P.createBinaryExpression(a,_,m),i)}}return a}function pr(n,t){switch(t){case 1:if(e.isJsxOpeningFragment(n))ue(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=n.tagName;le(e.skipTrivia(f,r.pos),r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,n.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){var e=pe(),n=P.createJsxText(s.getTokenValue(),12===D);return D=s.scanJsxToken(),Xe(n,e)}();case 18:return _r(!1);case 29:return dr(!1,void 0,n);default:return e.Debug.assertNever(t)}}function fr(n){var t=[],r=pe(),a=R;for(R|=16384;;){var i=pr(n,D=s.reScanJsxToken());if(!i)break;if(t.push(i),e.isJsxOpeningElement(n)&&277===(null===i||void 0===i?void 0:i.kind)&&!C(i.openingElement.tagName,i.closingElement.tagName)&&C(n.tagName,i.closingElement.tagName))break}return R=a,qe(t,r)}function mr(){var e=pe();Se();for(var n=108===me()?He():nn();Ue(24);)n=Xe(P.createPropertyAccessExpression(n,wn(!0,!1)),e);return n}function _r(e){var n,t,r=pe();if(ke(18))return 19!==me()&&(n=Ve(25),t=zt()),e?ke(19):ke(19,void 0,!1)&&xe(),Xe(P.createJsxExpression(n,t),r)}function gr(){if(18===me())return function(){var e=pe();ke(18),ke(25);var n=zt();return ke(19),Xe(P.createJsxSpreadAttribute(n),e)}();Se();var e=pe();return Xe(P.createJsxAttribute(nn(),63!==me()?void 0:10===(D=s.scanJsxAttributeValue())?Un():_r(!0)),e)}function yr(){return ye(),e.tokenIsIdentifierOrKeyword(me())||22===me()||Tr()}function hr(n){if(32&n.flags)return!0;if(e.isNonNullExpression(n)){for(var t=n.expression;e.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;e.isNonNullExpression(n);)n.flags|=32,n=n.expression;return!0}}return!1}function vr(n,t,r){var a=wn(!0,!0),i=r||hr(t),o=i?P.createPropertyAccessChain(t,r,a):P.createPropertyAccessExpression(t,a);return i&&e.isPrivateIdentifier(o.name)&&ue(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Xe(o,n)}function br(n,t,r){var a;if(23===me())a=Ye(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=ee(zt);e.isStringOrNumericLiteralLike(i)&&(i.text=Qe(i.text)),a=i}return ke(23),Xe(r||hr(t)?P.createElementAccessChain(t,r,a):P.createElementAccessExpression(t,a),n)}function Er(n,t,r){for(;;){var a=void 0,i=!1;if(r&&28===me()&&De(yr)?(a=Ke(28),i=e.tokenIsIdentifierOrKeyword(me())):i=Ue(24),i)t=vr(n,t,a);else if(a||53!==me()||s.hasPrecedingLineBreak())if(!a&&ie()||!Ue(22)){if(!Tr())return t;t=Sr(n,t,a,void 0)}else t=br(n,t,a);else ye(),t=Xe(P.createNonNullExpression(t),n)}}function Tr(){return 14===me()||15===me()}function Sr(e,n,t,r){var a=P.createTaggedTemplateExpression(n,r,14===me()?(be(),Un()):Mn(!0));return(t||32&n.flags)&&(a.flags|=32),a.questionDotToken=t,Xe(a,e)}function xr(n,t){for(;;){t=Er(n,t,!0);var r=Ve(28);if(0!==(131072&w)||29!==me()&&47!==me()){if(20===me()){i=Lr();t=Xe(r||hr(t)?P.createCallChain(t,r,void 0,i):P.createCallExpression(t,void 0,i),n);continue}}else{var a=Ce(Dr);if(a){if(Tr()){t=Sr(n,t,r,a);continue}var i=Lr();t=Xe(r||hr(t)?P.createCallChain(t,r,a,i):P.createCallExpression(t,a,i),n);continue}}if(r){var o=Ye(79,!1,e.Diagnostics.Identifier_expected);t=Xe(P.createPropertyAccessChain(t,r,o),n)}break}return t}function Lr(){ke(20);var e=An(11,Ir);return ke(21),e}function Dr(){if(0===(131072&w)&&29===Ee()){ye();var e=An(20,Vt);if(ke(31))return e&&function(){switch(me()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;default:return!1}}()?e:void 0}}function Cr(){switch(me()){case 8:case 9:case 10:case 14:return Un();case 108:case 106:case 104:case 110:case 95:return He();case 20:return function(){var e=pe(),n=fe();ke(20);var t=ee(zt);return ke(21),j(Xe(P.createParenthesizedExpression(t),e),n)}();case 22:return kr();case 18:return Rr();case 131:if(!De(Hr))break;return Or();case 84:return Aa(pe(),fe(),void 0,void 0,225);case 98:return Or();case 103:return function(){var n=pe();if(ke(103),Ue(24)){var t=nn();return Xe(P.createMetaProperty(103,t),n)}var r,a,i=pe(),o=Cr();for(;;){o=Er(i,o,!1),r=Ce(Dr),Tr()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=Sr(i,o,void 0,r),r=void 0);break}20===me()?a=Lr():r&&le(n,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Xe(P.createNewExpression(o,r,a),n)}();case 43:case 68:if(13===(D=s.reScanSlashToken()))return Un();break;case 15:return Mn(!1);case 80:return on()}return en(e.Diagnostics.Expression_expected)}function Ar(){return 25===me()?function(){var e=pe();ke(25);var n=qt();return Xe(P.createSpreadElement(n),e)}():27===me()?Xe(P.createOmittedExpression(),pe()):qt()}function Ir(){return Z(c,Ar)}function kr(){var e=pe();ke(22);var n=s.hasPrecedingLineBreak(),t=An(15,Ar);return ke(23),Xe(P.createArrayLiteralExpression(t,n),e)}function Nr(){var e=pe(),n=fe();if(Ve(25)){var t=qt();return j(Xe(P.createSpreadAssignment(t),e),n)}var r=Ta(),a=xa();if(sn(136))return ya(e,n,r,a,171);if(sn(148))return ya(e,n,r,a,172);var i,o=Ve(41),s=Ie(),c=an(),l=Ve(57),u=Ve(53);if(o||20===me()||29===me())return ma(e,n,r,a,o,c,l,u);if(s&&58!==me()){var d=Ve(63),p=d?ee(qt):void 0;(i=P.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{ke(58);var f=ee(qt);i=P.createPropertyAssignment(c,f)}return i.decorators=r,i.modifiers=a,i.questionToken=l,i.exclamationToken=u,j(Xe(i,e),n)}function Rr(){var n=pe(),t=s.getTokenPos();ke(18);var r=s.hasPrecedingLineBreak(),a=An(12,Nr,!0);if(!ke(19)){var i=e.lastOrUndefined(S);i&&i.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(i,e.createDetachedDiagnostic(u,t,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Xe(P.createObjectLiteralExpression(a,r),n)}function Or(){var n=ie();Y(!1);var t=pe(),r=fe(),a=xa();ke(98);var i=Ve(41),o=i?1:0,s=e.some(a,e.isAsyncModifier)?2:0,c=o&&s?$(40960,wr):o?function(e){return $(8192,e)}(wr):s?ne(wr):wr(),l=Qn(),u=at(o|s),d=tt(58,!1),p=Pr(o|s);return Y(n),j(Xe(P.createFunctionExpression(a,i,c,l,u,d,p),t),r)}function wr(){return Ae()?$e():void 0}function Mr(n,t){var r=pe(),a=fe(),i=s.getTokenPos();if(ke(18,t)||n){var o=s.hasPrecedingLineBreak(),c=Sn(1,Yr);if(!ke(19)){var l=e.lastOrUndefined(S);l&&l.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(l,e.createDetachedDiagnostic(u,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var d=j(Xe(P.createBlock(c,o),r),a);return 63===me()&&(se(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),ye()),d}c=kn();return j(Xe(P.createBlock(c,void 0),r),a)}function Pr(e,n){var t=re();X(!!(1&e));var r=oe();Q(!!(2&e));var a=F;F=!1;var i=ie();i&&Y(!1);var o=Mr(!!(16&e),n);return i&&Y(!0),F=a,X(t),Q(r),o}function Fr(){var e=pe(),n=fe();ke(97);var t,r,a=Ve(132);if(ke(20),26!==me()&&(t=113===me()||119===me()||85===me()?ca(!0):$(4096,zt)),a?ke(159):Ue(159)){var i=ee(qt);ke(21),r=P.createForOfStatement(a,t,i,Yr())}else if(Ue(101)){i=ee(zt);ke(21),r=P.createForInStatement(t,i,Yr())}else{ke(26);var o=26!==me()&&21!==me()?ee(zt):void 0;ke(26);var s=21!==me()?ee(zt):void 0;ke(21),r=P.createForStatement(t,o,s,Yr())}return j(Xe(r,e),n)}function Gr(e){var n=pe(),t=fe();ke(245===e?81:86);var r=We()?void 0:en();return Je(),j(Xe(245===e?P.createBreakStatement(r):P.createContinueStatement(r),n),t)}function Br(){return 82===me()?function(){var e=pe();ke(82);var n=ee(zt);ke(58);var t=Sn(3,Yr);return Xe(P.createCaseClause(n,t),e)}():function(){var e=pe();ke(88),ke(58);var n=Sn(3,Yr);return Xe(P.createDefaultClause(n),e)}()}function Ur(){var e=pe(),n=fe();ke(107),ke(20);var t=ee(zt);ke(21);var r=function(){var e=pe();ke(18);var n=Sn(2,Br);return ke(19),Xe(P.createCaseBlock(n),e)}();return j(Xe(P.createSwitchStatement(t,r),e),n)}function Vr(){var e=pe(),n=fe();ke(111);var t,r=Mr(!1),a=83===me()?function(){var e,n=pe();ke(83),Ue(20)?(e=sa(),ke(21)):e=void 0;var t=Mr(!1);return Xe(P.createCatchClause(e,t),n)}():void 0;return a&&96!==me()||(ke(96),t=Mr(!1)),j(Xe(P.createTryStatement(r,a,t),e),n)}function jr(){return ye(),e.tokenIsIdentifierOrKeyword(me())&&!s.hasPrecedingLineBreak()}function Kr(){return ye(),84===me()&&!s.hasPrecedingLineBreak()}function Hr(){return ye(),98===me()&&!s.hasPrecedingLineBreak()}function Wr(){return ye(),(e.tokenIsIdentifierOrKeyword(me())||8===me()||9===me()||10===me())&&!s.hasPrecedingLineBreak()}function zr(){for(;;)switch(me()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return ye(),!s.hasPrecedingLineBreak()&&Ie();case 141:case 142:return ea();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(ye(),s.hasPrecedingLineBreak())return!1;continue;case 156:return ye(),18===me()||79===me()||93===me();case 100:return ye(),10===me()||41===me()||18===me()||e.tokenIsIdentifierOrKeyword(me());case 93:var n=ye();if(151===n&&(n=De(ye)),63===n||41===n||18===n||88===n||127===n)return!0;continue;case 124:ye();continue;default:return!1}}function Jr(){return De(zr)}function qr(){switch(me()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 100:return Jr()||De(mt);case 85:case 93:return Jr();case 123:case 121:case 122:case 124:case 144:return Jr()||!De(jr);default:return Wt()}}function Xr(){return ye(),Ae()||18===me()||22===me()}function Yr(){switch(me()){case 26:return function(){var e=pe(),n=fe();return ke(26),j(Xe(P.createEmptyStatement(),e),n)}();case 18:return Mr(!1);case 113:return ua(pe(),fe(),void 0,void 0);case 119:if(De(Xr))return ua(pe(),fe(),void 0,void 0);break;case 98:return da(pe(),fe(),void 0,void 0);case 84:return Ca(pe(),fe(),void 0,void 0);case 99:return function(){var e=pe(),n=fe();ke(99),ke(20);var t=ee(zt);ke(21);var r=Yr(),a=Ue(91)?Yr():void 0;return j(Xe(P.createIfStatement(t,r,a),e),n)}();case 90:return function(){var e=pe(),n=fe();ke(90);var t=Yr();ke(115),ke(20);var r=ee(zt);return ke(21),Ue(26),j(Xe(P.createDoStatement(t,r),e),n)}();case 115:return function(){var e=pe(),n=fe();ke(115),ke(20);var t=ee(zt);ke(21);var r=Yr();return j(Xe(P.createWhileStatement(t,r),e),n)}();case 97:return Fr();case 86:return Gr(244);case 81:return Gr(245);case 105:return function(){var e=pe(),n=fe();ke(105);var t=We()?void 0:ee(zt);return Je(),j(Xe(P.createReturnStatement(t),e),n)}();case 116:return function(){var e=pe(),n=fe();ke(116),ke(20);var t=ee(zt);ke(21);var r=$(16777216,Yr);return j(Xe(P.createWithStatement(t,r),e),n)}();case 107:return Ur();case 109:return function(){var e=pe(),n=fe();ke(109);var t=s.hasPrecedingLineBreak()?void 0:ee(zt);return void 0===t&&(N++,t=Xe(P.createIdentifier(""),pe())),ze()||Fe(t),j(Xe(P.createThrowStatement(t),e),n)}();case 111:case 83:case 96:return Vr();case 87:return function(){var e=pe(),n=fe();return ke(87),Je(),j(Xe(P.createDebuggerStatement(),e),n)}();case 59:return Zr();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(Jr())return Zr()}return function(){var n,t=pe(),r=fe(),a=20===me(),i=ee(zt);return e.isIdentifier(i)&&Ue(58)?n=P.createLabeledStatement(i,Yr()):(ze()||Fe(i),n=P.createExpressionStatement(i),a&&(r=!1)),j(Xe(n,t),r)}()}function Qr(e){return 135===e.kind}function Zr(){var n=e.some(De((function(){return Ta(),xa()})),Qr);if(n){var t=$(8388608,(function(){var e=Ln(R);if(e)return Dn(e)}));if(t)return t}var r=pe(),a=fe(),i=Ta(),o=xa();if(n){for(var s=0,c=o;s<c.length;s++){c[s].flags|=8388608}return $(8388608,(function(){return $r(r,a,i,o)}))}return $r(r,a,i,o)}function $r(n,t,r,a){switch(me()){case 113:case 119:case 85:return ua(n,t,r,a);case 98:return da(n,t,r,a);case 84:return Ca(n,t,r,a);case 118:return function(e,n,t,r){ke(118);var a=en(),i=Qn(),o=Ia(),s=_t();return j(Xe(P.createInterfaceDeclaration(t,r,a,i,o,s),e),n)}(n,t,r,a);case 151:return function(e,n,t,r){ke(151);var a=en(),i=Qn();ke(63);var o=138===me()&&Ce(St)||Vt();return Je(),j(Xe(P.createTypeAliasDeclaration(t,r,a,i,o),e),n)}(n,t,r,a);case 92:return function(e,n,t,r){ke(92);var a,i=en();ke(18)?(a=Z(40960,(function(){return An(6,wa)})),ke(19)):a=kn();return j(Xe(P.createEnumDeclaration(t,r,i,a),e),n)}(n,t,r,a);case 156:case 141:case 142:return function(e,n,t,r){var a=0;if(156===me())return Fa(e,n,t,r);if(Ue(142))a|=16;else if(ke(141),10===me())return Fa(e,n,t,r);return Pa(e,n,t,r,a)}(n,t,r,a);case 100:return function(e,n,t,r){ke(100);var a,i=s.getStartPos();Ie()&&(a=en());var o,c=!1;155===me()||"type"!==(null===a||void 0===a?void 0:a.escapedText)||!Ie()&&41!==me()&&18!==me()||(c=!0,a=Ie()?en():void 0);if(a&&27!==me()&&155!==me())return function(e,n,t,r,a,i){ke(63);var o=145===me()&&De(Ga)?function(){var e=pe();ke(145),ke(20);var n=Ka();return ke(21),Xe(P.createExternalModuleReference(n),e)}():Rn(!1);return Je(),j(Xe(P.createImportEqualsDeclaration(t,r,i,a,o),e),n)}(e,n,t,r,a,c);(a||41===me()||18===me())&&(o=function(e,n,t){var r;e&&!Ue(27)||(r=41===me()?function(){var e=pe();ke(41),ke(127);var n=en();return Xe(P.createNamespaceImport(n),e)}():Ha(268));return Xe(P.createImportClause(t,e,r),n)}(a,i,c),ke(155));var l,u=Ka();129!==me()||s.hasPrecedingLineBreak()||(l=ja());return Je(),j(Xe(P.createImportDeclaration(t,r,o,u,l),e),n)}(n,t,r,a);case 93:switch(ye(),me()){case 88:case 63:return function(e,n,t,r){var a,i=oe();Q(!0),Ue(63)?a=!0:ke(88);var o=qt();return Je(),Q(i),j(Xe(P.createExportAssignment(t,r,a,o),e),n)}(n,t,r,a);case 127:return function(e,n,t,r){ke(127),ke(142);var a=en();Je();var i=P.createNamespaceExportDeclaration(a);return i.decorators=t,i.modifiers=r,j(Xe(i,e),n)}(n,t,r,a);default:return function(e,n,t,r){var a,i,o,c=oe();Q(!0);var l=Ue(151),u=pe();Ue(41)?(Ue(127)&&(a=function(e){return Xe(P.createNamespaceExport(nn()),e)}(u)),ke(155),i=Ka()):(a=Ha(272),(155===me()||10===me()&&!s.hasPrecedingLineBreak())&&(ke(155),i=Ka()));i&&129===me()&&!s.hasPrecedingLineBreak()&&(o=ja());return Je(),Q(c),j(Xe(P.createExportDeclaration(t,r,l,a,i,o),e),n)}(n,t,r,a)}default:if(r||a){var i=Ye(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(i,n),i.decorators=r,i.modifiers=a,i}return}}function ea(){return ye(),!s.hasPrecedingLineBreak()&&(Ie()||10===me())}function na(e,n){if(18===me()||!We())return Pr(e,n);Je()}function ta(){var e=pe();if(27===me())return Xe(P.createOmittedExpression(),e);var n=Ve(25),t=ia(),r=Jt();return Xe(P.createBindingElement(n,void 0,t,r),e)}function ra(){var e,n=pe(),t=Ve(25),r=Ae(),a=an();r&&58!==me()?(e=a,a=void 0):(ke(58),e=ia());var i=Jt();return Xe(P.createBindingElement(t,a,e,i),n)}function aa(){return 18===me()||22===me()||80===me()||Ae()}function ia(e){return 22===me()?function(){var e=pe();ke(22);var n=An(10,ta);return ke(23),Xe(P.createArrayBindingPattern(n),e)}():18===me()?function(){var e=pe();ke(18);var n=An(9,ra);return ke(19),Xe(P.createObjectBindingPattern(n),e)}():$e(e)}function oa(){return sa(!0)}function sa(n){var t,r=pe(),a=fe(),i=ia(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);n&&79===i.kind&&53===me()&&!s.hasPrecedingLineBreak()&&(t=He());var o=Kt(),c=tr(me())?void 0:Jt();return j(Xe(P.createVariableDeclaration(i,t,o,c),r),a)}function ca(n){var t,r=pe(),a=0;switch(me()){case 113:break;case 119:a|=1;break;case 85:a|=2;break;default:e.Debug.fail()}if(ye(),159===me()&&De(la))t=kn();else{var i=ae();q(n),t=An(8,n?sa:oa),q(i)}return Xe(P.createVariableDeclarationList(t,a),r)}function la(){return gn()&&21===ye()}function ua(e,n,t,r){var a=ca(!1);Je();var i=P.createVariableStatement(r,a);return i.decorators=t,j(Xe(i,e),n)}function da(n,t,r,a){var i=oe(),o=e.modifiersToFlags(a);ke(98);var s=Ve(41),c=512&o?wr():$e(),l=s?1:0,u=256&o?2:0,d=Qn();1&o&&Q(!0);var p=at(l|u),f=tt(58,!1),m=na(l|u,e.Diagnostics.or_expected);return Q(i),j(Xe(P.createFunctionDeclaration(r,a,s,c,d,p,f,m),n),t)}function fa(n,t,r,a){return Ce((function(){if(134===me()?ke(134):10===me()&&20===De(ye)?Ce((function(){var e=Un();return"constructor"===e.text?e:void 0})):void 0){var i=Qn(),o=at(0),s=tt(58,!1),c=na(0,e.Diagnostics.or_expected),l=P.createConstructorDeclaration(r,a,o,c);return l.typeParameters=i,l.type=s,j(Xe(l,n),t)}}))}function ma(n,t,r,a,i,o,s,c,l){var u=i?1:0,d=e.some(a,e.isAsyncModifier)?2:0,p=Qn(),f=at(u|d),m=tt(58,!1),_=na(u|d,l),g=P.createMethodDeclaration(r,a,i,o,s,p,f,m,_);return g.exclamationToken=c,j(Xe(g,n),t)}function _a(n,t,r,a,i,o){var c=o||s.hasPrecedingLineBreak()?void 0:Ve(53),l=Kt(),u=Z(45056,Jt);return function(n,t,r){if(59!==me()||s.hasPrecedingLineBreak())return 20===me()?(se(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void ye()):void(!t||We()?ze()||(r?18===me()&&se(e.Diagnostics._0_expected,e.tokenToString(26)):Fe(n)):r?se(e.Diagnostics._0_expected,e.tokenToString(26)):se(e.Diagnostics.Expected_for_property_initializer));se(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(i,l,u),j(Xe(P.createPropertyDeclaration(r,a,i,o||c,l,u),n),t)}function ga(n,t,r,a){var i=Ve(41),o=an(),s=Ve(57);return i||20===me()||29===me()?ma(n,t,r,a,i,o,s,void 0,e.Diagnostics.or_expected):_a(n,t,r,a,o,s)}function ya(e,n,t,r,a){var i=an(),o=Qn(),s=at(0),c=tt(58,!1),l=na(0),u=171===a?P.createGetAccessorDeclaration(t,r,i,s,c,l):P.createSetAccessorDeclaration(t,r,i,s,l);return u.typeParameters=o,c&&172===u.kind&&(u.type=c),j(Xe(u,e),n)}function ha(){var n;if(59===me())return!0;for(;e.isModifierKind(me());){if(n=me(),e.isClassMemberModifier(n))return!0;ye()}if(41===me())return!0;if(tn()&&(n=me(),ye()),22===me())return!0;if(void 0!==n){if(!e.isKeyword(n)||148===n||136===n)return!0;switch(me()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return We()}}return!1}function va(e,n,t,r){Ke(124);var a=function(){var e=re(),n=oe();X(!1),Q(!0);var t=Mr(!1);return X(e),Q(n),t}();return j(Xe(P.createClassStaticBlockDeclaration(t,r,a),e),n)}function ba(){if(oe()&&132===me()){var n=pe(),t=en(e.Diagnostics.Expression_expected);return ye(),xr(n,Er(n,t,!0))}return lr()}function Ea(){var e=pe();if(Ue(59)){var n=$(16384,ba);return Xe(P.createDecorator(n),e)}}function Ta(){for(var n,t,r=pe();t=Ea();)n=e.append(n,t);return n&&qe(n,r)}function Sa(n,t,r){var a=pe(),i=me();if(85===me()&&n){if(!Ce(cn))return}else{if(t&&124===me()&&De(Ba))return;if(r&&124===me())return;if(!e.isModifierKind(me())||!Ce(ln))return}return Xe(P.createToken(i),a)}function xa(n,t){for(var r,a,i=pe(),o=!1;a=Sa(n,t,o);)124===a.kind&&(o=!0),r=e.append(r,a);return r&&qe(r,i)}function La(){var e;if(131===me()){var n=pe();ye(),e=qe([Xe(P.createToken(131),n)],n)}return e}function Da(){var n=pe();if(26===me())return ye(),Xe(P.createSemicolonClassElement(),n);var t=fe(),r=Ta(),a=xa(!0,!0);if(124===me()&&De(Ba))return va(n,t,r,a);if(sn(136))return ya(n,t,r,a,171);if(sn(148))return ya(n,t,r,a,172);if(134===me()||10===me()){var i=fa(n,t,r,a);if(i)return i}if(st())return lt(n,t,r,a);if(e.tokenIsIdentifierOrKeyword(me())||10===me()||8===me()||41===me()||22===me()){if(e.some(a,Qr)){for(var o=0,s=a;o<s.length;o++){s[o].flags|=8388608}return $(8388608,(function(){return ga(n,t,r,a)}))}return ga(n,t,r,a)}if(r||a){var c=Ye(79,!0,e.Diagnostics.Declaration_expected);return _a(n,t,r,a,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function Ca(e,n,t,r){return Aa(e,n,t,r,256)}function Aa(n,t,r,a,i){var o=oe();ke(84);var s=!Ae()||117===me()&&De(yn)?void 0:Ze(Ae()),c=Qn();e.some(a,e.isExportModifier)&&Q(!0);var l,u=Ia();return ke(18)?(l=Sn(5,Da),ke(19)):l=kn(),Q(o),j(Xe(256===i?P.createClassDeclaration(r,a,s,c,u,l):P.createClassExpression(r,a,s,c,u,l),n),t)}function Ia(){if(Oa())return Sn(22,ka)}function ka(){var n=pe(),t=me();e.Debug.assert(94===t||117===t),ye();var r=An(7,Na);return Xe(P.createHeritageClause(t,r),n)}function Na(){var e=pe(),n=lr(),t=Ra();return Xe(P.createExpressionWithTypeArguments(n,t),e)}function Ra(){return 29===me()?Nn(20,Vt,29,31):void 0}function Oa(){return 94===me()||117===me()}function wa(){var e=pe(),n=fe(),t=an(),r=ee(Jt);return j(Xe(P.createEnumMember(t,r),e),n)}function Ma(){var e,n=pe();return ke(18)?(e=Sn(1,Yr),ke(19)):e=kn(),Xe(P.createModuleBlock(e),n)}function Pa(e,n,t,r,a){var i=16&a,o=en(),s=Ue(24)?Pa(pe(),!1,void 0,void 0,4|i):Ma();return j(Xe(P.createModuleDeclaration(t,r,o,s,a),e),n)}function Fa(e,n,t,r){var a,i,o=0;return 156===me()?(a=en(),o|=1024):(a=Un()).text=Qe(a.text),18===me()?i=Ma():Je(),j(Xe(P.createModuleDeclaration(t,r,a,i,o),e),n)}function Ga(){return 20===ye()}function Ba(){return 18===ye()}function Ua(){return 43===ye()}function Va(){var n=pe(),t=e.tokenIsIdentifierOrKeyword(me())?nn():jn(10);ke(58);var r=jn(10);return Xe(P.createAssertEntry(t,r),n)}function ja(){var n=pe();ke(129);var t=s.getTokenPos();if(ke(18)){var r=s.hasPrecedingLineBreak(),a=An(24,Va,!0);if(!ke(19)){var i=e.lastOrUndefined(S);i&&i.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(i,e.createDetachedDiagnostic(u,t,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Xe(P.createAssertClause(a,r),n)}a=qe([],pe(),void 0,!1);return Xe(P.createAssertClause(a,!1),n)}function Ka(){if(10===me()){var e=Un();return e.text=Qe(e.text),e}return zt()}function Ha(e){var n=pe();return Xe(268===e?P.createNamedImports(Nn(23,za,18,19)):P.createNamedExports(Nn(23,Wa,18,19)),n)}function Wa(){return Ja(274)}function za(){return Ja(269)}function Ja(n){var t,r=pe(),a=e.isKeyword(me())&&!Ie(),i=s.getTokenPos(),o=s.getTextPos(),c=!1,l=!0,u=nn();if("type"===u.escapedText)if(127===me()){var d=nn();if(127===me()){var p=nn();e.tokenIsIdentifierOrKeyword(me())?(c=!0,t=d,u=f(),l=!1):(t=u,u=p,l=!1)}else e.tokenIsIdentifierOrKeyword(me())?(t=u,l=!1,u=f()):(c=!0,u=d)}else e.tokenIsIdentifierOrKeyword(me())&&(c=!0,u=f());return l&&127===me()&&(t=u,ke(127),u=f()),269===n&&a&&le(i,o,e.Diagnostics.Identifier_expected),Xe(269===n?P.createImportSpecifier(c,t,u):P.createExportSpecifier(c,t,u),r);function f(){return a=e.isKeyword(me())&&!Ie(),i=s.getTokenPos(),o=s.getTextPos(),nn()}}function qa(n){return function(n,t){return e.some(n.modifiers,(function(e){return e.kind===t}))}(n,93)||e.isImportEqualsDeclaration(n)&&e.isExternalModuleReference(n.moduleReference)||e.isImportDeclaration(n)||e.isExportAssignment(n)||e.isExportDeclaration(n)?n:void 0}function Xa(n){return function(n){return e.isMetaProperty(n)&&100===n.keywordToken&&"meta"===n.name.escapedText}(n)?n:_(n,Xa)}(Re=Ne||(Ne={}))[Re.SourceElements=0]="SourceElements",Re[Re.BlockStatements=1]="BlockStatements",Re[Re.SwitchClauses=2]="SwitchClauses",Re[Re.SwitchClauseStatements=3]="SwitchClauseStatements",Re[Re.TypeMembers=4]="TypeMembers",Re[Re.ClassMembers=5]="ClassMembers",Re[Re.EnumMembers=6]="EnumMembers",Re[Re.HeritageClauseElement=7]="HeritageClauseElement",Re[Re.VariableDeclarations=8]="VariableDeclarations",Re[Re.ObjectBindingElements=9]="ObjectBindingElements",Re[Re.ArrayBindingElements=10]="ArrayBindingElements",Re[Re.ArgumentExpressions=11]="ArgumentExpressions",Re[Re.ObjectLiteralMembers=12]="ObjectLiteralMembers",Re[Re.JsxAttributes=13]="JsxAttributes",Re[Re.JsxChildren=14]="JsxChildren",Re[Re.ArrayLiteralMembers=15]="ArrayLiteralMembers",Re[Re.Parameters=16]="Parameters",Re[Re.JSDocParameters=17]="JSDocParameters",Re[Re.RestProperties=18]="RestProperties",Re[Re.TypeParameters=19]="TypeParameters",Re[Re.TypeArguments=20]="TypeArguments",Re[Re.TupleElementTypes=21]="TupleElementTypes",Re[Re.HeritageClauses=22]="HeritageClauses",Re[Re.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Re[Re.AssertEntries=24]="AssertEntries",Re[Re.Count=25]="Count",(we=Oe||(Oe={}))[we.False=0]="False",we[we.True=1]="True",we[we.Unknown=2]="Unknown",function(n){function t(e){var n=pe(),t=(e?Ue:ke)(18),r=$(4194304,Xn);e&&!t||Be(19);var a=P.createJSDocTypeExpression(r);return W(a),Xe(a,n)}function r(){for(var e=pe(),n=Ue(18),t=pe(),r=Rn(!1);80===me();)Te(),he(),r=Xe(P.createJSDocMemberName(r,en()),t);n&&Be(19);var a=P.createJSDocNameReference(r);return W(a),Xe(a,e)}var a,i,o,c;function l(n,a){void 0===n&&(n=0);var i=f,o=void 0===a?i.length:n+a;if(a=o-n,e.Debug.assert(n>=0),e.Debug.assert(n<=o),e.Debug.assert(o<=i.length),m(i,n)){var c,l,d,p,_,g=[],y=[];return s.scanRange(n+3,a-5,(function(){var t,r=1,a=n-(i.lastIndexOf("\n",n)+1)+4;function u(e){t||(t=a),g.push(e),a+=e.length}for(he();J(5););J(4)&&(r=0,a=0);e:for(;;){switch(me()){case 59:0===r||1===r?(v(g),_||(_=pe()),k(x(a)),r=0,t=void 0):u(s.getTokenText());break;case 4:g.push(s.getTokenText()),r=0,a=0;break;case 41:var f=s.getTokenText();1===r||2===r?(r=2,u(f)):(r=1,a+=f.length);break;case 5:var m=s.getTokenText();2===r?g.push(m):void 0!==t&&a+m.length>t&&g.push(m.slice(t-a)),a+=m.length;break;case 1:break e;case 18:r=2;var b=s.getStartPos(),E=A(s.getTextPos()-1);if(E){p||h(g),y.push(Xe(P.createJSDocText(g.join("")),null!==p&&void 0!==p?p:n,b)),y.push(E),g=[],p=s.getTextPos();break}default:r=2,u(s.getTokenText())}he()}v(g),y.length&&g.length&&y.push(Xe(P.createJSDocText(g.join("")),null!==p&&void 0!==p?p:n,_)),y.length&&c&&e.Debug.assertIsDefined(_,"having parsed tags implies that the end of the comment span should be set");var T=c&&qe(c,l,d);return Xe(P.createJSDocComment(y.length?qe(y,n,_):g.length?g.join(""):void 0,T),n,o)}))}function h(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(he(),1===me())return!0;if(5!==me()&&4!==me())return!1}}function E(){if(5!==me()&&4!==me()||!De(b))for(;5===me()||4===me();)he()}function T(){if((5===me()||4===me())&&De(b))return"";for(var e=s.hasPrecedingLineBreak(),n=!1,t="";e&&41===me()||5===me()||4===me();)t+=s.getTokenText(),4===me()?(e=!0,n=!0,t=""):41===me()&&(e=!1),he();return n?t:""}function x(n){e.Debug.assert(59===me());var a=s.getTokenPos();he();var i,o=q(void 0),l=T();switch(o.escapedText){case"author":i=function(n,t,r,a){var i=pe(),o=function(){var e=[],n=!1,t=s.getToken();for(;1!==t&&4!==t;){if(29===t)n=!0;else{if(59===t&&!n)break;if(31===t&&n){e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break}}e.push(s.getTokenText()),t=he()}return P.createJSDocText(e.join(""))}(),c=s.getStartPos(),l=L(n,c,r,a);l||(c=s.getStartPos());var u="string"!==typeof l?qe(e.concatenate([Xe(o,i,c)],l),i):o.text+l;return Xe(P.createJSDocAuthorTag(t,u),n)}(a,o,n,l);break;case"implements":i=function(e,n,t,r){var a=G();return Xe(P.createJSDocImplementsTag(n,a,L(e,pe(),t,r)),e)}(a,o,n,l);break;case"augments":case"extends":i=function(e,n,t,r){var a=G();return Xe(P.createJSDocAugmentsTag(n,a,L(e,pe(),t,r)),e)}(a,o,n,l);break;case"class":case"constructor":i=B(a,P.createJSDocClassTag,o,n,l);break;case"public":i=B(a,P.createJSDocPublicTag,o,n,l);break;case"private":i=B(a,P.createJSDocPrivateTag,o,n,l);break;case"protected":i=B(a,P.createJSDocProtectedTag,o,n,l);break;case"readonly":i=B(a,P.createJSDocReadonlyTag,o,n,l);break;case"override":i=B(a,P.createJSDocOverrideTag,o,n,l);break;case"deprecated":K=!0,i=B(a,P.createJSDocDeprecatedTag,o,n,l);break;case"this":i=function(e,n,r,a){var i=t(!0);return E(),Xe(P.createJSDocThisTag(n,i,L(e,pe(),r,a)),e)}(a,o,n,l);break;case"enum":i=function(e,n,r,a){var i=t(!0);return E(),Xe(P.createJSDocEnumTag(n,i,L(e,pe(),r,a)),e)}(a,o,n,l);break;case"arg":case"argument":case"param":return M(a,o,2,n);case"return":case"returns":i=function(n,t,r,a){e.some(c,e.isJSDocReturnTag)&&le(t.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var i=R();return Xe(P.createJSDocReturnTag(t,i,L(n,pe(),r,a)),n)}(a,o,n,l);break;case"template":i=function(e,n,r,a){var i=18===me()?t():void 0,o=function(){var e=pe(),n=[];do{E();var t=z();void 0!==t&&n.push(t),T()}while(J(27));return qe(n,e)}();return Xe(P.createJSDocTemplateTag(n,i,o,L(e,pe(),r,a)),e)}(a,o,n,l);break;case"type":i=F(a,o,n,l);break;case"typedef":i=function(n,t,r,a){var i,o=R();T();var s=U();E();var c,l=D(r);if(!o||w(o.type)){for(var d=void 0,p=void 0,f=void 0,m=!1;d=Ce((function(){return j(r)}));)if(m=!0,341===d.kind){if(p){se(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var _=e.lastOrUndefined(S);_&&e.addRelatedInfo(_,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=d}else f=e.append(f,d);if(m){var g=o&&182===o.type.kind,y=P.createJSDocTypeLiteral(f,g);c=(o=p&&p.typeExpression&&!w(p.typeExpression.type)?p.typeExpression:Xe(y,n)).end}}c=c||void 0!==l?pe():(null!==(i=null!==s&&void 0!==s?s:o)&&void 0!==i?i:t).end,l||(l=L(n,c,r,a));return Xe(P.createJSDocTypedefTag(t,o,s,l),n,c)}(a,o,n,l);break;case"callback":i=function(n,t,r,a){var i=U();E();var o=D(r),s=function(n){var t,r,a=pe();for(;t=Ce((function(){return H(4,n)}));)r=e.append(r,t);return qe(r||[],a)}(r),c=Ce((function(){if(J(59)){var e=x(r);if(e&&339===e.kind)return e}})),l=Xe(P.createJSDocSignature(void 0,s,c),n);o||(o=L(n,pe(),r,a));return Xe(P.createJSDocCallbackTag(t,l,i,o),n)}(a,o,n,l);break;case"see":i=function(n,t,a,i){var o=22===me()||De((function(){return 59===he()&&e.tokenIsIdentifierOrKeyword(he())&&"link"===s.getTokenValue()}))?void 0:r(),c=void 0!==a&&void 0!==i?L(n,pe(),a,i):void 0;return Xe(P.createJSDocSeeTag(t,o,c),n)}(a,o,n,l);break;default:i=function(e,n,t,r){return Xe(P.createJSDocUnknownTag(n,L(e,pe(),t,r)),e)}(a,o,n,l)}return i}function L(e,n,t,r){return r||(t+=n-e),D(t,r.slice(t))}function D(e,n){var t,r,a=pe(),i=[],o=[],c=0,l=!0;function u(n){r||(r=e),i.push(n),e+=n.length}void 0!==n&&(""!==n&&u(n),c=1);var d=me();e:for(;;){switch(d){case 4:c=0,i.push(s.getTokenText()),e=0;break;case 59:if(3===c||2===c&&(!l||De(C))){i.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===c||3===c)u(s.getTokenText());else{var p=s.getTokenText();void 0!==r&&e+p.length>r&&i.push(p.slice(r-e)),e+=p.length}break;case 18:c=2;var f=s.getStartPos(),m=A(s.getTextPos()-1);m?(o.push(Xe(P.createJSDocText(i.join("")),null!==t&&void 0!==t?t:a,f)),o.push(m),i=[],t=s.getTextPos()):u(s.getTokenText());break;case 61:c=3===c?2:3,u(s.getTokenText());break;case 41:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),u(s.getTokenText())}l=5===me(),d=he()}return h(i),v(i),o.length?(i.length&&o.push(Xe(P.createJSDocText(i.join("")),null!==t&&void 0!==t?t:a)),qe(o,a,s.getTextPos())):i.length?i.join(""):void 0}function C(){var e=he();return 5===e||4===e}function A(n){var t=Ce(I);if(t){he(),E();var r=pe(),a=e.tokenIsIdentifierOrKeyword(me())?Rn(!0):void 0;if(a)for(;80===me();)Te(),he(),a=Xe(P.createJSDocMemberName(a,en()),r);for(var i=[];19!==me()&&4!==me()&&1!==me();)i.push(s.getTokenText()),he();return Xe(("link"===t?P.createJSDocLink:"linkcode"===t?P.createJSDocLinkCode:P.createJSDocLinkPlain)(a,i.join("")),n,s.getTextPos())}}function I(){if(T(),18===me()&&59===he()&&e.tokenIsIdentifierOrKeyword(he())){var n=s.getTokenValue();if("link"===n||"linkcode"===n||"linkplain"===n)return n}}function k(e){e&&(c?c.push(e):(c=[e],l=e.pos),d=e.end)}function R(){return T(),18===me()?t():void 0}function O(){var n=J(22);n&&E();var t,r=J(61),a=function(){var e=q();Ue(22)&&ke(23);for(;Ue(24);){var n=q();Ue(22)&&ke(23),e=On(e,n)}return e}();return r&&(je(t=61)||Ye(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))),n&&(E(),Ve(63)&&zt(),ke(23)),{name:a,isBracketed:n}}function w(n){switch(n.kind){case 147:return!0;case 182:return w(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&!n.typeArguments}}function M(n,t,r,a){var i=R(),o=!i;T();var s=O(),c=s.name,l=s.isBracketed,u=T();o&&!De(I)&&(i=R());var d=L(n,pe(),a,u),p=4!==r&&function(n,t,r,a){if(n&&w(n.type)){for(var i=pe(),o=void 0,s=void 0;o=Ce((function(){return H(r,a,t)}));)338!==o.kind&&345!==o.kind||(s=e.append(s,o));if(s){var c=Xe(P.createJSDocTypeLiteral(s,182===n.type.kind),i);return Xe(P.createJSDocTypeExpression(c),i)}}}(i,c,r,a);return p&&(i=p,o=!0),Xe(1===r?P.createJSDocPropertyTag(t,c,l,i,o,d):P.createJSDocParameterTag(t,c,l,i,o,d),n)}function F(n,r,a,i){e.some(c,e.isJSDocTypeTag)&&le(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var o=t(!0),l=void 0!==a&&void 0!==i?L(n,pe(),a,i):void 0;return Xe(P.createJSDocTypeTag(r,o,l),n)}function G(){var e=Ue(18),n=pe(),t=function(){var e=pe(),n=q();for(;Ue(24);){var t=q();n=Xe(P.createPropertyAccessExpression(n,t),e)}return n}(),r=Ra(),a=Xe(P.createExpressionWithTypeArguments(t,r),n);return e&&ke(19),a}function B(e,n,t,r,a){return Xe(n(t,L(e,pe(),r,a)),e)}function U(n){var t=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(me())){var r=q();if(Ue(24)){var a=U(!0);return Xe(P.createModuleDeclaration(void 0,void 0,r,a,n?4:void 0),t)}return n&&(r.isInJSDocNamespace=!0),r}}function V(n,t){for(;!e.isIdentifier(n)||!e.isIdentifier(t);){if(e.isIdentifier(n)||e.isIdentifier(t)||n.right.escapedText!==t.right.escapedText)return!1;n=n.left,t=t.left}return n.escapedText===t.escapedText}function j(e){return H(1,e)}function H(n,t,r){for(var a=!0,i=!1;;)switch(he()){case 59:if(a){var o=W(n,t);return!(o&&(338===o.kind||345===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!V(r,o.name.left)))&&o}i=!1;break;case 4:a=!0,i=!1;break;case 41:i&&(a=!1),i=!0;break;case 79:a=!1;break;case 1:return!1}}function W(n,t){e.Debug.assert(59===me());var r=s.getStartPos();he();var a,i=q();switch(E(),i.escapedText){case"type":return 1===n&&F(r,i);case"prop":case"property":a=1;break;case"arg":case"argument":case"param":a=6;break;default:return!1}return!!(n&a)&&M(r,i,n,t)}function z(){var n=pe(),t=J(22);t&&E();var r,a=q(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(t&&(E(),ke(63),r=$(4194304,Xn),ke(23)),!e.nodeIsMissing(a))return Xe(P.createTypeParameterDeclaration(a,void 0,r),n)}function J(e){return me()===e&&(he(),!0)}function q(n){if(!e.tokenIsIdentifierOrKeyword(me()))return Ye(79,!n,n||e.Diagnostics.Identifier_expected);N++;var t=s.getTokenPos(),r=s.getTextPos(),a=me(),i=Qe(s.getTokenValue()),o=Xe(P.createIdentifier(i,void 0,a),t,r);return he(),o}}n.parseJSDocTypeExpressionForTests=function(n,r,a){U("file.js",n,99,void 0,1),s.setText(n,r,a),D=s.scan();var i=t(),o=z("file.js",99,1,!1,[],P.createToken(1),0),c=e.attachFileToDiagnostics(S,o);return x&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(x,o)),V(),i?{jsDocTypeExpression:i,diagnostics:c}:void 0},n.parseJSDocTypeExpression=t,n.parseJSDocNameReference=r,n.parseIsolatedJSDocComment=function(n,t,r){U("",n,99,void 0,1);var a=$(4194304,(function(){return l(t,r)})),i={languageVariant:0,text:n},o=e.attachFileToDiagnostics(S,i);return V(),a?{jsDoc:a,diagnostics:o}:void 0},n.parseJSDocComment=function(n,t,r){var a=D,i=S.length,o=G,s=$(4194304,(function(){return l(t,r)}));return e.setParent(s,n),131072&w&&(x||(x=[]),x.push.apply(x,S)),D=a,S.length=i,G=o,s},(i=a||(a={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(c=o||(o={}))[c.Property=1]="Property",c[c.Parameter=2]="Parameter",c[c.CallbackParameter=4]="CallbackParameter"}(Me=n.JSDocParser||(n.JSDocParser={}))}(u||(u={})),function(n){function t(n,t,a,o,s,c){return void(t?u(n):l(n));function l(n){var t="";if(c&&r(n)&&(t=o.substring(n.pos,n.end)),n._children&&(n._children=void 0),e.setTextRangePosEnd(n,n.pos+a,n.end+a),c&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),_(n,l,u),e.hasJSDocNodes(n))for(var d=0,p=n.jsDoc;d<p.length;d++){l(p[d])}i(n,c)}function u(n){n._children=void 0,e.setTextRangePosEnd(n,n.pos+a,n.end+a);for(var t=0,r=n;t<r.length;t++){l(r[t])}}}function r(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function a(n,t,r,a,i){e.Debug.assert(n.end>=t,"Adjusting an element that was entirely before the change range"),e.Debug.assert(n.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(n.pos<=n.end);var o=Math.min(n.pos,a),s=n.end>=r?n.end+i:Math.min(n.end,a);e.Debug.assert(o<=s),n.parent&&(e.Debug.assertGreaterThanOrEqual(o,n.parent.pos),e.Debug.assertLessThanOrEqual(s,n.parent.end)),e.setTextRangePosEnd(n,o,s)}function i(n,t){if(t){var r=n.pos,a=function(n){e.Debug.assert(n.pos>=r),r=n.end};if(e.hasJSDocNodes(n))for(var i=0,o=n.jsDoc;i<o.length;i++){a(o[i])}_(n,a),e.Debug.assert(r<=n.end)}}function o(n,t){var r,a=n;if(_(n,(function n(i){if(e.nodeIsMissing(i))return;if(!(i.pos<=t))return e.Debug.assert(i.pos>t),!0;if(i.pos>=a.pos&&(a=i),t<i.end)return _(i,n),!0;e.Debug.assert(i.end<=t),r=i})),r){var i=function(n){for(;;){var t=e.getLastChild(n);if(!t)return n;n=t}}(r);i.pos>a.pos&&(a=i)}return a}function s(n,t,r,a){var i=n.text;if(r&&(e.Debug.assert(i.length-r.span.length+r.newLength===t.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,r.span.start),s=t.substr(0,r.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(r.span),i.length),l=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(c===l)}}function c(n){var t=n.statements,r=0;e.Debug.assert(r<t.length);var a=t[r],i=-1;return{currentNode:function(o){return o!==i&&(a&&a.end===o&&r<t.length-1&&(r++,a=t[r]),a&&a.pos===o||function(e){return t=void 0,r=-1,a=void 0,void _(n,i,o);function i(n){return e>=n.pos&&e<n.end&&(_(n,i,o),!0)}function o(n){if(e>=n.pos&&e<n.end)for(var s=0;s<n.length;s++){var c=n[s];if(c){if(c.pos===e)return t=n,r=s,a=c,!0;if(c.pos<e&&e<c.end)return _(c,i,o),!0}}return!1}}(o)),i=o,e.Debug.assert(!a||a.pos===o),a}}}var l,d;n.updateSourceFile=function(n,r,l,d){if(s(n,r,l,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(l))return n;if(0===n.statements.length)return u.parseSourceFile(n.fileName,r,n.languageVersion,void 0,!0,n.scriptKind);var p=n;e.Debug.assert(!p.hasBeenIncrementallyParsed),p.hasBeenIncrementallyParsed=!0,u.fixupParentReferences(p);var f=n.text,m=c(n),g=function(n,t){for(var r=1,a=t.span.start,i=0;a>0&&i<=r;i++){var s=o(n,a);e.Debug.assert(s.pos<=a);var c=s.pos;a=Math.max(0,c-1)}var l=e.createTextSpanFromBounds(a,e.textSpanEnd(t.span)),u=t.newLength+(t.span.start-a);return e.createTextChangeRange(l,u)}(n,l);s(n,r,g,d),e.Debug.assert(g.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var y=e.textChangeRangeNewSpan(g).length-g.span.length;!function(n,r,o,s,c,l,u,d){return void p(n);function p(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!1,c,l,u,d);else{var m=n.end;if(m>=r){if(n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,c),_(n,p,f),e.hasJSDocNodes(n))for(var g=0,y=n.jsDoc;g<y.length;g++){p(y[g])}i(n,d)}else e.Debug.assert(m<r)}}function f(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!0,c,l,u,d);else{var i=n.end;if(i>=r){n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,c);for(var f=0,m=n;f<m.length;f++){p(m[f])}}else e.Debug.assert(i<r)}}}(p,g.span.start,e.textSpanEnd(g.span),e.textSpanEnd(e.textChangeRangeNewSpan(g)),y,f,r,d);var h=u.parseSourceFile(n.fileName,r,n.languageVersion,m,!0,n.scriptKind);return h.commentDirectives=function(n,t,r,a,i,o,s,c){if(!n)return t;for(var l,u=!1,d=0,p=n;d<p.length;d++){var f=p[d],m=f.range,_=f.type;if(m.end<r)l=e.append(l,f);else if(m.pos>a){y();var g={range:{pos:m.pos+i,end:m.end+i},type:_};l=e.append(l,g),c&&e.Debug.assert(o.substring(m.pos,m.end)===s.substring(g.range.pos,g.range.end))}}return y(),l;function y(){u||(u=!0,l?t&&l.push.apply(l,t):l=t)}}(n.commentDirectives,h.commentDirectives,g.span.start,e.textSpanEnd(g.span),y,f,r,d),h.impliedNodeFormat=n.impliedNodeFormat,h},n.createSyntaxCursor=c,(d=l||(l={}))[d.Value=-1]="Value"}(d||(d={})),e.isDeclarationFileName=h,e.processCommentPragmas=v,e.processPragmasIntoFields=b;var E=new e.Map;function T(e){if(E.has(e))return E.get(e);var n=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return E.set(e,n),n}var S=/^\/\/\/\s*<(\S+)\s.*?\/>/im,x=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function L(n,t,r){var a=2===t.kind&&S.exec(r);if(a){var i=a[1].toLowerCase(),o=e.commentPragmas[i];if(!o||!(1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c<l.length;c++){var u=l[c],d=T(u.name).exec(r);if(!d&&!u.optional)return;if(d){var p=d[2]||d[3];if(u.captureSpan){var f=t.pos+d.index+d[1].length+1;s[u.name]={value:p,pos:f,end:f+p.length}}else s[u.name]=p}}n.push({name:i,args:{arguments:s,range:t}})}else n.push({name:i,args:{arguments:{},range:t}})}else{var m=2===t.kind&&x.exec(r);if(m)return D(n,t,2,m);if(3===t.kind)for(var _=/@(\S+)(\s+.*)?$/gim,g=void 0;g=_.exec(r);)D(n,t,4,g)}}function D(n,t,r,a){if(a){var i=a[1].toLowerCase(),o=e.commentPragmas[i];if(o&&o.kind&r){var s=function(n,t){if(!t)return{};if(!n.args)return{};for(var r=e.trimString(t).split(/\s+/),a={},i=0;i<n.args.length;i++){var o=n.args[i];if(!r[i]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");a[o.name]=r[i]}return a}(o,a[2]);"fail"!==s&&n.push({name:i,args:{arguments:s,range:t}})}}}function C(e,n){return e.kind===n.kind&&(79===e.kind?e.escapedText===n.escapedText:108===e.kind||e.name.escapedText===n.name.escapedText&&C(e.expression,n.expression))}e.tagNamesAreEquivalent=C}(ha||(ha={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:"false"};var n=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(n.entries(),(function(e){var n=e[0];return[""+e[1],n]}))));var t=[["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"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.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"],["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"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=t.map((function(e){return e[0]})),e.libMap=new e.Map(t),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:"false"},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Te},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Te},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:"false"},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:"false"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:"false"},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"false"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:"false"},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:"false"},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var r,a=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:"false"},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:"false"},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:"false"},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:"false"},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:"false"},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:"false"},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:n,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:"false"},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:"false"},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:"false"},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:"false"},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:"false"},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"false"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:"false"},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:"false"},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:"false"},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:"false"},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:"false"},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:"false"},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"false"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:"0"},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];function i(n){var t=new e.Map,r=new e.Map;return e.forEach(n,(function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:r}}function o(){return r||(r=i(e.optionDeclarations))}e.optionDeclarations=pa(pa([],e.commonOptionsWithBuild,!0),a,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((function(e){return!!e.affectsProgramStructure})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(n){return e.hasProperty(n,"transpileOptionValue")})),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:"false"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:"false"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:"false"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:"false"}],e.buildOpts=pa(pa([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:"false"},{name:"enable",type:"boolean",defaultValueDescription:"false"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:"false"}],e.createOptionNameMap=i,e.getOptionsNameMap=o;var s,c={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:b};function l(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function u(n){return d(n,e.createCompilerDiagnostic)}function d(n,t){var r=e.arrayFrom(n.type.keys()).map((function(e){return"'".concat(e,"'")})).join(", ");return t(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(n.name),r)}function p(n,t,r){return _e(n,e.trimString(t||""),r)}function f(n,t,r){if(void 0===t&&(t=""),t=e.trimString(t),!e.startsWith(t,"-")){if(""===t)return[];var a=t.split(",");switch(n.element.type){case"number":return e.mapDefined(a,(function(e){return me(n.element,parseInt(e),r)}));case"string":return e.mapDefined(a,(function(e){return me(n.element,e||"",r)}));default:return e.mapDefined(a,(function(e){return p(n.element,e,r)}))}}}function m(e){return e.name}function _(n,t,r,a){var i;if(null===(i=t.alternateMode)||void 0===i?void 0:i.getOptionsNameMap().optionsNameMap.has(n.toLowerCase()))return r(t.alternateMode.diagnostic,n);var o=e.getSpellingSuggestion(n,t.optionDeclarations,m);return o?r(t.unknownDidYouMeanDiagnostic,a||n,o.name):r(t.unknownOptionDiagnostic,a||n)}function g(n,t,r){var a,i={},o=[],s=[];return c(t),{options:i,watchOptions:a,fileNames:o,errors:s};function c(t){for(var r=0;r<t.length;){var c=t[r];if(r++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var u=c.slice(45===c.charCodeAt(1)?2:1),d=v(n.getOptionsNameMap,u,!0);if(d)r=y(t,r,n,d,i,s);else{var p=v(O.getOptionsNameMap,u,!0);p?r=y(t,r,O,p,a||(a={}),s):s.push(_(u,n,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(n){var t=x(n,r||function(n){return e.sys.readFile(n)});if(e.isString(t)){for(var a=[],i=0;;){for(;i<t.length&&t.charCodeAt(i)<=32;)i++;if(i>=t.length)break;var o=i;if(34===t.charCodeAt(o)){for(i++;i<t.length&&34!==t.charCodeAt(i);)i++;i<t.length?(a.push(t.substring(o+1,i)),i++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,n))}else{for(;t.charCodeAt(i)>32;)i++;a.push(t.substring(o,i))}}c(a)}else s.push(t)}}function y(n,t,r,a,i,o){if(a.isTSConfigOnly)"null"===(s=n[t])?(i[a.name]=void 0,t++):"boolean"===a.type?"false"===s?(i[a.name]=me(a,!1,o),t++):("true"===s&&t++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,a.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,a.name)),s&&!e.startsWith(s,"-")&&t++);else if(n[t]||"boolean"===a.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,a.name,U(a))),"null"!==n[t])switch(a.type){case"number":i[a.name]=me(a,parseInt(n[t]),o),t++;break;case"boolean":var s=n[t];i[a.name]=me(a,"false"!==s,o),"false"!==s&&"true"!==s||t++;break;case"string":i[a.name]=me(a,n[t]||"",o),t++;break;case"list":var c=f(a,n[t],o);i[a.name]=c||[],c&&t++;break;default:i[a.name]=p(a,n[t],o),t++}else i[a.name]=void 0,t++;return t}function h(e,n){return v(o,e,n)}function v(e,n,t){void 0===t&&(t=!1),n=n.toLowerCase();var r=e(),a=r.optionsNameMap,i=r.shortOptionNames;if(t){var o=i.get(n);void 0!==o&&(n=o)}return a.get(n)}function b(){return s||(s=i(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=l,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=p,e.parseListTypeOption=f,e.parseCommandLineWorker=g,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:c,getOptionsNameMap:o,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(n,t){return g(e.compilerOptionsDidYouMeanDiagnostics,n,t)},e.getOptionFromName=h;var E={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:o},getOptionsNameMap:b,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(n,t){var r=e.parseJsonText(n,t);return{config:F(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function S(n,t){var r=x(n,t);return e.isString(r)?e.parseJsonText(n,r):{fileName:n,parseDiagnostics:[r]}}function x(n,t){var r;try{r=t(n)}catch(Oa){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,Oa.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,n):r}function L(n){return e.arrayToMap(n,m)}e.parseBuildCommand=function(n){var t=g(E,n),r=t.options,a=t.watchOptions,i=t.fileNames,o=t.errors,s=r;return 0===i.length&&i.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:a,projects:i,errors:o}},e.getDiagnosticText=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=e.createCompilerDiagnostic.apply(void 0,arguments);return a.messageText},e.getParsedCommandLineOfConfigFile=function(n,t,r,a,i,o){var s=x(n,(function(e){return r.readFile(e)}));if(e.isString(s)){var c=e.parseJsonText(n,s),l=r.getCurrentDirectory();return c.path=e.toPath(n,l,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Y(c,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),l),t,e.getNormalizedAbsolutePath(n,l),void 0,o,a,i)}r.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(n,t){var r=x(n,t);return e.isString(r)?T(n,r):{config:{},error:r}},e.parseConfigFileTextToJson=T,e.readJsonConfigFile=S,e.tryReadFile=x;var D,C={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function A(){return D||(D=i(e.optionsForWatch))}var I,k,N,R,O={getOptionsNameMap:A,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function w(){return I||(I=L(e.optionDeclarations))}function M(){return k||(k=L(e.optionsForWatch))}function P(){return N||(N=L(e.typeAcquisitionDeclarations))}function F(n,t,r,a){var i,o=null===(i=n.statements[0])||void 0===i?void 0:i.expression,s=r?(void 0===R&&(R={name:void 0,type:"object",elementOptions:L([{name:"compilerOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:O},{name:"typingOptions",type:"object",elementOptions:P(),extraKeyDiagnostics:C},{name:"typeAcquisition",type:"object",elementOptions:P(),extraKeyDiagnostics:C},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),R):void 0;if(o&&204!==o.kind){if(t.push(e.createDiagnosticForNodeInSourceFile(n,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(n.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return B(n,c,t,!0,s,a)}return{}}return B(n,o,t,!0,s,a)}function G(e,n){var t;return B(e,null===(t=e.statements[0])||void 0===t?void 0:t.expression,n,!0,void 0,void 0)}function B(n,t,r,a,i,o){return t?l(t,i):a?{}:void 0;function s(e){return i&&i.elementOptions===e}function c(t,i,c,d){for(var p=a?{}:void 0,f=function(t){if(294!==t.kind)return r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.Property_assignment_expected)),"continue";t.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(n,t.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),u(t.name)||r.push(e.createDiagnosticForNodeInSourceFile(n,t.name,e.Diagnostics.String_literal_with_double_quotes_expected));var f=e.isComputedNonLiteralName(t.name)?void 0:e.getTextOfPropertyName(t.name),m=f&&e.unescapeLeadingUnderscores(f),g=m&&i?i.get(m):void 0;m&&c&&!g&&(i?r.push(_(m,c,(function(r,a,i){return e.createDiagnosticForNodeInSourceFile(n,t.name,r,a,i)}))):r.push(e.createDiagnosticForNodeInSourceFile(n,t.name,c.unknownOptionDiagnostic,m)));var y=l(t.initializer,g);if("undefined"!==typeof m&&(a&&(p[m]=y),o&&(d||s(i)))){var h=V(g,y);d?h&&o.onSetValidOptionKeyValueInParent(d,g,y):s(i)&&(h?o.onSetValidOptionKeyValueInRoot(m,t.name,y,t.initializer):g||o.onSetUnknownOptionKeyValueInRoot(m,t.name,y,t.initializer))}},m=0,g=t.properties;m<g.length;m++){f(g[m])}return p}function l(t,i){var o;switch(t.kind){case 110:return g(i&&"boolean"!==i.type),_(!0);case 95:return g(i&&"boolean"!==i.type),_(!1);case 104:return g(i&&"extends"===i.name),_(null);case 10:u(t)||r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.String_literal_with_double_quotes_expected)),g(i&&e.isString(i.type)&&"string"!==i.type);var s=t.text;if(i&&!e.isString(i.type)){var p=i;p.type.has(s.toLowerCase())||(r.push(d(p,(function(r,a,i){return e.createDiagnosticForNodeInSourceFile(n,t,r,a,i)}))),o=!0)}return _(s);case 8:return g(i&&"number"!==i.type),_(Number(t.text));case 218:if(40!==t.operator||8!==t.operand.kind)break;return g(i&&"number"!==i.type),_(-Number(t.operand.text));case 204:g(i&&"object"!==i.type);var f=t;if(i){var m=i;return _(c(f,m.elementOptions,m.extraKeyDiagnostics,m.name))}return _(c(f,void 0,void 0,void 0));case 203:return g(i&&"list"!==i.type),_(function(n,t){if(a)return e.filter(n.map((function(e){return l(e,t)})),(function(e){return void 0!==e}));n.forEach((function(e){return l(e,t)}))}(t.elements,i&&i.element))}return void(i?g(!0):r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function _(a){var s;if(!o){var c=null===(s=null===i||void 0===i?void 0:i.extraValidation)||void 0===s?void 0:s.call(i,a);if(c)return void r.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,pa([n,t],c,!1)))}return a}function g(a){a&&(r.push(e.createDiagnosticForNodeInSourceFile(n,t,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,i.name,U(i))),o=!0)}}function u(t){return e.isStringLiteral(t)&&e.isStringDoubleQuoted(t,n)}}function U(n){return"list"===n.type?"Array":e.isString(n.type)?n.type:"string"}function V(n,t){return!!n&&(!!Z(t)||("list"===n.type?e.isArray(t):typeof t===(e.isString(n.type)?n.type:"string")))}function j(n){return fa({},e.arrayFrom(n.entries()).reduce((function(e,n){var t;return fa(fa({},e),((t={})[n[0]]=n[1],t))}),{}))}function K(n){if(e.length(n)){if(1!==e.length(n))return n;if("**/*"!==n[0])return n}}function H(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?H(e.element):e.type}function W(n,t){return e.forEachEntry(t,(function(e,t){if(e===n)return t}))}function z(e,n){return J(e,o(),n)}function J(n,t,r){var a=t.optionsNameMap,i=new e.Map,o=r&&e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),s=function(t){if(e.hasProperty(n,t)){if(a.has(t)&&(a.get(t).category===e.Diagnostics.Command_line_Options||a.get(t).category===e.Diagnostics.Output_Formatting))return"continue";var s=n[t],c=a.get(t.toLowerCase());if(c){var l=H(c);l?"list"===c.type?i.set(t,s.map((function(e){return W(e,l)}))):i.set(t,W(s,l)):r&&c.isFilePath?i.set(t,e.getRelativePathFromFile(r.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r.configFilePath)),o)):i.set(t,s)}}};for(var c in n)s(c);return i}function q(n){return z(e.extend(n,e.defaultInitCompilerOptions))}function X(e,n,t){if(e&&!Z(n))if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function Y(e,n,t,r,a,i,o,s,c){return ee(void 0,e,n,t,r,c,a,i,o,s)}function Q(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function Z(e){return void 0===e||null===e}function $(n,t){return e.getDirectoryPath(e.getNormalizedAbsolutePath(n,t))}function ee(n,t,r,a,i,o,s,c,l,u){void 0===i&&(i={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===n&&void 0!==t||void 0!==n&&void 0===t);var d=[],p=ae(n,t,r,a,s,c,d,u),f=p.raw,m=e.extend(i,p.options||{}),_=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;m.configFilePath=s&&e.normalizeSlashes(s);var g=function(){var n=b("references",(function(e){return"object"===typeof e}),"object"),r=h(v("files"));if(r){var a="no-prop"===n||e.isArray(n)&&0===n.length,i=e.hasProperty(f,"extends");if(0===r.length&&a&&!i)if(t){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(t,"files"),(function(e){return e.initializer})),u=l?e.createDiagnosticForNodeInSourceFile(t,l,c,o):e.createCompilerDiagnostic(c,o);d.push(u)}else E(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,m,_=h(v("include")),g=v("exclude"),y=h(g);if("no-prop"===g&&f.compilerOptions){var T=f.compilerOptions.outDir,S=f.compilerOptions.declarationDir;(T||S)&&(y=[T,S].filter((function(e){return!!e})))}void 0===r&&void 0===_&&(_=["**/*"]);_&&(p=Ee(_,d,!0,t,"include"));y&&(m=Ee(y,d,!1,t,"exclude"));return{filesSpecs:r,includeSpecs:_,excludeSpecs:y,validatedFilesSpec:e.filter(r,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:m,pathPatterns:void 0}}();t&&(t.configFileSpecs=g),Q(m,t);var y=e.normalizePath(s?$(s,a):a);return{options:m,watchOptions:_,fileNames:function(e){var n=he(g,e,m,r,l);te(n,re(f),c)&&d.push(ne(g,s));return n}(y),projectReferences:function(n){var t,r=b("references",(function(e){return"object"===typeof e}),"object");if(e.isArray(r))for(var a=0,i=r;a<i.length;a++){var o=i[a];"string"!==typeof o.path?E(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:e.getNormalizedAbsolutePath(o.path,n),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return t}(y),typeAcquisition:p.typeAcquisition||ce(),raw:f,errors:d,wildcardDirectories:Se(g,y,r.useCaseSensitiveFileNames),compileOnSave:!!f.compileOnSave};function h(n){return e.isArray(n)?n:void 0}function v(n){return b(n,e.isString,"string")}function b(n,r,a){if(e.hasProperty(f,n)&&!Z(f[n])){if(e.isArray(f[n])){var i=f[n];return t||e.every(i,r)||d.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n,a)),i}return E(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n,"Array"),"not-array"}return"no-prop"}function E(n,r,a){t||d.push(e.createCompilerDiagnostic(n,r,a))}}function ne(n,t){var r=n.includeSpecs,a=n.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(r||[]),JSON.stringify(a||[]))}function te(e,n,t){return 0===e.length&&n&&(!t||0===t.length)}function re(n){return!e.hasProperty(n,"files")&&!e.hasProperty(n,"references")}function ae(n,t,r,i,o,s,c,l){var u;i=e.normalizeSlashes(i);var d=e.getNormalizedAbsolutePath(o||"",i);if(s.indexOf(d)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,pa(pa([],s,!0),[d],!1).join(" -> "))),{raw:n||G(t,c)};var p=n?function(n,t,r,a,i){e.hasProperty(n,"excludes")&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=se(n.compilerOptions,r,i,a),c=le(n.typeAcquisition||n.typingOptions,r,i,a),l=function(e,n,t){return ue(M(),e,n,void 0,O,t)}(n.watchOptions,r,i);if(n.compileOnSave=function(n,t,r){if(!e.hasProperty(n,e.compileOnSaveCommandLineOption.name))return!1;var a=de(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return"boolean"===typeof a&&a}(n,r,i),n.extends)if(e.isString(n.extends)){var u=a?$(a,r):r;o=ie(n.extends,t,u,i,e.createCompilerDiagnostic)}else i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:n,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(n,r,i,o,c):function(n,t,r,i,o){var s,c,l,u,d,p=oe(i),f={onSetValidOptionKeyValueInParent:function(n,t,a){var o;switch(n){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ce(i));break;case"typingOptions":o=c||(c=ce(i));break;default:e.Debug.fail("Unknown option")}o[t.name]=pe(t,r,a)},onSetValidOptionKeyValueInRoot:function(a,s,c,l){if("extends"!==a);else{var d=i?$(i,r):r;u=ie(c,t,d,o,(function(t,r){return e.createDiagnosticForNodeInSourceFile(n,l,t,r)}))}},onSetUnknownOptionKeyValueInRoot:function(t,r,i,s){"excludes"===t&&o.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(a,(function(e){return e.name===t}))&&(d=e.append(d,r))}},m=F(n,o,!0,f);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ce(i));d&&m&&void 0===m.compilerOptions&&o.push(e.createDiagnosticForNodeInSourceFile(n,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0])));return{raw:m,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}}(t,r,i,o,c);if((null===(u=p.options)||void 0===u?void 0:u.paths)&&(p.options.pathsBasePath=i),p.extendedConfigPath){s=s.concat([d]);var f=function(n,t,r,a,i,o){var s,c,l,u,d=r.useCaseSensitiveFileNames?t:e.toFileNameLowerCase(t);o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):((l=S(t,(function(e){return r.readFile(e)}))).parseDiagnostics.length||(u=ae(void 0,l,r,e.getDirectoryPath(t),e.getBaseFileName(t),a,i,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u}));n&&(n.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=n.extendedSourceFiles).push.apply(s,l.extendedSourceFiles));if(l.parseDiagnostics.length)return void i.push.apply(i,l.parseDiagnostics);return u}(t,p.extendedConfigPath,r,s,c,l);if(f&&f.options){var m,_=f.raw,g=p.raw,y=function(n){!g[n]&&_[n]&&(g[n]=e.map(_[n],(function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),i,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames))),n)})))};y("include"),y("exclude"),y("files"),void 0===g.compileOnSave&&(g.compileOnSave=_.compileOnSave),p.options=e.assign({},f.options,p.options),p.watchOptions=p.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,p.watchOptions):p.watchOptions||f.watchOptions}}return p}function ie(n,t,r,a,i){if(n=e.normalizeSlashes(n),e.isRootedDiskPath(n)||e.startsWith(n,"./")||e.startsWith(n,"../")){var o=e.getNormalizedAbsolutePath(n,r);return t.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),t.fileExists(o))?o:void a.push(i(e.Diagnostics.File_0_not_found,n))}var s=e.nodeModuleNameResolver(n,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;a.push(i(e.Diagnostics.File_0_not_found,n))}function oe(n){return n&&"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function se(n,t,r,a){var i=oe(a);return ue(w(),n,t,i,e.compilerOptionsDidYouMeanDiagnostics,r),a&&(i.configFilePath=e.normalizeSlashes(a)),i}function ce(n){return{enable:!!n&&"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function le(e,n,t,r){var a=ce(r),i=l(e);return ue(P(),i,n,a,C,t),a}function ue(n,t,r,a,i,o){if(t){for(var s in t){var c=n.get(s);c?(a||(a={}))[c.name]=de(c,t[s],r,o):o.push(_(s,i,e.createCompilerDiagnostic))}return a}}function de(n,t,r,a){if(V(n,t)){var i=n.type;if("list"===i&&e.isArray(t))return function(n,t,r,a){return e.filter(e.map(t,(function(e){return de(n.element,e,r,a)})),(function(e){return!!e}))}(n,t,r,a);if(!e.isString(i))return _e(n,t,a);var o=me(n,t,a);return Z(o)?o:fe(n,r,o)}a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,U(n)))}function pe(n,t,r){if(!Z(r)){if("list"===n.type){var a=n;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(r,(function(e){return pe(a.element,t,e)})),(function(e){return!!e})):r}return e.isString(n.type)?fe(n,t,r):n.type.get(e.isString(r)?r.toLowerCase():r)}}function fe(n,t,r){return n.isFilePath&&""===(r=e.getNormalizedAbsolutePath(r,t))&&(r="."),r}function me(n,t,r){var a;if(!Z(t)){var i=null===(a=n.extraValidation)||void 0===a?void 0:a.call(n,t);if(!i)return t;r.push(e.createCompilerDiagnostic.apply(void 0,i))}}function _e(e,n,t){if(!Z(n)){var r=n.toLowerCase(),a=e.type.get(r);if(void 0!==a)return me(e,a,t);t.push(u(e))}}e.convertToObject=G,e.convertToObjectWorker=B,e.convertToTSConfig=function(n,t,r){var a,i,o,s=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),c=e.map(e.filter(n.fileNames,(null===(i=null===(a=n.options.configFile)||void 0===a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs)?function(n,t,r,a){if(!t)return e.returnTrue;var i=e.getFileMatcherPatterns(n,r,t,a.useCaseSensitiveFileNames,a.getCurrentDirectory()),o=i.excludePattern&&e.getRegexFromPattern(i.excludePattern,a.useCaseSensitiveFileNames),s=i.includeFilePattern&&e.getRegexFromPattern(i.includeFilePattern,a.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(t,n.options.configFile.configFileSpecs.validatedIncludeSpecs,n.options.configFile.configFileSpecs.validatedExcludeSpecs,r):e.returnTrue),(function(n){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),s)})),l=z(n.options,{configFilePath:e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),u=n.watchOptions&&J(n.watchOptions,A());return fa(fa({compilerOptions:fa(fa({},j(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:u&&j(u),references:e.map(n.projectReferences,(function(e){return fa(fa({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(c)?c:void 0},(null===(o=n.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:K(n.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:n.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!n.compileOnSave||void 0})},e.getCompilerOptionsDiffValue=function(n,t){var r=q(n);return function(){var n=[],i=(o=2,Array(o+1).join(" "));var o;return a.forEach((function(t){if(r.has(t.name)){var a=r.get(t.name),o=De(t);a!==o?n.push("".concat(i).concat(t.name,": ").concat(a)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(i).concat(t.name,": ").concat(o))}})),n.join(t)+t}()},e.generateTSConfig=function(n,t,r){var a=q(n);return function(){for(var n=e.createMultiMap(),s=0,c=e.optionDeclarations;s<c.length;s++){var l=c[s],u=l.category;o(l)&&n.add(e.getLocaleSpecificMessage(u),l)}var d=0,p=0,f=[];n.forEach((function(n,t){0!==f.length&&f.push({value:""}),f.push({value:"/* ".concat(t," */")});for(var r=0,i=n;r<i.length;r++){var o=i[r],s=void 0;s=a.has(o.name)?'"'.concat(o.name,'": ').concat(JSON.stringify(a.get(o.name))).concat((p+=1)===a.size?"":","):'// "'.concat(o.name,'": ').concat(JSON.stringify(De(o)),","),f.push({value:s,description:"/* ".concat(o.description&&e.getLocaleSpecificMessage(o.description)||o.name," */")}),d=Math.max(s.length,d)}}));var m=i(2),_=[];_.push("{"),_.push("".concat(m,'"compilerOptions": {')),_.push("".concat(m).concat(m,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),_.push("");for(var g=0,y=f;g<y.length;g++){var h=y[g],v=h.value,b=h.description,E=void 0===b?"":b;_.push(v&&"".concat(m).concat(m).concat(v).concat(E&&i(d-v.length+2)+E))}if(t.length){_.push("".concat(m,"},")),_.push("".concat(m,'"files": ['));for(var T=0;T<t.length;T++)_.push("".concat(m).concat(m).concat(JSON.stringify(t[T])).concat(T===t.length-1?"":","));_.push("".concat(m,"]"))}else _.push("".concat(m,"}"));return _.push("}"),_.join(r)+r}();function i(e){return Array(e+1).join(" ")}function o(n){var t=n.category,r=n.name,i=n.isCommandLineOnly,o=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!i&&void 0!==t&&(!o.includes(t)||a.has(r))}},e.convertToOptionsWithAbsolutePaths=function(n,t){var r={},a=o().optionsNameMap;for(var i in n)e.hasProperty(n,i)&&(r[i]=X(a.get(i.toLowerCase()),n[i],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r},e.parseJsonConfigFileContent=function(e,n,t,r,a,i,o,s,c){return ee(e,void 0,n,t,r,c,a,i,o,s)},e.parseJsonSourceFileConfigFileContent=Y,e.setConfigFileInOptions=Q,e.canJsonReportNoInputFiles=re,e.updateErrorForNoInputFiles=function(n,t,r,a,i){var o=a.length;return te(n,i)?a.push(ne(r,t)):e.filterMutate(a,(function(n){return!function(n){return n.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(n)})),o!==a.length},e.convertCompilerOptionsFromJson=function(e,n,t){var r=[];return{options:se(e,n,r,t),errors:r}},e.convertTypeAcquisitionFromJson=function(e,n,t){var r=[];return{options:le(e,n,r,t),errors:r}},e.convertJsonOption=de;var ge=/(^|\/)\*\*\/?$/,ye=/^[^*?]*(?=\/[^/]*[*?])/;function he(n,t,r,a,i){void 0===i&&(i=e.emptyArray),t=e.normalizePath(t);var o,s=e.createGetCanonicalFileName(a.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,d=n.validatedFilesSpec,p=n.validatedIncludeSpecs,f=n.validatedExcludeSpecs,m=e.getSupportedExtensions(r,i),_=e.getSupportedExtensionsWithJsonIfResolveJsonModule(r,m);if(d)for(var g=0,y=d;g<y.length;g++){var h=y[g],v=e.getNormalizedAbsolutePath(h,t);c.set(s(v),v)}if(p&&p.length>0)for(var b=function(n){if(e.fileExtensionIs(n,".json")){if(!o){var r=p.filter((function(n){return e.endsWith(n,".json")})),i=e.map(e.getRegularExpressionsForWildcards(r,t,"files"),(function(e){return"^".concat(e,"$")}));o=i?i.map((function(n){return e.getRegexFromPattern(n,a.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(n)}))){var d=s(n);c.has(d)||u.has(d)||u.set(d,n)}return"continue"}if(function(n,t,r,a,i){var o=e.forEach(a,(function(t){return e.fileExtensionIsOneOf(n,t)?t:void 0}));if(!o)return!1;for(var s=0,c=o;s<c.length;s++){var l=c[s];if(e.fileExtensionIs(n,l))return!1;var u=i(e.changeExtension(n,l));if(t.has(u)||r.has(u)){if(".d.ts"===l&&(e.fileExtensionIs(n,".js")||e.fileExtensionIs(n,".jsx")))continue;return!0}}return!1}(n,c,l,m,s))return"continue";!function(n,t,r,a){var i=e.forEach(r,(function(t){return e.fileExtensionIsOneOf(n,t)?t:void 0}));if(!i)return;for(var o=i.length-1;o>=0;o--){var s=i[o];if(e.fileExtensionIs(n,s))return;var c=a(e.changeExtension(n,s));t.delete(c)}}(n,l,m,s);var f=s(n);c.has(f)||l.has(f)||l.set(f,n)},E=0,T=a.readDirectory(t,e.flatten(_),f,p,void 0);E<T.length;E++){b(v=T[E])}var S=e.arrayFrom(c.values()),x=e.arrayFrom(l.values());return S.concat(x,e.arrayFrom(u.values()))}function ve(n){var t=e.startsWith(n,"**/")?0:n.indexOf("/**/");return-1!==t&&(e.endsWith(n,"/..")?n.length:n.lastIndexOf("/../"))>t}function be(n,t,r,a,i){var o=e.getRegularExpressionForWildcard(t,e.combinePaths(e.normalizePath(a),i),"exclude"),s=o&&e.getRegexFromPattern(o,r);return!!s&&(!!s.test(n)||!e.hasExtension(n)&&s.test(e.ensureTrailingDirectorySeparator(n)))}function Ee(n,t,r,a,i){return n.filter((function(n){if(!e.isString(n))return!1;var a=Te(n,r);return void 0!==a&&t.push(o.apply(void 0,a)),void 0===a}));function o(n,t){var r=e.getTsConfigPropArrayElementValue(a,i,t);return r?e.createDiagnosticForNodeInSourceFile(a,r,n,t):e.createCompilerDiagnostic(n,t)}}function Te(n,t){return t&&ge.test(n)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,n]:ve(n)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,n]:void 0}function Se(n,t,r){var a=n.validatedIncludeSpecs,i=n.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(i,t,"exclude"),s=o&&new RegExp(o,r?"":"i"),c={};if(void 0!==a){for(var l=[],u=0,d=a;u<d.length;u++){var p=d[u],f=e.normalizePath(e.combinePaths(t,p));if(!s||!s.test(f)){var m=xe(f,r);if(m){var _=m.key,g=m.flags,y=c[_];(void 0===y||y<g)&&(c[_]=g,1===g&&l.push(_))}}}for(var _ in c)if(e.hasProperty(c,_))for(var h=0,v=l;h<v.length;h++){var b=v[h];_!==b&&e.containsPath(b,_,t,!r)&&delete c[_]}}return c}function xe(n,t){var r=ye.exec(n);if(r){var a=n.indexOf("?"),i=n.indexOf("*"),o=n.lastIndexOf(e.directorySeparator);return{key:t?r[0]:e.toFileNameLowerCase(r[0]),flags:-1!==a&&a<o||-1!==i&&i<o?1:0}}if(e.isImplicitGlob(n))return{key:t?n:e.toFileNameLowerCase(n),flags:1}}function Le(n,t){switch(t.type){case"object":case"string":return"";case"number":return"number"===typeof n?n:"";case"boolean":return"boolean"===typeof n?n:"";case"list":var r=t.element;return e.isArray(n)?n.map((function(e){return Le(e,r)})):"";default:return e.forEachEntry(t.type,(function(e,t){if(e===n)return t}))}}function De(n){switch(n.type){case"number":return 1;case"boolean":return!0;case"string":return n.isFilePath?"./":"";case"list":return[];case"object":return{};default:var t=n.type.keys().next();return t.done?e.Debug.fail("Expected 'option.type' to have entries."):t.value}}e.getFileNamesFromConfigSpecs=he,e.isExcludedFile=function(n,t,r,a,i){var o=t.validatedFilesSpec,s=t.validatedIncludeSpecs,c=t.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;r=e.normalizePath(r);var l=e.createGetCanonicalFileName(a);if(o)for(var u=0,d=o;u<d.length;u++){var p=d[u];if(l(e.getNormalizedAbsolutePath(p,r))===n)return!1}return be(n,c,a,i,r)},e.matchesExclude=function(n,t,r,a){return be(n,e.filter(t,(function(e){return!ve(e)})),r,a)},e.convertCompilerOptionsForTelemetry=function(e){var n={};for(var t in e)if(e.hasOwnProperty(t)){var r=h(t);void 0!==r&&(n[t]=Le(e[t],r))}return n}}(ha||(ha={})),function(e){function n(n){n.trace(e.formatMessage.apply(void 0,arguments))}function t(e,n){return!!e.traceResolution&&void 0!==n.trace}function r(n,t){var r;if(t&&n){var a=n.packageJsonContent;"string"===typeof a.name&&"string"===typeof a.version&&(r={name:a.name,subModuleName:t.path.slice(n.packageDirectory.length+e.directorySeparator.length),version:a.version})}return t&&{path:t.path,extension:t.ext,packageId:r}}function a(e){return r(void 0,e)}function i(n){if(n)return e.Debug.assert(void 0===n.packageId),{path:n.path,ext:n.extension}}var o,s,c;function l(n){if(n)return e.Debug.assert(e.extensionIsTS(n.extension)),{fileName:n.path,packageId:n.packageId}}function u(e,n,t,r){var a;return r?((a=r.failedLookupLocations).push.apply(a,t),r):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId},failedLookupLocations:t}}function d(t,r,a,i){if(e.hasProperty(t,r)){var o=t[r];if(typeof o===a&&null!==o)return o;i.traceEnabled&&n(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,a,null===o?"null":typeof o)}else i.traceEnabled&&n(i.host,e.Diagnostics.package_json_does_not_have_a_0_field,r)}function p(t,r,a,i){var o=d(t,r,"string",i);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(a,o));return i.traceEnabled&&n(i.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,o,s),s}i.traceEnabled&&n(i.host,e.Diagnostics.package_json_had_a_falsy_0_field,r)}}function f(e,n,t){return p(e,"typings",n,t)||p(e,"types",n,t)}function m(e,n,t){return p(e,"main",n,t)}function _(t,r){var a=function(t,r){var a=d(t,"typesVersions","object",r);if(void 0!==a)return r.traceEnabled&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),a}(t,r);if(void 0!==a){if(r.traceEnabled)for(var i in a)e.hasProperty(a,i)&&!e.VersionRange.tryParse(i)&&n(r.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,i);var o=g(a);if(o){var s=o.version,c=o.paths;if("object"===typeof c)return o;r.traceEnabled&&n(r.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(s,"']"),"object",typeof c)}else r.traceEnabled&&n(r.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function g(n){for(var t in c||(c=new e.Version(e.version)),n)if(e.hasProperty(n,t)){var r=e.VersionRange.tryParse(t);if(void 0!==r&&r.test(c))return{version:t,paths:n[t]}}}function y(n,t){return n.typeRoots?n.typeRoots:(n.configFilePath?r=e.getDirectoryPath(n.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?function(n,t){if(!t.directoryExists)return[e.combinePaths(n,b)];var r;return e.forEachAncestorDirectory(e.normalizePath(n),(function(n){var a=e.combinePaths(n,b);t.directoryExists(a)&&(r||(r=[])).push(a)})),r}(r,t):void 0);var r}e.trace=n,e.isTraceEnabled=t,(s=o||(o={}))[s.TypeScript=0]="TypeScript",s[s.JavaScript=1]="JavaScript",s[s.Json=2]="Json",s[s.TSConfig=3]="TSConfig",s[s.DtsOnly=4]="DtsOnly",e.getPackageJsonTypesVersionsPaths=g,e.getEffectiveTypeRoots=y;var h,v,b=e.combinePaths("node_modules","@types");function E(n,t,r){var a="function"===typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return 0===e.comparePaths(n,t,!a)}function T(n){var t=new e.Map,r=new e.Map;return{getOwnMap:function(){return t},redirectsMap:r,getOrCreateMapOfCacheRedirects:function(a){if(!a)return t;var i=a.sourceFile.path,o=r.get(i);o||(o=!n||e.optionsHaveModuleResolutionChanges(n,a.commandLine.options)?new e.Map:t,r.set(i,o));return o},clear:function(){t.clear(),r.clear()},setOwnOptions:function(e){n=e},setOwnMap:function(e){t=e}}}function S(n,t){var r;return{getPackageJsonInfo:function(a){return null===r||void 0===r?void 0:r.get(e.toPath(a,n,t))},setPackageJsonInfo:function(a,i){(r||(r=new e.Map)).set(e.toPath(a,n,t),i)},clear:function(){r=void 0},entries:function(){var n=null===r||void 0===r?void 0:r.entries();return n?e.arrayFrom(n):[]}}}function x(e,n,t,r){var a=e.getOrCreateMapOfCacheRedirects(n),i=a.get(t);return i||(i=r(),a.set(t,i)),i}function L(n,t,r){if(n.configFile){if(0===t.redirectsMap.size)e.Debug.assert(!r||0===r.redirectsMap.size),e.Debug.assert(0===t.getOwnMap().size),e.Debug.assert(!r||0===r.getOwnMap().size),t.redirectsMap.set(n.configFile.path,t.getOwnMap()),null===r||void 0===r||r.redirectsMap.set(n.configFile.path,r.getOwnMap());else{e.Debug.assert(!r||r.redirectsMap.size>0);var a={sourceFile:n.configFile,commandLine:{options:n}};t.setOwnMap(t.getOrCreateMapOfCacheRedirects(a)),null===r||void 0===r||r.setOwnMap(r.getOrCreateMapOfCacheRedirects(a))}t.setOwnOptions(n),null===r||void 0===r||r.setOwnOptions(n)}}function D(n,t,r){return{getOrCreateCacheForDirectory:function(a,i){var o=e.toPath(a,n,t);return x(r,i,o,(function(){return C()}))},clear:function(){r.clear()},update:function(e){L(e,r)}}}function C(){var n=new e.Map,t=new e.Map,r={get:function(e,t){return n.get(a(e,t))},set:function(e,t,i){return n.set(a(e,t),i),r},delete:function(e,t){return n.delete(a(e,t)),r},has:function(e,t){return n.has(a(e,t))},forEach:function(e){return n.forEach((function(n,r){var a=t.get(r),i=a[0],o=a[1];return e(n,i,o)}))},size:function(){return n.size}};return r;function a(e,n){var r=void 0===n?e:"".concat(n,"|").concat(e);return t.set(r,[e,n]),r}}function A(t,r,a,i,o){var s=function(t,r,a,i){var o,s=i.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(r)){return i.traceEnabled&&(c&&n(i.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,r),n(i.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)),se(t,r,e.getPathsBasePath(i.compilerOptions,i.host),l,(null===u||void 0===u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,a,!1,i)}}(t,r,i,o);return s?s.value:e.isExternalModuleNameRelative(r)?function(t,r,a,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&n(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var s,c,l=e.normalizePath(e.combinePaths(a,r)),u=0,d=o.compilerOptions.rootDirs;u<d.length;u++){var p=d[u],f=e.normalizePath(p);e.endsWith(f,e.directorySeparator)||(f+=e.directorySeparator);var m=e.startsWith(l,f)&&(void 0===c||c.length<f.length);o.traceEnabled&&n(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,f,l,m),m&&(c=f,s=p)}if(c){o.traceEnabled&&n(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var _=l.substr(c.length);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,_,c,l);var g=i(t,l,!e.directoryProbablyExists(a,o.host),o);if(g)return g;o.traceEnabled&&n(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=o.compilerOptions.rootDirs;y<h.length;y++){if((p=h[y])!==s){var v=e.combinePaths(e.normalizePath(p),_);o.traceEnabled&&n(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,_,p,v);var b=e.getDirectoryPath(v),E=i(t,v,!e.directoryProbablyExists(b,o.host),o);if(E)return E}}o.traceEnabled&&n(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(t,r,a,i,o):function(t,r,a,i){var o=i.compilerOptions.baseUrl;if(!o)return;i.traceEnabled&&n(i.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,r);var s=e.normalizePath(e.combinePaths(o,r));i.traceEnabled&&n(i.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,o,s);return a(t,s,!e.directoryProbablyExists(e.getDirectoryPath(s),i.host),i)}(t,r,i,o)}function I(n,t,r,a,i,o,s,c){var l=e.getDirectoryPath(r);return P(n|(c===e.ModuleKind.ESNext?h.EsmMode:0),t,l,a,i,o,a.resolveJsonModule?R:N,s)}e.resolveTypeReferenceDirective=function(r,a,i,s,c,u){var d=t(i,s);c&&(i=c.commandLine.options);var p=a?e.getDirectoryPath(a):void 0,f=p?u&&u.getOrCreateCacheForDirectory(p,c):void 0,m=f&&f.get(r,void 0);if(m)return d&&(n(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,r,a),c&&n(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName),n(s,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,r,p),A(m)),m;var _=y(i,s);d&&(void 0===a?void 0===_?n(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r):n(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,_):void 0===_?n(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,a):n(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,a,_),c&&n(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var g,v=[],b=e.getEmitModuleResolutionKind(i)===e.ModuleResolutionKind.Node12?h.Node12Default:e.getEmitModuleResolutionKind(i)===e.ModuleResolutionKind.NodeNext?h.NodeNextDefault:h.None,T={compilerOptions:i,host:s,traceEnabled:d,failedLookupLocations:v,packageJsonInfoCache:u,features:b,conditions:["node","require","types"]},S=function(){if(_&&_.length)return d&&n(s,e.Diagnostics.Resolving_with_primary_search_path_0,_.join(", ")),e.firstDefined(_,(function(t){var a=e.combinePaths(t,r),i=e.getDirectoryPath(a),c=e.directoryProbablyExists(i,s);return!c&&d&&n(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),l(J(o.DtsOnly,a,!c,T))}));d&&n(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(S||(S=function(){var t=a&&e.getDirectoryPath(a);if(void 0!==t){var i;if(d&&n(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,t),e.isExternalModuleNameRelative(r)){var c=e.normalizePathAndParts(e.combinePaths(t,r)).path;i=G(o.DtsOnly,c,!1,T,!0)}else{var u=re(o.DtsOnly,r,t,T,void 0,void 0);i=u&&u.value}return l(i)}d&&n(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),S){var L=S.fileName,D=S.packageId,C=i.preserveSymlinks?L:F(L,s,d);g={primary:x,resolvedFileName:C,originalPath:E(L,C,s)?void 0:L,packageId:D,isExternalLibraryImport:B(L)}}return m={resolvedTypeReferenceDirective:g,failedLookupLocations:v},null===f||void 0===f||f.set(r,void 0,m),d&&A(m),m;function A(t){var a;(null===(a=t.resolvedTypeReferenceDirective)||void 0===a?void 0:a.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?n(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,r,t.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):n(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):n(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r)}},e.getAutomaticTypeDirectiveNames=function(n,t){if(n.types)return n.types;var r=[];if(t.directoryExists&&t.getDirectories){var a=y(n,t);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(t.directoryExists(s))for(var c=0,l=t.getDirectories(s);c<l.length;c++){var u=l[c],d=e.normalizePath(u),p=e.combinePaths(s,d,"package.json");if(!(t.fileExists(p)&&null===e.readJson(p,t).typings)){var f=e.getBaseFileName(d);46!==f.charCodeAt(0)&&r.push(f)}}}}return r},e.createCacheWithRedirects=T,e.createModeAwareCache=C,e.zipToModeAwareCache=function(n,t,r){e.Debug.assert(t.length===r.length);for(var a=C(),i=0;i<t.length;++i)a.set(t[i],e.getModeForResolutionAtIndex(n,i),r[i]);return a},e.createModuleResolutionCache=function(n,t,r,a,i){var o=D(n,t,a||(a=T(r)));i||(i=T(r));var s=S(n,t);return fa(fa(fa({},s),o),{getOrCreateCacheForModuleName:function(n,t,r){return e.Debug.assert(!e.isExternalModuleNameRelative(n)),x(i,r,void 0===t?n:"".concat(t,"|").concat(n),c)},clear:function(){o.clear(),i.clear(),s.clear()},update:function(e){L(e,a,i)},getPackageJsonInfoCache:function(){return s}});function c(){var r=new e.Map;return{get:function(a){return r.get(e.toPath(a,n,t))},set:function(a,i){var o=e.toPath(a,n,t);if(r.has(o))return;r.set(o,i);var s=i.resolvedModule&&(i.resolvedModule.originalPath||i.resolvedModule.resolvedFileName),c=s&&function(r,a){var i=e.toPath(e.getDirectoryPath(a),n,t),o=0,s=Math.min(r.length,i.length);for(;o<s&&r.charCodeAt(o)===i.charCodeAt(o);)o++;if(o===r.length&&(i.length===o||i[o]===e.directorySeparator))return r;var c=e.getRootLength(r);if(o<c)return;var l=r.lastIndexOf(e.directorySeparator,o-1);if(-1===l)return;return r.substr(0,Math.max(l,c))}(o,s),l=o;for(;l!==c;){var u=e.getDirectoryPath(l);if(u===l||r.has(u))break;r.set(u,i),l=u}}}}},e.createTypeReferenceDirectiveResolutionCache=function(e,n,t,r,a){var i=D(e,n,a||(a=T(t)));return r||(r=S(e,n)),fa(fa(fa({},r),i),{clear:function(){i.clear(),r.clear()}})},e.resolveModuleNameFromCache=function(n,t,r,a){var i=e.getDirectoryPath(t),o=r&&r.getOrCreateCacheForDirectory(i);if(o)return o.get(n,a)},e.resolveModuleName=function(r,a,i,o,s,c,l){var u=t(i,o);c&&(i=c.commandLine.options),u&&(n(o,e.Diagnostics.Resolving_module_0_from_1,r,a),c&&n(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var d=e.getDirectoryPath(a),p=s&&s.getOrCreateCacheForDirectory(d,c),f=p&&p.get(r,l);if(f)u&&n(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,d);else{var m=i.moduleResolution;if(void 0===m){switch(e.getEmitModuleKind(i)){case e.ModuleKind.CommonJS:m=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:m=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:m=e.ModuleResolutionKind.NodeNext;break;default:m=e.ModuleResolutionKind.Classic}u&&n(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[m])}else u&&n(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[m]);switch(e.perfLogger.logStartResolveModule(r),m){case e.ModuleResolutionKind.Node12:f=function(e,n,t,r,a,i,o){return I(h.Node12Default,e,n,t,r,a,i,o)}(r,a,i,o,s,c,l);break;case e.ModuleResolutionKind.NodeNext:f=function(e,n,t,r,a,i,o){return I(h.NodeNextDefault,e,n,t,r,a,i,o)}(r,a,i,o,s,c,l);break;case e.ModuleResolutionKind.NodeJs:f=M(r,a,i,o,s,c);break;case e.ModuleResolutionKind.Classic:f=pe(r,a,i,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(m))}f&&f.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(r,'" resolved to "').concat(f.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(f&&f.resolvedModule?""+f.resolvedModule.resolvedFileName:"null"),p&&(p.set(r,l,f),e.isExternalModuleNameRelative(r)||s.getOrCreateCacheForModuleName(r,l,c).set(d,f))}return u&&(f.resolvedModule?f.resolvedModule.packageId?n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,r,f.resolvedModule.resolvedFileName,e.packageIdToString(f.resolvedModule.packageId)):n(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,r,f.resolvedModule.resolvedFileName):n(o,e.Diagnostics.Module_name_0_was_not_resolved,r)),f},e.resolveJSModule=function(e,n,t){var r=w(e,n,t),a=r.resolvedModule,i=r.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '".concat(e,"' starting at '").concat(n,"'. Looked in: ").concat(i.join(", ")));return a.resolvedFileName},e.tryResolveJSModule=function(e,n,t){return w(e,n,t).resolvedModule},(v=h||(h={}))[v.None=0]="None",v[v.Imports=2]="Imports",v[v.SelfName=4]="SelfName",v[v.Exports=8]="Exports",v[v.ExportsPatternTrailers=16]="ExportsPatternTrailers",v[v.AllFeatures=30]="AllFeatures",v[v.Node12Default=14]="Node12Default",v[v.NodeNextDefault=30]="NodeNextDefault",v[v.EsmMode=32]="EsmMode";var k=[o.JavaScript],N=[o.TypeScript,o.JavaScript],R=pa(pa([],N,!0),[o.Json],!1),O=[o.TSConfig];function w(n,t,r){return P(h.None,n,t,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,k,void 0)}function M(n,t,r,a,i,o,s){return P(h.None,n,e.getDirectoryPath(t),r,a,i,s?O:r.resolveJsonModule?R:N,o)}function P(r,a,i,s,c,l,d,p){var f,m,_=t(s,c),g=[],y={compilerOptions:s,host:c,traceEnabled:_,failedLookupLocations:g,packageJsonInfoCache:l,features:r,conditions:r&h.EsmMode?["node","import","types"]:["node","require","types"]},v=e.forEach(d,(function(t){return function(t){var u=A(t,a,i,(function(e,n,t,r){return G(e,n,t,r,!0)}),y);if(u)return fe({resolved:u,isExternalLibraryImport:B(u.path)});if(e.isExternalModuleNameRelative(a)){var d=e.normalizePathAndParts(e.combinePaths(i,a)),f=d.path,m=d.parts,g=G(t,f,!1,y,!0);return g&&fe({resolved:g,isExternalLibraryImport:e.contains(m,"node_modules")})}var v;if(r&h.Imports&&e.startsWith(a,"#")&&(v=function(t,r,a,i,o,s){var c,l;if("#"===r||e.startsWith(r,"#/"))return i.traceEnabled&&n(i.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,r),fe(void 0);var u="function"===typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames():i.host.useCaseSensitiveFileNames,d=e.toPath(e.combinePaths(a,"dummy"),null===(l=(c=i.host).getCurrentDirectory)||void 0===l?void 0:l.call(c),e.createGetCanonicalFileName(void 0===u||u)),p=q(d,i.packageJsonInfoCache,i.host,i.compilerOptions);if(!p)return i.traceEnabled&&n(i.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),fe(void 0);if(!p.packageJsonContent.imports)return i.traceEnabled&&n(i.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,p.packageDirectory),fe(void 0);var f=ee(t,i,o,s,r,p.packageJsonContent.imports,p,!0);if(f)return f;i.traceEnabled&&n(i.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,p.packageDirectory);return fe(void 0)}(t,a,i,y,l,p)),!v&&r&h.SelfName&&(v=function(n,t,r,a,i,o){var s,c,l="function"===typeof a.host.useCaseSensitiveFileNames?a.host.useCaseSensitiveFileNames():a.host.useCaseSensitiveFileNames,u=q(e.toPath(e.combinePaths(r,"dummy"),null===(c=(s=a.host).getCurrentDirectory)||void 0===c?void 0:c.call(s),e.createGetCanonicalFileName(void 0===l||l)),a.packageJsonInfoCache,a.host,a.compilerOptions);if(!u||!u.packageJsonContent.exports)return;if("string"!==typeof u.packageJsonContent.name)return;var d=e.getPathComponents(t),p=e.getPathComponents(u.packageJsonContent.name);if(!e.every(p,(function(e,n){return d[n]===e})))return;var f=d.slice(p.length);return $(u,n,e.length(f)?".".concat(e.directorySeparator).concat(f.join(e.directorySeparator)):".",a,i,o)}(t,a,i,y,l,p)),v||(_&&n(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,a,o[t]),v=re(t,a,i,y,l,p)),!v)return;var b=v.value;if(!s.preserveSymlinks&&b&&!b.originalPath){var T=F(b.path,c,_),S=E(T,b.path,c)?void 0:b.path;b=fa(fa({},b),{path:T,originalPath:S})}return{value:b&&{resolved:b,isExternalLibraryImport:!0}}}(t)}));return u(null===(f=null===v||void 0===v?void 0:v.value)||void 0===f?void 0:f.resolved,null===(m=null===v||void 0===v?void 0:v.value)||void 0===m?void 0:m.isExternalLibraryImport,g,y.resultFromCache)}function F(t,r,a){if(!r.realpath)return t;var i=e.normalizePath(r.realpath(t));return a&&n(r,e.Diagnostics.Resolving_real_path_for_0_result_1,t,i),e.Debug.assert(r.fileExists(i),"".concat(t," linked to nonexistent file ").concat(i)),i}function G(t,a,i,s,c){if(s.traceEnabled&&n(s.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,a,o[t]),!e.hasTrailingDirectorySeparator(a)){if(!i){var l=e.getDirectoryPath(a);e.directoryProbablyExists(l,s.host)||(s.traceEnabled&&n(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),i=!0)}var u=K(t,a,i,s);if(u){var d=c?U(u.path):void 0;return r(d?X(d,!1,s):void 0,u)}}i||(e.directoryProbablyExists(a,s.host)||(s.traceEnabled&&n(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),i=!0));return J(t,a,i,s,c)}function B(n){return e.stringContains(n,e.nodeModulesPathPart)}function U(n){var t=e.normalizePath(n),r=t.lastIndexOf(e.nodeModulesPathPart);if(-1!==r){var a=r+e.nodeModulesPathPart.length,i=V(t,a);return 64===t.charCodeAt(a)&&(i=V(t,i)),t.slice(0,i)}}function V(n,t){var r=n.indexOf(e.directorySeparator,t+1);return-1===r?t:r}function j(e,n,t,r){return a(K(e,n,t,r))}function K(n,t,r,a){if(n===o.Json||n===o.TSConfig){var i=e.tryRemoveExtension(t,".json"),s=i?t.substring(i.length):"";return void 0===i&&n===o.Json?void 0:W(i||t,n,s,r,a)}if(!(a.features&h.EsmMode)){var c=W(t,n,"",r,a);if(c)return c}return H(n,t,r,a)}function H(t,r,a,i){if(e.hasJSFileExtension(r)||e.fileExtensionIs(r,".json")&&i.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(r),s=r.substring(o.length);return i.traceEnabled&&n(i.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,s),W(o,t,s,a,i)}}function W(n,t,r,a,i){if(!a){var s=e.getDirectoryPath(n);s&&(a=!e.directoryProbablyExists(s,i.host))}switch(t){case o.DtsOnly:switch(r){case".mjs":case".mts":case".d.mts":return c(".d.mts");case".cjs":case".cts":case".d.cts":return c(".d.cts");case".json":return n+=".json",c(".d.ts");default:return c(".d.ts")}case o.TypeScript:switch(r){case".mjs":case".mts":case".d.mts":return c(".mts")||c(".d.mts");case".cjs":case".cts":case".d.cts":return c(".cts")||c(".d.cts");case".json":return n+=".json",c(".d.ts");default:return c(".ts")||c(".tsx")||c(".d.ts")}case o.JavaScript:switch(r){case".mjs":case".mts":case".d.mts":return c(".mjs");case".cjs":case".cts":case".d.cts":return c(".cjs");case".json":return c(".json");default:return c(".js")||c(".jsx")}case o.TSConfig:case o.Json:return c(".json")}function c(e){var t=z(n+e,a,i);return void 0===t?void 0:{path:t,ext:e}}}function z(t,r,a){if(!r){if(a.host.fileExists(t))return a.traceEnabled&&n(a.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,t),t;a.traceEnabled&&n(a.host,e.Diagnostics.File_0_does_not_exist,t)}a.failedLookupLocations.push(t)}function J(e,n,t,a,i){void 0===i&&(i=!0);var o=i?X(n,t,a):void 0;return r(o,Y(e,n,t,a,o&&o.packageJsonContent,o&&o.versionPaths))}function q(n,r,a,i){var o={host:a,compilerOptions:i,traceEnabled:t(i,a),failedLookupLocations:[],packageJsonInfoCache:r,features:0,conditions:[]},s=e.getPathComponents(n);for(s.pop();s.length>0;){var c=X(e.getPathFromPathComponents(s),!1,o);if(c)return c;s.pop()}}function X(t,r,a){var i,o,s,c=a.host,l=a.traceEnabled,u=e.combinePaths(t,"package.json");if(r)a.failedLookupLocations.push(u);else{var d=null===(i=a.packageJsonInfoCache)||void 0===i?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!==typeof d?(l&&n(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),d):(d&&l&&n(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void a.failedLookupLocations.push(u));var p=e.directoryProbablyExists(t,c);if(p&&c.fileExists(u)){var f=e.readJson(u,c);l&&n(c,e.Diagnostics.Found_package_json_at_0,u);var m={packageDirectory:t,packageJsonContent:f,versionPaths:_(f,a)};return null===(o=a.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,m),m}p&&l&&n(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=a.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,p),a.failedLookupLocations.push(u)}}function Y(t,r,s,c,l,u){var d;if(l)switch(t){case o.JavaScript:case o.Json:d=m(l,r,c);break;case o.TypeScript:d=f(l,r,c)||m(l,r,c);break;case o.DtsOnly:d=f(l,r,c);break;case o.TSConfig:d=function(e,n,t){return p(e,"tsconfig",n,t)}(l,r,c);break;default:return e.Debug.assertNever(t)}var _=function(t,r,i,s){var c=z(r,i,s);if(c){var l=function(n,t){var r=e.tryGetExtensionFromPath(t);return void 0!==r&&function(e,n){switch(e){case o.JavaScript:return".js"===n||".jsx"===n;case o.TSConfig:case o.Json:return".json"===n;case o.TypeScript:return".ts"===n||".tsx"===n||".d.ts"===n;case o.DtsOnly:return".d.ts"===n}}(n,r)?{path:t,ext:r}:void 0}(t,c);if(l)return a(l);s.traceEnabled&&n(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}return G(t===o.DtsOnly?o.TypeScript:t,r,i,s,!1)},g=d?!e.directoryProbablyExists(e.getDirectoryPath(d),c.host):void 0,y=s||!e.directoryProbablyExists(r,c.host),v=e.combinePaths(r,t===o.TSConfig?"tsconfig":"index");if(u&&(!d||e.containsPath(r,d))){var b=e.getRelativePathFromDirectory(r,d||v,!1);c.traceEnabled&&n(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var E=se(t,b,r,u.paths,void 0,_,g||y,c);if(E)return i(E.value)}var T=d&&i(_(t,d,g,c));return T||(c.features&h.EsmMode?void 0:K(t,v,y,c))}function Q(n){var t=n.indexOf(e.directorySeparator);return"@"===n[0]&&(t=n.indexOf(e.directorySeparator,t+1)),-1===t?{packageName:n,rest:""}:{packageName:n.slice(0,t),rest:n.slice(t+1)}}function Z(n){return e.every(e.getOwnKeys(n),(function(n){return e.startsWith(n,".")}))}function $(t,r,a,i,o,s){if(t.packageJsonContent.exports){if("."===a){var c=void 0;if("string"===typeof t.packageJsonContent.exports||Array.isArray(t.packageJsonContent.exports)||"object"===typeof t.packageJsonContent.exports&&(u=t.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(function(n){return e.startsWith(n,".")})))?c=t.packageJsonContent.exports:e.hasProperty(t.packageJsonContent.exports,".")&&(c=t.packageJsonContent.exports["."]),c)return ne(r,i,o,s,a,t,!1)(c,"",!1)}else if(Z(t.packageJsonContent.exports)){if("object"!==typeof t.packageJsonContent.exports)return i.traceEnabled&&n(i.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),fe(void 0);var l=ee(r,i,o,s,a,t.packageJsonContent.exports,t,!1);if(l)return l}var u;return i.traceEnabled&&n(i.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),fe(void 0)}}function ee(n,t,r,a,i,o,s,c){var l=ne(n,t,r,a,i,s,c);if(!e.endsWith(i,e.directorySeparator)&&-1===i.indexOf("*")&&e.hasProperty(o,i))return l(f=o[i],"",!1);for(var u=0,d=e.sort(e.filter(e.getOwnKeys(o),(function(n){return-1!==n.indexOf("*")||e.endsWith(n,"/")})),(function(e,n){return e.length-n.length}));u<d.length;u++){var p=d[u];if(t.features&h.ExportsPatternTrailers&&_(p,i)){var f=o[p],m=p.indexOf("*");return l(f,i.substring(p.substring(0,m).length,i.length-(p.length-1-m)),!0)}if(e.endsWith(p,"*")&&e.startsWith(i,p.substring(0,p.length-1)))return l(f=o[p],i.substring(p.length-1),!0);if(e.startsWith(i,p))return l(f=o[p],i.substring(p.length),!1)}function _(n,t){if(e.endsWith(n,"*"))return!1;var r=n.indexOf("*");return-1!==r&&(e.startsWith(t,n.substring(0,r))&&e.endsWith(t,n.substring(r+1)))}}function ne(t,a,i,s,c,l,u){return function d(p,f,m){var _,g;if("string"===typeof p){if(!m&&f.length>0&&!e.endsWith(p,"/"))return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),fe(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var y=m?p.replace(/\*/g,f):p+f;return fe((D=P(a.features,y,l.packageDirectory+"/",a.compilerOptions,a.host,i,[t],s)).resolvedModule?{path:D.resolvedModule.resolvedFileName,extension:D.resolvedModule.extension,packageId:D.resolvedModule.packageId,originalPath:D.resolvedModule.originalPath}:void 0)}return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),fe(void 0)}var h=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(h.indexOf("..")>=0||h.indexOf(".")>=0||h.indexOf("node_modules")>=0)return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),fe(void 0);var v=e.combinePaths(l.packageDirectory,p),b=e.getPathComponents(f);if(b.indexOf("..")>=0||b.indexOf(".")>=0||b.indexOf("node_modules")>=0)return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),fe(void 0);var E=e.getNormalizedAbsolutePath(m?v.replace(/\*/g,f):v+f,null===(g=(_=a.host).getCurrentDirectory)||void 0===g?void 0:g.call(_));return fe(r(l,function(n,t,r,a){return n!==o.TypeScript&&n!==o.DtsOnly||!e.fileExtensionIsOneOf(t,[".d.ts",".d.cts",".d.mts"])?H(n,t,r,a):void 0!==z(t,r,a)?{path:t,ext:e.forEach([".d.ts",".d.cts",".d.mts"],(function(n){return e.fileExtensionIs(t,n)?n:void 0}))}:void 0}(t,E,!1,a)))}if("object"===typeof p&&null!==p){if(!Array.isArray(p)){for(var T=0,S=e.getOwnKeys(p);T<S.length;T++){var x=S[T];if("default"===x||a.conditions.indexOf(x)>=0||te(a.conditions,x)){var L=p[x],D=d(L,f,m);if(D)return D}}return}if(!e.length(p))return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),fe(void 0);for(var C=0,A=p;C<A.length;C++){var I=A[C];D=d(I,f,m);if(D)return D}}else if(null===p)return a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,l.packageDirectory,c),fe(void 0);a.traceEnabled&&n(a.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c);return fe(void 0)}}function te(n,t){if(-1===n.indexOf("types"))return!1;if(!e.startsWith(t,"types@"))return!1;var r=e.VersionRange.tryParse(t.substring("types@".length));return!!r&&r.test(e.version)}function re(e,n,t,r,a,i){return ae(e,n,t,r,!1,a,i)}function ae(n,t,r,a,i,o,s){var c=o&&o.getOrCreateCacheForModuleName(t,0===a.features?void 0:a.features&h.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,s);return e.forEachAncestorDirectory(e.normalizeSlashes(r),(function(r){if("node_modules"!==e.getBaseFileName(r)){var l=de(c,t,r,a);return l||fe(ie(n,t,r,a,i,o,s))}}))}function ie(t,r,a,i,s,c,l){var u=e.combinePaths(a,"node_modules"),d=e.directoryProbablyExists(u,i.host);!d&&i.traceEnabled&&n(i.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var p=s?void 0:oe(t,r,u,d,i,c,l);if(p)return p;if(t===o.TypeScript||t===o.DtsOnly){var f=e.combinePaths(u,"@types"),m=d;return d&&!e.directoryProbablyExists(f,i.host)&&(i.traceEnabled&&n(i.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),m=!1),oe(o.DtsOnly,function(t,r){var a=le(t);r.traceEnabled&&a!==t&&n(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,a);return a}(r,i),f,m,i,c,l)}}function oe(t,i,o,s,c,l,u){var d=e.normalizePath(e.combinePaths(o,i)),p=X(d,!s,c);if(!(c.features&h.Exports)&&p){var f=K(t,d,!s,c);if(f)return a(f);var m=Y(t,d,!s,c,p.packageJsonContent,p.versionPaths);return r(p,m)}var _=Q(i),g=_.packageName,y=_.rest,v=function(n,t,a,i){var o;if(p&&p.packageJsonContent.exports&&i.features&h.Exports)return null===(o=$(p,n,e.combinePaths(".",y),i,l,u))||void 0===o?void 0:o.value;var s=K(n,t,a,i)||Y(n,t,a,i,p&&p.packageJsonContent,p&&p.versionPaths);return r(p,s)};if(""!==y){var b=e.combinePaths(o,g);if((p=X(b,!s,c))&&p.versionPaths){c.traceEnabled&&n(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.versionPaths.version,e.version,y);var E=s&&e.directoryProbablyExists(b,c.host),T=se(t,y,b,p.versionPaths.paths,void 0,v,!E,c);if(T)return T.value}}return v(t,d,!s,c)}function se(t,r,i,o,s,c,l,u){s||(s=e.tryParsePatterns(o));var d=e.matchPatternOrExact(s,r);if(d){var p=e.isString(d)?void 0:e.matchedText(d,r),f=e.isString(d)?d:e.patternText(d);return u.traceEnabled&&n(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,f),{value:e.forEach(o[f],(function(r){var o=p?r.replace("*",p):r,s=e.normalizePath(e.combinePaths(i,o));u.traceEnabled&&n(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,o);var d=e.tryGetExtensionFromPath(r);if(void 0!==d){var f=z(s,l,u);if(void 0!==f)return a({path:f,ext:d})}return c(t,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),u.host),u)}))}}}e.nodeModuleNameResolver=M,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=B,e.parseNodeModuleFromPath=U,e.getPackageScopeForPath=q,e.getPackageJsonInfo=X,e.parsePackageName=Q,e.allKeysStartWithDot=Z,e.isApplicableVersionedTypesKey=te;var ce="__";function le(n){if(e.startsWith(n,"@")){var t=n.replace(e.directorySeparator,ce);if(t!==n)return t.slice(1)}return n}function ue(n){return e.stringContains(n,ce)?"@"+n.replace(ce,e.directorySeparator):n}function de(t,r,a,i){var o=t&&t.get(a);if(o)return i.traceEnabled&&n(i.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,a),i.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function pe(n,r,a,i,s,c){var l=[],d={compilerOptions:a,host:i,traceEnabled:t(a,i),failedLookupLocations:l,packageJsonInfoCache:s,features:h.None,conditions:[]},p=e.getDirectoryPath(r),f=m(o.TypeScript)||m(o.JavaScript);return u(f&&f.value,!1,l,d.resultFromCache);function m(t){var r=A(t,n,p,j,d);if(r)return{value:r};if(e.isExternalModuleNameRelative(n)){var a=e.normalizePath(e.combinePaths(p,n));return fe(j(t,a,!1,d))}var i=s&&s.getOrCreateCacheForModuleName(n,void 0,c),l=e.forEachAncestorDirectory(p,(function(r){var a=de(i,n,r,d);if(a)return a;var o=e.normalizePath(e.combinePaths(r,n));return fe(j(t,o,!1,d))}));return l||(t===o.TypeScript?function(e,n,t){return ae(o.DtsOnly,e,n,t,!0,void 0,void 0)}(n,p,d):void 0)}}function fe(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/".concat(le(e))},e.mangleScopedPackageName=le,e.getPackageNameFromTypesPackageName=function(n){var t=e.removePrefix(n,"@types/");return t!==n?ue(t):n},e.unmangleScopedPackageName=ue,e.classicNameResolver=pe,e.loadModuleFromGlobalCache=function(r,a,i,s,c,l){var d=t(i,s);d&&n(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,a,r,c);var p=[],f={compilerOptions:i,host:s,traceEnabled:d,failedLookupLocations:p,packageJsonInfoCache:l,features:h.None,conditions:[]};return u(ie(o.DtsOnly,r,c,f,!1,void 0,void 0),!0,p,f.resultFromCache)}}(ha||(ha={})),function(e){var n,t,r;function a(n,t){return n.body&&!n.body.parent&&(e.setParent(n.body,n),e.setParentRecursive(n.body,!1)),n.body?i(n.body,t):1}function i(n,t){void 0===t&&(t=new e.Map);var r=e.getNodeId(n);if(t.has(r))return t.get(r)||0;t.set(r,void 0);var s=function(n,t){switch(n.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(n))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(n,1))return 0;break;case 271:var r=n;if(!r.moduleSpecifier&&r.exportClause&&272===r.exportClause.kind){for(var s=0,c=0,l=r.exportClause.elements;c<l.length;c++){var u=o(l[c],t);if(u>s&&(s=u),1===s)return s}return s}break;case 261:var d=0;return e.forEachChild(n,(function(n){var r=i(n,t);switch(r){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(r)}})),d;case 260:return a(n,t);case 79:if(n.isInJSDocNamespace)return 0}return 1}(n,t);return t.set(r,s),s}function o(n,t){for(var r=n.propertyName||n.name,a=n.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,r)){l.parent||(e.setParent(l,a),e.setParentRecursive(l,!1));var u=i(l,t);if((void 0===o||u>o)&&(o=u),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function s(n){return e.Debug.attachFlowNodeDebugInfo(n),n}(n=e.ModuleInstanceState||(e.ModuleInstanceState={}))[n.NonInstantiated=0]="NonInstantiated",n[n.Instantiated=1]="Instantiated",n[n.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=a,(r=t||(t={}))[r.None=0]="None",r[r.IsContainer=1]="IsContainer",r[r.IsBlockScopedContainer=2]="IsBlockScopedContainer",r[r.IsControlFlowContainer=4]="IsControlFlowContainer",r[r.IsFunctionLike=8]="IsFunctionLike",r[r.IsFunctionExpression=16]="IsFunctionExpression",r[r.HasLocals=32]="HasLocals",r[r.IsInterface=64]="IsInterface",r[r.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor";var c=function(){var n,t,r,i,o,c,p,f,m,_,g,y,h,v,b,E,T,S,x,L,D,C,A,I,k=!1,N=0,R={flags:1},O={flags:1},w=function(){return e.createBinaryExpressionTrampoline(n,t,r,a,o,void 0);function n(n,t){if(t){t.stackIndex++,e.setParent(n,i);var r=C;Ue(n);var a=i;i=n,t.skip=!1,t.inStrictModeStack[t.stackIndex]=r,t.parentStack[t.stackIndex]=a}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var o=n.operatorToken.kind;if(55===o||56===o||60===o||e.isLogicalOrCoalescingAssignmentOperator(o)){if(le(n)){var s=Q();he(n,s,s),g=oe(s)}else he(n,b,E);t.skip=!0}return t}function t(e,n,t){if(!n.skip)return s(e)}function r(e,n,t){n.skip||(27===e.kind&&_e(t.left),Pe(e))}function a(e,n,t){if(!n.skip)return s(e)}function o(n,t){if(!t.skip){var r=n.operatorToken.kind;if(e.isAssignmentOperator(r)&&!e.isAssignmentTarget(n))if(ye(n.left),63===r&&206===n.left.kind)Y(n.left.expression)&&(g=ae(256,g,n))}var a=t.inStrictModeStack[t.stackIndex],o=t.parentStack[t.stackIndex];void 0!==a&&(C=a),void 0!==o&&(i=o),t.skip=!1,t.stackIndex--}function s(n){if(n&&e.isBinaryExpression(n)&&!e.isDestructuringAssignment(n))return n;Pe(n)}}();function M(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,a,i,o)}return function(a,l){n=a,t=l,r=e.getEmitScriptTarget(t),C=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,l),I=new e.Set,N=0,A=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(R),e.Debug.attachFlowNodeDebugInfo(O),n.locals||(Pe(n),n.symbolCount=N,n.classifiableNames=I,function(){if(m){for(var t=o,r=f,a=p,c=i,l=g,d=0,_=m;d<_.length;d++){var y=_[d],h=y.parent.parent;o=e.findAncestor(h.parent,(function(e){return!!(1&Se(e))}))||n,p=e.getEnclosingBlockScopeContainer(h)||n,g=s({flags:2}),i=y,Pe(y.typeExpression);var v=e.getNameOfDeclaration(y);if((e.isJSDocEnumTag(y)||!y.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=Ze(v.parent);if(b){Ye(n.symbol,v.parent,b,!!e.findAncestor(v,(function(n){return e.isPropertyAccessExpression(n)&&"prototype"===n.name.escapedText})),!1);var E=o;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:o=e.isExternalOrCommonJsModule(n)?n:void 0;break;case 4:o=v.parent.expression;break;case 3:o=v.parent.expression.name;break;case 5:o=u(n,v.parent.expression)?n:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&V(y,524288,788968),o=E}}else e.isJSDocEnumTag(y)||!y.fullName||79===y.fullName.kind?(i=y.parent,Ie(y,524288,788968)):Pe(y.fullName)}o=t,f=r,p=a,i=c,g=l}}()),n=void 0,t=void 0,r=void 0,i=void 0,o=void 0,c=void 0,p=void 0,f=void 0,m=void 0,_=!1,g=void 0,y=void 0,h=void 0,v=void 0,b=void 0,E=void 0,T=void 0,x=void 0,L=!1,k=!1,D=0};function P(e,n){return N++,new A(e,n)}function F(n,t,r){n.flags|=r,t.symbol=n,n.declarations=e.appendIfUnique(n.declarations,t),1955&r&&!n.exports&&(n.exports=e.createSymbolTable()),6240&r&&!n.members&&(n.members=e.createSymbolTable()),n.constEnumOnlyModule&&304&n.flags&&(n.constEnumOnlyModule=!1),111551&r&&e.setValueDeclaration(n,t)}function G(n){if(270===n.kind)return n.isExportEquals?"export=":"default";var t=e.getNameOfDeclaration(n);if(t){if(e.isAmbientModule(n)){var r=e.getTextOfIdentifierOrLiteral(t);return e.isGlobalScopeAugmentation(n)?"__global":'"'.concat(r,'"')}if(161===t.kind){var a=t.expression;if(e.isStringOrNumericLiteralLike(a))return e.escapeLeadingUnderscores(a.text);if(e.isSignedNumericLiteral(a))return e.tokenToString(a.operator)+a.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(t)){var i=e.getContainingClass(n);if(!i)return;var o=i.symbol;return e.getSymbolNameForPrivateIdentifier(o,t.escapedText)}return e.isPropertyNameLiteral(t)?e.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(n.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(2===e.getAssignmentDeclarationKind(n))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(n)?"__new":"__call";case 163:return e.Debug.assert(315===n.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[n.parent.kind]:n.parent.kind,", expected JSDocFunctionType")})),"arg"+n.parent.parameters.indexOf(n)}}function B(n){return e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(G(n)))}function U(t,r,a,i,o,s,c){e.Debug.assert(c||!e.hasDynamicName(a));var l,u=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,d=c?"__computed":u&&r?"default":G(a);if(void 0===d)l=P(0,"__missing");else if(l=t.get(d),2885600&i&&I.add(d),l){if(s&&!l.isReplaceableByMethod)return l;if(l.flags&o)if(l.isReplaceableByMethod)t.set(d,l=P(0,d));else if(!(3&i&&67108864&l.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,f=!0;(384&l.flags||384&i)&&(p=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,f=!1);var m=!1;e.length(l.declarations)&&(u||l.declarations&&l.declarations.length&&270===a.kind&&!a.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports,f=!1,m=!0);var _=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&l.flags&&_.push(M(a,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(a.name.escapedText)," }")));var g=e.getNameOfDeclaration(a)||a;e.forEach(l.declarations,(function(t,r){var a=e.getNameOfDeclaration(t)||t,i=M(a,p,f?B(t):void 0);n.bindDiagnostics.push(m?e.addRelatedInfo(i,M(g,0===r?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):i),m&&_.push(M(a,e.Diagnostics.The_first_export_default_is_here))}));var y=M(g,p,f?B(a):void 0);n.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,pa([y],_,!1))),l=P(0,d)}}else t.set(d,l=P(0,d)),s&&(l.isReplaceableByMethod=!0);return F(l,a,i),l.parent?e.Debug.assert(l.parent===r,"Existing symbol parent should match new one"):l.parent=r,l}function V(n,t,r){var a=!!(1&e.getCombinedModifierFlags(n))||function(n){n.parent&&e.isModuleDeclaration(n)&&(n=n.parent);if(!e.isJSDocTypeAlias(n))return!1;if(!e.isJSDocEnumTag(n)&&n.fullName)return!0;var t=e.getNameOfDeclaration(n);return!!t&&(!(!e.isPropertyAccessEntityNameExpression(t.parent)||!Ze(t.parent))||!!(e.isDeclaration(t.parent)&&1&e.getCombinedModifierFlags(t.parent)))}(n);if(2097152&t)return 274===n.kind||264===n.kind&&a?U(o.symbol.exports,o.symbol,n,t,r):U(o.locals,void 0,n,t,r);if(e.isJSDocTypeAlias(n)&&e.Debug.assert(e.isInJSFile(n)),!e.isAmbientModule(n)&&(a||64&o.flags)){if(!o.locals||e.hasSyntacticModifier(n,512)&&!G(n))return U(o.symbol.exports,o.symbol,n,t,r);var i=111551&t?1048576:0,s=U(o.locals,void 0,n,i,r);return s.exportSymbol=U(o.symbol.exports,o.symbol,n,t,r),n.localSymbol=s,s}return U(o.locals,void 0,n,t,r)}function j(e){K(e,(function(e){return 255===e.kind?Pe(e):void 0})),K(e,(function(e){return 255!==e.kind?Pe(e):void 0}))}function K(n,t){void 0===t&&(t=Pe),void 0!==n&&e.forEach(n,t)}function H(n){e.forEachChild(n,Pe,K)}function W(n){var r=k;if(k=!1,function(n){if(!(1&g.flags))return!1;if(g===R){var r=e.isStatementButNotDeclaration(n)&&235!==n.kind||256===n.kind||260===n.kind&&function(n){var r=a(n);return 1===r||2===r&&e.shouldPreserveConstEnums(t)}(n);if(r&&(g=O,!t.allowUnreachableCode)){var i=e.unreachableCodeIsError(t)&&!(8388608&n.flags)&&(!e.isVariableStatement(n)||!!(3&e.getCombinedNodeFlags(n.declarationList))||n.declarationList.declarations.some((function(e){return!!e.initializer})));!function(n,t){if(e.isStatement(n)&&l(n)&&e.isBlock(n.parent)){var r=n.parent.statements,a=e.sliceAfter(r,n);e.getRangesWhere(a,l,(function(e,n){return t(a[e],a[n-1])}))}else t(n,n)}(n,(function(n,t){return Me(i,n,t,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(n))return H(n),Fe(n),void(k=r);switch(n.kind>=236&&n.kind<=252&&!t.allowUnreachableCode&&(n.flowNode=g),n.kind){case 240:!function(e){var n=fe(e,Z()),t=Q(),r=Q();ne(n,g),g=n,de(e.expression,t,r),g=oe(t),pe(e.statement,r,n),ne(n,g),g=oe(r)}(n);break;case 239:!function(e){var n=Z(),t=fe(e,Q()),r=Q();ne(n,g),g=n,pe(e.statement,r,t),ne(t,g),g=oe(t),de(e.expression,n,r),g=oe(r)}(n);break;case 241:!function(e){var n=fe(e,Z()),t=Q(),r=Q();Pe(e.initializer),ne(n,g),g=n,de(e.condition,t,r),g=oe(t),pe(e.statement,r,n),Pe(e.incrementor),ne(n,g),g=oe(r)}(n);break;case 242:case 243:!function(e){var n=fe(e,Z()),t=Q();Pe(e.expression),ne(n,g),g=n,243===e.kind&&Pe(e.awaitModifier);ne(t,g),Pe(e.initializer),254!==e.initializer.kind&&ye(e.initializer);pe(e.statement,t,n),ne(n,g),g=oe(t)}(n);break;case 238:!function(e){var n=Q(),t=Q(),r=Q();de(e.expression,n,t),g=oe(n),Pe(e.thenStatement),ne(r,g),g=oe(t),Pe(e.elseStatement),ne(r,g),g=oe(r)}(n);break;case 246:case 250:!function(e){Pe(e.expression),246===e.kind&&(L=!0,v&&ne(v,g));g=R}(n);break;case 245:case 244:!function(e){if(Pe(e.label),e.label){var n=function(e){for(var n=x;n;n=n.next)if(n.name===e)return n;return}(e.label.escapedText);n&&(n.referenced=!0,me(e,n.breakTarget,n.continueTarget))}else me(e,y,h)}(n);break;case 251:!function(n){var t=v,r=T,a=Q(),i=Q(),o=Q();n.finallyBlock&&(v=i);ne(o,g),T=o,Pe(n.tryBlock),ne(a,g),n.catchClause&&(g=oe(o),ne(o=Q(),g),T=o,Pe(n.catchClause),ne(a,g));if(v=t,T=r,n.finallyBlock){var s=Q();s.antecedents=e.concatenate(e.concatenate(a.antecedents,o.antecedents),i.antecedents),g=s,Pe(n.finallyBlock),1&g.flags?g=R:(v&&i.antecedents&&ne(v,$(s,i.antecedents,g)),T&&o.antecedents&&ne(T,$(s,o.antecedents,g)),g=a.antecedents?$(s,a.antecedents,g):R)}else g=oe(a)}(n);break;case 248:!function(n){var t=Q();Pe(n.expression);var r=y,a=S;y=t,S=g,Pe(n.caseBlock),ne(t,g);var i=e.forEach(n.caseBlock.clauses,(function(e){return 289===e.kind}));n.possiblyExhaustive=!i&&!t.antecedents,i||ne(t,re(S,n,0,0));y=r,S=a,g=oe(t)}(n);break;case 262:!function(e){for(var n=e.clauses,r=z(e.parent.expression),a=R,i=0;i<n.length;i++){for(var o=i;!n[i].statements.length&&i+1<n.length;)Pe(n[i]),i++;var s=Q();ne(s,r?re(S,e.parent,o,i+1):S),ne(s,a),g=oe(s);var c=n[i];Pe(c),a=g,1&g.flags||i===n.length-1||!t.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=g)}}(n);break;case 288:!function(e){var n=g;g=S,Pe(e.expression),g=n,K(e.statements)}(n);break;case 237:!function(e){Pe(e.expression),_e(e.expression)}(n);break;case 249:!function(n){var r=Q();x={next:x,name:n.label.escapedText,breakTarget:r,continueTarget:void 0,referenced:!1},Pe(n.label),Pe(n.statement),x.referenced||t.allowUnusedLabels||function(e,n,t){Me(e,n,n,t)}(e.unusedLabelIsError(t),n.label,e.Diagnostics.Unused_label);x=x.next,ne(r,g),g=oe(r)}(n);break;case 218:!function(e){if(53===e.operator){var n=b;b=E,E=n,H(e),E=b,b=n}else H(e),45!==e.operator&&46!==e.operator||ye(e.operand)}(n);break;case 219:!function(e){H(e),(45===e.operator||46===e.operator)&&ye(e.operand)}(n);break;case 220:if(e.isDestructuringAssignment(n))return k=r,void function(e){k?(k=!1,Pe(e.operatorToken),Pe(e.right),k=!0,Pe(e.left)):(k=!0,Pe(e.left),k=!1,Pe(e.operatorToken),Pe(e.right));ye(e.left)}(n);w(n);break;case 214:!function(e){H(e),205===e.expression.kind&&ye(e.expression)}(n);break;case 221:!function(e){var n=Q(),t=Q(),r=Q();de(e.condition,n,t),g=oe(n),Pe(e.questionToken),Pe(e.whenTrue),ne(r,g),g=oe(t),Pe(e.colonToken),Pe(e.whenFalse),ne(r,g),g=oe(r)}(n);break;case 253:!function(n){H(n),(n.initializer||e.isForInOrOfStatement(n.parent.parent))&&ve(n)}(n);break;case 205:case 206:!function(n){e.isOptionalChain(n)?Te(n):H(n)}(n);break;case 207:!function(n){if(e.isOptionalChain(n))Te(n);else{var t=e.skipParentheses(n.expression);212===t.kind||213===t.kind?(K(n.typeArguments),K(n.arguments),Pe(n.expression)):(H(n),106===n.expression.kind&&(g=ie(g,n)))}if(205===n.expression.kind){var r=n.expression;e.isIdentifier(r.name)&&Y(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(g=ae(256,g,n))}}(n);break;case 229:!function(n){e.isOptionalChain(n)?Te(n):H(n)}(n);break;case 343:case 336:case 337:!function(n){Pe(n.tagName),337!==n.kind&&n.fullName&&(e.setParent(n.fullName,n),e.setParentRecursive(n.fullName,!1));"string"!==typeof n.comment&&K(n.comment)}(n);break;case 303:j(n.statements),Pe(n.endOfFileToken);break;case 234:case 261:j(n.statements);break;case 202:!function(n){e.isBindingPattern(n.name)?(K(n.decorators),K(n.modifiers),Pe(n.dotDotDotToken),Pe(n.propertyName),Pe(n.initializer),Pe(n.name)):H(n)}(n);break;case 204:case 203:case 294:case 224:k=r;default:H(n)}Fe(n),k=r}function z(e){switch(e.kind){case 79:case 80:case 108:case 205:case 206:return q(e);case 207:return function(e){if(e.arguments)for(var n=0,t=e.arguments;n<t.length;n++){if(q(t[n]))return!0}if(205===e.expression.kind&&q(e.expression.expression))return!0;return!1}(e);case 211:case 229:case 215:return z(e.expression);case 220:return function(e){switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return q(e.left);case 34:case 35:case 36:case 37:return Y(e.left)||Y(e.right)||X(e.right,e.left)||X(e.left,e.right);case 102:return Y(e.left);case 101:case 27:return z(e.right)}return!1}(e);case 218:return 53===e.operator&&z(e.operand)}return!1}function J(n){return e.isDottedName(n)||(e.isPropertyAccessExpression(n)||e.isNonNullExpression(n)||e.isParenthesizedExpression(n))&&J(n.expression)||e.isBinaryExpression(n)&&27===n.operatorToken.kind&&J(n.right)||e.isElementAccessExpression(n)&&e.isStringOrNumericLiteralLike(n.argumentExpression)&&J(n.expression)||e.isAssignmentExpression(n)&&J(n.left)}function q(n){return J(n)||e.isOptionalChain(n)&&q(n.expression)}function X(n,t){return e.isTypeOfExpression(n)&&Y(n.expression)&&e.isStringLiteralLike(t)}function Y(e){switch(e.kind){case 211:return Y(e.expression);case 220:switch(e.operatorToken.kind){case 63:return Y(e.left);case 27:return Y(e.right)}}return q(e)}function Q(){return s({flags:4,antecedents:void 0})}function Z(){return s({flags:8,antecedents:void 0})}function $(e,n,t){return s({flags:1024,target:e,antecedents:n,antecedent:t})}function ee(e){e.flags|=2048&e.flags?4096:2048}function ne(n,t){1&t.flags||e.contains(n.antecedents,t)||((n.antecedents||(n.antecedents=[])).push(t),ee(t))}function te(n,t,r){return 1&t.flags?t:r?!(110===r.kind&&64&n||95===r.kind&&32&n)||e.isExpressionOfOptionalChainRoot(r)||e.isNullishCoalesce(r.parent)?z(r)?(ee(t),s({flags:n,antecedent:t,node:r})):t:R:32&n?t:R}function re(e,n,t,r){return ee(e),s({flags:128,antecedent:e,switchStatement:n,clauseStart:t,clauseEnd:r})}function ae(e,n,t){ee(n);var r=s({flags:e,antecedent:n,node:t});return T&&ne(T,r),r}function ie(e,n){return ee(e),s({flags:512,antecedent:e,node:n})}function oe(e){var n=e.antecedents;return n?1===n.length?n[0]:e:R}function se(e){for(;;)if(211===e.kind)e=e.expression;else{if(218!==e.kind||53!==e.operator)return 220===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ce(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)&&e.isLogicalOrCoalescingAssignmentOperator(n.operatorToken.kind)}function le(n){for(;e.isParenthesizedExpression(n.parent)||e.isPrefixUnaryExpression(n.parent)&&53===n.parent.operator;)n=n.parent;return!function(e){var n=e.parent;switch(n.kind){case 238:case 240:case 239:return n.expression===e;case 241:case 221:return n.condition===e}return!1}(n)&&!ce(n.parent)&&!se(n.parent)&&!(e.isOptionalChain(n.parent)&&n.parent.expression===n)}function ue(e,n,t,r){var a=b,i=E;b=t,E=r,e(n),b=a,E=i}function de(n,t,r){ue(Pe,n,t,r),n&&(ce(n)||se(n)||e.isOptionalChain(n)&&e.isOutermostOptionalChain(n))||(ne(t,te(32,g,n)),ne(r,te(64,g,n)))}function pe(e,n,t){var r=y,a=h;y=n,h=t,Pe(e),y=r,h=a}function fe(e,n){for(var t=x;t&&249===e.parent.kind;)t.continueTarget=n,t=t.next,e=e.parent;return n}function me(e,n,t){var r=245===e.kind?n:t;r&&(ne(r,g),g=R)}function _e(n){if(207===n.kind){var t=n;106!==t.expression.kind&&e.isDottedName(t.expression)&&(g=ie(g,t))}}function ge(e){220===e.kind&&63===e.operatorToken.kind?ye(e.left):ye(e)}function ye(e){if(J(e))g=ae(16,g,e);else if(203===e.kind)for(var n=0,t=e.elements;n<t.length;n++){var r=t[n];224===r.kind?ye(r.expression):ge(r)}else if(204===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];294===o.kind?ge(o.initializer):295===o.kind?ye(o.name):296===o.kind&&ye(o.expression)}}function he(n,t,r){var a=Q();55===n.operatorToken.kind||76===n.operatorToken.kind?de(n.left,a,r):de(n.left,t,a),g=oe(a),Pe(n.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(n.operatorToken.kind)?(ue(Pe,n.right,t,r),ye(n.left),ne(t,te(32,g,n)),ne(r,te(64,g,n))):de(n.right,t,r)}function ve(n){var t=e.isOmittedExpression(n)?void 0:n.name;if(e.isBindingPattern(t))for(var r=0,a=t.elements;r<a.length;r++){ve(a[r])}else g=ae(16,g,n)}function be(e){switch(e.kind){case 205:Pe(e.questionDotToken),Pe(e.name);break;case 206:Pe(e.questionDotToken),Pe(e.argumentExpression);break;case 207:Pe(e.questionDotToken),K(e.typeArguments),K(e.arguments)}}function Ee(n,t,r){var a=e.isOptionalChainRoot(n)?Q():void 0;!function(n,t,r){ue(Pe,n,t,r),e.isOptionalChain(n)&&!e.isOutermostOptionalChain(n)||(ne(t,te(32,g,n)),ne(r,te(64,g,n)))}(n.expression,a||t,r),a&&(g=oe(a)),ue(be,n,t,r),e.isOutermostOptionalChain(n)&&(ne(t,te(32,g,n)),ne(r,te(64,g,n)))}function Te(e){if(le(e)){var n=Q();Ee(e,n,n),g=oe(n)}else Ee(e,b,E)}function Se(n){switch(n.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(n))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return n.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(n.parent)||e.isClassStaticBlockDeclaration(n.parent)?0:2}return 0}function xe(e){f&&(f.nextContainer=e),f=e}function Le(t,r,a){switch(o.kind){case 260:return V(t,r,a);case 303:return function(t,r,a){return e.isExternalModule(n)?V(t,r,a):U(n.locals,void 0,t,r,a)}(t,r,a);case 225:case 256:return function(n,t,r){return e.isStatic(n)?U(o.symbol.exports,o.symbol,n,t,r):U(o.symbol.members,o.symbol,n,t,r)}(t,r,a);case 259:return U(o.symbol.exports,o.symbol,t,r,a);case 181:case 320:case 204:case 257:case 285:return U(o.symbol.members,o.symbol,t,r,a);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return U(o.locals,void 0,t,r,a)}}function De(n){8388608&n.flags&&!function(n){var t=e.isSourceFile(n)?n:e.tryCast(n.body,e.isModuleBlock);return!!t&&t.statements.some((function(n){return e.isExportDeclaration(n)||e.isExportAssignment(n)}))}(n)?n.flags|=64:n.flags&=-65}function Ce(e){var n=a(e),t=0!==n;return Le(e,t?512:1024,t?110735:0),n}function Ae(e,n,t){var r=P(n,t);return 106508&n&&(r.parent=o.symbol),F(r,e,n),r}function Ie(n,t,r){switch(p.kind){case 260:V(n,t,r);break;case 303:if(e.isExternalOrCommonJsModule(o)){V(n,t,r);break}default:p.locals||(p.locals=e.createSymbolTable(),xe(p)),U(p.locals,void 0,n,t,r)}}function ke(t){n.parseDiagnostics.length||8388608&t.flags||4194304&t.flags||e.isIdentifierName(t)||(C&&t.originalKeywordKind>=117&&t.originalKeywordKind<=125?n.bindDiagnostics.push(M(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),e.declarationNameToString(t))):132===t.originalKeywordKind?e.isExternalModule(n)&&e.isInTopLevelContext(t)?n.bindDiagnostics.push(M(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(t))):32768&t.flags&&n.bindDiagnostics.push(M(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))):125===t.originalKeywordKind&&8192&t.flags&&n.bindDiagnostics.push(M(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))))}function Ne(t,r){if(r&&79===r.kind){var a=r;if(o=a,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var i=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,i.start,i.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(a)))}}var o}function Re(e){C&&Ne(e,e.name)}function Oe(t){if(r<2&&303!==p.kind&&260!==p.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(p)){var a=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,a.start,a.length,function(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function we(t,r,a,i,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,a,i,o))}function Me(t,r,a,i){!function(t,r,a){var i=e.createFileDiagnostic(n,r.pos,r.end-r.pos,a);t?n.bindDiagnostics.push(i):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,fa(fa({},i),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(r,n),end:a.end},i)}function Pe(n){if(n){e.setParent(n,i);var t=C;if(Ue(n),n.kind>159){var r=i;i=n;var a=Se(n);0===a?W(n):function(n,t){var r=o,a=c,i=p;if(1&t?(213!==n.kind&&(c=o),o=p=n,32&t&&(o.locals=e.createSymbolTable()),xe(o)):2&t&&((p=n).locals=void 0),4&t){var l=g,u=y,d=h,f=v,m=T,b=x,E=L,S=16&t&&!e.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);S||(g=s({flags:2}),144&t&&(g.node=n)),v=S||170===n.kind||169===n.kind||e.isInJSFile(n)&&(255===n.kind||212===n.kind)?Q():void 0,T=void 0,y=void 0,h=void 0,x=void 0,L=!1,W(n),n.flags&=-2817,!(1&g.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=256,L&&(n.flags|=512),n.endFlowNode=g),303===n.kind&&(n.flags|=D,n.endFlowNode=g),v&&(ne(v,g),g=oe(v),(170===n.kind||169===n.kind||e.isInJSFile(n)&&(255===n.kind||212===n.kind))&&(n.returnFlowNode=g)),S||(g=l),y=u,h=d,v=f,T=m,x=b,L=E}else 64&t?(_=!1,W(n),n.flags=_?128|n.flags:-129&n.flags):W(n);o=r,c=a,p=i}(n,a),i=r}else{r=i;1===n.kind&&(i=n),Fe(n),i=r}C=t}}function Fe(n){if(e.hasJSDocNodes(n))if(e.isInJSFile(n))for(var t=0,r=n.jsDoc;t<r.length;t++){Pe(o=r[t])}else for(var a=0,i=n.jsDoc;a<i.length;a++){var o=i[a];e.setParent(o,n),e.setParentRecursive(o,!1)}}function Ge(n){if(!C)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(!e.isPrologueDirective(a))return;if(Be(a))return void(C=!0)}}function Be(t){var r=e.getSourceTextOfNodeFromSourceFile(n,t.expression);return'"use strict"'===r||"'use strict'"===r}function Ue(r){switch(r.kind){case 79:if(r.isInJSDocNamespace){for(var a=r.parent;a&&!e.isJSDocTypeAlias(a);)a=a.parent;Ie(a,524288,788968);break}case 108:return g&&(e.isExpression(r)||295===i.kind)&&(r.flowNode=g),ke(r);case 160:g&&e.isPartOfTypeQuery(r)&&(r.flowNode=g);break;case 230:case 106:r.flowNode=g;break;case 80:return function(t){"#constructor"===t.escapedText&&(n.parseDiagnostics.length||n.bindDiagnostics.push(M(t,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(t))))}(r);case 205:case 206:var s=r;g&&J(s)&&(s.flowNode=g),e.isSpecialPropertyDeclaration(s)&&function(n){108===n.expression.kind?We(n):e.isBindableStaticAccessExpression(n)&&303===n.parent.parent.kind&&(e.isPrototypeAccess(n.expression)?qe(n,n.parent):Xe(n))}(s),e.isInJSFile(s)&&n.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(s)&&!d(p,"module")&&U(n.locals,void 0,s.expression,134217729,111550);break;case 220:switch(e.getAssignmentDeclarationKind(r)){case 1:Ke(r);break;case 2:!function(t){if(!je(t))return;var r=e.getRightMostAssignedExpression(t.right);if(e.isEmptyObjectLiteral(r)||o===n&&u(n,r))return;if(e.isObjectLiteralExpression(r)&&e.every(r.properties,e.isShorthandPropertyAssignment))return void e.forEach(r.properties,He);var a=e.exportAssignmentIsAlias(t)?2097152:1049092,i=U(n.symbol.exports,n.symbol,t,67108864|a,0);e.setValueDeclaration(i,t)}(r);break;case 3:qe(r.left,r);break;case 6:!function(n){e.setParent(n.left,n),e.setParent(n.right,n),$e(n.left.expression,n.left,!1,!0)}(r);break;case 4:We(r);break;case 5:var c=r.left.expression;if(e.isInJSFile(r)&&e.isIdentifier(c)){var l=d(p,c.escapedText);if(e.isThisInitializedDeclaration(null===l||void 0===l?void 0:l.valueDeclaration)){We(r);break}}!function(t){var r,a=en(t.left.expression,o)||en(t.left.expression,p);if(!e.isInJSFile(t)&&!e.isFunctionSymbol(a))return;var i=e.getLeftmostAccessExpression(t.left);if(e.isIdentifier(i)&&2097152&(null===(r=d(o,i.escapedText))||void 0===r?void 0:r.flags))return;if(e.setParent(t.left,t),e.setParent(t.right,t),e.isIdentifier(t.left.expression)&&o===n&&u(n,t.left.expression))Ke(t);else if(e.hasDynamicName(t)){Ae(t,67108868,"__computed"),Je(t,Ye(a,t.left.expression,Ze(t.left),!1,!1))}else Xe(e.cast(t.left,e.isBindableStaticNameExpression))}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(n){C&&e.isLeftHandSideExpression(n.left)&&e.isAssignmentOperator(n.operatorToken.kind)&&Ne(n,n.left)}(r);case 291:return function(e){C&&e.variableDeclaration&&Ne(e,e.variableDeclaration.name)}(r);case 214:return function(t){if(C&&79===t.expression.kind){var r=e.getErrorSpanForNode(n,t.expression);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(t){C&&32&t.numericLiteralFlags&&n.bindDiagnostics.push(M(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 219:return function(e){C&&Ne(e,e.operand)}(r);case 218:return function(e){C&&(45!==e.operator&&46!==e.operator||Ne(e,e.operand))}(r);case 247:return function(n){C&&we(n,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 249:return function(n){C&&e.getEmitScriptTarget(t)>=2&&(e.isDeclarationStatement(n.statement)||e.isVariableStatement(n.statement))&&we(n.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 191:return void(_=!0);case 176:break;case 162:return function(n){if(e.isJSDocTemplateTag(n.parent)){var t=e.getEffectiveContainerForJSDocTemplateTag(n.parent);t?(t.locals||(t.locals=e.createSymbolTable()),U(t.locals,void 0,n,262144,526824)):Le(n,262144,526824)}else if(189===n.parent.kind){var r=function(n){var t=e.findAncestor(n,(function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&n.parent.extendsType===n}));return t&&t.parent}(n.parent);r?(r.locals||(r.locals=e.createSymbolTable()),U(r.locals,void 0,n,262144,526824)):Ae(n,262144,G(n))}else Le(n,262144,526824)}(r);case 163:return rn(r);case 253:return tn(r);case 202:return r.flowNode=g,tn(r);case 166:case 165:return function(e){return an(e,4|(e.questionToken?16777216:0),0)}(r);case 294:case 295:return an(r,4,0);case 297:return an(r,8,900095);case 173:case 174:case 175:return Le(r,131072,0);case 168:case 167:return an(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 255:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(D|=2048);Re(t),C?(Oe(t),Ie(t,16,110991)):Le(t,16,110991)}(r);case 170:return Le(r,16384,0);case 171:return an(r,32768,46015);case 172:return an(r,65536,78783);case 178:case 315:case 321:case 179:return function(n){var t=P(131072,G(n));F(t,n,131072);var r=P(2048,"__type");F(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(r);case 181:case 320:case 194:return function(e){return Ae(e,2048,"__type")}(r);case 330:return function(n){H(n);var t=e.getHostSignatureFromJSDoc(n);t&&168!==t.kind&&F(t.symbol,t,32)}(r);case 204:return function(t){var r,a;if((a=r||(r={}))[a.Property=1]="Property",a[a.Accessor=2]="Accessor",C&&!e.isAssignmentTarget(t))for(var i=new e.Map,o=0,s=t.properties;o<s.length;o++){var c=s[o];if(296!==c.kind&&79===c.name.kind){var l=c.name,u=294===c.kind||295===c.kind||168===c.kind?1:2,d=i.get(l.escapedText);if(d){if(1===u&&1===d){var p=e.getErrorSpanForNode(n,l);n.bindDiagnostics.push(e.createFileDiagnostic(n,p.start,p.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(l.escapedText,u)}}return Ae(t,4096,"__object")}(r);case 212:case 213:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(D|=2048);g&&(t.flowNode=g);Re(t);var r=t.name?t.name.escapedText:"__function";return Ae(t,16,r)}(r);case 207:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var n=en(e.arguments[0]),t=303===e.parent.parent.kind;n=Ye(n,e.arguments[0],t,!1,!1),Qe(e,n,!1)}(r);case 8:return function(e){if(!je(e))return;var n=nn(e.arguments[0],void 0,(function(e,n){return n&&F(n,e,67110400),n}));if(n){var t=1048580;U(n.exports,n,e,t,0)}}(r);case 9:return function(e){var n=en(e.arguments[0].expression);n&&n.valueDeclaration&&F(n,n.valueDeclaration,32);Qe(e,n,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(t){!n.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&je(t)}(r);break;case 225:case 256:return C=!0,function(t){if(256===t.kind)Ie(t,32,899503);else{Ae(t,32,t.name?t.name.escapedText:"__class"),t.name&&I.add(t.name.escapedText)}var r=t.symbol,a=P(4194308,"prototype"),i=r.exports.get(a.escapedName);i&&(t.name&&e.setParent(t.name,t),n.bindDiagnostics.push(M(i.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(a))));r.exports.set(a.escapedName,a),a.parent=r}(r);case 257:return Ie(r,64,788872);case 258:return Ie(r,524288,788968);case 259:return function(n){return e.isEnumConst(n)?Ie(n,128,899967):Ie(n,256,899327)}(r);case 260:return function(t){if(De(t),e.isAmbientModule(t))if(e.hasSyntacticModifier(t,1)&&we(t,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(t))Ce(t);else{var r=void 0;if(10===t.name.kind){var a=t.name.text;void 0===(r=e.tryParsePattern(a))&&we(t.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a)}var i=Le(t,512,110735);n.patternAmbientModules=e.append(n.patternAmbientModules,r&&!e.isString(r)?{pattern:r,symbol:i}:void 0)}else{var o=Ce(t);0!==o&&((i=t.symbol).constEnumOnlyModule=!(304&i.flags)&&2===o&&!1!==i.constEnumOnlyModule)}}(r);case 285:return function(e){return Ae(e,4096,"__jsxAttributes")}(r);case 284:return function(e,n,t){return Le(e,n,t)}(r,4,0);case 264:case 267:case 269:case 274:return Le(r,2097152,2097152);case 263:return function(t){t.modifiers&&t.modifiers.length&&n.bindDiagnostics.push(M(t,e.Diagnostics.Modifiers_cannot_appear_here));var r=e.isSourceFile(t.parent)?e.isExternalModule(t.parent)?t.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;r?n.bindDiagnostics.push(M(t,r)):(n.symbol.globalExports=n.symbol.globalExports||e.createSymbolTable(),U(n.symbol.globalExports,n.symbol,t,2097152,2097152))}(r);case 266:return function(e){e.name&&Le(e,2097152,2097152)}(r);case 271:return function(n){o.symbol&&o.symbol.exports?n.exportClause?e.isNamespaceExport(n.exportClause)&&(e.setParent(n.exportClause,n),U(o.symbol.exports,o.symbol,n.exportClause,2097152,2097152)):U(o.symbol.exports,o.symbol,n,8388608,0):Ae(n,8388608,G(n))}(r);case 270:return function(n){if(o.symbol&&o.symbol.exports){var t=e.exportAssignmentIsAlias(n)?2097152:4,r=U(o.symbol.exports,o.symbol,n,t,67108863);n.isExportEquals&&e.setValueDeclaration(r,n)}else Ae(n,111551,G(n))}(r);case 303:return Ge(r.statements),function(){if(De(n),e.isExternalModule(n))Ve();else if(e.isJsonSourceFile(n)){Ve();var t=n.symbol;U(n.symbol.exports,n.symbol,n,4,67108863),n.symbol=t}}();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(r.parent))return;case 261:return Ge(r.statements);case 338:if(321===r.parent.kind)return rn(r);if(320!==r.parent.kind)break;case 345:var f=r;return Le(f,f.isBracketed||f.typeExpression&&314===f.typeExpression.type.kind?16777220:4,0);case 343:case 336:case 337:return(m||(m=[])).push(r)}}function Ve(){Ae(n,512,'"'.concat(e.removeFileExtension(n.fileName),'"'))}function je(e){return!n.externalModuleIndicator&&(n.commonJsModuleIndicator||(n.commonJsModuleIndicator=e,Ve()),!0)}function Ke(n){if(je(n)){var t=nn(n.left.expression,void 0,(function(e,n){return n&&F(n,e,67110400),n}));if(t){var r=e.isAliasableExpression(n.right)&&(e.isExportsIdentifier(n.left.expression)||e.isModuleExportsAccessExpression(n.left.expression))?2097152:1048580;e.setParent(n.left,n),U(t.exports,t,n.left,r,0)}}}function He(e){U(n.symbol.exports,n.symbol,e,69206016,0)}function We(n){if(e.Debug.assert(e.isInJSFile(n)),!(e.isBinaryExpression(n)&&e.isPropertyAccessExpression(n.left)&&e.isPrivateIdentifier(n.left.name)||e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name))){var t=e.getThisContainer(n,!1);switch(t.kind){case 255:case 212:var r=t.symbol;if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var a=t.parent.left;e.isBindableStaticAccessExpression(a)&&e.isPrototypeAccess(a.expression)&&(r=en(a.expression.expression,c))}r&&r.valueDeclaration&&(r.members=r.members||e.createSymbolTable(),e.hasDynamicName(n)?ze(n,r,r.members):U(r.members,r,n,67108868,0),F(r,r.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var i=t.parent,o=e.isStatic(t)?i.symbol.exports:i.symbol.members;e.hasDynamicName(n)?ze(n,i.symbol,o):U(o,i.symbol,n,67108868,0,!0);break;case 303:if(e.hasDynamicName(n))break;t.commonJsModuleIndicator?U(t.symbol.exports,t.symbol,n,1048580,0):Le(n,1,111550);break;default:e.Debug.failBadSyntaxKind(t)}}}function ze(e,n,t){U(t,n,e,4,0,!0,!0),Je(e,n)}function Je(n,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(n),n)}function qe(n,t){var r=n.expression,a=r.expression;e.setParent(a,r),e.setParent(r,n),e.setParent(n,t),$e(a,n,!0,!0)}function Xe(n){e.Debug.assert(!e.isIdentifier(n)),e.setParent(n.expression,n),$e(n.expression,n,!1,!1)}function Ye(t,r,a,i,o){if(2097152&(null===t||void 0===t?void 0:t.flags))return t;if(a&&!i){var s=67110400;t=nn(r,t,(function(t,r,a){return r?(F(r,t,s),r):U(a?a.exports:n.jsGlobalAugmentations||(n.jsGlobalAugmentations=e.createSymbolTable()),a,t,s,110735)}))}return o&&t&&t.valueDeclaration&&F(t,t.valueDeclaration,32),t}function Qe(n,t,r){if(t&&function(n){if(1072&n.flags)return!0;var t=n.valueDeclaration;if(t&&e.isCallExpression(t))return!!e.getAssignedExpandoInitializer(t);var r=t?e.isVariableDeclaration(t)?t.initializer:e.isBinaryExpression(t)?t.right:e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)?t.parent.right:void 0:void 0;if(r=r&&e.getRightMostAssignedExpression(r)){var a=e.isPrototypeAccess(e.isVariableDeclaration(t)?t.name:e.isBinaryExpression(t)?t.left:t);return!!e.getExpandoInitializer(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&60!==r.operatorToken.kind?r:r.right,a)}return!1}(t)){var a=r?t.members||(t.members=e.createSymbolTable()):t.exports||(t.exports=e.createSymbolTable()),i=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(n))?(i=8192,o=103359):e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&(e.some(n.arguments[2].properties,(function(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isIdentifier(t)&&"set"===e.idText(t)}))&&(i|=65540,o|=78783),e.some(n.arguments[2].properties,(function(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isIdentifier(t)&&"get"===e.idText(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),U(a,t,n,67108864|i,-67108865&o)}}function Ze(n){return e.isBinaryExpression(n.parent)?303===function(n){for(;e.isBinaryExpression(n.parent);)n=n.parent;return n.parent}(n.parent).parent.kind:303===n.parent.parent.kind}function $e(e,n,t,r){var a=en(e,o)||en(e,p),i=Ze(n);Qe(n,a=Ye(a,n.expression,i,t,r),t)}function en(n,t){if(void 0===t&&(t=o),e.isIdentifier(n))return d(t,n.escapedText);var r=en(n.expression);return r&&r.exports&&r.exports.get(e.getElementOrPropertyAccessName(n))}function nn(t,r,a){if(u(n,t))return n.symbol;if(e.isIdentifier(t))return a(t,en(t),r);var i=nn(t.expression,r,a),o=e.getNameOrArgument(t);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),a(o,i&&i.exports&&i.exports.get(e.getElementOrPropertyAccessName(t)),i)}function tn(n){C&&Ne(n,n.name),e.isBindingPattern(n.name)||(e.isInJSFile(n)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(n)&&!e.getJSDocTypeTag(n)?Le(n,2097152,2097152):e.isBlockOrCatchScoped(n)?Ie(n,2,111551):e.isParameterDeclaration(n)?Le(n,1,111551):Le(n,1,111550))}function rn(n){if((338!==n.kind||321===o.kind)&&(!C||8388608&n.flags||Ne(n,n.name),e.isBindingPattern(n.name)?Ae(n,1,"__"+n.parent.parameters.indexOf(n)):Le(n,1,111551),e.isParameterPropertyDeclaration(n,n.parent))){var t=n.parent.parent;U(t.symbol.members,t.symbol,n,4|(n.questionToken?16777216:0),0)}}function an(t,r,a){return n.isDeclarationFile||8388608&t.flags||!e.isAsyncFunction(t)||(D|=2048),g&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(t)&&(t.flowNode=g),e.hasDynamicName(t)?Ae(t,r,"__computed"):Le(t,r,a)}}();function l(n){return!e.isFunctionDeclaration(n)&&!function(n){switch(n.kind){case 257:case 258:return!0;case 260:return 1!==a(n);case 259:return e.hasSyntacticModifier(n,2048);default:return!1}}(n)&&!e.isEnumDeclaration(n)&&!(e.isVariableStatement(n)&&!(3&e.getCombinedNodeFlags(n))&&n.declarationList.declarations.some((function(e){return!e.initializer})))}function u(n,t){for(var r=0,a=[t];a.length&&r<100;){if(r++,t=a.shift(),e.isExportsIdentifier(t)||e.isModuleExportsAccessExpression(t))return!0;if(e.isIdentifier(t)){var i=d(n,t.escapedText);if(i&&i.valueDeclaration&&e.isVariableDeclaration(i.valueDeclaration)&&i.valueDeclaration.initializer){var o=i.valueDeclaration.initializer;a.push(o),e.isAssignmentExpression(o,!0)&&(a.push(o.left),a.push(o.right))}}}return!1}function d(n,t){var r=n.locals&&n.locals.get(t);return r?r.exportSymbol||r:e.isSourceFile(n)&&n.jsGlobalAugmentations&&n.jsGlobalAugmentations.has(t)?n.jsGlobalAugmentations.get(t):n.symbol&&n.symbol.exports&&n.symbol.exports.get(t)}e.bindSourceFile=function(n,t){null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:n.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+n.fileName),c(n,t),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),null===e.tracing||void 0===e.tracing||e.tracing.pop()},e.isExportsOrModuleExportsOrAlias=u}(ha||(ha={})),function(e){e.createGetSymbolWalker=function(n,t,r,a,i,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var p=[],f=[];return{walkType:function(n){try{return m(n),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}},walkSymbol:function(n){try{return y(n),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}}};function m(n){if(n&&(!p[n.id]&&(p[n.id]=n,!y(n.symbol)))){if(524288&n.flags){var t=n,r=t.objectFlags;4&r&&function(n){m(n.target),e.forEach(u(n),m)}(n),32&r&&function(e){m(e.typeParameter),m(e.constraintType),m(e.templateType),m(e.modifiersType)}(n),3&r&&(g(i=n),e.forEach(i.typeParameters,m),e.forEach(a(i),m),m(i.thisType)),24&r&&g(t)}var i;262144&n.flags&&function(e){m(c(e))}(n),3145728&n.flags&&function(n){e.forEach(n.types,m)}(n),4194304&n.flags&&function(e){m(e.type)}(n),8388608&n.flags&&function(e){m(e.objectType),m(e.indexType),m(e.constraint)}(n)}}function _(a){var i=t(a);i&&m(i.type),e.forEach(a.typeParameters,m);for(var o=0,s=a.parameters;o<s.length;o++){y(s[o])}m(n(a)),m(r(a))}function g(e){for(var n=i(e),t=0,r=n.indexInfos;t<r.length;t++){var a=r[t];m(a.keyType),m(a.type)}for(var o=0,s=n.callSignatures;o<s.length;o++){_(s[o])}for(var c=0,l=n.constructSignatures;c<l.length;c++){_(l[c])}for(var u=0,d=n.properties;u<d.length;u++){y(d[u])}}function y(n){if(!n)return!1;var t=e.getSymbolId(n);return!f[t]&&(f[t]=n,!d(n)||(m(o(n)),n.exports&&n.exports.forEach(y),e.forEach(n.declarations,(function(e){if(e.type&&180===e.type.kind){var n=e.type;y(s(l(n.exprName)))}})),!1))}}}}(ha||(ha={})),function(e){var n,t,r,a,i,o,s,c,l=/^".+"$/,u="(anonymous)",d=1,p=1,f=1,m=1;(t=n||(n={}))[t.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",t[t.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",t[t.AllowsStringInputFlag=4]="AllowsStringInputFlag",t[t.ForOfFlag=8]="ForOfFlag",t[t.YieldStarFlag=16]="YieldStarFlag",t[t.SpreadFlag=32]="SpreadFlag",t[t.DestructuringFlag=64]="DestructuringFlag",t[t.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",t[t.Element=1]="Element",t[t.Spread=33]="Spread",t[t.Destructuring=65]="Destructuring",t[t.ForOf=13]="ForOf",t[t.ForAwaitOf=15]="ForAwaitOf",t[t.YieldStar=17]="YieldStar",t[t.AsyncYieldStar=19]="AsyncYieldStar",t[t.GeneratorReturnType=1]="GeneratorReturnType",t[t.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType",(a=r||(r={}))[a.Yield=0]="Yield",a[a.Return=1]="Return",a[a.Next=2]="Next",(o=i||(i={}))[o.Normal=0]="Normal",o[o.FunctionReturn=1]="FunctionReturn",o[o.GeneratorNext=2]="GeneratorNext",o[o.GeneratorYield=3]="GeneratorYield",(c=s||(s={}))[c.None=0]="None",c[c.TypeofEQString=1]="TypeofEQString",c[c.TypeofEQNumber=2]="TypeofEQNumber",c[c.TypeofEQBigInt=4]="TypeofEQBigInt",c[c.TypeofEQBoolean=8]="TypeofEQBoolean",c[c.TypeofEQSymbol=16]="TypeofEQSymbol",c[c.TypeofEQObject=32]="TypeofEQObject",c[c.TypeofEQFunction=64]="TypeofEQFunction",c[c.TypeofEQHostObject=128]="TypeofEQHostObject",c[c.TypeofNEString=256]="TypeofNEString",c[c.TypeofNENumber=512]="TypeofNENumber",c[c.TypeofNEBigInt=1024]="TypeofNEBigInt",c[c.TypeofNEBoolean=2048]="TypeofNEBoolean",c[c.TypeofNESymbol=4096]="TypeofNESymbol",c[c.TypeofNEObject=8192]="TypeofNEObject",c[c.TypeofNEFunction=16384]="TypeofNEFunction",c[c.TypeofNEHostObject=32768]="TypeofNEHostObject",c[c.EQUndefined=65536]="EQUndefined",c[c.EQNull=131072]="EQNull",c[c.EQUndefinedOrNull=262144]="EQUndefinedOrNull",c[c.NEUndefined=524288]="NEUndefined",c[c.NENull=1048576]="NENull",c[c.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",c[c.Truthy=4194304]="Truthy",c[c.Falsy=8388608]="Falsy",c[c.All=16777215]="All",c[c.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",c[c.BaseStringFacts=12582401]="BaseStringFacts",c[c.StringStrictFacts=16317953]="StringStrictFacts",c[c.StringFacts=16776705]="StringFacts",c[c.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",c[c.EmptyStringFacts=12582401]="EmptyStringFacts",c[c.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",c[c.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",c[c.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",c[c.BaseNumberFacts=12582146]="BaseNumberFacts",c[c.NumberStrictFacts=16317698]="NumberStrictFacts",c[c.NumberFacts=16776450]="NumberFacts",c[c.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",c[c.ZeroNumberFacts=12582146]="ZeroNumberFacts",c[c.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",c[c.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",c[c.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",c[c.BaseBigIntFacts=12581636]="BaseBigIntFacts",c[c.BigIntStrictFacts=16317188]="BigIntStrictFacts",c[c.BigIntFacts=16775940]="BigIntFacts",c[c.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",c[c.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",c[c.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",c[c.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",c[c.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",c[c.BaseBooleanFacts=12580616]="BaseBooleanFacts",c[c.BooleanStrictFacts=16316168]="BooleanStrictFacts",c[c.BooleanFacts=16774920]="BooleanFacts",c[c.FalseStrictFacts=12121864]="FalseStrictFacts",c[c.FalseFacts=12580616]="FalseFacts",c[c.TrueStrictFacts=7927560]="TrueStrictFacts",c[c.TrueFacts=16774920]="TrueFacts",c[c.SymbolStrictFacts=7925520]="SymbolStrictFacts",c[c.SymbolFacts=16772880]="SymbolFacts",c[c.ObjectStrictFacts=7888800]="ObjectStrictFacts",c[c.ObjectFacts=16736160]="ObjectFacts",c[c.FunctionStrictFacts=7880640]="FunctionStrictFacts",c[c.FunctionFacts=16728e3]="FunctionFacts",c[c.UndefinedFacts=9830144]="UndefinedFacts",c[c.NullFacts=9363232]="NullFacts",c[c.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",c[c.AllTypeofNE=556800]="AllTypeofNE",c[c.EmptyObjectFacts=16777215]="EmptyObjectFacts";var _,g,y,h,v,b,E,T,S,x,L,D,C,A,I,k,N,R,O=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),w=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));(g=_||(_={}))[g.Type=0]="Type",g[g.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",g[g.DeclaredType=2]="DeclaredType",g[g.ResolvedReturnType=3]="ResolvedReturnType",g[g.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",g[g.EnumTagType=5]="EnumTagType",g[g.ResolvedTypeArguments=6]="ResolvedTypeArguments",g[g.ResolvedBaseTypes=7]="ResolvedBaseTypes",(h=y||(y={}))[h.Normal=0]="Normal",h[h.Contextual=1]="Contextual",h[h.Inferential=2]="Inferential",h[h.SkipContextSensitive=4]="SkipContextSensitive",h[h.SkipGenericFunctions=8]="SkipGenericFunctions",h[h.IsForSignatureHelp=16]="IsForSignatureHelp",(b=v||(v={}))[b.BivariantCallback=1]="BivariantCallback",b[b.StrictCallback=2]="StrictCallback",b[b.IgnoreReturnTypes=4]="IgnoreReturnTypes",b[b.StrictArity=8]="StrictArity",b[b.Callback=3]="Callback",(T=E||(E={}))[T.None=0]="None",T[T.Source=1]="Source",T[T.Target=2]="Target",T[T.PropertyCheck=4]="PropertyCheck",T[T.UnionIntersectionCheck=8]="UnionIntersectionCheck",T[T.InPropertyCheck=16]="InPropertyCheck",(x=S||(S={}))[x.None=0]="None",x[x.Source=1]="Source",x[x.Target=2]="Target",x[x.Both=3]="Both",(D=L||(L={}))[D.IncludeReadonly=1]="IncludeReadonly",D[D.ExcludeReadonly=2]="ExcludeReadonly",D[D.IncludeOptional=4]="IncludeOptional",D[D.ExcludeOptional=8]="ExcludeOptional",(A=C||(C={}))[A.None=0]="None",A[A.Source=1]="Source",A[A.Target=2]="Target",A[A.Both=3]="Both",(k=I||(I={})).resolvedExports="resolvedExports",k.resolvedMembers="resolvedMembers",(R=N||(N={}))[R.Local=0]="Local",R[R.Parameter=1]="Parameter";var M,P,F,G,B,U,V,j,K=e.and(Z,(function(n){return!e.isAccessor(n)}));(P=M||(M={}))[P.GetAccessor=1]="GetAccessor",P[P.SetAccessor=2]="SetAccessor",P[P.PropertyAssignment=4]="PropertyAssignment",P[P.Method=8]="Method",P[P.PrivateStatic=16]="PrivateStatic",P[P.GetOrSetAccessor=3]="GetOrSetAccessor",P[P.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod",(G=F||(F={}))[G.None=0]="None",G[G.ExportValue=1]="ExportValue",G[G.ExportType=2]="ExportType",G[G.ExportNamespace=4]="ExportNamespace",(U=B||(B={}))[U.None=0]="None",U[U.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",U[U.VoidIsNonOptional=2]="VoidIsNonOptional",(j=V||(V={}))[j.Uppercase=0]="Uppercase",j[j.Lowercase=1]="Lowercase",j[j.Capitalize=2]="Capitalize",j[j.Uncapitalize=3]="Uncapitalize";var H,W,z=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function J(){}function q(){this.flags=0}function X(e){return e.id||(e.id=p,p++),e.id}function Y(e){return e.id||(e.id=d,d++),e.id}function Q(n,t){var r=e.getModuleInstanceState(n);return 1===r||t&&2===r}function Z(e){return 255!==e.kind&&168!==e.kind||!!e.body}function $(n){switch(n.parent.kind){case 269:case 274:return e.isIdentifier(n);default:return e.isDeclarationName(n)}}function ee(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ne(e){return!!(1&e.flags)}function te(e){return!!(2&e.flags)}e.getNodeId=X,e.getSymbolId=Y,e.isInstantiatedModule=Q,e.createTypeChecker=function(n,t){var r,a,i,o,s=e.memoize((function(){var t=new e.Map;return n.getSourceFiles().forEach((function(e){e.resolvedModules&&e.resolvedModules.forEach((function(e){e&&e.packageId&&t.set(e.packageId.name,".d.ts"===e.extension||!!t.get(e.packageId.name))}))})),t})),c=e.objectAllocator.getSymbolConstructor(),d=e.objectAllocator.getTypeConstructor(),p=e.objectAllocator.getSignatureConstructor(),_=0,g=0,y=0,h=0,v=0,b=0,E=0,T=e.createSymbolTable(),S=[1],x=n.getCompilerOptions(),L=e.getEmitScriptTarget(x),D=e.getEmitModuleKind(x),C=e.getUseDefineForClassFields(x),A=e.getAllowSyntheticDefaultImports(x),I=e.getStrictOptionValue(x,"strictNullChecks"),k=e.getStrictOptionValue(x,"strictFunctionTypes"),N=e.getStrictOptionValue(x,"strictBindCallApply"),R=e.getStrictOptionValue(x,"strictPropertyInitialization"),M=e.getStrictOptionValue(x,"noImplicitAny"),P=e.getStrictOptionValue(x,"noImplicitThis"),F=e.getStrictOptionValue(x,"useUnknownInCatchVariables"),G=!!x.keyofStringsOnly,B=x.suppressExcessPropertyErrors?0:16384,U=x.exactOptionalPropertyTypes,V=function(){var n=e.createBinaryExpressionTrampoline((function(n,t,a){t?(t.stackIndex++,t.skip=!1,r(t,void 0),i(t,void 0)):t={checkMode:a,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if(e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n))return t.skip=!0,i(t,VE(n.right,a)),t;if(function(n){var t=n.left,r=n.operatorToken,a=n.right;60===r.kind&&(!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind||JL(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),!e.isBinaryExpression(a)||56!==a.operatorToken.kind&&55!==a.operatorToken.kind||JL(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(r.kind)))}(n),63===n.operatorToken.kind&&(204===n.left.kind||203===n.left.kind))return t.skip=!0,i(t,_E(n.left,VE(n.right,a),a,108===n.right.kind)),t;return t}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(n,t,o){if(!t.skip){var s=a(t);e.Debug.assertIsDefined(s),r(t,s),i(t,void 0);var c=n.kind;if(55===c||56===c||60===c){if(55===c){var l=e.walkUpParenthesizedExpressions(o.parent);eS(o.left,s,e.isIfStatement(l)?l.thenStatement:void 0)}nS(s,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(n,t){var o;if(t.skip)o=a(t);else{var s=function(e){return e.typeStack[e.stackIndex]}(t);e.Debug.assertIsDefined(s);var c=a(t);e.Debug.assertIsDefined(c),o=hE(n.left,n.operatorToken,n.right,s,c,n)}return t.skip=!1,r(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,n,t){return i(e,n),e}));return function(t,r){var a=n(t,r);return e.Debug.assertIsDefined(a),a};function t(n,t){if(e.isBinaryExpression(t))return t;i(n,VE(t,n.checkMode))}function r(e,n){e.typeStack[e.stackIndex]=n}function a(e){return e.typeStack[e.stackIndex+1]}function i(e,n){e.typeStack[e.stackIndex+1]=n}}(),j=function(){var t,r=n.getResolvedTypeReferenceDirectives();r&&(t=new e.Map,r.forEach((function(e,t){if(e&&e.resolvedFileName){var r=n.getSourceFile(e.resolvedFileName);r&&i(r,t)}})));return{getReferencedExportContainer:Ux,getReferencedImportDeclaration:Vx,getReferencedDeclarationWithCollidingName:Kx,isDeclarationWithCollidingName:Hx,isValueAliasDeclaration:function(n){var t=e.getParseTreeNode(n);return!t||Wx(t)},hasGlobalName:uL,isReferencedAliasDeclaration:function(n,t){var r=e.getParseTreeNode(n);return!r||Xx(r,t)},getNodeCheckFlags:function(n){var t=e.getParseTreeNode(n);return t?nL(t):0},isTopLevelValueImportEqualsWithEntityName:zx,isDeclarationVisible:Xi,isImplementationOfOverload:Yx,isRequiredInitializedParameter:Qx,isOptionalUninitializedParameterProperty:Zx,isExpandoFunctionDeclaration:$x,getPropertiesOfContainerFunction:eL,createTypeOfDeclaration:sL,createReturnTypeOfSignatureDeclaration:cL,createTypeOfExpression:lL,createLiteralConstValue:mL,isSymbolAccessible:Ai,isEntityNameVisible:wi,getConstantValue:function(n){var t=e.getParseTreeNode(n,rL);return t?aL(t):void 0},collectLinkedAliases:Yi,getReferencedValueDeclaration:pL,getTypeReferenceSerializationKind:oL,isOptionalParameter:ml,moduleExportsSomeValue:Bx,isArgumentsLocalBinding:Gx,getExternalModuleFileFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.hasPossibleExternalModuleReference);return t&&yL(t)},getTypeReferenceDirectivesForEntityName:function(e){if(!t)return;var n=790504;(79===e.kind&&V_(e)||205===e.kind&&!function(e){return e.parent&&227===e.parent.kind&&e.parent.parent&&290===e.parent.parent.kind}(e))&&(n=1160127);var r=Fa(e,n,!0);return r&&r!==Le?a(r,n):void 0},getTypeReferenceDirectivesForSymbol:a,isLiteralConstDeclaration:fL,isLateBound:function(n){var t=e.getParseTreeNode(n,e.isDeclaration),r=t&&ni(t);return!!(r&&4096&e.getCheckFlags(r))},getJsxFactoryEntity:_L,getJsxFragmentFactoryEntity:gL,getAllAccessorDeclarations:function(n){var t=172===(n=e.getParseTreeNode(n,e.isGetOrSetAccessorDeclaration)).kind?171:172,r=e.getDeclarationOfKind(ni(n),t);return{firstAccessor:r&&r.pos<n.pos?r:n,secondAccessor:r&&r.pos<n.pos?n:r,setAccessor:172===n.kind?n:r,getAccessor:171===n.kind?n:r}},getSymbolOfExternalModuleSpecifier:function(e){return Ua(e,e,void 0)},isBindingCapturedByNode:function(n,t){var r=e.getParseTreeNode(n),a=e.getParseTreeNode(t);return!!r&&!!a&&(e.isVariableDeclaration(a)||e.isBindingElement(a))&&function(n,t){var r=zr(n);return!!r&&e.contains(r.capturedBlockScopeBindings,ni(t))}(r,a)},getDeclarationStatementsForSourceFile:function(n,t,r,a){var i=e.getParseTreeNode(n);e.Debug.assert(i&&303===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=ni(n);return o?o.exports?W.symbolTableToDeclarationStatements(o.exports,n,t,r,a):[]:n.locals?W.symbolTableToDeclarationStatements(n.locals,n,t,r,a):[]},isImportRequiredByAugmentation:function(n){var t=e.getSourceFileOfNode(n);if(!t.symbol)return!1;var r=yL(n);if(!r)return!1;if(r===t)return!1;for(var a=Qa(t.symbol),i=0,o=e.arrayFrom(a.values());i<o.length;i++){var s=o[i];if(s.mergeId){var c=ei(s);if(c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var d=u[l];if(e.getSourceFileOfNode(d)===r)return!0}}}return!1}};function a(n,r){if(t&&function(n){if(!n.declarations)return!1;var r=n;for(;;){var a=ti(r);if(!a)break;r=a}if(r.valueDeclaration&&303===r.valueDeclaration.kind&&512&r.flags)return!1;for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i],c=e.getSourceFileOfNode(s);if(t.has(c.path))return!0}return!1}(n)){for(var a,i=0,o=n.declarations;i<o.length;i++){var s=o[i];if(s.symbol&&s.symbol.flags&r){var c=e.getSourceFileOfNode(s),l=t.get(c.path);if(!l)return;(a||(a=[])).push(l)}}return a}}function i(r,a){if(!t.has(r.path)){t.set(r.path,a);for(var o=0,s=r.referencedFiles;o<s.length;o++){var c=s[o].fileName,l=e.resolveTripleslashReference(c,r.fileName),u=n.getSourceFile(l);u&&i(u,a)}}}}(),W=function(){return{typeToTypeNode:function(e,n,r,a){return t(n,r,a,(function(n){return o(e,n)}))},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){return t(n,r,a,(function(n){return p(e,n,void 0)}))},signatureToSignatureDeclaration:function(e,n,r,a,i){return t(r,a,i,(function(t){return f(e,n,t)}))},symbolToEntityName:function(e,n,r,a,i){return t(r,a,i,(function(t){return N(e,t,n,!1)}))},symbolToExpression:function(e,n,r,a,i){return t(r,a,i,(function(t){return R(e,t,n)}))},symbolToTypeParameterDeclarations:function(e,n,r,a){return t(n,r,a,(function(n){return b(e,n)}))},symbolToParameterDeclaration:function(e,n,r,a){return t(n,r,a,(function(n){return g(e,n)}))},typeParameterToDeclaration:function(e,n,r,a){return t(n,r,a,(function(n){return _(e,n)}))},symbolTableToDeclarationStatements:function(n,r,i,s,c){return t(r,i,s,(function(t){return function(n,t,r){var i=ce(e.factory.createPropertyDeclaration,168,!0),s=ce((function(n,t,r,a,i){return e.factory.createPropertySignature(t,r,a,i)}),167,!1),c=t.enclosingDeclaration,l=[],u=new e.Set,d=[],m=t;(t=fa(fa({},m),{usedSymbolNames:new e.Set(m.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:fa(fa({},m.tracker),{trackSymbol:function(e,n,r){if(0===Ai(e,n,r,!1).accessibility){var a=v(e,t,r);4&e.flags||G(a[0])}else if(m.tracker&&m.tracker.trackSymbol)return m.tracker.trackSymbol(e,n,r);return!1}})})).tracker=a(t,t.tracker),e.forEachEntry(n,(function(n,t){ye(n,e.unescapeLeadingUnderscores(t))}));var g=!r,y=n.get("export=");y&&n.size>1&&2097152&y.flags&&(n=e.createSymbolTable()).set("export=",y);return O(n),C(l);function h(e){return!!e&&79===e.kind}function b(n){return e.isVariableStatement(n)?e.filter(e.map(n.declarationList.declarations,e.getNameOfDeclaration),h):e.filter([e.getNameOfDeclaration(n)],h)}function E(n){var t=e.find(n,e.isExportAssignment),r=e.findIndex(n,e.isModuleDeclaration),a=-1!==r?n[r]:void 0;if(a&&t&&t.isExportEquals&&e.isIdentifier(t.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(t.expression)&&a.body&&e.isModuleBlock(a.body)){var i=e.filter(n,(function(n){return!!(1&e.getEffectiveModifierFlags(n))})),o=a.name,s=a.body;if(e.length(i)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,s=e.factory.updateModuleBlock(s,e.factory.createNodeArray(pa(pa([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(i,(function(e){return b(e)})),(function(n){return e.factory.createExportSpecifier(!1,void 0,n)}))),void 0)],!1)))),n=pa(pa(pa([],n.slice(0,r),!0),[a],!1),n.slice(r+1),!0)),!e.find(n,(function(n){return n!==a&&e.nodeHasName(n,o)}))){l=[];var c=!e.some(s.statements,(function(n){return e.hasSyntacticModifier(n,1)||e.isExportAssignment(n)||e.isExportDeclaration(n)}));e.forEach(s.statements,(function(e){K(e,c?1:0)})),n=pa(pa([],e.filter(n,(function(e){return e!==a&&e!==t})),!0),l,!0)}}return n}function T(n){var t=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(t)>1){var r=e.filter(n,(function(n){return!e.isExportDeclaration(n)||!!n.moduleSpecifier||!n.exportClause}));n=pa(pa([],r,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(a)>1){var i=e.group(a,(function(n){return e.isStringLiteral(n.moduleSpecifier)?">"+n.moduleSpecifier.text:">"}));if(i.length!==a.length)for(var o=function(t){t.length>1&&(n=pa(pa([],e.filter(n,(function(e){return-1===t.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),t[0].moduleSpecifier)],!1))},s=0,c=i;s<c.length;s++){o(c[s])}}return n}function D(n){var t=e.findIndex(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!n.assertClause&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(t>=0){var r=n[t],a=e.mapDefined(r.exportClause.elements,(function(t){if(!t.propertyName){var r=e.indicesOf(n),a=e.filter(r,(function(r){return e.nodeHasName(n[r],t.name)}));if(e.length(a)&&e.every(a,(function(e){return A(n[e])}))){for(var i=0,o=a;i<o.length;i++){var s=o[i];n[s]=I(n[s])}return}}return t}));e.length(a)?n[t]=e.factory.updateExportDeclaration(r,r.decorators,r.modifiers,r.isTypeOnly,e.factory.updateNamedExports(r.exportClause,a),r.moduleSpecifier,r.assertClause):e.orderedRemoveItemAt(n,t)}return n}function C(n){return n=D(n=T(n=E(n))),c&&(e.isSourceFile(c)&&e.isExternalOrCommonJsModule(c)||e.isModuleDeclaration(c))&&(!e.some(n,e.isExternalModuleIndicator)||!e.hasScopeMarker(n)&&e.some(n,e.needsScopeMarker))&&n.push(e.createEmptyExports(e.factory)),n}function A(n){return e.isEnumDeclaration(n)||e.isVariableStatement(n)||e.isFunctionDeclaration(n)||e.isClassDeclaration(n)||e.isModuleDeclaration(n)&&!e.isExternalModuleAugmentation(n)&&!e.isGlobalScopeAugmentation(n)||e.isInterfaceDeclaration(n)||Sx(n)}function I(n){var t=-3&(1|e.getEffectiveModifierFlags(n));return e.factory.updateModifiers(n,t)}function k(n){var t=-2&e.getEffectiveModifierFlags(n);return e.factory.updateModifiers(n,t)}function O(n,t,r){t||d.push(new e.Map),n.forEach((function(e){w(e,!1,!!r)})),t||(d[d.length-1].forEach((function(e){w(e,!0,!!r)})),d.pop())}function w(n,r,i){var o=ei(n);if(!u.has(Y(o))&&(u.add(Y(o)),!r||e.length(n.declarations)&&e.some(n.declarations,(function(n){return!!e.findAncestor(n,(function(e){return e===c}))})))){var s=t;t=function(n){var t=fa({},n);t.typeParameterNames&&(t.typeParameterNames=new e.Map(t.typeParameterNames));t.typeParameterNamesByText&&(t.typeParameterNamesByText=new e.Set(t.typeParameterNamesByText));t.typeParameterSymbolList&&(t.typeParameterSymbolList=new e.Set(t.typeParameterSymbolList));return t.tracker=a(t,t.tracker),t}(t);var l=P(n,r,i);return t.reportedDiagnostic&&(m.reportedDiagnostic=t.reportedDiagnostic),t=s,l}}function P(n,a,i){var o,s,l=e.unescapeLeadingUnderscores(n.escapedName),u="default"===n.escapedName;if(!a||131072&t.flags||!e.isStringANonContextualKeyword(l)||u){var d=u&&!!(-113&n.flags||16&n.flags&&e.length(Cc(Xo(n))))&&!(2097152&n.flags),p=!d&&!a&&e.isStringANonContextualKeyword(l)&&!u;(d||p)&&(a=!0);var f=(a?0:1)|(u&&!d?512:0),m=1536&n.flags&&7&n.flags&&"export="!==n.escapedName,_=m&&se(Xo(n),n);if((8208&n.flags||_)&&Q(Xo(n),n,ye(n,l),f),524288&n.flags&&H(n,l,f),7&n.flags&&"export="!==n.escapedName&&!(4194304&n.flags)&&!(32&n.flags)&&!_)if(i){oe(n)&&(p=!1,d=!1)}else{var g=Xo(n),y=ye(n,l);if(16&n.flags||!se(g,n)){var h=2&n.flags?ey(n)?2:1:void 0,v=!d&&4&n.flags?_e(y,n):y,b=n.declarations&&e.find(n.declarations,(function(n){return e.isVariableDeclaration(n)}));b&&e.isVariableDeclarationList(b.parent)&&1===b.parent.declarations.length&&(b=b.parent.parent);var E=null===(o=n.declarations)||void 0===o?void 0:o.find(e.isPropertyAccessExpression);if(E&&e.isBinaryExpression(E.parent)&&e.isIdentifier(E.parent.right)&&(null===(s=g.symbol)||void 0===s?void 0:s.valueDeclaration)&&e.isSourceFile(g.symbol.valueDeclaration)){var T=y===E.parent.right.escapedText?void 0:E.parent.right;K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,T,y)])),0),t.tracker.trackSymbol(g.symbol,t.enclosingDeclaration,111551)}else{K(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(v,void 0,B(t,g,n,c,G,r))],h)),b),v!==y?-2&f:f),v===y||a||(K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,v,y)])),0),p=!1,d=!1)}}else Q(g,n,y,f)}if(384&n.flags&&X(n,l,f),32&n.flags&&(4&n.flags&&n.valueDeclaration&&e.isBinaryExpression(n.valueDeclaration.parent)&&e.isClassExpression(n.valueDeclaration.parent.right)?ae(n,ye(n,l),f):te(n,ye(n,l),f)),(1536&n.flags&&(!m||J(n))||_)&&q(n,l,f),64&n.flags&&!(32&n.flags)&&W(n,l,f),2097152&n.flags&&ae(n,ye(n,l),f),4&n.flags&&"export="===n.escapedName&&oe(n),8388608&n.flags&&n.declarations)for(var x=0,L=n.declarations;x<L.length;x++){var D=L[x],C=Ba(D,D.moduleSpecifier);C&&K(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(S(C,t))),0)}d?K(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(ye(n,l))),0):p&&K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ye(n,l),l)])),0)}else t.encounteredError=!0}function G(n){if(!e.some(n.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(d[d.length-1]),_e(e.unescapeLeadingUnderscores(n.escapedName),n);var t=!!(2097152&n.flags)&&!e.some(n.declarations,(function(n){return!!e.findAncestor(n,e.isExportDeclaration)||e.isNamespaceExport(n)||e.isImportEqualsDeclaration(n)&&!e.isExternalModuleReference(n.moduleReference)}));d[t?0:d.length-1].set(Y(n),n)}}function j(n){return e.isSourceFile(n)&&(e.isExternalOrCommonJsModule(n)||e.isJsonSourceFile(n))||e.isAmbientModule(n)&&!e.isGlobalScopeAugmentation(n)}function K(n,r){if(e.canHaveModifiers(n)){var a=0,i=t.enclosingDeclaration&&(e.isJSDocTypeAlias(t.enclosingDeclaration)?e.getSourceFileOfNode(t.enclosingDeclaration):t.enclosingDeclaration);1&r&&i&&(j(i)||e.isModuleDeclaration(i))&&A(n)&&(a|=1),!g||1&a||i&&8388608&i.flags||!(e.isEnumDeclaration(n)||e.isVariableStatement(n)||e.isFunctionDeclaration(n)||e.isClassDeclaration(n)||e.isModuleDeclaration(n))||(a|=2),512&r&&(e.isClassDeclaration(n)||e.isInterfaceDeclaration(n)||e.isFunctionDeclaration(n))&&(a|=512),a&&(n=e.factory.updateModifiers(n,a|e.getEffectiveModifierFlags(n)))}l.push(n)}function H(n,a,i){var s,c=_s(n),l=Wr(n).typeParameters,u=e.map(l,(function(e){return _(e,t)})),d=null===(s=n.declarations)||void 0===s?void 0:s.find(e.isJSDocTypeAlias),p=e.getTextOfJSDocComment(d?d.comment||d.parent.comment:void 0),f=t.flags;t.flags|=8388608;var m=t.enclosingDeclaration;t.enclosingDeclaration=d;var g=d&&d.typeExpression&&e.isJSDocTypeExpression(d.typeExpression)&&V(t,d.typeExpression.type,G,r)||o(c,t);K(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,ye(n,a),u,g),p?[{kind:3,text:"*\n * "+p.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),i),t.flags=f,t.enclosingDeclaration=m}function W(n,r,a){var i=ms(n),o=rs(n),s=e.map(o,(function(e){return _(e,t)})),c=ds(i),l=e.length(c)?pd(c):void 0,u=e.flatMap(Cc(i),(function(e){return le(e,l)})),d=ue(0,i,l,173),p=ue(1,i,l,174),f=de(i,l),m=e.length(c)?[e.factory.createHeritageClause(94,e.mapDefined(c,(function(e){return fe(e,111551)})))]:void 0;K(e.factory.createInterfaceDeclaration(void 0,void 0,ye(n,r),s,m,pa(pa(pa(pa([],f,!0),p,!0),d,!0),u,!0)),a)}function z(n){return n.exports?e.filter(e.arrayFrom(n.exports.values()),ee):[]}function J(n){return e.every(z(n),(function(e){return!(111551&Aa(e).flags)}))}function q(n,r,a){var i=z(n),o=e.arrayToMultiMap(i,(function(e){return e.parent&&e.parent===n?"real":"merged"})),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;e.length(s)&&$(s,u=ye(n,r),a,!!(67108880&n.flags));if(e.length(c)){var l=e.getSourceFileOfNode(t.enclosingDeclaration),u=ye(n,r),d=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(function(e){return"export="!==e.escapedName})),(function(r){var a,i,o=e.unescapeLeadingUnderscores(r.escapedName),s=ye(r,o),c=r.declarations&&la(r);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(r.declarations,(function(n){return e.getSourceFileOfNode(n)===l})))){var u=c&&Da(c,!0);G(u||r);var d=u?ye(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.factory.createExportSpecifier(!1,o===d?void 0:d,o)}null===(i=null===(a=t.tracker)||void 0===a?void 0:a.reportNonlocalAugmentation)||void 0===i||i.call(a,l,n,r)}))))]);K(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(u),d,16),0)}}function X(n,t,r){K(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(pE(n)?2048:0),ye(n,t),e.map(e.filter(Cc(Xo(n)),(function(e){return!!(8&e.flags)})),(function(n){var t=n.declarations&&n.declarations[0]&&e.isEnumMember(n.declarations[0])?aL(n.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(n.escapedName),void 0===t?void 0:"string"===typeof t?e.factory.createStringLiteral(t):e.factory.createNumericLiteral(t))}))),r)}function Q(n,a,i,o){for(var s=0,c=$c(n,0);s<c.length;s++){var l=c[s],u=f(l,255,t,{name:e.factory.createIdentifier(i),privateSymbolVisitor:G,bundledImports:r});K(e.setTextRange(u,Z(l)),o)}1536&a.flags&&a.exports&&a.exports.size||$(e.filter(Cc(n),ee),i,o,!0)}function Z(n){if(n.declaration&&n.declaration.parent){if(e.isBinaryExpression(n.declaration.parent)&&5===e.getAssignmentDeclarationKind(n.declaration.parent))return n.declaration.parent;if(e.isVariableDeclaration(n.declaration.parent)&&n.declaration.parent.parent)return n.declaration.parent.parent}return n.declaration}function $(n,r,a,i){if(e.length(n)){var o=e.arrayToMultiMap(n,(function(n){return!e.length(n.declarations)||e.some(n.declarations,(function(n){return e.getSourceFileOfNode(n)===e.getSourceFileOfNode(t.enclosingDeclaration)}))?"local":"remote"})).get("local")||e.emptyArray,s=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(r),e.factory.createModuleBlock([]),16);e.setParent(s,c),s.locals=e.createSymbolTable(n),s.symbol=n[0].parent;var u=l;l=[];var d=g;g=!1;var p=fa(fa({},t),{enclosingDeclaration:s}),f=t;t=p,O(e.createSymbolTable(o),i,!0),t=f,g=d;var m=l;l=u;var _=e.map(m,(function(n){return e.isExportAssignment(n)&&!n.isExportEquals&&e.isIdentifier(n.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,n.expression,e.factory.createIdentifier("default"))])):n})),y=e.every(_,(function(n){return e.hasSyntacticModifier(n,1)}))?e.map(_,k):_;K(s=e.factory.updateModuleDeclaration(s,s.decorators,s.modifiers,s.name,e.factory.createModuleBlock(y)),a)}}function ee(n){return!!(2887656&n.flags)||!(4194304&n.flags||"prototype"===n.escapedName||n.valueDeclaration&&e.isStatic(n.valueDeclaration)&&e.isClassLike(n.valueDeclaration.parent))}function ne(n){var a=e.mapDefined(n,(function(n){var a,i=t.enclosingDeclaration;t.enclosingDeclaration=n;var s=n.expression;if(e.isEntityNameExpression(s)){if(e.isIdentifier(s)&&""===e.idText(s))return l(void 0);var c=void 0;if(c=(a=U(s,t,G)).introducesError,s=a.node,c)return l(void 0)}return l(e.factory.createExpressionWithTypeArguments(s,e.map(n.typeArguments,(function(e){return V(t,e,G,r)||o(Lp(e),t)}))));function l(e){return t.enclosingDeclaration=i,e}}));if(a.length===n.length)return a}function te(n,r,a){var o,s,c=null===(o=n.declarations)||void 0===o?void 0:o.find(e.isClassLike),l=t.enclosingDeclaration;t.enclosingDeclaration=c||l;var u=rs(n),d=e.map(u,(function(e){return _(e,t)})),p=ms(n),f=ds(p),m=c&&e.getEffectiveImplementsTypeNodes(c),g=m&&ne(m)||e.mapDefined(function(n){var t=e.emptyArray;if(n.symbol.declarations)for(var r=0,a=n.symbol.declarations;r<a.length;r++){var i=a[r],o=e.getEffectiveImplementsTypeNodes(i);if(o)for(var s=0,c=o;s<c.length;s++){var l=Lp(c[s]);ao(l)||(t===e.emptyArray?t=[l]:t.push(l))}}return t}(p),me),y=Xo(n),h=!!(null===(s=y.symbol)||void 0===s?void 0:s.valueDeclaration)&&e.isClassLike(y.symbol.valueDeclaration),v=h?ls(y):Ie,b=pa(pa([],e.length(f)?[e.factory.createHeritageClause(94,e.map(f,(function(e){return pe(e,v,r)})))]:[],!0),e.length(g)?[e.factory.createHeritageClause(117,g)]:[],!0),E=function(n,t,r){if(!e.length(t))return r;var a=new e.Map;e.forEach(r,(function(e){a.set(e.escapedName,e)}));for(var i=0,o=t;i<o.length;i++)for(var s=0,c=Cc(Ks(o[i],n.thisType));s<c.length;s++){var l=c[s],u=a.get(l.escapedName);u&&!tm(u,l)&&a.delete(l.escapedName)}return e.arrayFrom(a.values())}(p,f,Cc(p)),T=e.filter(E,(function(n){var t=n.valueDeclaration;return!!t&&!(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))})),S=e.some(E,(function(n){var t=n.valueDeclaration;return!!t&&e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,x=e.flatMap(T,(function(e){return i(e,!1,f[0])})),L=e.flatMap(e.filter(Cc(y),(function(e){return!(4194304&e.flags)&&"prototype"!==e.escapedName&&!ee(e)})),(function(e){return i(e,!0,v)})),D=!h&&!!n.valueDeclaration&&e.isInJSFile(n.valueDeclaration)&&!e.some($c(y,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:ue(1,y,v,170),C=de(p,f[0]);t.enclosingDeclaration=l,K(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,r,d,b,pa(pa(pa(pa(pa([],C,!0),L,!0),D,!0),x,!0),S,!0)),n.declarations&&e.filter(n.declarations,(function(n){return e.isClassDeclaration(n)||e.isClassExpression(n)}))[0]),a)}function re(n){return e.firstDefined(n,(function(n){if(e.isImportSpecifier(n)||e.isExportSpecifier(n))return e.idText(n.propertyName||n.name);if(e.isBinaryExpression(n)||e.isExportAssignment(n)){var t=e.isExportAssignment(n)?n.expression:n.right;if(e.isPropertyAccessExpression(t))return e.idText(t.name)}if(ua(n)){var r=e.getNameOfDeclaration(n);if(r&&e.isIdentifier(r))return e.idText(r)}}))}function ae(n,r,a){var i,o,s,c,l,u=la(n);if(!u)return e.Debug.fail();var d=ei(Da(u,!0));if(d){var p=e.isShorthandAmbientModuleSymbol(d)&&re(n.declarations)||e.unescapeLeadingUnderscores(d.escapedName);"export="===p&&(e.getESModuleInterop(x)||x.allowSyntheticDefaultImports)&&(p="default");var f=ye(d,p);switch(G(d),u.kind){case 202:if(253===(null===(o=null===(i=u.parent)||void 0===i?void 0:i.parent)||void 0===o?void 0:o.kind)){var m=S(d.parent||d,t),_=u.propertyName;K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,_&&e.isIdentifier(_)?e.factory.createIdentifier(e.idText(_)):void 0,e.factory.createIdentifier(r))])),e.factory.createStringLiteral(m),void 0),0);break}e.Debug.failBadSyntaxKind((null===(s=u.parent)||void 0===s?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:220===(null===(l=null===(c=u.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&ie(e.unescapeLeadingUnderscores(n.escapedName),f);break;case 253:if(e.isPropertyAccessExpression(u.initializer)){var g=u.initializer,y=e.factory.createUniqueName(r),h=S(d.parent||d,t);K(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(h))),0),K(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(r),e.factory.createQualifiedName(y,g.name)),a);break}case 264:if("export="===d.escapedName&&e.some(d.declarations,e.isJsonSourceFile)){oe(n);break}var v=!(512&d.flags)&&!e.isVariableDeclaration(u);K(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(r),v?N(d,t,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(S(d,t)))),v?a:0);break;case 263:K(e.factory.createNamespaceExportDeclaration(e.idText(u.name)),0);break;case 266:K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(r),void 0),e.factory.createStringLiteral(S(d.parent||d,t)),void 0),0);break;case 267:K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(r))),e.factory.createStringLiteral(S(d,t)),void 0),0);break;case 273:K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(r)),e.factory.createStringLiteral(S(d,t))),0);break;case 269:K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,r!==p?e.factory.createIdentifier(p):void 0,e.factory.createIdentifier(r))])),e.factory.createStringLiteral(S(d.parent||d,t)),void 0),0);break;case 274:var b=u.parent.parent.moduleSpecifier;ie(e.unescapeLeadingUnderscores(n.escapedName),b?p:f,b&&e.isStringLiteralLike(b)?e.factory.createStringLiteral(b.text):void 0);break;case 270:oe(n);break;case 220:case 205:case 206:"default"===n.escapedName||"export="===n.escapedName?oe(n):ie(r,f);break;default:return e.Debug.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}}function ie(n,t,r){K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,n!==t?t:void 0,n)]),r),0)}function oe(n){if(4194304&n.flags)return!1;var a=e.unescapeLeadingUnderscores(n.escapedName),i="export="===a,o=i||"default"===a,s=n.declarations&&la(n),u=s&&Da(s,!0);if(u&&e.length(u.declarations)&&e.some(u.declarations,(function(n){return e.getSourceFileOfNode(n)===e.getSourceFileOfNode(c)}))){var d=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),p=d&&e.isEntityNameExpression(d)?function(n){switch(n.kind){case 79:return n;case 160:do{n=n.left}while(79!==n.kind);return n;case 205:do{if(e.isModuleExportsAccessExpression(n.expression)&&!e.isPrivateIdentifier(n.name))return n.name;n=n.expression}while(79!==n.kind);return n}}(d):void 0,f=p&&Fa(p,67108863,!0,!0,c);(f||u)&&G(f||u);var m=t.tracker.trackSymbol;if(t.tracker.trackSymbol=function(){return!1},o)l.push(e.factory.createExportAssignment(void 0,void 0,i,R(u,t,67108863)));else if(p===d&&p)ie(a,e.idText(p));else if(d&&e.isClassExpression(d))ie(a,ye(u,e.symbolName(u)));else{var _=_e(a,n);K(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(_),N(u,t,67108863,!1)),0),ie(a,_)}return t.tracker.trackSymbol=m,!0}_=_e(a,n);var g=$m(Xo(ei(n)));return se(g,n)?Q(g,n,_,o?0:1):K(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(_,void 0,B(t,g,n,c,G,r))],2)),u&&4&u.flags&&"export="===u.escapedName?2:a===_?1:0),o?(l.push(e.factory.createExportAssignment(void 0,void 0,i,e.factory.createIdentifier(_))),!0):a!==_&&(ie(a,_),!0)}function se(n,r){var a=e.getSourceFileOfNode(t.enclosingDeclaration);return 48&e.getObjectFlags(n)&&!e.length(al(n))&&!ji(n)&&!(!e.length(e.filter(Cc(n),ee))&&!e.length($c(n,0)))&&!e.length($c(n,1))&&!F(r,c)&&!(n.symbol&&e.some(n.symbol.declarations,(function(n){return e.getSourceFileOfNode(n)!==a})))&&!e.some(Cc(n),(function(e){return Ms(e.escapedName)}))&&!e.some(Cc(n),(function(n){return e.some(n.declarations,(function(n){return e.getSourceFileOfNode(n)!==a}))}))&&e.every(Cc(n),(function(n){return e.isIdentifierText(e.symbolName(n),L)}))}function ce(n,a,i){return function(o,s,l){var u,d,p,m,_,g=e.getDeclarationModifierFlagsFromSymbol(o),y=!!(8&g);if(s&&2887656&o.flags)return[];if(4194304&o.flags||l&&Qc(l,o.escapedName)&&rE(Qc(l,o.escapedName))===rE(o)&&(16777216&o.flags)===(16777216&Qc(l,o.escapedName).flags)&&of(Xo(o),to(l,o.escapedName)))return[];var h=-257&g|(s?32:0),v=M(o,t),b=null===(u=o.declarations)||void 0===u?void 0:u.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&i){var E=[];if(65536&o.flags&&E.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(h),v,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,y?void 0:B(t,Xo(o),o,c,G,r))],void 0),(null===(d=o.declarations)||void 0===d?void 0:d.find(e.isSetAccessor))||b)),32768&o.flags){var T=8&g;E.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(h),v,[],T?void 0:B(t,Xo(o),o,c,G,r),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.isGetAccessor))||b))}return E}if(98311&o.flags)return e.setTextRange(n(void 0,e.factory.createModifiersFromModifierFlags((rE(o)?64:0)|h),v,16777216&o.flags?e.factory.createToken(57):void 0,y?void 0:B(t,Xo(o),o,c,G,r),void 0),(null===(m=o.declarations)||void 0===m?void 0:m.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var S=$c(Xo(o),0);if(8&h)return e.setTextRange(n(void 0,e.factory.createModifiersFromModifierFlags((rE(o)?64:0)|h),v,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(_=o.declarations)||void 0===_?void 0:_.find(e.isFunctionLikeDeclaration))||S[0]&&S[0].declaration||o.declarations&&o.declarations[0]);for(var x=[],L=0,D=S;L<D.length;L++){var C=D[L],A=f(C,a,t,{name:v,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:h?e.factory.createModifiersFromModifierFlags(h):void 0}),I=C.declaration&&e.isPrototypePropertyAssignment(C.declaration.parent)?C.declaration.parent:C.declaration;x.push(e.setTextRange(A,I))}return x}return e.Debug.fail("Unhandled class member kind! ".concat(o.__debugFlags||o.flags))}}function le(e,n){return s(e,!1,n)}function ue(n,r,a,i){var o=$c(r,n);if(1===n){if(!a&&e.every(o,(function(n){return 0===e.length(n.parameters)})))return[];if(a){var s=$c(a,1);if(!e.length(s)&&e.every(o,(function(n){return 0===e.length(n.parameters)})))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!am(o[l],s[l],!1,!1,!0,sf)){c=!0;break}if(!c)return[]}}for(var u=0,d=0,p=o;d<p.length;d++){var m=p[d];m.declaration&&(u|=e.getSelectedEffectiveModifierFlags(m.declaration,24))}if(u)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(u),[],void 0),o[0].declaration)]}for(var _=[],g=0,y=o;g<y.length;g++){var h=y[g],v=f(h,i,t);_.push(e.setTextRange(v,h.declaration))}return _}function de(e,n){for(var r=[],a=0,i=al(e);a<i.length;a++){var o=i[a];if(n){var s=il(n,o.keyType);if(s&&of(o.type,s.type))continue}r.push(p(o,t,void 0))}return r}function pe(n,r,a){var i=fe(n,111551);if(i)return i;var s=_e("".concat(a,"_base"));return K(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(s,void 0,o(r,t))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(s),void 0)}function fe(n,r){var a,i;if(n.target&&Di(n.target.symbol,c,r)?(a=e.map($l(n),(function(e){return o(e,t)})),i=R(n.target.symbol,t,788968)):n.symbol&&Di(n.symbol,c,r)&&(i=R(n.symbol,t,788968)),i)return e.factory.createExpressionWithTypeArguments(i,a)}function me(n){var r=fe(n,788968);return r||(n.symbol?e.factory.createExpressionWithTypeArguments(R(n.symbol,t,788968),void 0):void 0)}function _e(e,n){var r,a,i=n?Y(n):void 0;if(i&&t.remappedSymbolNames.has(i))return t.remappedSymbolNames.get(i);n&&(e=ge(n,e));for(var o=0,s=e;null===(r=t.usedSymbolNames)||void 0===r?void 0:r.has(e);)o++,e="".concat(s,"_").concat(o);return null===(a=t.usedSymbolNames)||void 0===a||a.add(e),i&&t.remappedSymbolNames.set(i,e),e}function ge(n,r){if("default"===r||"__class"===r||"__function"===r){var a=t.flags;t.flags|=16777216;var i=qi(n,t);t.flags=a,r=i.length>0&&e.isSingleOrDoubleQuote(i.charCodeAt(0))?e.stripQuotes(i):i}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,L)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function ye(e,n){var r=Y(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=ge(e,n),t.remappedSymbolNames.set(r,n),n)}}(n,t,c)}))}};function t(t,r,i,o){var s,c;e.Debug.assert(void 0===t||0===(8&t.flags));var l={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return n.getCurrentDirectory()},getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return n.fileExists(e)},getFileIncludeReasons:function(){return n.getFileIncludeReasons()},readFile:n.readFile?function(e){return n.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=a(l,l.tracker);var u=o(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function a(e,n){var t=n.trackSymbol;return fa(fa({},n),{reportCyclicStructureError:r(n.reportCyclicStructureError),reportInaccessibleThisError:r(n.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:r(n.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:r(n.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:r(n.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:r(n.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:r(n.reportNonSerializableProperty),trackSymbol:t&&function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=t.apply(void 0,n);return a&&(e.reportedDiagnostic=!0),a}});function r(n){return n?function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.reportedDiagnostic=!0,n.apply(void 0,t)}:n}}function i(n){return n.truncating?n.truncating:n.truncating=n.approximateLength>(1&n.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(n,t){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var a=8388608&t.flags;if(t.flags&=-8388609,!n)return 262144&t.flags?(t.approximateLength+=3,e.factory.createKeywordTypeNode(130)):void(t.encounteredError=!0);if(536870912&t.flags||(n=zc(n)),1&n.flags)return n.aliasSymbol?e.factory.createTypeReferenceNode(D(n.aliasSymbol),d(n.aliasTypeArguments,t)):n===Oe?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(t.approximateLength+=3,e.factory.createKeywordTypeNode(n===Me?138:130));if(2&n.flags)return e.factory.createKeywordTypeNode(154);if(4&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(8&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(64&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(16&n.flags&&!n.aliasSymbol)return t.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(1024&n.flags&&!(1048576&n.flags)){var c=ti(n.symbol),l=C(c,t,788968);if(Ss(c)===n)return l;var _=e.symbolName(n.symbol);return e.isIdentifierText(_,0)?G(l,e.factory.createTypeReferenceNode(_,void 0)):e.isImportTypeNode(l)?(l.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(l,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(_)))):e.isTypeReferenceNode(l)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(l.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(_))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&n.flags)return C(n.symbol,t,788968);if(128&n.flags)return t.approximateLength+=n.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(n.value,!!(268435456&t.flags)),16777216));if(256&n.flags){var g=n.value;return t.approximateLength+=(""+g).length,e.factory.createLiteralTypeNode(g<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-g)):e.factory.createNumericLiteral(g))}if(2048&n.flags)return t.approximateLength+=e.pseudoBigIntToString(n.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(n.value));if(512&n.flags)return t.approximateLength+=n.intrinsicName.length,e.factory.createLiteralTypeNode("true"===n.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&n.flags){if(!(1048576&t.flags)){if(Li(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,C(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(16384&n.flags)return t.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&n.flags)return t.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(65536&n.flags)return t.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&n.flags)return t.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(4096&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(67108864&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(Fd(n))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),t.tracker.reportInaccessibleThisError&&t.tracker.reportInaccessibleThisError()),t.approximateLength+=4,e.factory.createThisTypeNode();if(!a&&n.aliasSymbol&&(16384&t.flags||xi(n.aliasSymbol,t.enclosingDeclaration))){var y=d(n.aliasTypeArguments,t);return!_i(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?C(n.aliasSymbol,t,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var h=e.getObjectFlags(n);if(4&h)return e.Debug.assert(!!(524288&n.flags)),n.node?M(n,F):F(n);if(262144&n.flags||3&h){if(262144&n.flags&&e.contains(t.inferTypeParameters,n))return t.approximateLength+=e.symbolName(n.symbol).length+6,e.factory.createInferTypeNode(m(n,t,void 0));if(4&t.flags&&262144&n.flags&&!xi(n.symbol,t.enclosingDeclaration)){var v=k(n,t);return t.approximateLength+=e.idText(v).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(v)),void 0)}return n.symbol?C(n.symbol,t,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&n.flags&&n.origin&&(n=n.origin),3145728&n.flags){var b=1048576&n.flags?function(e){for(var n=[],t=0,r=0;r<e.length;r++){var a=e[r];if(t|=a.flags,!(98304&a.flags)){if(1536&a.flags){var i=512&a.flags?Qe:vs(a);if(1048576&i.flags){var o=i.types.length;if(r+o<=e.length&&_p(e[r+o-1])===_p(i.types[o-1])){n.push(i),r+=o-1;continue}}}n.push(a)}}65536&t&&n.push(je);32768&t&&n.push(Ge);return n||e}(n.types):n.types;if(1===e.length(b))return o(b[0],t);var E=d(b,t,!0);return E&&E.length>0?1048576&n.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&n.flags)),w(n);if(4194304&n.flags){var T=n.type;t.approximateLength+=6;var S=o(T,t);return e.factory.createTypeOperatorNode(140,S)}if(134217728&n.flags){var x=n.texts,L=n.types,A=e.factory.createTemplateHead(x[0]),I=e.factory.createNodeArray(e.map(L,(function(n,r){return e.factory.createTemplateLiteralTypeSpan(o(n,t),(r<L.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(x[r+1]))})));return t.approximateLength+=2,e.factory.createTemplateLiteralType(A,I)}if(268435456&n.flags){var N=o(n.type,t);return C(n.symbol,t,788968,[N])}if(8388608&n.flags){var R=o(n.objectType,t);S=o(n.indexType,t);return t.approximateLength+=2,e.factory.createIndexedAccessTypeNode(R,S)}return 16777216&n.flags?M(n,(function(n){return function(n){var r=o(n.checkType,t),a=t.inferTypeParameters;t.inferTypeParameters=n.root.inferTypeParameters;var i=o(n.extendsType,t);t.inferTypeParameters=a;var s=O(Zd(n)),c=O($d(n));return t.approximateLength+=15,e.factory.createConditionalTypeNode(r,i,s,c)}(n)})):33554432&n.flags?o(n.baseType,t):e.Debug.fail("Should be unreachable.");function O(e){var n,r,a;return 1048576&e.flags?(null===(n=t.visitedTypes)||void 0===n?void 0:n.has(Qu(e)))?(131072&t.flags||(t.encounteredError=!0,null===(a=null===(r=t.tracker)||void 0===r?void 0:r.reportCyclicStructureError)||void 0===a||a.call(r)),s(t)):M(e,(function(e){return o(e,t)})):o(e,t)}function w(n){var r,a=n.id,i=n.symbol;if(i){var o=ji(n)?788968:111551;if(ob(i.valueDeclaration))return C(i,t,o);if(32&i.flags&&!Ko(i)&&!(i.valueDeclaration&&225===i.valueDeclaration.kind&&2048&t.flags)||896&i.flags||function(){var n,r=!!(8192&i.flags)&&e.some(i.declarations,(function(n){return e.isStatic(n)})),o=!!(16&i.flags)&&(i.parent||e.forEach(i.declarations,(function(e){return 303===e.parent.kind||261===e.parent.kind})));if(r||o)return(!!(4096&t.flags)||(null===(n=t.visitedTypes)||void 0===n?void 0:n.has(a)))&&(!(8&t.flags)||Li(i,t.enclosingDeclaration))}())return C(i,t,o);if(null===(r=t.visitedTypes)||void 0===r?void 0:r.has(a)){var c=function(n){if(n.symbol&&2048&n.symbol.flags&&n.symbol.declarations){var t=e.walkUpParenthesizedTypes(n.symbol.declarations[0].parent);if(258===t.kind)return ni(t)}return}(n);return c?C(c,t,788968):s(t)}return M(n,P)}return P(n)}function M(n,r){var a,i,o=n.id,c=16&e.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags,l=4&e.getObjectFlags(n)&&n.node?"N"+X(n.node):16777216&n.flags?"N"+X(n.root.node):n.symbol?(c?"+":"")+Y(n.symbol):void 0;t.visitedTypes||(t.visitedTypes=new e.Set),l&&!t.symbolDepth&&(t.symbolDepth=new e.Map);var u=t.enclosingDeclaration&&zr(t.enclosingDeclaration),d="".concat(Qu(n),"|").concat(t.flags);u&&(u.serializedTypes||(u.serializedTypes=new e.Map));var p,f=null===(a=null===u||void 0===u?void 0:u.serializedTypes)||void 0===a?void 0:a.get(d);if(f)return f.truncating&&(t.truncating=!0),t.approximateLength+=f.addedLength,function n(t){if(!e.nodeIsSynthesized(t)&&e.getParseTreeNode(t)===t)return t;return e.setTextRange(e.factory.cloneNode(e.visitEachChild(t,n,e.nullTransformationContext)),t)}(f);if(l){if((p=t.symbolDepth.get(l)||0)>10)return s(t);t.symbolDepth.set(l,p+1)}t.visitedTypes.add(o);var m=t.approximateLength,_=r(n),g=t.approximateLength-m;return t.reportedDiagnostic||t.encounteredError||(t.truncating&&(_.truncating=!0),_.addedLength=g,null===(i=null===u||void 0===u?void 0:u.serializedTypes)||void 0===i||i.set(d,_)),t.visitedTypes.delete(o),l&&t.symbolDepth.set(l,p),_}function P(n){if(Tc(n)||n.containsError)return function(n){e.Debug.assert(!!(524288&n.flags));var r,a=n.declaration.readonlyToken?e.factory.createToken(n.declaration.readonlyToken.kind):void 0,i=n.declaration.questionToken?e.factory.createToken(n.declaration.questionToken.kind):void 0;r=yc(n)?e.factory.createTypeOperatorNode(140,o(hc(n),t)):o(fc(n),t);var s=m(pc(n),t,r),c=n.declaration.nameType?o(mc(n),t):void 0,l=o(jm(_c(n),!!(4&vc(n))),t),u=e.factory.createMappedTypeNode(a,s,c,i,l,void 0);return t.approximateLength+=10,e.setEmitFlags(u,1)}(n);var r=Sc(n);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return t.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return f(r.callSignatures[0],178,t);if(1===r.constructSignatures.length&&!r.callSignatures.length)return f(r.constructSignatures[0],179,t)}var a=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(a)){var c=e.map(a,Fl);return r.callSignatures.length+(r.constructSignatures.length-a.length)+r.indexInfos.length+(2048&t.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&c.push(function(n){if(0===n.constructSignatures.length)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(n.constructSignatures,(function(e){return!(4&e.flags)}));if(n.constructSignatures===t)return n;var r=vi(n.symbol,n.members,n.callSignatures,e.some(t)?t:e.emptyArray,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=r,r.objectTypeWithoutAbstractConstructSignatures=r,r}(r)),o(pd(c),t)}var l=t.flags;t.flags|=4194304;var d=function(n){if(i(t))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],a=0,o=n.callSignatures;a<o.length;a++){var c=o[a];r.push(f(c,173,t))}for(var l=0,d=n.constructSignatures;l<d.length;l++){4&(c=d[l]).flags||r.push(f(c,174,t))}for(var m=0,_=n.indexInfos;m<_.length;m++){var g=_[m];r.push(p(g,t,1024&n.objectFlags?s(t):void 0))}var y=n.properties;if(!y)return r;for(var h=0,v=0,b=y;v<b.length;v++){var E=b[v];if(h++,2048&t.flags){if(4194304&E.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(E)&&t.tracker.reportPrivateInBaseOfClassExpression&&t.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(E.escapedName))}if(i(t)&&h+2<y.length-1){r.push(e.factory.createPropertySignature(void 0,"... ".concat(y.length-h," more ..."),void 0,void 0)),u(y[y.length-1],t,r);break}u(E,t,r)}return r.length?r:void 0}(r);t.flags=l;var _=e.factory.createTypeLiteralNode(d);return t.approximateLength+=2,e.setEmitFlags(_,1024&t.flags?0:1),_}function F(n){var r=$l(n);if(n.target===On||n.target===wn){if(2&t.flags){var a=o(r[0],t);return e.factory.createTypeReferenceNode(n.target===On?"Array":"ReadonlyArray",[a])}var i=o(r[0],t),s=e.factory.createArrayTypeNode(i);return n.target===On?s:e.factory.createTypeOperatorNode(144,s)}if(!(8&n.target.objectFlags)){if(2048&t.flags&&n.symbol.valueDeclaration&&e.isClassLike(n.symbol.valueDeclaration)&&!Li(n.symbol,t.enclosingDeclaration))return w(n);var c=n.target.outerTypeParameters,l=(T=0,void 0);if(c)for(var u=c.length;T<u;){var p=T,f=zl(c[T]);do{T++}while(T<u&&zl(c[T])===f);if(!e.rangeEquals(c,r,p,T)){var m=d(r.slice(p,T),t),_=t.flags;t.flags|=16;var g=C(f,t,788968,m);t.flags=_,l=l?G(l,g):g}}var y=void 0;if(r.length>0){var h=(n.target.typeParameters||e.emptyArray).length;y=d(r.slice(T,h),t)}S=t.flags;t.flags|=16;var v=C(n.symbol,t,788968,y);return t.flags=S,l?G(l,v):v}if((r=e.sameMap(r,(function(e,t){return jm(e,!!(2&n.target.elementFlags[t]))}))).length>0){var b=eu(n),E=d(r.slice(0,b),t);if(E){if(n.target.labeledElementDeclarations)for(var T=0;T<E.length;T++){var S=n.target.elementFlags[T];E[T]=e.factory.createNamedTupleMember(12&S?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(Lb(n.target.labeledElementDeclarations[T]))),2&S?e.factory.createToken(57):void 0,4&S?e.factory.createArrayTypeNode(E[T]):E[T])}else for(var T=0;T<Math.min(b,E.length);T++){var S=n.target.elementFlags[T];E[T]=12&S?e.factory.createRestTypeNode(4&S?e.factory.createArrayTypeNode(E[T]):E[T]):2&S?e.factory.createOptionalTypeNode(E[T]):E[T]}var x=e.setEmitFlags(e.factory.createTupleTypeNode(E),1);return n.target.readonly?e.factory.createTypeOperatorNode(144,x):x}}if(t.encounteredError||524288&t.flags){x=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return n.target.readonly?e.factory.createTypeOperatorNode(144,x):x}t.encounteredError=!0}function G(n,t){if(e.isImportTypeNode(n)){var r=n.typeArguments,a=n.qualifier;a&&(a=e.isIdentifier(a)?e.factory.updateIdentifier(a,r):e.factory.updateQualifiedName(a,a.left,e.factory.updateIdentifier(a.right,r))),r=t.typeArguments;for(var i=0,o=B(t);i<o.length;i++){var s=o[i];a=a?e.factory.createQualifiedName(a,s):s}return e.factory.updateImportTypeNode(n,n.argument,a,r,n.isTypeOf)}r=n.typeArguments;var c=n.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,r):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,r)),r=t.typeArguments;for(var l=0,u=B(t);l<u.length;l++){s=u[l];c=e.factory.createQualifiedName(c,s)}return e.factory.updateTypeReferenceNode(n,c,r)}function B(n){for(var t=n.typeName,r=[];!e.isIdentifier(t);)r.unshift(t.right),t=t.left;return r.unshift(t),r}}function s(n){return n.approximateLength+=3,1&n.flags?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function c(n,t){var r;return!!(8192&e.getCheckFlags(n))&&(e.contains(t.reverseMappedStack,n)||(null===(r=t.reverseMappedStack)||void 0===r?void 0:r[0])&&!(16&e.getObjectFlags(e.last(t.reverseMappedStack).propertyType)))}function u(n,t,r){var a,i,o=!!(8192&e.getCheckFlags(n)),l=c(n,t)?Ie:Yo(n),u=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.trackSymbol&&4096&e.getCheckFlags(n)&&Ms(n.escapedName))if(n.declarations){var d=e.first(n.declarations);if(Ps(d))if(e.isBinaryExpression(d)){var p=e.getNameOfDeclaration(d);p&&e.isElementAccessExpression(p)&&e.isPropertyAccessEntityNameExpression(p.argumentExpression)&&y(p.argumentExpression,u,t)}else y(d.name.expression,u,t)}else(null===(a=t.tracker)||void 0===a?void 0:a.reportNonSerializableProperty)&&t.tracker.reportNonSerializableProperty(Mi(n));t.enclosingDeclaration=n.valueDeclaration||(null===(i=n.declarations)||void 0===i?void 0:i[0])||u;var m=M(n,t);t.enclosingDeclaration=u,t.approximateLength+=e.symbolName(n).length+1;var _=16777216&n.flags?e.factory.createToken(57):void 0;if(8208&n.flags&&!xc(l).length&&!rE(n))for(var g=0,h=$c(xg(l,(function(e){return!(32768&e.flags)})),0);g<h.length;g++){var v=f(h[g],167,t,{name:m,questionToken:_});r.push(S(v))}else{var b=void 0;c(n,t)?b=s(t):(o&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(n)),b=l?B(t,l,n,u):e.factory.createKeywordTypeNode(130),o&&t.reverseMappedStack.pop());var E=rE(n)?[e.factory.createToken(144)]:void 0;E&&(t.approximateLength+=9);var T=e.factory.createPropertySignature(E,m,_,b);r.push(S(T))}function S(t){var r;if(e.some(n.declarations,(function(e){return 345===e.kind}))){var a=null===(r=n.declarations)||void 0===r?void 0:r.find((function(e){return 345===e.kind})),i=e.getTextOfJSDocComment(a.comment);i&&e.setSyntheticLeadingComments(t,[{kind:3,text:"*\n * "+i.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else n.valueDeclaration&&e.setCommentRange(t,n.valueDeclaration);return t}}function d(n,t,r){if(e.some(n)){if(i(t)){if(!r)return[e.factory.createTypeReferenceNode("...",void 0)];if(n.length>2)return[o(n[0],t),e.factory.createTypeReferenceNode("... ".concat(n.length-2," more ..."),void 0),o(n[n.length-1],t)]}for(var a=!(64&t.flags)?e.createUnderscoreEscapedMultiMap():void 0,s=[],c=0,l=0,u=n;l<u.length;l++){var d=u[l];if(c++,i(t)&&c+2<n.length-1){s.push(e.factory.createTypeReferenceNode("... ".concat(n.length-c," more ..."),void 0));var p=o(n[n.length-1],t);p&&s.push(p);break}t.approximateLength+=2;var f=o(d,t);f&&(s.push(f),a&&e.isIdentifierTypeReference(f)&&a.add(f.typeName.escapedText,[d,s.length-1]))}if(a){var m=t.flags;t.flags|=64,a.forEach((function(n){if(!e.arrayIsHomogeneous(n,(function(e,n){return function(e,n){return e===n||!!e.symbol&&e.symbol===n.symbol||!!e.aliasSymbol&&e.aliasSymbol===n.aliasSymbol}(e[0],n[0])})))for(var r=0,a=n;r<a.length;r++){var i=a[r],c=i[0],l=i[1];s[l]=o(c,t)}})),t.flags=m}return s}}function p(n,t,r){var a=e.getNameFromIndexInfo(n)||"x",i=o(n.keyType,t),s=e.factory.createParameterDeclaration(void 0,void 0,void 0,a,void 0,i,void 0);return r||(r=o(n.type||Ie,t)),n.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=a.length+4,e.factory.createIndexSignature(void 0,n.isReadonly?[e.factory.createToken(144)]:void 0,[s],r)}function f(n,t,r,a){var i,s,c,l,u,d,p=256&r.flags;p&&(r.flags&=-257),r.approximateLength+=3,32&r.flags&&n.target&&n.mapper&&n.target.typeParameters?d=n.target.typeParameters.map((function(e){return o(Yp(e,n.mapper),r)})):u=n.typeParameters&&n.typeParameters.map((function(e){return _(e,r)}));var f,m=Xs(n,!0)[0],y=(e.some(m,(function(n){return n!==m[m.length-1]&&!!(32768&e.getCheckFlags(n))}))?n.parameters:m).map((function(e){return g(e,r,170===t,null===a||void 0===a?void 0:a.privateSymbolVisitor,null===a||void 0===a?void 0:a.bundledImports)}));if(n.thisParameter){var h=g(n.thisParameter,r);y.unshift(h)}var v=Ll(n);if(v){var b=2===v.kind||3===v.kind?e.factory.createToken(128):void 0,E=1===v.kind||3===v.kind?e.setEmitFlags(e.factory.createIdentifier(v.parameterName),16777216):e.factory.createThisTypeNode(),T=v.type&&o(v.type,r);f=e.factory.createTypePredicateNode(b,E,T)}else{var S=Cl(n);!S||p&&ro(S)?p||(f=e.factory.createKeywordTypeNode(130)):f=function(n,t,r,a,i){if(!ao(t)&&n.enclosingDeclaration){var s=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration);if(e.findAncestor(s,(function(e){return e===n.enclosingDeclaration}))&&s){var c=Lp(s);if((262144&c.flags&&c.isThisType?Yp(c,r.mapper):c)===t&&G(s,t)){var l=V(n,s,a,i);if(l)return l}}}return o(t,n)}(r,S,n,null===a||void 0===a?void 0:a.privateSymbolVisitor,null===a||void 0===a?void 0:a.bundledImports)}var x=null===a||void 0===a?void 0:a.modifiers;if(179===t&&4&n.flags){var L=e.modifiersToFlags(x);x=e.factory.createModifiersFromModifierFlags(128|L)}var D=173===t?e.factory.createCallSignature(u,y,f):174===t?e.factory.createConstructSignature(u,y,f):167===t?e.factory.createMethodSignature(x,null!==(i=null===a||void 0===a?void 0:a.name)&&void 0!==i?i:e.factory.createIdentifier(""),null===a||void 0===a?void 0:a.questionToken,u,y,f):168===t?e.factory.createMethodDeclaration(void 0,x,void 0,null!==(s=null===a||void 0===a?void 0:a.name)&&void 0!==s?s:e.factory.createIdentifier(""),void 0,u,y,f,void 0):170===t?e.factory.createConstructorDeclaration(void 0,x,y,void 0):171===t?e.factory.createGetAccessorDeclaration(void 0,x,null!==(c=null===a||void 0===a?void 0:a.name)&&void 0!==c?c:e.factory.createIdentifier(""),y,f,void 0):172===t?e.factory.createSetAccessorDeclaration(void 0,x,null!==(l=null===a||void 0===a?void 0:a.name)&&void 0!==l?l:e.factory.createIdentifier(""),y,void 0):175===t?e.factory.createIndexSignature(void 0,x,y,f):315===t?e.factory.createJSDocFunctionType(y,f):178===t?e.factory.createFunctionTypeNode(u,y,null!==f&&void 0!==f?f:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):179===t?e.factory.createConstructorTypeNode(x,u,y,null!==f&&void 0!==f?f:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):255===t?e.factory.createFunctionDeclaration(void 0,x,void 0,(null===a||void 0===a?void 0:a.name)?e.cast(a.name,e.isIdentifier):e.factory.createIdentifier(""),u,y,f,void 0):212===t?e.factory.createFunctionExpression(x,void 0,(null===a||void 0===a?void 0:a.name)?e.cast(a.name,e.isIdentifier):e.factory.createIdentifier(""),u,y,f,e.factory.createBlock([])):213===t?e.factory.createArrowFunction(x,u,y,f,void 0,e.factory.createBlock([])):e.Debug.assertNever(t);return d&&(D.typeArguments=e.factory.createNodeArray(d)),D}function m(n,t,r){var a=t.flags;t.flags&=-513;var i=k(n,t),s=Bc(n),c=s&&o(s,t);return t.flags=a,e.factory.createTypeParameterDeclaration(i,r,c)}function _(e,n,t){return void 0===t&&(t=Ic(e)),m(e,n,t&&o(t,n))}function g(n,t,r,a,i){var o=e.getDeclarationOfKind(n,163);o||e.isTransientSymbol(n)||(o=e.getDeclarationOfKind(n,338));var s,c=Xo(n);o&&Qx(o)&&(c=Pm(c)),1073741824&t.flags&&o&&!e.isJSDocParameterTag(o)&&(s=o,I&&ml(s)&&!s.initializer)&&(c=ag(c,524288));var l=B(t,c,n,t.enclosingDeclaration,a,i),u=!(8192&t.flags)&&r&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,d=o&&e.isRestParameter(o)||32768&e.getCheckFlags(n)?e.factory.createToken(25):void 0,p=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):160===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function n(r){t.tracker.trackSymbol&&e.isComputedPropertyName(r)&&ws(r)&&y(r.expression,t.enclosingDeclaration,t);var a=e.visitEachChild(r,n,e.nullTransformationContext,void 0,n);return e.isBindingElement(a)&&(a=e.factory.updateBindingElement(a,a.dotDotDotToken,a.propertyName,a.name,void 0)),e.nodeIsSynthesized(a)||(a=e.factory.cloneNode(a)),e.setEmitFlags(a,16777217)}(o.name):e.symbolName(n),f=o&&ml(o)||16384&e.getCheckFlags(n)?e.factory.createToken(57):void 0,m=e.factory.createParameterDeclaration(void 0,u,d,p,f,l,void 0);return t.approximateLength+=e.symbolName(n).length+3,m}function y(n,t,r){if(r.tracker.trackSymbol){var a=e.getFirstIdentifier(n),i=Qr(a,a.escapedText,1160127,void 0,void 0,!0);i&&r.tracker.trackSymbol(i,t,111551)}}function h(e,n,t,r){return n.tracker.trackSymbol(e,n.enclosingDeclaration,t),v(e,n,t,r)}function v(n,t,r,a){var i;return 262144&n.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?i=[n]:(i=e.Debug.checkDefined(function n(r,i,o){var s,c=Ti(r,t.enclosingDeclaration,i,!!(128&t.flags));if(!c||Si(c[0],t.enclosingDeclaration,1===c.length?i:Ei(i))){var l=ri(c?c[0]:r,t.enclosingDeclaration,i);if(e.length(l)){s=l.map((function(n){return e.some(n.declarations,Ri)?S(n,t):void 0}));var u=l.map((function(e,n){return n}));u.sort(g);for(var d=u.map((function(e){return l[e]})),p=0,f=d;p<f.length;p++){var m=f[p],_=n(m,Ei(i),!1);if(_){if(m.exports&&m.exports.get("export=")&&oi(m.exports.get("export="),r)){c=_;break}c=_.concat(c||[ii(m,r)||r]);break}}}}if(c)return c;if(o||!(6144&r.flags)){if(!o&&!a&&e.forEach(r.declarations,Ri))return;return[r]}function g(n,t){var r=s[n],a=s[t];if(r&&a){var i=e.pathIsRelative(a);return e.pathIsRelative(r)===i?e.moduleSpecifiers.countPathComponents(r)-e.moduleSpecifiers.countPathComponents(a):i?-1:1}return 0}}(n,r,!0)),e.Debug.assert(i&&i.length>0)),i}function b(n,t){var r;return 524384&zS(n).flags&&(r=e.factory.createNodeArray(e.map(rs(n),(function(e){return _(e,t)})))),r}function E(n,t,r){var a;e.Debug.assert(n&&0<=t&&t<n.length);var i=n[t],o=Y(i);if(!(null===(a=r.typeParameterSymbolList)||void 0===a?void 0:a.has(o))){var s;if((r.typeParameterSymbolList||(r.typeParameterSymbolList=new e.Set)).add(o),512&r.flags&&t<n.length-1){var c=i,l=n[t+1];if(1&e.getCheckFlags(l)){var u=function(n){return e.concatenate(ts(n),rs(n))}(2097152&c.flags?Ia(c):c);s=d(e.map(u,(function(e){return Rp(e,l.mapper)})),r)}else s=b(i,r)}return s}}function T(n){return e.isIndexedAccessTypeNode(n.objectType)?T(n.objectType):n}function S(n,t){var r,a=e.getDeclarationOfKind(n,303);if(!a){var i=e.firstDefined(n.declarations,(function(e){return ai(e,n)}));i&&(a=e.getDeclarationOfKind(i,303))}if(a&&void 0!==a.moduleName)return a.moduleName;if(!a){if(t.tracker.trackReferencedAmbientModule){var o=e.filter(n.declarations,e.isAmbientModule);if(e.length(o))for(var s=0,c=o;s<c.length;s++){var u=c[s];t.tracker.trackReferencedAmbientModule(u,n)}}if(l.test(n.escapedName))return n.escapedName.substring(1,n.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return l.test(n.escapedName)?n.escapedName.substring(1,n.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(n)).fileName;var d=e.getSourceFileOfNode(e.getOriginalNode(t.enclosingDeclaration)),p=Wr(n),f=p.specifierCache&&p.specifierCache.get(d.path);if(!f){var m=!!e.outFile(x),_=t.tracker.moduleResolverHost,g=m?fa(fa({},x),{baseUrl:_.getCommonSourceDirectory()}):x;f=e.first(e.moduleSpecifiers.getModuleSpecifiers(n,le,g,d,_,{importModuleSpecifierPreference:m?"non-relative":"project-relative",importModuleSpecifierEnding:m?"minimal":void 0})),null!==(r=p.specifierCache)&&void 0!==r||(p.specifierCache=new e.Map),p.specifierCache.set(d.path,f)}return f}function D(n){var t=e.factory.createIdentifier(e.unescapeLeadingUnderscores(n.escapedName));return n.parent?e.factory.createQualifiedName(D(n.parent),t):t}function C(n,t,r,a){var i=h(n,t,r,!(16384&t.flags)),o=111551===r;if(e.some(i[0].declarations,Ri)){var s=i.length>1?g(i,i.length-1,1):void 0,c=a||E(i,0,t),l=S(i[0],t);!(67108864&t.flags)&&e.getEmitModuleResolutionKind(x)!==e.ModuleResolutionKind.Classic&&l.indexOf("/node_modules/")>=0&&(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(i[0]),t.approximateLength+=l.length+10,!s||e.isEntityName(s)){if(s)(m=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(u,s,c,o)}var d=T(s),p=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,p,c,o),d.indexType)}var f=g(i,i.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.factory.createTypeQueryNode(f);var m,_=(m=e.isIdentifier(f)?f:f.right).typeArguments;return m.typeArguments=void 0,e.factory.createTypeReferenceNode(f,_);function g(n,r,i){var o,s=r===n.length-1?a:E(n,r,t),c=n[r],l=n[r-1];if(0===r)t.flags|=16777216,o=qi(c,t),t.approximateLength+=(o?o.length:0)+1,t.flags^=16777216;else if(l&&Ya(l)){var u=Ya(l);e.forEachEntry(u,(function(n,t){if(oi(n,c)&&!Ms(t)&&"export="!==t)return o=e.unescapeLeadingUnderscores(t),!0}))}if(o||(o=qi(c,t)),t.approximateLength+=o.length+1,!(16&t.flags)&&l&&Vs(l)&&Vs(l).get(c.escapedName)&&oi(Vs(l).get(c.escapedName),c)){var d=g(n,r-1,i);return e.isIndexedAccessTypeNode(d)?e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(d,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var p=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(p.symbol=c,r>i){d=g(n,r-1,i);return e.isEntityName(d)?e.factory.createQualifiedName(d,p):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return p}}function A(e,n,t){var r=Qr(n.enclosingDeclaration,e,788968,void 0,e,!1);return!!r&&!(262144&r.flags&&r===t.symbol)}function k(n,t){var r,a;if(4&t.flags&&t.typeParameterNames){var i=t.typeParameterNames.get(Qu(n));if(i)return i}var o=N(n.symbol,t,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var s=o.escapedText,c=(null===(r=t.typeParameterNamesByTextNextNameCount)||void 0===r?void 0:r.get(s))||0,l=s;(null===(a=t.typeParameterNamesByText)||void 0===a?void 0:a.has(l))||A(l,t,n);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(t.typeParameterNames||(t.typeParameterNames=new e.Map)).set(Qu(n),o),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new e.Set)).add(s)}return o}function N(n,t,r,a){var i=h(n,t,r);return!a||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function n(r,a){var i=E(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=qi(o,t);0===a&&(t.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return c.symbol=o,a>0?e.factory.createQualifiedName(n(r,a-1),c):c}(i,i.length-1)}function R(n,t,r){var a=h(n,t,r);return function n(r,a){var i=E(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=qi(o,t);0===a&&(t.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Ri))return e.factory.createStringLiteral(S(o,t));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),L):e.isIdentifierStart(c,L);if(0===a||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return u.symbol=o,a>0?e.factory.createPropertyAccessExpression(n(r,a-1),u):u}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?d=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(d=e.factory.createNumericLiteral(+s)),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216)).symbol=o),e.factory.createElementAccessExpression(n(r,a-1),d)}(a,a.length-1)}function O(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isStringLiteral(t)}function w(n){var t=e.getNameOfDeclaration(n);return!!(t&&e.isStringLiteral(t)&&(t.singleQuote||!e.nodeIsSynthesized(t)&&e.startsWith(e.getTextOfNode(t,!1),"'")))}function M(n,t){var r=!!e.length(n.declarations)&&e.every(n.declarations,w),a=function(n,t,r){var a=Wr(n).nameType;if(a){if(384&a.flags){var i=""+a.value;return e.isIdentifierText(i,e.getEmitScriptTarget(x))||Qy(i)?Qy(i)&&e.startsWith(i,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+i)):P(i):e.factory.createStringLiteral(i,!!r)}if(8192&a.flags)return e.factory.createComputedPropertyName(R(a.symbol,t,111551))}}(n,t,r);return a||P(e.unescapeLeadingUnderscores(n.escapedName),!!e.length(n.declarations)&&e.every(n.declarations,O),r)}function P(n,t,r){return e.isIdentifierText(n,e.getEmitScriptTarget(x))?e.factory.createIdentifier(n):!t&&Qy(n)&&+n>=0?e.factory.createNumericLiteral(+n):e.factory.createStringLiteral(n,!!r)}function F(n,t){return n.declarations&&e.find(n.declarations,(function(n){return!!e.getEffectiveTypeAnnotationNode(n)&&(!t||!!e.findAncestor(n,(function(e){return e===t})))}))}function G(n,t){return!(4&e.getObjectFlags(t))||!e.isTypeReferenceNode(n)||e.length(n.typeArguments)>=yl(t.target.typeParameters)}function B(n,t,r,a,i,s){if(!ao(t)&&a){var c=F(r,a);if(c&&!e.isFunctionLikeDeclaration(c)&&!e.isGetAccessorDeclaration(c)){var l=e.getEffectiveTypeAnnotationNode(c);if(Lp(l)===t&&G(l,t)){var u=V(n,l,i,s);if(u)return u}}}var d=n.flags;8192&t.flags&&t.symbol===r&&(!n.enclosingDeclaration||e.some(r.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(n.enclosingDeclaration)})))&&(n.flags|=1048576);var p=o(t,n);return n.flags=d,p}function U(n,t,r){var a,i,o=!1,s=e.getFirstIdentifier(n);if(e.isInJSFile(n)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:n};var c=Fa(s,67108863,!0,!0);if(c&&(0!==Ai(c,t.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(i=null===(a=t.tracker)||void 0===a?void 0:a.trackSymbol)||void 0===i||i.call(a,c,t.enclosingDeclaration,67108863),null===r||void 0===r||r(c)),e.isIdentifier(n))){var l=262144&c.flags?k(Ss(c),t):e.factory.cloneNode(n);return l.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(l,n),16777216)}}return{introducesError:o,node:n}}function V(t,a,i,s){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var c=!1,l=e.getSourceFileOfNode(a),u=e.visitNode(a,(function r(a){if(e.isJSDocAllType(a)||317===a.kind)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(a))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,r),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(a))return e.visitNode(a.type,r);if(e.isJSDocVariadicType(a))return e.factory.createArrayTypeNode(e.visitNode(a.type,r));if(e.isJSDocTypeLiteral(a))return e.factory.createTypeLiteralNode(e.map(a.jsDocPropertyTags,(function(n){var i=e.isIdentifier(n.name)?n.name:n.name.right,s=to(Lp(a),i.escapedText),c=s&&n.typeExpression&&Lp(n.typeExpression.type)!==s?o(s,t):void 0;return e.factory.createPropertySignature(void 0,i,n.isBracketed||n.typeExpression&&e.isJSDocOptionalType(n.typeExpression.type)?e.factory.createToken(57):void 0,c||n.typeExpression&&e.visitNode(n.typeExpression.type,r)||e.factory.createKeywordTypeNode(130))})));if(e.isTypeReferenceNode(a)&&e.isIdentifier(a.typeName)&&""===a.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(130),a);if((e.isExpressionWithTypeArguments(a)||e.isTypeReferenceNode(a))&&e.isJSDocIndexSignature(a))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(a.typeArguments[0],r))],e.visitNode(a.typeArguments[1],r))]);if(e.isJSDocFunctionType(a)){var u;return e.isJSDocConstructSignature(a)?e.factory.createConstructorTypeNode(a.modifiers,e.visitNodes(a.typeParameters,r),e.mapDefined(a.parameters,(function(n,t){return n.name&&e.isIdentifier(n.name)&&"new"===n.name.escapedText?void(u=n.type):e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(u||a.type,r)||e.factory.createKeywordTypeNode(130)):e.factory.createFunctionTypeNode(e.visitNodes(a.typeParameters,r),e.map(a.parameters,(function(n,t){return e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(a.type,r)||e.factory.createKeywordTypeNode(130))}if(e.isTypeReferenceNode(a)&&e.isInJSDoc(a)&&(!G(a,Lp(a))||mu(a)||Le===ou(a,788968,!0)))return e.setOriginalNode(o(Lp(a),t),a);if(e.isLiteralImportTypeNode(a)){var d=zr(a).resolvedSymbol;return!e.isInJSDoc(a)||!d||(a.isTypeOf||788968&d.flags)&&e.length(a.typeArguments)>=yl(rs(d))?e.factory.updateImportTypeNode(a,e.factory.updateLiteralTypeNode(a.argument,function(r,a){if(s){if(t.tracker&&t.tracker.moduleResolverHost){var i=yL(r);if(i){var o={getCanonicalFileName:e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(o,i);return e.factory.createStringLiteral(c)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Ua(a,a,void 0);l&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return a}(a,a.argument.literal)),a.qualifier,e.visitNodes(a.typeArguments,r,e.isTypeNode),a.isTypeOf):e.setOriginalNode(o(Lp(a),t),a)}if(e.isEntityName(a)||e.isEntityNameExpression(a)){var p=U(a,t,i),f=p.introducesError,m=p.node;if(c=c||f,m!==a)return m}l&&e.isTupleTypeNode(a)&&e.getLineAndCharacterOfPosition(l,a.pos).line===e.getLineAndCharacterOfPosition(l,a.end).line&&e.setEmitFlags(a,1);return e.visitEachChild(a,r,e.nullTransformationContext);function _(n){return n.dotDotDotToken||(n.type&&e.isJSDocVariadicType(n.type)?e.factory.createToken(25):void 0)}function g(n,t){return n.name&&e.isIdentifier(n.name)&&"this"===n.name.escapedText?"this":_(n)?"args":"arg".concat(t)}}));if(!c)return u===a?e.setTextRange(e.factory.cloneNode(a),a):u}}(),re=e.createSymbolTable(),ae=Pr(4,"undefined");ae.declarations=[];var ie=Pr(1536,"globalThis",8);ie.exports=re,ie.declarations=[],re.set(ie.escapedName,ie);var oe,se=Pr(4,"arguments"),ce=Pr(4,"require"),le={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+g},getTypeCount:function(){return _},getInstantiationCount:function(){return h},getRelationCacheSizes:function(){return{assignable:vr.size,identity:Er.size,subtype:yr.size,strictSubtype:hr.size}},isUndefinedSymbol:function(e){return e===ae},isArgumentsSymbol:function(e){return e===se},isUnknownSymbol:function(e){return e===Le},getMergedSymbol:ei,getDiagnostics:Ex,getGlobalDiagnostics:function(){return Tx(),fr.getGlobalDiagnostics()},getRecursionIdentity:nm,getUnmatchedProperties:v_,getTypeOfSymbolAtLocation:function(n,t){var r=e.getParseTreeNode(t);return r?function(n,t){if(n=n.exportSymbol||n,(79===t.kind||80===t.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&(!e.isAssignmentTarget(t)||e.isWriteAccess(t)))){var r=GE(t);if(si(zr(t).resolvedSymbol)===n)return r}if(e.isDeclarationName(t)&&e.isSetAccessor(t.parent)&&Go(t.parent))return jo(t.parent.symbol,!0);return Yo(n)}(n,r):Re},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(n,t){var r=n.parent,a=n.parent.parent,i=qr(r.locals,t,111551),o=qr(Vs(a.symbol),t,111551);if(i&&o)return[i,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Ss,getPropertiesOfType:Cc,getPropertyOfType:function(n,t){return Qc(n,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(n,t,r){var a=e.getParseTreeNode(r);if(a){var i=Kh(e.escapeLeadingUnderscores(t),a);return i?zh(n,i):void 0}},getTypeOfPropertyOfType:function(n,t){return to(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(e,n){return il(e,0===n?He:We)},getIndexInfosOfType:al,getSignaturesOfType:$c,getIndexTypeOfType:function(e,n){return ol(e,0===n?He:We)},getBaseTypes:ds,getBaseTypeOfLiteralType:bm,getWidenedType:$m,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?Lp(t):Re},getParameterType:kb,getParameterIdentifierNameAtPosition:function(e,n){var t=e.parameters.length-(ne(e)?1:0);if(n<t){var r=e.parameters[n];return Cb(r)?[r.escapedName,!1]:void 0}var a=e.parameters[t]||Le;if(!Cb(a))return;var i=Xo(a);if(Lm(i)){var o=i.target.labeledElementDeclarations,s=n-t,c=null===o||void 0===o?void 0:o[s],l=!!(null===c||void 0===c?void 0:c.dotDotDotToken);return c?[Lb(c),l]:void 0}if(n===t)return[a.escapedName,!0];return},getPromisedTypeOfPromise:uT,getAwaitedType:function(e){return _T(e)},getReturnTypeOfSignature:Cl,isNullableType:Oh,getNullableType:Mm,getNonNullableType:Fm,getNonOptionalType:Bm,getTypeArguments:$l,typeToTypeNode:W.typeToTypeNode,indexInfoToIndexSignatureDeclaration:W.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:W.signatureToSignatureDeclaration,symbolToEntityName:W.symbolToEntityName,symbolToExpression:W.symbolToExpression,symbolToTypeParameterDeclarations:W.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:W.symbolToParameterDeclaration,typeParameterToDeclaration:W.typeParameterToDeclaration,getSymbolsInScope:function(n,t){var r=e.getParseTreeNode(n);return r?function(n,t){if(16777216&n.flags)return[];var r=e.createSymbolTable(),a=!1;return i(),r.delete("this"),dl(r);function i(){for(;n;){switch(n.locals&&!Jr(n)&&s(n.locals,t),n.kind){case 303:if(!e.isExternalModule(n))break;case 260:c(ni(n).exports,2623475&t);break;case 259:s(ni(n).exports,8&t);break;case 225:n.name&&o(n.symbol,t);case 256:case 257:a||s(Vs(ni(n)),788968&t);break;case 212:n.name&&o(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&o(se,t),a=e.isStatic(n),n=n.parent}s(re,t)}function o(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var a=n.escapedName;r.has(a)||r.set(a,n)}}function s(e,n){n&&e.forEach((function(e){o(e,n)}))}function c(n,t){t&&n.forEach((function(n){e.getDeclarationOfKind(n,274)||e.getDeclarationOfKind(n,273)||o(n,t)}))}}(r,t):[]},getSymbolAtLocation:function(n){var t=e.getParseTreeNode(n);return t?kx(t,!0):void 0},getIndexInfosAtLocation:function(n){var t=e.getParseTreeNode(n);return t?function(n){if(e.isIdentifier(n)&&e.isPropertyAccessExpression(n.parent)&&n.parent.name===n){var t=yd(n),r=GE(n.parent.expression),a=1048576&r.flags?r.types:[r];return e.flatMap(a,(function(n){return e.filter(al(n),(function(e){return tl(t,e.keyType)}))}))}return}(t):void 0},getShorthandAssignmentValueSymbol:function(n){var t=e.getParseTreeNode(n);return t?function(e){if(e&&295===e.kind)return Fa(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?function(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?Ta(n.parent.parent,n):Fa(n.propertyName||n.name,2998271):Fa(n,2998271)}(t):void 0},getExportSymbolOfSymbol:function(e){return ei(e.exportSymbol||e)},getTypeAtLocation:function(n){var t=e.getParseTreeNode(n);return t?Nx(t):Re},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&Rx(t)||Re},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?function(n){var t=Rx(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Qc(t,n.escapedText)}(t):void 0},signatureToString:function(n,t,r,a){return Pi(n,e.getParseTreeNode(t),r,a)},typeToString:function(n,t,r){return Fi(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,a){return Mi(n,e.getParseTreeNode(t),r,a)},typePredicateToString:function(n,t,r){return Ki(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,a,i){return Pi(n,e.getParseTreeNode(t),r,a,i)},writeType:function(n,t,r,a){return Fi(n,e.getParseTreeNode(t),r,a)},writeSymbol:function(n,t,r,a,i){return Mi(n,e.getParseTreeNode(t),r,a,i)},writeTypePredicate:function(n,t,r,a){return Ki(n,e.getParseTreeNode(t),r,a)},getAugmentedPropertiesOfType:Px,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(Wr(n).containingType.types,(function(e){return Qc(e,n.escapedName)}));if(33554432&n.flags){var t=n,r=t.leftSpread,a=t.rightSpread,i=t.syntheticOrigin;return r?[r,a]:i?[i]:e.singleElementArray(function(e){var n,t=e;for(;t=Wr(t).target;)n=t;return n}(n))}return}(t);return r?e.flatMap(r,n):[t]},getSymbolOfExpando:cb,getContextualType:function(n,t){var r=e.getParseTreeNode(n,e.isExpression);if(r){var a=e.findAncestor(r,e.isCallLikeExpression),i=a&&zr(a).resolvedSignature;if(4&t&&a){var o=r;do{zr(o).skipDirectInference=!0,o=o.parent}while(o&&o!==a);zr(a).resolvedSignature=void 0}var s=By(r,t);if(4&t&&a){o=r;do{zr(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==a);zr(a).resolvedSignature=i}return s}},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?ky(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&Ly(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&Oy(t)},isContextSensitive:nf,getTypeOfPropertyOfContextualType:Iy,getFullyQualifiedName:Pa,getResolvedSignature:function(e,n,t){return ue(e,n,t,0)},getResolvedSignatureForSignatureHelp:function(e,n,t){return ue(e,n,t,16)},getExpandedParameters:Xs,hasEffectiveRestParameter:Mb,containsArgumentsReference:El,getConstantValue:function(n){var t=e.getParseTreeNode(n,rL);return t?aL(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,n){switch(e.kind){case 205:return dv(e,106===e.expression.kind,n,$m(VE(e.expression)));case 160:return dv(e,!1,n,$m(VE(e.left)));case 199:return dv(e,!1,n,Lp(e))}}(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var a=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!a&&uv(a,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?vl(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?Yx(t):void 0},getImmediateAliasedSymbol:th,getAliasedSymbol:Ia,getEmitResolver:function(e,n){return Ex(e,n),j},getExportsOfModule:Ja,getExportsAndPropertiesOfModule:function(n){var t=Ja(n),r=Ka(n);if(r!==n){var a=Xo(r);Xa(a)&&e.addRange(t,Cc(a))}return t},forEachExportAndPropertyOfModule:function(e,n){Qa(e).forEach((function(e,t){_i(t)||n(e,t)}));var t=Ka(e);if(t!==e){var r=Xo(t);Xa(r)&&function(e,n){3670016&(e=jc(e)).flags&&Sc(e).members.forEach((function(e,t){yi(e,t)&&n(e,t)}))}(r,(function(e,t){n(e,t)}))}},getSymbolWalker:e.createGetSymbolWalker((function(e){return kl(e)||Ie}),Ll,Cl,ds,Sc,Xo,U_,Ic,e.getFirstIdentifier,$l),getAmbientModules:function(){Dn||(Dn=[],re.forEach((function(e,n){l.test(n)&&Dn.push(e)})));return Dn},getJsxIntrinsicTagNamesAt:function(n){var t=dh(H.IntrinsicElements,n);return t?Cc(t):e.emptyArray},isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return!!t&&ml(t)},tryGetMemberInModuleExports:function(n,t){return qa(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(e,n){var t=qa(e,n);if(t)return t;var r=Ka(n);if(r===n)return;var a=Xo(r);return Xa(a)?Qc(a,e):void 0}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModule:function(e){return fl(e,!0)},tryFindAmbientModuleWithoutAugmentations:function(e){return fl(e,!1)},getApparentType:Vc,getUnionType:ad,isTypeAssignableTo:df,createAnonymousType:vi,createSignature:Ws,createSymbol:Pr,createIndexInfo:Ul,getAnyType:function(){return Ie},getStringType:function(){return He},getNumberType:function(){return We},createPromiseType:Kb,createArrayType:Pu,getElementTypeOfArrayType:lm,getBooleanType:function(){return Qe},getFalseType:function(e){return e?Je:qe},getTrueType:function(e){return e?Xe:Ye},getVoidType:function(){return $e},getUndefinedType:function(){return Ge},getNullType:function(){return je},getESSymbolType:function(){return Ze},getNeverType:function(){return en},getOptionalType:function(){return Ue},getPromiseType:function(){return Au(!1)},getPromiseLikeType:function(){return Iu(!1)},isSymbolAccessible:Ai,isArrayType:om,isTupleType:Lm,isArrayLikeType:um,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some((function(n){var t=n.name&&yd(n.name),r=t&&Os(t)?Gs(t):void 0,a=void 0===r?void 0:to(e,r);return!!a&&vm(a)&&!df(Nx(n),a)}))},getExactOptionalProperties:function(e){return Cc(e).filter((function(e){return Km(Xo(e))}))},getAllPossiblePropertiesOfTypes:function(n){var t=ad(n);if(!(1048576&t.flags))return Px(t);for(var r=e.createSymbolTable(),a=0,i=n;a<i.length;a++)for(var o=i[a],s=0,c=Px(o);s<c.length;s++){var l=c[s].escapedName;if(!r.has(l)){var u=Kc(t,l);u&&r.set(l,u)}}return e.arrayFrom(r.values())},getSuggestedSymbolForNonexistentProperty:tv,getSuggestionForNonexistentProperty:av,getSuggestedSymbolForNonexistentJSXAttribute:rv,getSuggestedSymbolForNonexistentSymbol:function(n,t,r){return iv(n,e.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentSymbol:function(n,t,r){return function(n,t,r){var a=iv(n,t,r);return a&&e.symbolName(a)}(n,e.escapeLeadingUnderscores(t),r)},getSuggestedSymbolForNonexistentModule:ov,getSuggestionForNonexistentExport:function(n,t){var r=ov(n,t);return r&&e.symbolName(r)},getSuggestedSymbolForNonexistentClassMember:nv,getBaseConstraintOfType:wc,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Bc(e):void 0},resolveName:function(n,t,r,a){return Qr(t,e.escapeLeadingUnderscores(n),r,void 0,void 0,!1,a)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(Lr(n))},getJsxFragmentFactory:function(n){var t=gL(n);return t&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(t).escapedText)},getAccessibleSymbolChain:Ti,getTypePredicateOfSignature:Ll,resolveExternalModuleName:function(n){var t=e.getParseTreeNode(n,e.isExpression);return t&&Ba(t,t,!0)},resolveExternalModuleSymbol:Ka,tryGetThisTypeAt:function(n,t){var r=e.getParseTreeNode(n);return r&&fy(r,t)},getTypeArgumentConstraint:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t&&function(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(!t)return;var r=eT(t);if(!r)return;var a=Ic(r[t.typeArguments.indexOf(n)]);return a&&Yp(a,Np(r,ZE(t,r)))}(t)},getSuggestionDiagnostics:function(t,a){var i,o=e.getParseTreeNode(t,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(o,x,n))return e.emptyArray;try{return r=a,hx(o),e.Debug.assert(!!(1&zr(o).flags)),i=e.addRange(i,mr.getDiagnostics(o.fileName)),CT(bx(o),(function(n,t,r){e.containsParseError(n)||vx(t,!!(8388608&n.flags))||(i||(i=[])).push(fa(fa({},r),{category:e.DiagnosticCategory.Suggestion}))})),i||e.emptyArray}finally{r=void 0}},runWithCancellationToken:function(e,n){try{return r=e,n(le)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:rs,isDeclarationVisible:Xi,isPropertyAccessible:pv,getTypeOnlyAliasDeclaration:Ra,getMemberOverrideModifierStatus:function(n,t){if(!t.name)return 0;var r=ni(n),a=Ss(r),i=Ks(a),o=Xo(r),s=e.getEffectiveBaseTypeNode(n)&&ds(a),c=(null===s||void 0===s?void 0:s.length)?Ks(e.first(s),a.thisType):void 0,l=ls(a),u=t.parent?e.hasOverrideModifier(t):e.hasSyntacticModifier(t,16384),d=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(t.name));return HS(n,o,l,c,a,i,u,e.hasAbstractModifier(t),e.isStatic(t),!1,d)}};function ue(n,t,r,a){var i=e.getParseTreeNode(n,e.isCallLikeExpression);oe=r;var o=i?ib(i,t,a):void 0;return oe=void 0,o}var de=new e.Map,pe=new e.Map,fe=new e.Map,me=new e.Map,_e=new e.Map,ge=new e.Map,ye=new e.Map,he=new e.Map,ve=new e.Map,be=new e.Map,Ee=new e.Map,Te=new e.Map,Se=[],xe=new e.Map,Le=Pr(4,"unknown"),De=Pr(0,"__resolving__"),Ce=new e.Map,Ae=new e.Map,Ie=pi(1,"any"),ke=pi(1,"any"),Ne=pi(1,"any"),Re=pi(1,"error"),Oe=pi(1,"unresolved"),we=pi(1,"any",131072),Me=pi(1,"intrinsic"),Pe=pi(2,"unknown"),Fe=pi(2,"unknown"),Ge=pi(32768,"undefined"),Be=I?Ge:pi(32768,"undefined",131072),Ue=pi(32768,"undefined"),Ve=U?pi(32768,"undefined"):Ge,je=pi(65536,"null"),Ke=I?je:pi(65536,"null",131072),He=pi(4,"string"),We=pi(8,"number"),ze=pi(64,"bigint"),Je=pi(512,"false"),qe=pi(512,"false"),Xe=pi(512,"true"),Ye=pi(512,"true");Xe.regularType=Ye,Xe.freshType=Xe,Ye.regularType=Ye,Ye.freshType=Xe,Je.regularType=qe,Je.freshType=Je,qe.regularType=qe,qe.freshType=Je;var Qe=ad([qe,Ye]),Ze=pi(4096,"symbol"),$e=pi(16384,"void"),en=pi(131072,"never"),nn=pi(131072,"never"),tn=pi(131072,"never",524288),rn=pi(131072,"never"),an=pi(131072,"never"),on=pi(67108864,"object"),sn=ad([He,We]),cn=ad([He,We,Ze]),ln=G?He:cn,un=ad([We,ze]),dn=ad([He,We,Qe,ze,je,Ge]),pn=wp((function(e){return 262144&e.flags?(n=e).constraint===Pe?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=mi(n.symbol),n.restrictiveInstantiation.constraint=Pe,n.restrictiveInstantiation):e;var n})),fn=wp((function(e){return 262144&e.flags?Ne:e})),mn=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray),_n=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray);_n.objectFlags|=2048;var gn=Pr(2048,"__type");gn.members=e.createSymbolTable();var yn=vi(gn,T,e.emptyArray,e.emptyArray,e.emptyArray),hn=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray);hn.instantiations=new e.Map;var vn=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray);vn.objectFlags|=524288;var bn=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray),En=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray),Tn=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray),Sn=mi(),xn=mi();xn.constraint=Sn;var Ln,Dn,Cn,An,In,kn,Nn,Rn,On,wn,Mn,Pn,Fn,Gn,Bn,Un,Vn,jn,Kn,Hn,Wn,zn,Jn,qn,Xn,Yn,Qn,Zn,$n,et,nt,tt,rt,at,it,ot,st,ct,lt,ut,dt,pt,ft,mt,_t,gt,yt,ht,vt,bt,Et,Tt=mi(),St=gl(1,"<<unresolved>>",0,Ie),xt=Ws(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),Lt=Ws(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Dt=Ws(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),Ct=Ws(void 0,void 0,void 0,e.emptyArray,nn,void 0,0,0),At=Ul(We,He,!0),It=new e.Map,kt={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Nt=lS(Ie,Ie,Ie),Rt=lS(Ie,Ie,Pe),Ot=lS(en,Ie,Ge),wt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return it||(it=Su("AsyncIterator",3,e))||hn},getGlobalIterableType:function(e){return at||(at=Su("AsyncIterable",1,e))||hn},getGlobalIterableIteratorType:function(e){return ot||(ot=Su("AsyncIterableIterator",1,e))||hn},getGlobalGeneratorType:function(e){return st||(st=Su("AsyncGenerator",3,e))||hn},resolveIterationType:_T,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Mt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return $n||($n=Su("Iterator",3,e))||hn},getGlobalIterableType:Nu,getGlobalIterableIteratorType:function(e){return et||(et=Su("IterableIterator",1,e))||hn},getGlobalGeneratorType:function(e){return nt||(nt=Su("Generator",3,e))||hn},resolveIterationType:function(e,n){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Pt=new e.Map,Ft=!1,Gt=new e.Map,Bt=0,Ut=0,Vt=0,jt=!1,Kt=0,Ht=yp(""),Wt=hp(0),zt=vp({negative:!1,base10Value:"0"}),Jt=[],qt=[],Xt=[],Yt=0,Qt=[],Zt=[],$t=[],er=[],nr=[],tr=[],rr=[],ar=[],ir=[],or=[],sr=[],cr=[],lr=[],ur=[],dr=[],pr=[],fr=e.createDiagnosticCollection(),mr=e.createDiagnosticCollection(),_r=new e.Map(e.getEntries({string:He,number:We,bigint:ze,boolean:Qe,symbol:Ze,undefined:Ge})),gr=ad(e.arrayFrom(O.keys(),yp)),yr=new e.Map,hr=new e.Map,vr=new e.Map,br=new e.Map,Er=new e.Map,Tr=new e.Map,Sr=e.createSymbolTable();Sr.set(ae.escapedName,ae);var xr=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===x.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var a=r[t];e.bindSourceFile(a,x)}var i;Ln=new e.Map;for(var o=0,s=n.getSourceFiles();o<s.length;o++){if(!(a=s[o]).redirectInfo){if(!e.isExternalOrCommonJsModule(a)){var c=a.locals.get("globalThis");if(null===c||void 0===c?void 0:c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var d=u[l];fr.add(e.createDiagnosticForNode(d,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Kr(re,a.locals)}if(a.jsGlobalAugmentations&&Kr(re,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Cn=e.concatenate(Cn,a.patternAmbientModules)),a.moduleAugmentations.length&&(i||(i=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports)a.symbol.globalExports.forEach((function(e,n){re.has(n)||re.set(n,e)}))}}if(i)for(var p=0,f=i;p<f.length;p++)for(var m=f[p],_=0,g=m;_<g.length;_++){var y=g[_];e.isGlobalScopeAugmentation(y.parent)&&Hr(y)}(function(n,t,r){t.forEach((function(t,a){var i=n.get(a);i?e.forEach(i.declarations,function(n,t){return function(r){return fr.add(e.createDiagnosticForNode(r,t,n))}}(e.unescapeLeadingUnderscores(a),r)):n.set(a,t)}))})(re,Sr,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Wr(ae).type=Be,Wr(se).type=Su("IArguments",0,!0),Wr(Le).type=Re,Wr(ie).type=fi(16,ie),On=Su("Array",1,!0),In=Su("Object",0,!0),kn=Su("Function",0,!0),Nn=N&&Su("CallableFunction",0,!0)||kn,Rn=N&&Su("NewableFunction",0,!0)||kn,Mn=Su("String",0,!0),Pn=Su("Number",0,!0),Fn=Su("Boolean",0,!0),Gn=Su("RegExp",0,!0),Un=Pu(Ie),(Vn=Pu(ke))===mn&&(Vn=vi(void 0,T,e.emptyArray,e.emptyArray,e.emptyArray));if(wn=Ru("ReadonlyArray",1)||On,jn=wn?wu(wn,[Ie]):Un,Bn=Ru("ThisType",1),i)for(var h=0,v=i;h<v.length;h++){m=v[h];for(var b=0,E=m;b<E.length;b++){y=E[b];e.isGlobalScopeAugmentation(y.parent)||Hr(y)}}Ln.forEach((function(n){var t=n.firstFile,r=n.secondFile,a=n.conflictingSymbols;if(a.size<8)a.forEach((function(n,t){for(var r=n.isBlockScoped,a=n.firstFileLocations,i=n.secondFileLocations,o=r?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=a;s<c.length;s++){jr(c[s],o,t,i)}for(var l=0,u=i;l<u.length;l++){jr(u[l],o,t,a)}}));else{var i=e.arrayFrom(a.keys()).join(", ");fr.add(e.addRelatedInfo(e.createDiagnosticForNode(t,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,i),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file))),fr.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,i),e.createDiagnosticForNode(t,e.Diagnostics.Conflicts_are_in_this_file)))}})),Ln=void 0}(),le;function Lr(n){if(n){var t=e.getSourceFileOfNode(n);if(t)if(e.isJsxOpeningFragment(n)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){var a=e.isArray(r)?r[0]:r;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,L),e.visitNode(t.localJsxFragmentFactory,Cr),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var i=gL(n);if(i)return t.localJsxFragmentFactory=i,t.localJsxFragmentNamespace=e.getFirstIdentifier(i).escapedText}else{var o=Dr(t);if(o)return t.localJsxNamespace=o}}return vt||(vt="React",x.jsxFactory?(bt=e.parseIsolatedEntityName(x.jsxFactory,L),e.visitNode(bt,Cr),bt&&(vt=e.getFirstIdentifier(bt).escapedText)):x.reactNamespace&&(vt=e.escapeLeadingUnderscores(x.reactNamespace))),bt||(bt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(vt)),"createElement")),vt}function Dr(n){if(n.localJsxNamespace)return n.localJsxNamespace;var t=n.pragmas.get("jsx");if(t){var r=e.isArray(t)?t[0]:t;if(n.localJsxFactory=e.parseIsolatedEntityName(r.arguments.factory,L),e.visitNode(n.localJsxFactory,Cr),n.localJsxFactory)return n.localJsxNamespace=e.getFirstIdentifier(n.localJsxFactory).escapedText}}function Cr(n){return e.setTextRangePosEnd(n,-1,-1),e.visitEachChild(n,Cr,e.nullTransformationContext)}function Ar(e,n,t,r,a,i,o){var s=kr(n,t,r,a,i,o);return s.skippedOn=e,s}function Ir(n,t,r,a,i,o){return n?e.createDiagnosticForNode(n,t,r,a,i,o):e.createCompilerDiagnostic(t,r,a,i,o)}function kr(e,n,t,r,a,i){var o=Ir(e,n,t,r,a,i);return fr.add(o),o}function Nr(n,t){n?fr.add(t):mr.add(fa(fa({},t),{category:e.DiagnosticCategory.Suggestion}))}function Rr(n,t,r,a,i,o,s){if(t.pos<0||t.end<0){if(!n)return;var c=e.getSourceFileOfNode(t);Nr(n,"message"in r?e.createFileDiagnostic(c,0,0,r,a,i,o,s):e.createDiagnosticForFileFromMessageChain(c,r))}else Nr(n,"message"in r?e.createDiagnosticForNode(t,r,a,i,o,s):e.createDiagnosticForNodeFromMessageChain(t,r))}function Or(n,t,r,a,i,o,s){var c=kr(n,r,a,i,o,s);if(t){var l=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function wr(n,t){var r=Array.isArray(n)?e.forEach(n,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(n);return r&&e.addRelatedInfo(t,e.createDiagnosticForNode(r,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),mr.add(t),t}function Mr(n,t,r){return wr(t,e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,r))}function Pr(e,n,t){g++;var r=new c(33554432|e,n);return r.checkFlags=t||0,r}function Fr(e){var n=0;return 2&e&&(n|=111551),1&e&&(n|=111550),4&e&&(n|=0),8&e&&(n|=900095),16&e&&(n|=110991),32&e&&(n|=899503),64&e&&(n|=788872),256&e&&(n|=899327),128&e&&(n|=899967),512&e&&(n|=110735),8192&e&&(n|=103359),32768&e&&(n|=46015),65536&e&&(n|=78783),262144&e&&(n|=526824),524288&e&&(n|=788968),2097152&e&&(n|=2097152),n}function Gr(e,n){n.mergeId||(n.mergeId=f,f++),Qt[n.mergeId]=e}function Br(n){var t=Pr(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=new e.Map(n.members)),n.exports&&(t.exports=new e.Map(n.exports)),Gr(t,n),t}function Ur(n,t,r){if(void 0===r&&(r=!1),!(n.flags&Fr(t.flags))||67108864&(t.flags|n.flags)){if(t===n)return n;if(!(33554432&n.flags)){var a=Aa(n);if(a===Le)return t;n=Br(a)}512&t.flags&&512&n.flags&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(n,t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),Kr(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),Kr(n.exports,t.exports,r)),r||Gr(n,t)}else if(1024&n.flags)n!==ie&&kr(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Mi(n));else{var i=!!(384&n.flags||384&t.flags),o=!!(2&n.flags||2&t.flags),s=i?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),l=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),u=Mi(t);if(c&&l&&Ln&&!i&&c!==l){var d=-1===e.comparePaths(c.path,l.path)?c:l,p=d===c?l:c,f=e.getOrUpdate(Ln,"".concat(d.path,"|").concat(p.path),(function(){return{firstFile:d,secondFile:p,conflictingSymbols:new e.Map}})),m=e.getOrUpdate(f.conflictingSymbols,u,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));_(m.firstFileLocations,t),_(m.secondFileLocations,n)}else Vr(t,s,u,n),Vr(n,s,u,t)}return n;function _(n,t){if(t.declarations)for(var r=0,a=t.declarations;r<a.length;r++){var i=a[r];e.pushIfUnique(n,i)}}}function Vr(n,t,r,a){e.forEach(n.declarations,(function(e){jr(e,t,r,a.declarations)}))}function jr(n,t,r,a){for(var i=(e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n,o=function(n,t,r,a,i,o){var s=n?e.createDiagnosticForNode(n,t,r,a,i,o):e.createCompilerDiagnostic(t,r,a,i,o);return fr.lookup(s)||(fr.add(s),s)}(i,t,r),s=function(n){var t=(e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n;if(t===i)return"continue";o.relatedInformation=o.relatedInformation||[];var a=e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,r),s=e.createDiagnosticForNode(t,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(function(n){return 0===e.compareDiagnostics(n,s)||0===e.compareDiagnostics(n,a)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:a)},c=0,l=a||e.emptyArray;c<l.length;c++){s(l[c])}}function Kr(e,n,t){void 0===t&&(t=!1),n.forEach((function(n,r){var a=e.get(r);e.set(r,a?Ur(a,n,t):n)}))}function Hr(n){var t,r,a,i=n.parent;if((null===(t=i.symbol.declarations)||void 0===t?void 0:t[0])===i)if(e.isGlobalScopeAugmentation(i))Kr(re,i.symbol.exports);else{var o=Ua(n,n,8388608&n.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=Ka(o)).flags)if(e.some(Cn,(function(e){return o===e.symbol}))){var s=Ur(i.symbol,o,!0);An||(An=new e.Map),An.set(n.text,s)}else{if((null===(r=o.exports)||void 0===r?void 0:r.get("__export"))&&(null===(a=i.symbol.exports)||void 0===a?void 0:a.size))for(var c=Us(o,"resolvedExports"),l=0,u=e.arrayFrom(i.symbol.exports.entries());l<u.length;l++){var d=u[l],p=d[0],f=d[1];c.has(p)&&!o.exports.has(p)&&Ur(c.get(p),f)}Ur(o,i.symbol)}else kr(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}else e.Debug.assert(i.symbol.declarations.length>1)}function Wr(e){if(33554432&e.flags)return e;var n=Y(e);return Zt[n]||(Zt[n]=new J)}function zr(e){var n=X(e);return $t[n]||($t[n]=new q)}function Jr(n){return 303===n.kind&&!e.isExternalOrCommonJsModule(n)}function qr(n,t,r){if(r){var a=ei(n.get(t));if(a){if(e.Debug.assert(0===(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&r)return a;if(2097152&a.flags){var i=Ia(a);if(i===Le||i.flags&r)return a}}}}function Xr(t,r){var a=e.getSourceFileOfNode(t),i=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(t);if(a!==i){if(D&&(a.externalModuleIndicator||i.externalModuleIndicator)||!e.outFile(x)||V_(r)||8388608&t.flags)return!0;if(l(r,t))return!0;var s=n.getSourceFiles();return s.indexOf(a)<=s.indexOf(i)}if(t.pos<=r.pos&&(!e.isPropertyDeclaration(t)||!e.isThisProperty(r.parent)||t.initializer||t.exclamationToken)){if(202===t.kind){var c=e.getAncestor(r,202);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<c.pos:Xr(e.getAncestor(t,253),r)}return 253===t.kind?!function(n,t){switch(n.parent.parent.kind){case 236:case 241:case 243:if(sa(t,n,o))return!0}var r=n.parent.parent;return e.isForInOrOfStatement(r)&&sa(t,r.expression,o)}(t,r):e.isClassDeclaration(t)?!e.findAncestor(r,(function(n){return e.isComputedPropertyName(n)&&n.parent.parent===t})):e.isPropertyDeclaration(t)?!u(t,r,!1):!e.isParameterPropertyDeclaration(t,t.parent)||!(99===e.getEmitScriptTarget(x)&&C&&e.getContainingClass(t)===e.getContainingClass(r)&&l(r,t))}return!!(274===r.parent.kind||270===r.parent.kind&&r.parent.isExportEquals)||(!(270!==r.kind||!r.isExportEquals)||(!!(4194304&r.flags||V_(r)||e.findAncestor(r,(function(n){return e.isInterfaceDeclaration(n)||e.isTypeAliasDeclaration(n)})))||!!l(r,t)&&(99!==e.getEmitScriptTarget(x)||!C||!e.getContainingClass(t)||!e.isPropertyDeclaration(t)&&!e.isParameterPropertyDeclaration(t,t.parent)||!u(t,r,!0))));function l(n,t){return!!e.findAncestor(n,(function(r){if(r===o)return"quit";if(e.isFunctionLike(r))return!0;if(e.isClassStaticBlockDeclaration(r))return t.pos<n.pos;var a=e.tryCast(r.parent,e.isPropertyDeclaration);if(a&&a.initializer===r)if(e.isStatic(r.parent)){if(168===t.kind)return!0;if(e.isPropertyDeclaration(t)&&e.getContainingClass(n)===e.getContainingClass(t)){var i=t.name;if(e.isIdentifier(i)||e.isPrivateIdentifier(i))if(function(n,t,r,a,i){for(var o=0,s=r;o<s.length;o++){var c=s[o];if(c.pos>=a&&c.pos<=i){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&Rm(Yg(l,t,Pm(t)))))return!0}}return!1}(i,Xo(ni(t)),e.filter(t.parent.members,e.isClassStaticBlockDeclaration),t.parent.pos,r.pos))return!0}}else{if(!(166===t.kind&&!e.isStatic(t))||e.getContainingClass(n)!==e.getContainingClass(t))return!0}return!1}))}function u(n,t,r){return!(t.end>n.end)&&void 0===e.findAncestor(t,(function(t){if(t===n)return"quit";switch(t.kind){case 213:return!0;case 166:return!r||!(e.isPropertyDeclaration(n)&&t.parent===n.parent||e.isParameterPropertyDeclaration(n,n.parent)&&t.parent===n.parent.parent)||"quit";case 234:switch(t.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}}))}}function Yr(n,t,r){var a=e.getEmitScriptTarget(x),i=t;if(e.isParameter(r)&&i.body&&n.valueDeclaration&&n.valueDeclaration.pos>=i.body.pos&&n.valueDeclaration.end<=i.body.end&&a>=2){var o=zr(i);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(i.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(n){switch(n.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return s(n.name);case 166:return e.hasStaticModifier(n)?a<99||!C:s(n.name);default:return e.isNullishCoalesce(n)||e.isOptionalChain(n)?a<7:e.isBindingElement(n)&&n.dotDotDotToken&&e.isObjectBindingPattern(n.parent)?a<4:!e.isTypeNode(n)&&(e.forEachChild(n,s)||!1)}}}function Qr(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),Zr(e,n,t,r,a,i,o,s,qr)}function Zr(n,r,a,i,o,s,c,l,u){var d,p,f,m,_,g,y,h,v,b=n,E=!1,S=n,L=!1;e:for(;n;){if(n.locals&&!Jr(n)&&(m=u(n.locals,r,a))){var D=!0;if(e.isFunctionLike(n)&&_&&_!==n.body?(a&m.flags&788968&&318!==_.kind&&(D=!!(262144&m.flags)&&(_===n.type||163===_.kind||162===_.kind)),a&m.flags&3&&(Yr(m,n,_)?D=!1:1&m.flags&&(D=163===_.kind||_===n.type&&!!e.findAncestor(m.valueDeclaration,e.isParameter)))):188===n.kind&&(D=_===n.trueType),D)break e;m=void 0}switch(E=E||ea(n,_),n.kind){case 303:if(!e.isExternalOrCommonJsModule(n))break;L=!0;case 260:var A=(null===(d=ni(n))||void 0===d?void 0:d.exports)||T;if(303===n.kind||e.isModuleDeclaration(n)&&8388608&n.flags&&!e.isGlobalScopeAugmentation(n)){if(m=A.get("default")){var I=e.getLocalSymbolForExportDefault(m);if(I&&m.flags&a&&I.escapedName===r)break e;m=void 0}var k=A.get(r);if(k&&2097152===k.flags&&(e.getDeclarationOfKind(k,274)||e.getDeclarationOfKind(k,273)))break}if("default"!==r&&(m=u(A,r,2623475&a))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||(null===(p=m.declarations)||void 0===p?void 0:p.some(e.isJSDocTypeAlias)))break e;m=void 0}break;case 259:if(m=u((null===(f=ni(n))||void 0===f?void 0:f.exports)||T,r,8&a))break e;break;case 166:if(!e.isStatic(n)){var N=li(n.parent);N&&N.locals&&u(N.locals,r,111551&a)&&(y=n)}break;case 256:case 225:case 257:if(m=u(ni(n).members||T,r,788968&a)){if(!ra(m,n)){m=void 0;break}if(_&&e.isStatic(_))return void kr(S,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(225===n.kind&&32&a){var R=n.name;if(R&&r===R.escapedText){m=n.symbol;break e}}break;case 227:if(_===n.expression&&94===n.parent.token){var O=n.parent.parent;if(e.isClassLike(O)&&(m=u(ni(O).members,r,788968&a)))return void(i&&kr(S,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 161:if(v=n.parent.parent,(e.isClassLike(v)||257===v.kind)&&(m=u(ni(v).members,r,788968&a)))return void kr(S,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 213:if(e.getEmitScriptTarget(x)>=2)break;case 168:case 170:case 171:case 172:case 255:if(3&a&&"arguments"===r){m=se;break e}break;case 212:if(3&a&&"arguments"===r){m=se;break e}if(16&a){var w=n.name;if(w&&r===w.escapedText){m=n.symbol;break e}}break;case 164:n.parent&&163===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||256===n.parent.kind)&&(n=n.parent);break;case 343:case 336:case 337:(U=e.getJSDocRoot(n))&&(n=U.parent);break;case 163:_&&(_===n.initializer||_===n.name&&e.isBindingPattern(_))&&(h||(h=n));break;case 202:_&&(_===n.initializer||_===n.name&&e.isBindingPattern(_))&&e.isParameterDeclaration(n)&&!h&&(h=n);break;case 189:if(262144&a){var M=n.typeParameter.name;if(M&&r===M.escapedText){m=n.typeParameter.symbol;break e}}}na(n)&&(g=n),_=n,n=e.isJSDocTemplateTag(n)&&e.getEffectiveContainerForJSDocTemplateTag(n)||n.parent}if(!s||!m||g&&m===g.symbol||(m.isReferenced|=a),!m){if(_&&(e.Debug.assert(303===_.kind),_.commonJsModuleIndicator&&"exports"===r&&a&_.symbol.flags))return _.symbol;c||(m=u(re,r,a))}if(!m&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return ce;if(m){if(i&&t){if(y&&(99!==e.getEmitScriptTarget(x)||!C)){var P=y.name;return void kr(S,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(P),ta(o))}if(S&&(2&a||(32&a||384&a)&&111551===(111551&a))){var F=si(m);(2&F.flags||32&F.flags||384&F.flags)&&function(n,t){var r;if(e.Debug.assert(!!(2&n.flags||32&n.flags||384&n.flags)),67108881&n.flags&&32&n.flags)return;var a=null===(r=n.declarations)||void 0===r?void 0:r.find((function(n){return e.isBlockOrCatchScoped(n)||e.isClassLike(n)||259===n.kind}));if(void 0===a)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&a.flags)&&!Xr(a,t)){var i=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(a));2&n.flags?i=kr(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&n.flags?i=kr(t,e.Diagnostics.Class_0_used_before_its_declaration,o):256&n.flags?i=kr(t,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&n.flags)),e.shouldPreserveConstEnums(x)&&(i=kr(t,e.Diagnostics.Enum_0_used_before_its_declaration,o))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}}(F,S)}if(m&&L&&111551===(111551&a)&&!(4194304&b.flags)){var G=ei(m);e.length(G.declarations)&&e.every(G.declarations,(function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports}))&&Rr(!x.allowUmdGlobalAccess,S,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(m&&h&&!E&&111551===(111551&a)){var B=ei(js(m)),U=e.getRootDeclaration(h);B===ni(h)?kr(S,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(h.name)):B.valueDeclaration&&B.valueDeclaration.pos>h.pos&&U.parent.locals&&u(U.parent.locals,B.escapedName,a)===B&&kr(S,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(h.name),e.declarationNameToString(S))}m&&S&&111551&a&&2097152&m.flags&&function(n,t,r){if(!e.isValidTypeOnlyAliasUseSite(r)){var a=Ra(n);if(a){var i=274===a.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,o=e.unescapeLeadingUnderscores(t);$r(kr(r,i,o),a,o)}}}(m,r,S)}return m}if(i&&t&&(!S||!function(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||xx(n)||V_(n))return!1;var a=e.getThisContainer(n,!1),i=a;for(;i;){if(e.isClassLike(i.parent)){var o=ni(i.parent);if(!o)break;if(Qc(Xo(o),t))return kr(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ta(r),Mi(o)),!0;if(i===a&&!e.isStatic(i))if(Qc(Ss(o).thisType,t))return kr(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ta(r)),!0}i=i.parent}return!1}(S,r,o)&&!aa(S)&&!function(n,t,r){var a=1920|(e.isInJSFile(n)?111551:0);if(r===a){var i=Aa(Qr(n,t,788968&~a,void 0,void 0,!1)),o=n.parent;if(i){if(e.isQualifiedName(o)){e.Debug.assert(o.left===n,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Qc(Ss(i),s))return kr(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(s)),!0}return kr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}(S,r,a)&&!function(n,t){if(oa(t)&&274===n.parent.kind)return kr(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(S,r)&&!function(n,t,r){if(111551&r){if(oa(t))return kr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var a=Aa(Qr(n,t,788544,void 0,void 0,!1));if(a&&!(1024&a.flags)){var i=e.unescapeLeadingUnderscores(t);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?!function(n,t){var r=e.findAncestor(n.parent,(function(n){return!e.isComputedPropertyName(n)&&!e.isPropertySignature(n)&&(e.isTypeLiteralNode(n)||"quit")}));if(r&&1===r.members.length){var a=Ss(t);return!!(1048576&a.flags)&&uE(a,384,!0)}return!1}(n,a)?kr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,i):kr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,i,"K"===i?"P":"K"):kr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,i),!0}}return!1}(S,r,a)&&!function(n,t,r){if(111127&r){if(Aa(Qr(n,t,1024,void 0,void 0,!1)))return kr(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(788544&r){if(Aa(Qr(n,t,1536,void 0,void 0,!1)))return kr(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}(S,r,a)&&!function(n,t,r){if(788584&r){var a=Aa(Qr(n,t,111127,void 0,void 0,!1));if(a&&!(1920&a.flags))return kr(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}(S,r,a))){var V=void 0;if(l&&Yt<10)if((null===(V=iv(b,r,a))||void 0===V?void 0:V.valueDeclaration)&&e.isAmbientModule(V.valueDeclaration)&&e.isGlobalScopeAugmentation(V.valueDeclaration)&&(V=void 0),V){var j=Mi(V),K=Xh(b,V,!1),H=Ir(S,1920===a||o&&"string"!==typeof o&&e.nodeIsSynthesized(o)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:K?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,ta(o),j);Nr(!K,H),V.valueDeclaration&&e.addRelatedInfo(H,e.createDiagnosticForNode(V.valueDeclaration,e.Diagnostics._0_is_declared_here,j))}if(!V&&o){var W=function(n){for(var t=ta(n),r=e.getScriptTargetFeatures(),a=e.getOwnKeys(r),i=0,o=a;i<o.length;i++){var s=o[i],c=e.getOwnKeys(r[s]);if(void 0!==c&&e.contains(c,t))return s}}(o);W?kr(S,i,ta(o),W):kr(S,i,ta(o))}Yt++}}function $r(n,t,r){return t?e.addRelatedInfo(n,e.createDiagnosticForNode(t,274===t.kind?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,r)):n}function ea(n,t){return 213!==n.kind&&212!==n.kind?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||166===n.kind&&!e.isStatic(n))&&(!t||t!==n.name):(!t||t!==n.name)&&(!(!n.asteriskToken&&!e.hasSyntacticModifier(n,256))||!e.getImmediatelyInvokedFunctionExpression(n))}function na(e){switch(e.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function ta(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function ra(n,t){if(n.declarations)for(var r=0,a=n.declarations;r<a.length;r++){var i=a[r];if(162===i.kind)if((e.isJSDocTemplateTag(i.parent)?e.getJSDocHost(i.parent):i.parent)===t)return!(e.isJSDocTemplateTag(i.parent)&&e.find(i.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function aa(n){var t=ia(n);return!(!t||!Fa(t,64,!0))&&(kr(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0)}function ia(n){switch(n.kind){case 79:case 205:return n.parent?ia(n.parent):void 0;case 227:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}function oa(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function sa(n,t,r){return!!t&&!!e.findAncestor(n,(function(n){return n===r||e.isFunctionLike(n)?"quit":n===t}))}function ca(e){switch(e.kind){case 264:return e;case 266:return e.parent;case 267:return e.parent.parent;case 269:return e.parent.parent.parent;default:return}}function la(n){return n.declarations&&e.findLast(n.declarations,ua)}function ua(n){return 264===n.kind||263===n.kind||266===n.kind&&!!n.name||267===n.kind||273===n.kind||269===n.kind||274===n.kind||270===n.kind&&e.exportAssignmentIsAlias(n)||e.isBinaryExpression(n)&&2===e.getAssignmentDeclarationKind(n)&&e.exportAssignmentIsAlias(n)||e.isAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind&&da(n.parent.right)||295===n.kind||294===n.kind&&da(n.initializer)||e.isVariableDeclarationInitializedToBareOrAccessedRequire(n)}function da(n){return e.isAliasableExpression(n)||e.isFunctionExpression(n)&&ob(n)}function ma(n,t){var r=Sa(n);if(r){var a=e.getLeftmostAccessExpression(r.expression).arguments[0];return e.isIdentifier(r.name)?Aa(Qc(Sl(a),r.name.escapedText)):void 0}if(e.isVariableDeclaration(n)||276===n.moduleReference.kind){var i=Ba(n,e.getExternalModuleRequireArgument(n)||e.getExternalModuleImportEqualsDeclarationExpression(n)),o=Ka(i);return ka(n,i,o,!1),o}var s=Ma(n.moduleReference,t);return function(n,t){if(ka(n,void 0,t,!1)&&!n.isTypeOnly){var r=Ra(ni(n)),a=274===r.kind,i=a?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(r.name.escapedText);e.addRelatedInfo(kr(n.moduleReference,i),e.createDiagnosticForNode(r,o,s))}}(n,s),s}function ga(e,n,t,r){var a=e.exports.get("export="),i=a?Qc(Xo(a),n):e.exports.get(n),o=Aa(i,r);return ka(t,i,o,!1),o}function ya(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasSyntacticModifier(n,512)||e.isExportSpecifier(n)}function ha(n){return e.isStringLiteralLike(n)?e.getModeForUsageLocation(e.getSourceFileOfNode(n),n):void 0}function va(n){return ha(n)===e.ModuleKind.ESNext&&e.endsWith(n.text,".json")}function ba(n,t,r,a){var i=n&&ha(a);if(n&&void 0!==i){var o=function(n,t){return n===e.ModuleKind.ESNext&&t===e.ModuleKind.CommonJS}(i,n.impliedNodeFormat);if(i===e.ModuleKind.ESNext||o)return o}if(!A)return!1;if(!n||n.isDeclarationFile){var s=ga(t,"default",void 0,!0);return(!s||!e.some(s.declarations,ya))&&!ga(t,e.escapeLeadingUnderscores("__esModule"),void 0,r)}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!ga(t,e.escapeLeadingUnderscores("__esModule"),void 0,r):za(t)}function Ea(n,t){var r,a=Ba(n,n.parent.moduleSpecifier);if(a){var i=void 0;i=e.isShorthandAmbientModuleSymbol(a)?a:ga(a,"default",n,t);var o=null===(r=a.declarations)||void 0===r?void 0:r.find(e.isSourceFile),s=va(n.parent.moduleSpecifier),c=ba(o,a,t,n.parent.moduleSpecifier);if(i||c||s){if(c||s){var l=Ka(a,t)||Aa(a,t);return ka(n,a,l,!1),l}}else if(za(a)){var u=D>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",d=a.exports.get("export=").valueDeclaration,p=kr(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Mi(a),u);d&&e.addRelatedInfo(p,e.createDiagnosticForNode(d,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,u))}else!function(n,t){var r,a,i;if(null===(r=n.exports)||void 0===r?void 0:r.has(t.symbol.escapedName))kr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Mi(n),Mi(t.symbol));else{var o=kr(t.name,e.Diagnostics.Module_0_has_no_default_export,Mi(n)),s=null===(a=n.exports)||void 0===a?void 0:a.get("__export");if(s){var c=null===(i=s.declarations)||void 0===i?void 0:i.find((function(n){var t,r;return!!(e.isExportDeclaration(n)&&n.moduleSpecifier&&(null===(r=null===(t=Ba(n,n.moduleSpecifier))||void 0===t?void 0:t.exports)||void 0===r?void 0:r.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(a,n);return ka(n,i,void 0,!1),i}}function Ta(n,t,r){var a,i;void 0===r&&(r=!1);var o=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,s=Ba(n,o),c=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(e.isIdentifier(c)){var l=Ha(s,o,!1,"default"===c.escapedText&&!(!x.allowSyntheticDefaultImports&&!e.getESModuleInterop(x)));if(l&&c.escapedText){if(e.isShorthandAmbientModuleSymbol(s))return s;var u=void 0;u=s&&s.exports&&s.exports.get("export=")?Qc(Xo(l),c.escapedText,!0):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return Aa(Qc(Lp(t),n))}}(l,c.escapedText),u=Aa(u,r);var d=function(e,n,t,r){if(1536&e.flags){var a=Ya(e).get(n.escapedText),i=Aa(a,r);return ka(t,a,i,!1),i}}(l,c,t,r);if(void 0===d&&"default"===c.escapedText){var p=null===(a=s.declarations)||void 0===a?void 0:a.find(e.isSourceFile);(va(o)||ba(p,s,r,o))&&(d=Ka(s,r)||Aa(s,r))}var f=d&&u&&d!==u?function(n,t){if(n===Le&&t===Le)return Le;if(790504&n.flags)return n;var r=Pr(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),n.exports&&(r.exports=new e.Map(n.exports)),r}(u,d):d||u;if(!f){var m=Pa(s,n),_=e.declarationNameToString(c),g=ov(c,l);if(void 0!==g){var y=Mi(g),h=kr(c,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,_,y);g.valueDeclaration&&e.addRelatedInfo(h,e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,y))}else(null===(i=s.exports)||void 0===i?void 0:i.has("default"))?kr(c,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,m,_):function(n,t,r,a,i){var o,s,c=null===(s=null===(o=a.valueDeclaration)||void 0===o?void 0:o.locals)||void 0===s?void 0:s.get(t.escapedText),l=a.exports;if(c){var u=null===l||void 0===l?void 0:l.get("export=");if(u)oi(u,c)?function(n,t,r,a){if(D>=e.ModuleKind.ES2015){kr(t,e.getESModuleInterop(x)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,r)}else{if(e.isInJSFile(n))kr(t,e.getESModuleInterop(x)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,r);else kr(t,e.getESModuleInterop(x)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,r,r,a)}}(n,t,r,i):kr(t,e.Diagnostics.Module_0_has_no_exported_member_1,i,r);else{var d=l?e.find(dl(l),(function(e){return!!oi(e,c)})):void 0,p=d?kr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,i,r,Mi(d)):kr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,i,r);c.declarations&&e.addRelatedInfo.apply(void 0,pa([p],e.map(c.declarations,(function(n,t){return e.createDiagnosticForNode(n,0===t?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,r)})),!1))}}else kr(t,e.Diagnostics.Module_0_has_no_exported_member_1,i,r)}(n,c,_,s,m)}return f}}}function Sa(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function xa(e,n,t){var r=e.parent.parent.moduleSpecifier?Ta(e.parent.parent,e,t):Fa(e.propertyName||e.name,n,!1,t);return ka(e,void 0,r,!1),r}function La(n,t){if(e.isClassExpression(n))return SE(n).symbol;if(e.isEntityName(n)||e.isEntityNameExpression(n)){var r=Fa(n,901119,!0,t);return r||(SE(n),zr(n).resolvedSymbol)}}function Da(n,t){switch(void 0===t&&(t=!1),n.kind){case 264:case 253:return ma(n,t);case 266:return Ea(n,t);case 267:return function(e,n){var t=e.parent.parent.moduleSpecifier,r=Ba(e,t),a=Ha(r,t,n,!1);return ka(e,r,a,!1),a}(n,t);case 273:return function(e,n){var t=e.parent.moduleSpecifier,r=t&&Ba(e,t),a=t&&Ha(r,t,n,!1);return ka(e,r,a,!1),a}(n,t);case 269:case 202:return function(n,t){var r=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,a=Sa(r),i=Ta(r,a||n,t),o=n.propertyName||n.name;return a&&i&&e.isIdentifier(o)?Aa(Qc(Xo(i),o.escapedText),t):(ka(n,void 0,i,!1),i)}(n,t);case 274:return xa(n,901119,t);case 270:case 220:return function(n,t){var r=La(e.isExportAssignment(n)?n.expression:n.right,t);return ka(n,void 0,r,!1),r}(n,t);case 263:return function(e,n){var t=Ka(e.parent.symbol,n);return ka(e,void 0,t,!1),t}(n,t);case 295:return Fa(n.name,901119,!0,t);case 294:return function(e,n){return La(e.initializer,n)}(n,t);case 206:case 205:return function(n,t){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind)return La(n.parent.right,t)}(n,t);default:return e.Debug.fail()}}function Ca(e,n){return void 0===n&&(n=901119),!!e&&(2097152===(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function Aa(e,n){return!n&&Ca(e)?Ia(e):e}function Ia(n){e.Debug.assert(0!==(2097152&n.flags),"Should only get Alias here.");var t=Wr(n);if(t.target)t.target===De&&(t.target=Le);else{t.target=De;var r=la(n);if(!r)return e.Debug.fail();var a=Da(r);t.target===De?t.target=a||Le:kr(r,e.Diagnostics.Circular_definition_of_import_alias_0,Mi(n))}return t.target}function ka(n,t,r,a){if(!n||e.isPropertyAccessExpression(n))return!1;var i=ni(n);if(e.isTypeOnlyImportOrExportDeclaration(n))return Wr(i).typeOnlyDeclaration=n,!0;var o=Wr(i);return Na(o,t,a)||Na(o,r,a)}function Na(n,t,r){var a,i,o;if(t&&(void 0===n.typeOnlyDeclaration||r&&!1===n.typeOnlyDeclaration)){var s=null!==(i=null===(a=t.exports)||void 0===a?void 0:a.get("export="))&&void 0!==i?i:t,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=null!==(o=null!==c&&void 0!==c?c:Wr(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!n.typeOnlyDeclaration}function Ra(e){if(2097152&e.flags)return Wr(e).typeOnlyDeclaration||void 0}function Oa(e){var n=ni(e),t=Ia(n);t&&((t===Le||111551&t.flags&&!qx(t)&&!Ra(n))&&wa(n))}function wa(n){var t=Wr(n);if(!t.referenced){t.referenced=!0;var r=la(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var a=Aa(n);(a===Le||111551&a.flags)&&SE(r.moduleReference)}}}function Ma(n,t){return 79===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),79===n.kind||160===n.parent.kind?Fa(n,1920,!1,t):(e.Debug.assert(264===n.parent.kind),Fa(n,901119,!1,t))}function Pa(e,n){return e.parent?Pa(e.parent,n)+"."+Mi(e):Mi(e,n,void 0,20)}function Fa(n,t,r,a,i){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(79===n.kind){var c=t===s||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:B_(e.getFirstIdentifier(n)),l=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?function(n,t){if(pu(n.parent)){var r=function(n){if(e.findAncestor(n,(function(n){return e.isJSDocNode(n)||4194304&n.flags?e.isJSDocTypeAlias(n):"quit"})))return;var t=e.getJSDocHost(n);if(t&&e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&3===e.getAssignmentDeclarationKind(t.expression)){if(a=ni(t.expression.left))return Ga(a)}if(t&&(e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)){if(a=ni(t.parent.parent.left))return Ga(a)}var r=e.getEffectiveJSDocHost(n);if(r&&e.isFunctionLike(r)){var a;return(a=ni(r))&&a.valueDeclaration}}(n.parent);if(r)return Qr(r,n.escapedText,t,void 0,n,!0)}}(n,t):void 0;if(!(o=ei(Qr(i||n,n.escapedText,t,r||l?void 0:c,n,!0,!1))))return ei(l)}else{if(160!==n.kind&&205!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var u=160===n.kind?n.left:n.expression,d=160===n.kind?n.right:n.name,p=Fa(u,s,r,!1,i);if(!p||e.nodeIsMissing(d))return;if(p===Le)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&gb(p.valueDeclaration.initializer)){var f=p.valueDeclaration.initializer.arguments[0],m=Ba(f,f);if(m){var _=Ka(m);_&&(p=_)}}if(!(o=ei(qr(Ya(p),d.escapedText,t)))){if(!r){var g=Pa(p),y=e.declarationNameToString(d),h=ov(d,p);if(h)return void kr(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,y,Mi(h));var v=e.isQualifiedName(n)&&function(n){for(;e.isQualifiedName(n.parent);)n=n.parent;return n}(n),b=In&&788968&t&&v&&!e.isTypeOfExpression(v.parent)&&function(n){var t=e.getFirstIdentifier(n),r=Qr(t,t.escapedText,111551,void 0,t,!0);if(r){for(;e.isQualifiedName(t.parent);){if(!(r=Qc(Xo(r),t.parent.right.escapedText)))return;t=t.parent}return r}}(v);if(b)return void kr(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&t&&e.isQualifiedName(n.parent)){var E=ei(qr(Ya(p),d.escapedText,788968));if(E)return void kr(n.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Mi(E),e.unescapeLeadingUnderscores(n.parent.right.escapedText))}kr(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,y)}return}}return e.Debug.assert(0===(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(n)&&e.isEntityName(n)&&(2097152&o.flags||270===n.parent.kind)&&ka(e.getAliasDeclarationFromName(n),o,void 0,!0),o.flags&t||a?o:Ia(o)}}function Ga(n){var t=n.parent.valueDeclaration;if(t)return(e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0)||t}function Ba(n,t,r){var a=e.getEmitModuleResolutionKind(x)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ua(n,t,r?void 0:a)}function Ua(n,t,r,a){return void 0===a&&(a=!1),e.isStringLiteralLike(t)?Va(n,t.text,r,t,a):void 0}function Va(t,r,a,i,o){var s,c,l,u,d,p,f;(void 0===o&&(o=!1),e.startsWith(r,"@types/"))&&kr(i,k=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var m=fl(r,!0);if(m)return m;var _=e.getSourceFileOfNode(t),g=e.isStringLiteralLike(t)?t:(null===(s=e.findAncestor(t,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(t,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(t,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(t,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(t)?t:t.parent&&e.isModuleDeclaration(t.parent)&&t.parent.name===t?t.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(t)?t:void 0)||void 0===p?void 0:p.argument.literal),y=g&&e.isStringLiteralLike(g)?e.getModeForUsageLocation(_,g):_.impliedNodeFormat,h=e.getResolvedModule(_,r,y),v=h&&e.getResolutionDiagnostic(x,h),b=h&&!v&&n.getSourceFile(h.resolvedFileName);if(b){if(b.symbol){if(h.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(h.extension)&&ja(!1,i,h,r),e.getEmitModuleResolutionKind(x)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(x)===e.ModuleResolutionKind.NodeNext)(_.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(t,e.isImportCall)||!!e.findAncestor(t,e.isImportEqualsDeclaration))&&b.impliedNodeFormat===e.ModuleKind.ESNext&&kr(i,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,r),y===e.ModuleKind.ESNext&&x.resolveJsonModule&&".json"===h.extension&&kr(i,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports);return ei(b.symbol)}a&&kr(i,e.Diagnostics.File_0_is_not_a_module,b.fileName)}else{if(Cn){var E=e.findBestPatternMatch(Cn,(function(e){return e.pattern}),r);if(E){var T=An&&An.get(r);return ei(T?T:E.symbol)}}if(h&&!e.resolutionExtensionIsTSOrJson(h.extension)&&void 0===v||v===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?kr(i,k=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,h.resolvedFileName):ja(M&&!!a,i,h,r);else if(a){if(h){var S=n.getProjectReferenceRedirect(h.resolvedFileName);if(S)return void kr(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,S,h.resolvedFileName)}if(v)kr(i,v,r,h.resolvedFileName);else{var L=e.tryExtractTSExtension(r),C=e.pathIsRelative(r)&&!e.hasExtension(r),A=e.getEmitModuleResolutionKind(x),I=A===e.ModuleResolutionKind.Node12||A===e.ModuleResolutionKind.NodeNext;if(L){var k=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,N=e.removeExtension(r,L);D>=e.ModuleKind.ES2015&&(N+=".mts"===L?".mjs":".cts"===L?".cjs":".js"),kr(i,k,L,N)}else if(!x.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(x)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(x))kr(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r);else if(y===e.ModuleKind.ESNext&&I&&C){var R=e.getNormalizedAbsolutePath(r,e.getDirectoryPath(_.path)),O=null===(f=xr.find((function(e){var t=e[0];e[1];return n.fileExists(R+t)})))||void 0===f?void 0:f[1];O?kr(i,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,r+O):kr(i,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else kr(i,a,r)}}}}function ja(n,t,r,a){var i,o=r.packageId,c=r.resolvedFileName,l=!e.isExternalModuleNameRelative(a)&&o?(i=o.name,s().has(e.getTypesPackageName(i))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!s().get(e)}(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,a):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,e.mangleScopedPackageName(o.name))):void 0;Rr(n,t,e.chainDiagnosticMessages(l,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,c))}function Ka(n,t){if(null===n||void 0===n?void 0:n.exports){var r=function(n,t){if(!n||n===Le||n===t||1===t.exports.size||2097152&n.flags)return n;var r=Wr(n);if(r.cjsExportMerged)return r.cjsExportMerged;var a=33554432&n.flags?n:Br(n);a.flags=512|a.flags,void 0===a.exports&&(a.exports=e.createSymbolTable());return t.exports.forEach((function(e,n){"export="!==n&&a.exports.set(n,a.exports.has(n)?Ur(a.exports.get(n),e):e)})),Wr(a).cjsExportMerged=a,r.cjsExportMerged=a}(ei(Aa(n.exports.get("export="),t)),ei(n));return ei(r)||n}}function Ha(n,t,r,a){var i=Ka(n,r);if(!r&&i){if(!a&&!(1539&i.flags)&&!e.getDeclarationOfKind(i,303)){var o=D>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return kr(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),i}var s=t.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=e.isImportCall(s)?s.arguments[0]:s.moduleSpecifier,l=Xo(i),u=mb(l,i,n,c);if(u)return Wa(i,u,s);if(e.getESModuleInterop(x)){var d=Zc(l,0);if(d&&d.length||(d=Zc(l,1)),d&&d.length||Qc(l,"default",!0))return Wa(i,_b(l,i,n,c),s)}}}return i}function Wa(n,t,r){var a=Pr(n.flags,n.escapedName);a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,a.target=n,a.originatingImport=r,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new e.Map(n.members)),n.exports&&(a.exports=new e.Map(n.exports));var i=Sc(t);return a.type=vi(a,i.members,e.emptyArray,e.emptyArray,i.indexInfos),a}function za(e){return void 0!==e.exports.get("export=")}function Ja(e){return dl(Qa(e))}function qa(e,n){var t=Qa(n);if(t)return t.get(e)}function Xa(n){return!(131068&n.flags||1&e.getObjectFlags(n)||om(n)||Lm(n))}function Ya(e){return 6256&e.flags?Us(e,"resolvedExports"):1536&e.flags?Qa(e):e.exports||T}function Qa(e){var n=Wr(e);return n.resolvedExports||(n.resolvedExports=$a(e))}function Za(n,t,r,a){t&&t.forEach((function(t,i){if("default"!==i){var o=n.get(i);if(o){if(r&&a&&o&&Aa(o)!==Aa(t)){var s=r.get(i);s.exportsWithDuplicate?s.exportsWithDuplicate.push(a):s.exportsWithDuplicate=[a]}}else n.set(i,t),r&&a&&r.set(i,{specifierText:e.getTextOfNode(a.moduleSpecifier)})}}))}function $a(n){var t=[];return function n(r){if(!(r&&r.exports&&e.pushIfUnique(t,r)))return;var a=new e.Map(r.exports),i=r.exports.get("__export");if(i){var o=e.createSymbolTable(),s=new e.Map;if(i.declarations)for(var c=0,l=i.declarations;c<l.length;c++){var u=l[c],d=Ba(u,u.moduleSpecifier),p=n(d);Za(o,p,s,u)}s.forEach((function(n,t){var r=n.exportsWithDuplicate;if("export="!==t&&r&&r.length&&!a.has(t))for(var i=0,o=r;i<o.length;i++){var c=o[i];fr.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(t).specifierText,e.unescapeLeadingUnderscores(t)))}})),Za(a,o)}return a}(n=Ka(n))||T}function ei(e){var n;return e&&e.mergeId&&(n=Qt[e.mergeId])?n:e}function ni(e){return ei(e.symbol&&js(e.symbol))}function ti(e){return ei(e.parent&&js(e.parent))}function ri(t,r,a){var i=ti(t);if(i&&!(262144&t.flags)){var o=e.mapDefined(i.declarations,(function(e){return i&&ai(e,i)})),s=r&&function(t,r){var a,i=e.getSourceFileOfNode(r),o=X(i),s=Wr(t);if(s.extendedContainersByFile&&(a=s.extendedContainersByFile.get(o)))return a;if(i&&i.imports){for(var c=0,l=i.imports;c<l.length;c++){var u=l[c];if(!e.nodeIsSynthesized(u)){var d=Ba(r,u,!0);d&&ii(d,t)&&(a=e.append(a,d))}}if(e.length(a))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,a),a}if(s.extendedContainers)return s.extendedContainers;for(var p=0,f=n.getSourceFiles();p<f.length;p++){var m=f[p];if(e.isExternalModule(m)){var _=ni(m);ii(_,t)&&(a=e.append(a,_))}}return s.extendedContainers=a||e.emptyArray}(t,r),c=function(n,t){var r=!!e.length(n.declarations)&&e.first(n.declarations);if(111551&t&&r&&r.parent&&e.isVariableDeclaration(r.parent)&&(e.isObjectLiteralExpression(r)&&r===r.parent.initializer||e.isTypeLiteralNode(r)&&r===r.parent.type))return ni(r.parent)}(i,a);if(r&&i.flags&Ei(a)&&Ti(i,r,1920,!1))return e.append(e.concatenate(e.concatenate([i],o),s),c);var l=!(i.flags&Ei(a))&&788968&i.flags&&524288&Ss(i).flags&&111551===a?bi(r,(function(n){return e.forEachEntry(n,(function(e){if(e.flags&Ei(a)&&Xo(e)===Ss(i))return e}))})):void 0,u=pa(pa(l?[l]:[],o,!0),[i],!1);return u=e.append(u,c),u=e.addRange(u,s)}var d=e.mapDefined(t.declarations,(function(n){return!e.isAmbientModule(n)&&n.parent&&Ri(n.parent)?ni(n.parent):e.isClassExpression(n)&&e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind&&e.isAccessExpression(n.parent.left)&&e.isEntityNameExpression(n.parent.left.expression)?e.isModuleExportsAccessExpression(n.parent.left)||e.isExportsIdentifier(n.parent.left.expression)?ni(e.getSourceFileOfNode(n)):(SE(n.parent.left.expression),zr(n.parent.left.expression).resolvedSymbol):void 0}));if(e.length(d))return e.mapDefined(d,(function(e){return ii(e,t)?e:void 0}))}function ai(e,n){var t=ki(e),r=t&&t.exports&&t.exports.get("export=");return r&&oi(r,n)?t:void 0}function ii(n,t){if(n===ti(t))return t;var r=n.exports&&n.exports.get("export=");if(r&&oi(r,t))return n;var a=Ya(n),i=a.get(t.escapedName);return i&&oi(i,t)?i:e.forEachEntry(a,(function(e){if(oi(e,t))return e}))}function oi(e,n){if(ei(Aa(ei(e)))===ei(Aa(ei(n))))return e}function si(e){return ei(e&&0!==(1048576&e.flags)?e.exportSymbol:e)}function ci(e){return!!(111551&e.flags||2097152&e.flags&&111551&Ia(e).flags&&!Ra(e))}function li(n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t];if(170===a.kind&&e.nodeIsPresent(a.body))return a}}function ui(n){var r=new d(le,n);return _++,r.id=_,t&&(null===e.tracing||void 0===e.tracing||e.tracing.recordType(r)),r}function di(e){return new d(le,e)}function pi(e,n,t){void 0===t&&(t=0);var r=ui(e);return r.intrinsicName=n,r.objectFlags=t,r}function fi(e,n){var t=ui(524288);return t.objectFlags=e,t.symbol=n,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function mi(e){var n=ui(262144);return e&&(n.symbol=e),n}function _i(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function gi(n){var t;return n.forEach((function(e,n){yi(e,n)&&(t||(t=[])).push(e)})),t||e.emptyArray}function yi(e,n){return!_i(n)&&ci(e)}function hi(n,t,r,a,i){var o=n;return o.members=t,o.properties=e.emptyArray,o.callSignatures=r,o.constructSignatures=a,o.indexInfos=i,t!==T&&(o.properties=gi(t)),o}function vi(e,n,t,r,a){return hi(fi(16,e),n,t,r,a)}function bi(n,t){for(var r,a=function(n){if(n.locals&&!Jr(n)&&(r=t(n.locals,void 0,!0,n)))return{value:r};switch(n.kind){case 303:if(!e.isExternalOrCommonJsModule(n))break;case 260:var a=ni(n);if(r=t((null===a||void 0===a?void 0:a.exports)||T,void 0,!0,n))return{value:r};break;case 256:case 225:case 257:var i;if((ni(n).members||T).forEach((function(n,t){788968&n.flags&&(i||(i=e.createSymbolTable())).set(t,n)})),i&&(r=t(i,void 0,!1,n)))return{value:r}}},i=n;i;i=i.parent){var o=a(i);if("object"===typeof o)return o.value}return t(re,void 0,!0)}function Ei(e){return 111551===e?111551:1920}function Ti(n,t,r,a,i){if(void 0===i&&(i=new e.Map),n&&!function(e){if(e.declarations&&e.declarations.length){for(var n=0,t=e.declarations;n<t.length;n++){switch(t[n].kind){case 166:case 168:case 171:case 172:continue;default:return!1}}return!0}return!1}(n)){var o=Wr(n),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=bi(t,(function(e,n,t,r){return r})),l="".concat(a?0:1,"|").concat(c&&X(c),"|").concat(r);if(s.has(l))return s.get(l);var u=Y(n),d=i.get(u);d||i.set(u,d=[]);var p=bi(t,f);return s.set(l,p),p}function f(r,i,o){if(e.pushIfUnique(d,r)){var s=function(r,i,o){if(_(r.get(n.escapedName),void 0,i))return[n];return e.forEachEntry(r,(function(r){if(2097152&r.flags&&"export="!==r.escapedName&&"default"!==r.escapedName&&!(e.isUMDExportSymbol(r)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!a||e.some(r.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(r.declarations,e.isNamespaceReexportDeclaration))&&(i||!e.getDeclarationOfKind(r,274))){var s=g(r,Ia(r),i);if(s)return s}if(r.escapedName===n.escapedName&&r.exportSymbol&&_(ei(r.exportSymbol),void 0,i))return[n]}))||(r===re?g(ie,ie,i):void 0)}(r,i,o);return d.pop(),s}}function m(e,n){return!Si(e,t,n)||!!Ti(e.parent,t,Ei(n),a,i)}function _(t,a,i){return(n===(a||t)||ei(n)===ei(a||t))&&!e.some(t.declarations,Ri)&&(i||m(ei(t),r))}function g(e,n,t){if(_(e,n,t))return[e];var a=Ya(n),i=a&&f(a,!0);return i&&m(e,Ei(r))?[e].concat(i):void 0}}function Si(n,t,r){var a=!1;return bi(t,(function(t){var i=ei(t.get(n.escapedName));return!!i&&(i===n||!!((i=2097152&i.flags&&!e.getDeclarationOfKind(i,274)?Ia(i):i).flags&r)&&(a=!0,!0))})),a}function xi(e,n){return 0===Ii(e,n,788968,!1,!0).accessibility}function Li(e,n){return 0===Ii(e,n,111551,!1,!0).accessibility}function Di(e,n,t){return 0===Ii(e,n,t,!1,!1).accessibility}function Ci(n,t,r,a,i,o){if(e.length(n)){for(var s,c=!1,l=0,u=n;l<u.length;l++){var d=u[l],p=Ti(d,t,a,!1);if(p){s=d;var f=Oi(p[0],i);if(f)return f}if(o&&e.some(d.declarations,Ri)){if(i){c=!0;continue}return{accessibility:0}}var m=Ci(ri(d,t,a),t,r,r===d?Ei(a):a,i,o);if(m)return m}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:Mi(r,t,a),errorModuleName:s!==r?Mi(s,t,1920):void 0}:void 0}}function Ai(e,n,t,r){return Ii(e,n,t,r,!0)}function Ii(n,t,r,a,i){if(n&&t){var o=Ci([n],t,n,r,a,i);if(o)return o;var s=e.forEach(n.declarations,ki);if(s)if(s!==ki(t))return{accessibility:2,errorSymbolName:Mi(n,t,r),errorModuleName:Mi(s),errorNode:e.isInJSFile(t)?t:void 0};return{accessibility:1,errorSymbolName:Mi(n,t,r)}}return{accessibility:0}}function ki(n){var t=e.findAncestor(n,Ni);return t&&ni(t)}function Ni(n){return e.isAmbientModule(n)||303===n.kind&&e.isExternalOrCommonJsModule(n)}function Ri(n){return e.isModuleWithStringLiteralName(n)||303===n.kind&&e.isExternalOrCommonJsModule(n)}function Oi(n,t){var r;if(e.every(e.filter(n.declarations,(function(e){return 79!==e.kind})),(function(t){var r,i;if(!Xi(t)){var o=ca(t);return o&&!e.hasSyntacticModifier(o,1)&&Xi(o.parent)?a(t,o):e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasSyntacticModifier(t.parent.parent,1)&&Xi(t.parent.parent.parent)?a(t,t.parent.parent):e.isLateVisibilityPaintedStatement(t)&&!e.hasSyntacticModifier(t,1)&&Xi(t.parent)?a(t,t):!!(2097152&n.flags&&e.isBindingElement(t)&&e.isInJSFile(t)&&(null===(r=t.parent)||void 0===r?void 0:r.parent)&&e.isVariableDeclaration(t.parent.parent)&&(null===(i=t.parent.parent.parent)||void 0===i?void 0:i.parent)&&e.isVariableStatement(t.parent.parent.parent.parent)&&!e.hasSyntacticModifier(t.parent.parent.parent.parent,1)&&t.parent.parent.parent.parent.parent&&Xi(t.parent.parent.parent.parent.parent))&&a(t,t.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:r};function a(n,a){return t&&(zr(n).isVisible=!0,r=e.appendIfUnique(r,a)),!0}}function wi(n,t){var r;r=180===n.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||161===n.parent.kind?1160127:160===n.kind||205===n.kind||264===n.parent.kind?1920:788968;var a=e.getFirstIdentifier(n),i=Qr(t,a.escapedText,r,void 0,void 0,!1);return i&&262144&i.flags&&788968&r?{accessibility:0}:i&&Oi(i,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function Mi(n,t,r,a,i){void 0===a&&(a=4);var o=70221824;2&a&&(o|=128),1&a&&(o|=512),8&a&&(o|=16384),16&a&&(o|=134217728);var s=4&a?W.symbolToExpression:W.symbolToEntityName;return i?c(i).getText():e.usingSingleLineStringWriter(c);function c(a){var i=s(n,r,t,o),c=303===(null===t||void 0===t?void 0:t.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=t&&e.getSourceFileOfNode(t);return c.writeNode(4,i,l,a),a}}function Pi(n,t,r,a,i){return void 0===r&&(r=0),i?o(i).getText():e.usingSingleLineStringWriter(o);function o(i){var o;o=262144&r?1===a?179:178:1===a?174:173;var s=W.signatureToSignatureDeclaration(n,o,t,70222336|Vi(r)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=t&&e.getSourceFileOfNode(t);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(i)),i}}function Fi(n,t,r,a){void 0===r&&(r=1064960),void 0===a&&(a=e.createTextWriter(""));var i=x.noErrorTruncation||1&r,o=W.typeToTypeNode(n,t,70221824|Vi(r)|(i?1:0),a);if(void 0===o)return e.Debug.fail("should always get typenode");var s={removeComments:n!==Oe},c=e.createPrinter(s),l=t&&e.getSourceFileOfNode(t);c.writeNode(4,o,l,a);var u=a.getText(),d=i?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return d&&u&&u.length>=d?u.substr(0,d-"...".length)+"...":u}function Gi(e,n){var t=Ui(e.symbol)?Fi(e,e.symbol.valueDeclaration):Fi(e),r=Ui(n.symbol)?Fi(n,n.symbol.valueDeclaration):Fi(n);return t===r&&(t=Bi(e),r=Bi(n)),[t,r]}function Bi(e){return Fi(e,void 0,64)}function Ui(n){return n&&!!n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!nf(n.valueDeclaration)}function Vi(e){return void 0===e&&(e=0),814775659&e}function ji(n){return!!n.symbol&&!!(32&n.symbol.flags)&&(n===ms(n.symbol)||!!(524288&n.flags)&&!!(16777216&e.getObjectFlags(n)))}function Ki(n,t,r,a){return void 0===r&&(r=16384),a?i(a).getText():e.usingSingleLineStringWriter(i);function i(a){var i=e.factory.createTypePredicateNode(2===n.kind||3===n.kind?e.factory.createToken(128):void 0,1===n.kind||3===n.kind?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&W.typeToTypeNode(n.type,t,70222336|Vi(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,i,s,a),a}}function Hi(e){return 8===e?"private":16===e?"protected":"public"}function Wi(n){return n&&n.parent&&261===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function zi(n){return 303===n.kind||e.isAmbientModule(n)}function Ji(n,t){var r=Wr(n).nameType;if(r){if(384&r.flags){var a=""+r.value;return e.isIdentifierText(a,e.getEmitScriptTarget(x))||Qy(a)?Qy(a)&&e.startsWith(a,"-")?"[".concat(a,"]"):a:'"'.concat(e.escapeString(a,34),'"')}if(8192&r.flags)return"[".concat(qi(r.symbol,t),"]")}}function qi(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],zi)!==e.findAncestor(t.enclosingDeclaration,zi)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,(function(n){return e.getNameOfDeclaration(n)?n:void 0})),a=r&&e.getNameOfDeclaration(r);if(r&&a){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(a)&&!(4096&e.getCheckFlags(n))){var i=Wr(n).nameType;if(i&&384&i.flags){var o=Ji(n,t);if(void 0!==o)return o}}return e.declarationNameToString(a)}if(r||(r=n.declarations[0]),r.parent&&253===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 225:case 212:case 213:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),225===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=Ji(n,t);return void 0!==s?s:e.symbolName(n)}function Xi(n){if(n){var t=zr(n);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(n.kind){case 336:case 343:case 337:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 202:return Xi(n.parent.parent);case 253:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(n))return!0;var t=no(n);return 1&e.getCombinedModifierFlags(n)||264!==n.kind&&303!==t.kind&&8388608&t.flags?Xi(t):Jr(t);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(n,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return Xi(n.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;default:return!1}}()),t.isVisible}return!1}function Yi(n,t){var r,a,i;return n.parent&&270===n.parent.kind?r=Qr(n,n.escapedText,2998271,void 0,n,!1):274===n.parent.kind&&(r=xa(n.parent,2998271)),r&&((i=new e.Set).add(Y(r)),function n(r){e.forEach(r,(function(r){var o=ca(r)||r;if(t?zr(r).isVisible=!0:(a=a||[],e.pushIfUnique(a,o)),e.isInternalModuleImportEqualsDeclaration(r)){var s=r.moduleReference,c=Qr(r,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&i&&e.tryAddToSet(i,Y(c))&&n(c.declarations)}}))}(r.declarations)),a}function Qi(e,n){var t=Zi(e,n);if(t>=0){for(var r=Jt.length,a=t;a<r;a++)qt[a]=!1;return!1}return Jt.push(e),qt.push(!0),Xt.push(n),!0}function Zi(e,n){for(var t=Jt.length-1;t>=0;t--){if($i(Jt[t],Xt[t]))return-1;if(Jt[t]===e&&Xt[t]===n)return t}return-1}function $i(n,t){switch(t){case 0:return!!Wr(n).type;case 5:return!!zr(n).resolvedEnumType;case 2:return!!Wr(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}return e.Debug.assertNever(t)}function eo(){return Jt.pop(),Xt.pop(),qt.pop()}function no(n){return e.findAncestor(e.getRootDeclaration(n),(function(e){switch(e.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}})).parent}function to(e,n){var t=Qc(e,n);return t?Xo(t):void 0}function ro(e){return e&&0!==(1&e.flags)}function ao(e){return e===Re||!!(1&e.flags&&e.aliasSymbol)}function io(e){var n=ni(e);return n&&Wr(n).type||ho(e,!1)}function oo(n,t,r){if(131072&(n=xg(n,(function(e){return!(98304&e.flags)}))).flags)return mn;if(1048576&n.flags)return Cg(n,(function(e){return oo(e,t,r)}));var a=ad(e.map(t,yd));if(wd(n)||Md(a)){if(131072&a.flags)return n;var i=(ft||(ft=Eu("Omit",2,!0)||Le),ft===Le?void 0:ft);return i?tu(i,[n,a]):Re}for(var o=e.createSymbolTable(),s=0,c=Cc(n);s<c.length;s++){var l=c[s];df(hd(l,8576),a)||24&e.getDeclarationModifierFlagsFromSymbol(l)||!dp(l)||o.set(l.escapedName,pp(l,!1))}var u=vi(r,o,e.emptyArray,e.emptyArray,al(n));return u.objectFlags|=8388608,u}function so(e){return!!(465829888&e.flags)&&cE(wc(e)||Pe,32768)}function co(e){return ag(Tg(e,so)?Cg(e,(function(e){return 465829888&e.flags?Mc(e):e})):e,524288)}function lo(e,n){var t=uo(e);return t?Yg(t,n):n}function uo(n){var t=function(e){var n=e.parent.parent;switch(n.kind){case 202:case 294:return uo(n);case 203:return uo(e.parent);case 253:return n.initializer;case 220:return n.right}}(n);if(t&&t.flowNode){var r=po(n);if(r){var a=e.setTextRange(e.parseNodeFactory.createStringLiteral(r),n),i=e.isLeftHandSideExpression(t)?t:e.parseNodeFactory.createParenthesizedExpression(t),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(i,a),n);return e.setParent(a,o),e.setParent(o,n),i!==t&&e.setParent(i,o),o.flowNode=t.flowNode,o}}}function po(e){var n=e.parent;return 202===e.kind&&200===n.kind?fo(e.propertyName||e.name):294===e.kind||295===e.kind?fo(e.name):""+n.elements.indexOf(e)}function fo(e){var n=yd(e);return 384&n.flags?""+n.value:void 0}function mo(n){var t,r=n.parent,a=io(r.parent);if(!a||ro(a))return a;if(I&&8388608&n.flags&&e.isParameterDeclaration(n)?a=Fm(a):!I||!r.parent.initializer||65536&rg(fg(r.parent.initializer))||(a=ag(a,524288)),200===r.kind)if(n.dotDotDotToken){if(2&(a=zc(a)).flags||!ah(a))return kr(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Re;for(var i=[],o=0,s=r.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||i.push(c.propertyName||c.name)}t=oo(a,i,n.symbol)}else{var l=n.propertyName||n.name;t=lo(n,jd(a,yd(l),32,l))}else{var u=oS(65|(n.dotDotDotToken?0:128),a,Ge,r),d=r.elements.indexOf(n);if(n.dotDotDotToken)t=Sg(a,Lm)?Cg(a,(function(e){return Ju(e,d)})):Pu(u);else if(um(a)){t=lo(n,Hd(a,hp(d),32|(Jy(n)?16:0),n.name)||Re)}else t=u}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?!I||32768&Rm(LE(n))?t:co(t):DE(n,ad([co(t),LE(n)],2)):t}function _o(n){var t=e.getJSDocType(n);if(t)return Lp(t)}function go(n){var t=e.skipParentheses(n,!0);return 203===t.kind&&0===t.elements.length}function yo(e,n,t){return void 0===n&&(n=!1),void 0===t&&(t=!0),I&&t?Pm(e,n):e}function ho(n,t){if(e.isVariableDeclaration(n)&&242===n.parent.parent.kind){var r=Ed(wh(VE(n.parent.parent.expression)));return 4456448&r.flags?Td(r):He}if(e.isVariableDeclaration(n)&&243===n.parent.parent.kind)return iS(n.parent.parent)||Ie;if(e.isBindingPattern(n.parent))return mo(n);var a=e.isPropertyDeclaration(n)||e.isPropertySignature(n),i=t&&(a&&!!n.questionToken||e.isParameter(n)&&(!!n.questionToken||pl(n))||_l(n)),o=Po(n);if(o)return yo(o,a,i);if((M||e.isInJSFile(n))&&e.isVariableDeclaration(n)&&!e.isBindingPattern(n.name)&&!(1&e.getCombinedModifierFlags(n))&&!(8388608&n.flags)){if(!(2&e.getCombinedNodeFlags(n))&&(!n.initializer||function(n){var t=e.skipParentheses(n,!0);return 104===t.kind||79===t.kind&&U_(t)===ae}(n.initializer)))return ke;if(n.initializer&&go(n.initializer))return Vn}if(e.isParameter(n)){var s=n.parent;if(172===s.kind&&Fs(s)){var c=e.getDeclarationOfKind(ni(n.parent),171);if(c){var l=vl(c),u=ML(s);return u&&n===u?(e.Debug.assert(!u.type),Xo(l.thisParameter)):Cl(l)}}if(e.isInJSFile(n)){var d=e.getJSDocType(s);if(d&&e.isFunctionTypeNode(d)){var p=vl(d),f=s.parameters.indexOf(n);return n.dotDotDotToken?Rb(p,f):kb(p,f)}}if(g="this"===n.symbol.escapedName?hy(s):vy(n))return yo(g,!1,i)}if(e.hasOnlyExpressionInitializer(n)&&n.initializer){if(e.isInJSFile(n)&&!e.isParameter(n)){var m=Lo(n,ni(n),e.getDeclaredExpandoInitializer(n));if(m)return m}return yo(g=DE(n,LE(n)),a,i)}if(e.isPropertyDeclaration(n)&&(M||e.isInJSFile(n))){if(e.hasStaticModifier(n)){var _=e.filter(n.parent.members,e.isClassStaticBlockDeclaration);g=_.length?function(n,t){for(var r=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),a=0,i=t;a<i.length;a++){var o=i[a],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=So(s,n);if(!M||c!==ke&&c!==Vn||kr(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Mi(n),Fi(c)),!Sg(c,Oh))return JT(c)}}(n.symbol,_):2&e.getEffectiveModifierFlags(n)?$f(n.symbol):void 0;return g&&yo(g,!0,i)}var g,y=li(n.parent);return(g=y?To(n.symbol,y):2&e.getEffectiveModifierFlags(n)?$f(n.symbol):void 0)&&yo(g,!0,i)}return e.isJsxAttribute(n)?Xe:e.isBindingPattern(n.name)?No(n.name,!1,!0):void 0}function vo(n){if(n.valueDeclaration&&e.isBinaryExpression(n.valueDeclaration)){var t=Wr(n);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Eo(n)&&e.every(n.declarations,(function(t){return e.isBinaryExpression(t)&&Cy(t)&&(206!==t.left.kind||e.isStringOrNumericLiteralLike(t.left.argumentExpression))&&!Do(void 0,t,n,t)}))),t.isConstructorDeclaredProperty}return!1}function bo(n){var t=n.valueDeclaration;return t&&e.isPropertyDeclaration(t)&&!e.getEffectiveTypeAnnotationNode(t)&&!t.initializer&&(M||e.isInJSFile(t))}function Eo(n){if(n.declarations)for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t],i=e.getThisContainer(a,!1);if(i&&(170===i.kind||ob(i)))return i}}function To(n,t){var r=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),a=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(a.expression,a),e.setParent(a,t),a.flowNode=t.returnFlowNode;var i=So(a,n);return!M||i!==ke&&i!==Vn||kr(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Mi(n),Fi(i)),Sg(i,Oh)?void 0:JT(i)}function So(n,t){var r=(null===t||void 0===t?void 0:t.valueDeclaration)&&(!bo(t)||2&e.getEffectiveModifierFlags(t.valueDeclaration))&&$f(t)||Ge;return Yg(n,ke,r)}function xo(n,t){var r,a=e.getAssignedExpandoInitializer(n.valueDeclaration);if(a){var i=e.getJSDocTypeTag(a);return i&&i.typeExpression?Lp(i.typeExpression):n.valueDeclaration&&Lo(n.valueDeclaration,n,a)||Em(SE(a))}var o=!1,s=!1;if(vo(n)&&(r=To(n,Eo(n))),!r){var c=void 0;if(n.declarations){for(var l=void 0,u=0,d=n.declarations;u<d.length;u++){var p=d[u],f=e.isBinaryExpression(p)||e.isCallExpression(p)?p:e.isAccessExpression(p)?e.isBinaryExpression(p.parent)?p.parent:p:void 0;if(f){var m=e.isAccessExpression(f)?e.getAssignmentDeclarationPropertyAccessKind(f):e.getAssignmentDeclarationKind(f);(4===m||e.isBinaryExpression(f)&&Cy(f,m))&&(Ao(f)?o=!0:s=!0),e.isCallExpression(f)||(l=Do(l,f,n,p)),l||(c||(c=[])).push(e.isBinaryExpression(f)||e.isCallExpression(f)?Co(n,t,f,m):en)}}r=l}if(!r){if(!e.length(c))return Re;var _=o&&n.declarations?function(n,t){return e.Debug.assert(n.length===t.length),n.filter((function(n,r){var a=t[r],i=e.isBinaryExpression(a)?a:e.isBinaryExpression(a.parent)?a.parent:void 0;return i&&Ao(i)}))}(c,n.declarations):void 0;if(s){var g=$f(n);g&&((_||(_=[])).push(g),o=!0)}r=ad(e.some(_,(function(e){return!!(-98305&e.flags)}))?_:c,2)}}var y=$m(yo(r,!1,s&&!o));return n.valueDeclaration&&xg(y,(function(e){return!!(-98305&e.flags)}))===en?(t_(n.valueDeclaration,Ie),Ie):y}function Lo(n,t,r){var a,i;if(e.isInJSFile(n)&&r&&e.isObjectLiteralExpression(r)&&!r.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var s=ni(n);(null===(a=null===s||void 0===s?void 0:s.exports)||void 0===a?void 0:a.size)&&Kr(o,s.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var c=ni(n);(null===(i=null===c||void 0===c?void 0:c.exports)||void 0===i?void 0:i.size)&&Kr(o,c.exports);var l=vi(t,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,l}}function Do(n,t,r,a){var i,o=e.getEffectiveTypeAnnotationNode(t.parent);if(o){var s=$m(Lp(o));if(!n)return s;ao(n)||ao(s)||of(n,s)||XT(void 0,n,a,s)}if(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(c){var l=Qc(Lp(c),r.escapedName);if(l)return Yo(l)}}return n}function Co(n,t,r,a){if(e.isCallExpression(r)){if(t)return Xo(t);var i=SE(r.arguments[2]),o=to(i,"value");if(o)return o;var s=to(i,"get");if(s){var c=Lv(s);if(c)return Cl(c)}var l=to(i,"set");if(l){var u=Lv(l);if(u)return Gb(u)}return Ie}if(function(n,t){return e.isPropertyAccessExpression(n)&&108===n.expression.kind&&e.forEachChildRecursively(t,(function(e){return K_(n,e)}))}(r.left,r.right))return Ie;var d=t?Xo(t):Em(SE(r.right));if(524288&d.flags&&2===a&&"export="===n.escapedName){var p=Sc(d),f=e.createSymbolTable();e.copyEntries(p.members,f);var m=f.size;t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||n).exports.forEach((function(n,t){var r,a=f.get(t);if(a&&a!==n)if(111551&n.flags&&111551&a.flags){if(n.valueDeclaration&&a.valueDeclaration&&e.getSourceFileOfNode(n.valueDeclaration)!==e.getSourceFileOfNode(a.valueDeclaration)){var i=e.unescapeLeadingUnderscores(n.escapedName),o=(null===(r=e.tryCast(a.valueDeclaration,e.isNamedDeclaration))||void 0===r?void 0:r.name)||a.valueDeclaration;e.addRelatedInfo(kr(n.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,i),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,i)),e.addRelatedInfo(kr(o,e.Diagnostics.Duplicate_identifier_0,i),e.createDiagnosticForNode(n.valueDeclaration,e.Diagnostics._0_was_also_declared_here,i))}var s=Pr(n.flags|a.flags,t);s.type=ad([Xo(n),Xo(a)]),s.valueDeclaration=a.valueDeclaration,s.declarations=e.concatenate(a.declarations,n.declarations),f.set(t,s)}else f.set(t,Ur(n,a));else f.set(t,n)}));var _=vi(m!==f.size?void 0:p.symbol,f,p.callSignatures,p.constructSignatures,p.indexInfos);return _.objectFlags|=8192&e.getObjectFlags(d),_.symbol&&32&_.symbol.flags&&d===ms(_.symbol)&&(_.objectFlags|=16777216),_}return fm(d)?(t_(r,Un),Un):d}function Ao(n){var t=e.getThisContainer(n,!1);return 170===t.kind||255===t.kind||212===t.kind&&!e.isPrototypePropertyAssignment(t.parent)}function Io(n,t,r){return n.initializer?yo(DE(n,LE(n,e.isBindingPattern(n.name)?No(n.name,!0,!1):Pe))):e.isBindingPattern(n.name)?No(n.name,t,r):(r&&!Mo(n)&&t_(n,Ie),t?we:Ie)}function ko(n,t,r){var a,i=n.elements,o=e.lastOrUndefined(i),s=o&&202===o.kind&&o.dotDotDotToken?o:void 0;if(0===i.length||1===i.length&&s)return L>=2?(a=Ie,wu(Nu(!0),[a])):Un;var c=e.map(i,(function(n){return e.isOmittedExpression(n)?Ie:Io(n,t,r)})),l=e.findLastIndex(i,(function(n){return!(n===s||e.isOmittedExpression(n)||Jy(n))}),i.length-1)+1,u=e.map(i,(function(e,n){return e===s?4:n>=l?2:1})),d=Ku(c,u);return t&&((d=Ql(d)).pattern=n,d.objectFlags|=262144),d}function No(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),200===n.kind?function(n,t,r){var a,i=e.createSymbolTable(),o=262272;e.forEach(n.elements,(function(e){var n=e.propertyName||e.name;if(e.dotDotDotToken)a=Ul(He,Ie,!1);else{var s=yd(n);if(Os(s)){var c=Gs(s),l=Pr(4|(e.initializer?16777216:0),c);l.type=Io(e,t,r),l.bindingElement=e,i.set(l.escapedName,l)}else o|=512}}));var s=vi(void 0,i,e.emptyArray,e.emptyArray,a?[a]:e.emptyArray);return s.objectFlags|=o,t&&(s.pattern=n,s.objectFlags|=262144),s}(n,t,r):ko(n,t,r)}function Ro(e,n){return wo(ho(e,!0),e,n)}function Oo(e){var n,t=ni(e),r=(n=!1,Wn||(Wn=bu("SymbolConstructor",n)));return r&&t&&t===r}function wo(n,t,r){return n?(4096&n.flags&&Oo(t.parent)&&(n=Ep(t)),r&&r_(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==ni(t)&&(n=Ze),$m(n)):(n=e.isParameter(t)&&t.dotDotDotToken?Un:Ie,r&&(Mo(t)||t_(t,n)),n)}function Mo(n){var t=e.getRootDeclaration(n);return iT(163===t.kind?t.parent:t)}function Po(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Lp(t)}function Fo(n){var t=Wr(n);if(!t.type){var r=function(n){if(4194304&n.flags)return function(n){var t=Ss(ti(n));return t.typeParameters?Yl(t,e.map(t.typeParameters,(function(e){return Ie}))):t}(n);if(n===ce)return Ie;if(134217728&n.flags&&n.valueDeclaration){var t=ni(e.getSourceFileOfNode(n.valueDeclaration)),r=Pr(t.flags,"exports");r.declarations=t.declarations?t.declarations.slice():[],r.parent=n,r.target=t,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports));var a=e.createSymbolTable();return a.set("exports",r),vi(n,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(n.valueDeclaration);var i,o=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o)){var s=e.getEffectiveTypeAnnotationNode(o);if(void 0===s)return F?Pe:Ie;var c=Nx(s);return ro(c)||c===Pe?c:Re}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?$m(Em(VE(o.statements[0].expression))):mn;if(!Qi(n,0))return 512&n.flags&&!(67108864&n.flags)?Ho(n):Jo(n);if(270===o.kind)i=wo(Po(o)||SE(o.expression),o);else if(e.isBinaryExpression(o)||e.isInJSFile(o)&&(e.isCallExpression(o)||(e.isPropertyAccessExpression(o)||e.isBindableStaticElementAccessExpression(o))&&e.isBinaryExpression(o.parent)))i=xo(n);else if(e.isPropertyAccessExpression(o)||e.isElementAccessExpression(o)||e.isIdentifier(o)||e.isStringLiteralLike(o)||e.isNumericLiteral(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&n.flags)return Ho(n);i=e.isBinaryExpression(o.parent)?xo(n):Po(o)||Ie}else if(e.isPropertyAssignment(o))i=Po(o)||kE(o);else if(e.isJsxAttribute(o))i=Po(o)||sh(o);else if(e.isShorthandPropertyAssignment(o))i=Po(o)||IE(o.name,0);else if(e.isObjectLiteralMethod(o))i=Po(o)||NE(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))i=Ro(o,!0);else if(e.isEnumDeclaration(o))i=Ho(n);else if(e.isEnumMember(o))i=Wo(n);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(n));i=jo(n)||e.Debug.fail("Non-write accessor resolution must always produce a type")}if(!eo())return 512&n.flags&&!(67108864&n.flags)?Ho(n):Jo(n);return i}(n);t.type||(t.type=r)}return t.type}function Go(n){if(n)return 171===n.kind?e.getEffectiveReturnTypeNode(n):e.getEffectiveSetAccessorTypeAnnotationNode(n)}function Bo(e){var n=Go(e);return n&&Lp(n)}function Uo(n){var t=Wr(n);return t.type||(t.type=Vo(n)||e.Debug.fail("Read type of accessor must always produce a type"))}function Vo(n,t){if(void 0===t&&(t=!1),!Qi(n,0))return Re;var r=jo(n,t);eo()||(r=Ie,M&&kr(e.getDeclarationOfKind(n,171),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Mi(n)));return r}function jo(n,t){void 0===t&&(t=!1);var r=e.getDeclarationOfKind(n,171),a=e.getDeclarationOfKind(n,172),i=Bo(a);if(t&&i)return c(i,n);if(r&&e.isInJSFile(r)){var o=_o(r);if(o)return c(o,n)}var s=Bo(r);return s?c(s,n):i||(r&&r.body?c(zb(r),n):a?(iT(a)||Rr(M,a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Mi(n)),Ie):r?(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),iT(r)||Rr(M,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Mi(n)),Ie):void 0);function c(n,t){return 1&e.getCheckFlags(t)?Yp(n,Wr(t).mapper):n}}function Ko(n){var t=ls(ms(n));return 8650752&t.flags?t:2097152&t.flags?e.find(t.types,(function(e){return!!(8650752&e.flags)})):void 0}function Ho(n){var t=Wr(n),r=t;if(!t.type){var a=n.valueDeclaration&&cb(n.valueDeclaration,!1);if(a){var i=sb(n,a);i&&(n=t=i)}r.type=t.type=function(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return Ie;if(t&&(220===t.kind||e.isAccessExpression(t)&&220===t.parent.kind))return xo(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=Ka(n);if(r!==n){if(!Qi(n,0))return Re;var a=ei(n.exports.get("export=")),i=xo(a,a===r?void 0:r);return eo()?i:Jo(n)}}var o=fi(16,n);if(32&n.flags){var s=Ko(n);return s?pd([o,s]):o}return I&&16777216&n.flags?Pm(o):o}(n)}return t.type}function Wo(e){var n=Wr(e);return n.type||(n.type=Es(e))}function zo(n){var t=Wr(n);if(!t.type){var r=Ia(n),a=n.declarations&&Da(la(n),!0),i=e.firstDefined(null===a||void 0===a?void 0:a.declarations,(function(n){return e.isExportAssignment(n)?Po(n):void 0}));t.type=(null===a||void 0===a?void 0:a.declarations)&&fx(a.declarations)&&n.declarations.length?function(n){var t=e.getSourceFileOfNode(n.declarations[0]),r=e.unescapeLeadingUnderscores(n.escapedName),a=n.declarations.every((function(n){return e.isInJSFile(n)&&e.isAccessExpression(n)&&e.isModuleExportsAccessExpression(n.expression)})),i=a?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),r):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),r);return a&&e.setParent(i.expression.expression,i.expression),e.setParent(i.expression,i),e.setParent(i,t),i.flowNode=t.endFlowNode,Yg(i,ke,Ge)}(a):fx(n.declarations)?ke:i||(111551&r.flags?Xo(r):Re)}return t.type}function Jo(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(kr(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Mi(n)),Re):(M&&(163!==t.kind||t.initializer)&&kr(n.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Mi(n)),Ie)}function qo(e){if(98304&e.flags){var n=function(e){var n=Wr(e);return n.writeType||(n.writeType=Vo(e,!0))}(e);if(n)return n}return Xo(e)}function Xo(n){var t=e.getCheckFlags(n);return 65536&t?function(n){var t=Wr(n);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?ad(t.deferralConstituents):pd(t.deferralConstituents)),t.type}(n):1&t?function(e){var n=Wr(e);if(!n.type){if(!Qi(e,0))return n.type=Re;var t=Yp(Xo(n.target),n.mapper);eo()||(t=Jo(e)),n.type=t}return n.type}(n):262144&t?function(n){if(!n.type){var t=n.mappedType;if(!Qi(n,0))return t.containsError=!0,Re;var r=Yp(_c(t.target||t),Bp(t.mapper,pc(t),n.keyType)),a=I&&16777216&n.flags&&!cE(r,49152)?Pm(r,!0):524288&n.checkFlags?Hm(r):r;eo()||(kr(o,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Mi(n),Fi(t)),a=Re),n.type=a}return n.type}(n):8192&t?function(e){var n=Wr(e);n.type||(n.type=h_(e.propertyType,e.mappedType,e.constraintType));return n.type}(n):7&n.flags?Fo(n):9136&n.flags?Ho(n):8&n.flags?Wo(n):98304&n.flags?Uo(n):2097152&n.flags?zo(n):Re}function Yo(e){return jm(Xo(e),!!(16777216&e.flags))}function Qo(n,t){return void 0!==n&&void 0!==t&&0!==(4&e.getObjectFlags(n))&&n.target===t}function Zo(n){return 4&e.getObjectFlags(n)?n.target:n}function $o(n,t){return function n(r){if(7&e.getObjectFlags(r)){var a=Zo(r);return a===t||e.some(ds(a),n)}if(2097152&r.flags)return e.some(r.types,n);return!1}(n)}function es(n,t){for(var r=0,a=t;r<a.length;r++){var i=a[r];n=e.appendIfUnique(n,Ts(ni(i)))}return n}function ns(n,t){for(;;){if((n=n.parent)&&e.isBinaryExpression(n)){var r=e.getAssignmentDeclarationKind(n);if(6===r||3===r){var a=ni(n.left);a&&a.parent&&!e.findAncestor(a.parent.valueDeclaration,(function(e){return n===e}))&&(n=a.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:var i=ns(n,t);if(194===n.kind)return e.append(i,Ts(ni(n.typeParameter)));if(188===n.kind)return e.concatenate(i,ep(n));var o=es(i,e.getEffectiveTypeParameterDeclarations(n)),s=t&&(256===n.kind||225===n.kind||257===n.kind||ob(n))&&ms(ni(n)).thisType;return s?e.append(o,s):o;case 338:var c=e.getParameterSymbolFromJSDoc(n);c&&(n=c.valueDeclaration);break;case 318:i=ns(n,t);return n.tags?es(i,e.flatMap(n.tags,(function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0}))):i}}}function ts(n){var t=32&n.flags?n.valueDeclaration:e.getDeclarationOfKind(n,257);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),ns(t)}function rs(n){if(n.declarations){for(var t,r=0,a=n.declarations;r<a.length;r++){var i=a[r];if(257===i.kind||256===i.kind||225===i.kind||ob(i)||e.isTypeAlias(i)){var o=i;t=es(t,e.getEffectiveTypeParameterDeclarations(o))}}return t}}function as(e){var n=$c(e,1);if(1===n.length){var t=n[0];if(!t.typeParameters&&1===t.parameters.length&&ne(t)){var r=xb(t.parameters[0]);return ro(r)||lm(r)===Ie}}return!1}function is(e){if($c(e,1).length>0)return!0;if(8650752&e.flags){var n=wc(e);return!!n&&as(n)}return!1}function os(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function ss(n,t,r){var a=e.length(t),i=e.isInJSFile(r);return e.filter($c(n,1),(function(n){return(i||a>=yl(n.typeParameters))&&a<=e.length(n.typeParameters)}))}function cs(n,t,r){var a=ss(n,t,r),i=e.map(t,Lp);return e.sameMap(a,(function(n){return e.some(n.typeParameters)?Nl(n,i,e.isInJSFile(r)):n}))}function ls(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),a=os(n);if(!a)return n.resolvedBaseConstructorType=Ge;if(!Qi(n,1))return Re;var i=VE(a.expression);if(r&&a!==r&&(e.Debug.assert(!r.typeArguments),VE(r.expression)),2621440&i.flags&&Sc(i),!eo())return kr(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Mi(n.symbol)),n.resolvedBaseConstructorType=Re;if(!(1&i.flags)&&i!==Ke&&!is(i)){var o=kr(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Fi(i));if(262144&i.flags){var s=Wl(i),c=Pe;if(s){var l=$c(s,1);l[0]&&(c=Cl(l[0]))}i.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Mi(i.symbol),Fi(c)))}return n.resolvedBaseConstructorType=Re}n.resolvedBaseConstructorType=i}return n.resolvedBaseConstructorType}function us(n,t){kr(n,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Fi(t,void 0,2))}function ds(n){if(!n.baseTypesResolved){if(Qi(n,7)&&(8&n.objectFlags?n.resolvedBaseTypes=[ps(n)]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=Vc(ls(n));if(!(2621441&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,a=os(n),i=t.symbol?Ss(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var n=e.outerTypeParameters;if(n){var t=n.length-1,r=$l(e);return n[t].symbol!==r[t].symbol}return!0}(i))r=nu(a,t.symbol);else if(1&t.flags)r=t;else{var o=cs(t,a.typeArguments,a);if(!o.length)return kr(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=Cl(o[0])}if(ao(r))return n.resolvedBaseTypes=e.emptyArray;var s=zc(r);if(!fs(s)){var c=Yc(void 0,r),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Fi(s));return fr.add(e.createDiagnosticForNodeFromMessageChain(a.expression,l)),n.resolvedBaseTypes=e.emptyArray}if(n===s||$o(s,n))return kr(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Fi(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray;n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0);n.resolvedBaseTypes=[s]}(n),64&n.symbol.flags&&function(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray,n.symbol.declarations)for(var t=0,r=n.symbol.declarations;t<r.length;t++){var a=r[t];if(257===a.kind&&e.getInterfaceBaseTypeNodes(a))for(var i=0,o=e.getInterfaceBaseTypeNodes(a);i<o.length;i++){var s=o[i],c=zc(Lp(s));ao(c)||(fs(c)?n===c||$o(c,n)?us(a,n):n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[c]:n.resolvedBaseTypes.push(c):kr(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(n)):e.Debug.fail("type must be class or interface"),!eo()&&n.symbol.declarations))for(var t=0,r=n.symbol.declarations;t<r.length;t++){var a=r[t];256!==a.kind&&257!==a.kind||us(a,n)}n.baseTypesResolved=!0}return n.resolvedBaseTypes}function ps(n){var t=e.sameMap(n.typeParameters,(function(e,t){return 8&n.elementFlags[t]?jd(e,We):e}));return Pu(ad(t||e.emptyArray),n.readonly)}function fs(n){if(262144&n.flags){var t=wc(n);if(t)return fs(t)}return!!(67633153&n.flags&&!Tc(n)||2097152&n.flags&&e.every(n.types,fs))}function ms(n){var t=Wr(n),r=t;if(!t.declaredType){var a=32&n.flags?1:2,i=sb(n,n.valueDeclaration&&function(n){var t,r=n&&cb(n,!0),a=null===(t=null===r||void 0===r?void 0:r.exports)||void 0===t?void 0:t.get("prototype"),i=(null===a||void 0===a?void 0:a.valueDeclaration)&&function(n){if(!n.parent)return!1;var t=n.parent;for(;t&&205===t.kind;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&63===t.operatorToken.kind){var r=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(r)&&r}}(a.valueDeclaration);return i?ni(i):void 0}(n.valueDeclaration));i&&(n=t=i);var o=r.declaredType=t.declaredType=fi(a,n),s=ts(n),c=rs(n);(s||c||1===a||!function(n){if(!n.declarations)return!0;for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];if(257===a.kind){if(128&a.flags)return!1;var i=e.getInterfaceBaseTypeNodes(a);if(i)for(var o=0,s=i;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=Fa(c.expression,788968,!0);if(!l||!(64&l.flags)||ms(l).thisType)return!1}}}}return!0}(n))&&(o.objectFlags|=4,o.typeParameters=e.concatenate(s,c),o.outerTypeParameters=s,o.localTypeParameters=c,o.instantiations=new e.Map,o.instantiations.set(Jl(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=mi(n),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function _s(n){var t,r=Wr(n);if(!r.declaredType){if(!Qi(n,2))return Re;var a=e.Debug.checkDefined(null===(t=n.declarations)||void 0===t?void 0:t.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),i=e.isJSDocTypeAlias(a)?a.typeExpression:a.type,o=i?Lp(i):Re;if(eo()){var s=rs(n);s&&(r.typeParameters=s,r.instantiations=new e.Map,r.instantiations.set(Jl(s),o))}else o=Re,337===a.kind?kr(a.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Mi(n)):kr(e.isNamedDeclaration(a)?a.name:a||a,e.Diagnostics.Type_alias_0_circularly_references_itself,Mi(n));r.declaredType=o}return r.declaredType}function gs(n){return!!e.isStringLiteralLike(n)||220===n.kind&&(gs(n.left)&&gs(n.right))}function ys(n){var t=n.initializer;if(!t)return!(8388608&n.flags);switch(t.kind){case 10:case 8:case 14:return!0;case 218:return 40===t.operator&&8===t.operand.kind;case 79:return e.nodeIsMissing(t)||!!ni(n.parent).exports.get(t.escapedText);case 220:return gs(t);default:return!1}}function hs(n){var t=Wr(n);if(void 0!==t.enumKind)return t.enumKind;var r=!1;if(n.declarations)for(var a=0,i=n.declarations;a<i.length;a++){var o=i[a];if(259===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return t.enumKind=1;ys(l)||(r=!0)}}return t.enumKind=r?0:1}function vs(e){return 1024&e.flags&&!(1048576&e.flags)?Ss(ti(e.symbol)):e}function bs(e){var n=Wr(e);if(n.declaredType)return n.declaredType;if(1===hs(e)){y++;var t=[];if(e.declarations)for(var r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(259===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o],l=tL(c),u=mp(bp(void 0!==l?l:0,y,ni(c)));Wr(ni(c)).declaredType=u,t.push(_p(u))}}if(t.length){var d=ad(t,1,e,void 0);return 1048576&d.flags&&(d.flags|=1024,d.symbol=e),n.declaredType=d}}var p=ui(32);return p.symbol=e,n.declaredType=p}function Es(e){var n=Wr(e);if(!n.declaredType){var t=bs(ti(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function Ts(e){var n=Wr(e);return n.declaredType||(n.declaredType=mi(e))}function Ss(e){return xs(e)||Re}function xs(e){return 96&e.flags?ms(e):524288&e.flags?_s(e):262144&e.flags?Ts(e):384&e.flags?bs(e):8&e.flags?Es(e):2097152&e.flags?function(e){var n=Wr(e);return n.declaredType||(n.declaredType=Ss(Ia(e)))}(e):void 0}function Ls(e){switch(e.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return Ls(e.elementType);case 177:return!e.typeArguments||e.typeArguments.every(Ls)}return!1}function Ds(n){var t=e.getEffectiveConstraintOfTypeParameter(n);return!t||Ls(t)}function Cs(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?Ls(t):!e.hasInitializer(n)}function As(n){if(n.declarations&&1===n.declarations.length){var t=n.declarations[0];if(t)switch(t.kind){case 166:case 165:return Cs(t);case 168:case 167:case 170:case 171:case 172:return function(n){var t=e.getEffectiveReturnTypeNode(n),r=e.getEffectiveTypeParameterDeclarations(n);return(170===n.kind||!!t&&Ls(t))&&n.parameters.every(Cs)&&r.every(Ds)}(t)}}return!1}function Is(n,t,r){for(var a=e.createSymbolTable(),i=0,o=n;i<o.length;i++){var s=o[i];a.set(s.escapedName,r&&As(s)?s:jp(s,t))}return a}function ks(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];e.has(a.escapedName)||Ns(a)||e.set(a.escapedName,a)}}function Ns(n){return!!n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration)&&e.isStatic(n.valueDeclaration)}function Rs(n){if(!n.declaredProperties){var t=n.symbol,r=Vs(t);n.declaredProperties=gi(r),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredIndexInfos=e.emptyArray,n.declaredCallSignatures=Tl(r.get("__call")),n.declaredConstructSignatures=Tl(r.get("__new")),n.declaredIndexInfos=Vl(t)}return n}function Os(e){return!!(8576&e.flags)}function ws(n){if(!e.isComputedPropertyName(n)&&!e.isElementAccessExpression(n))return!1;var t=e.isComputedPropertyName(n)?n.expression:n.argumentExpression;return e.isEntityNameExpression(t)&&Os(e.isComputedPropertyName(n)?Zy(n):SE(t))}function Ms(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Ps(n){var t=e.getNameOfDeclaration(n);return!!t&&ws(t)}function Fs(n){return!e.hasDynamicName(n)||Ps(n)}function Gs(n){return 8192&n.flags?n.escapedName:384&n.flags?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function Bs(n,t,r,a){e.Debug.assert(!!a.symbol,"The member is expected to have a symbol.");var i=zr(a);if(!i.resolvedSymbol){i.resolvedSymbol=a.symbol;var o=e.isBinaryExpression(a)?a.left:a.name,s=e.isElementAccessExpression(o)?SE(o.argumentExpression):Zy(o);if(Os(s)){var c=Gs(s),l=a.symbol.flags,u=r.get(c);u||r.set(c,u=Pr(0,c,4096));var d=t&&t.get(c);if(u.flags&Fr(l)||d){var p=d?e.concatenate(d.declarations,u.declarations):u.declarations,f=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(p,(function(n){return kr(e.getNameOfDeclaration(n)||n,e.Diagnostics.Property_0_was_also_declared_here,f)})),kr(o||a,e.Diagnostics.Duplicate_property_0,f),u=Pr(0,c,4096)}return u.nameType=s,function(n,t,r){e.Debug.assert(!!(4096&e.getCheckFlags(n)),"Expected a late-bound symbol."),n.flags|=r,Wr(t.symbol).lateSymbol=n,n.declarations?t.symbol.isReplaceableByMethod||n.declarations.push(t):n.declarations=[t],111551&r&&(n.valueDeclaration&&n.valueDeclaration.kind===t.kind||(n.valueDeclaration=t))}(u,a,l),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,i.resolvedSymbol=u}}return i.resolvedSymbol}function Us(n,t){var r=Wr(n);if(!r[t]){var a="resolvedExports"===t,i=a?1536&n.flags?$a(n):n.exports:n.members;r[t]=i||T;for(var o=e.createSymbolTable(),s=0,c=n.declarations||e.emptyArray;s<c.length;s++){var l=c[s],u=e.getMembersOfDeclaration(l);if(u)for(var d=0,p=u;d<p.length;d++){var f=p[d];a===e.hasStaticModifier(f)&&Ps(f)&&Bs(n,i,o,f)}}var m=n.assignmentDeclarationMembers;if(m)for(var _=0,g=e.arrayFrom(m.values());_<g.length;_++){f=g[_];var y=e.getAssignmentDeclarationKind(f);a===!(3===y||e.isBinaryExpression(f)&&Cy(f,y)||9===y||6===y)&&Ps(f)&&Bs(n,i,o,f)}r[t]=function(n,t){if(!(null===n||void 0===n?void 0:n.size))return t;if(!(null===t||void 0===t?void 0:t.size))return n;var r=e.createSymbolTable();return Kr(r,n),Kr(r,t),r}(i,o)||T}return r[t]}function Vs(e){return 6256&e.flags?Us(e,"resolvedMembers"):e.members||T}function js(n){if(106500&n.flags&&"__computed"===n.escapedName){var t=Wr(n);if(!t.lateSymbol&&e.some(n.declarations,Ps)){var r=ei(n.parent);e.some(n.declarations,e.hasStaticModifier)?Ya(r):Vs(r)}return t.lateSymbol||(t.lateSymbol=n)}return n}function Ks(n,t,r){if(4&e.getObjectFlags(n)){var a=n.target,i=$l(n);if(e.length(a.typeParameters)===e.length(i)){var o=Yl(a,e.concatenate(i,[t||a.thisType]));return r?Vc(o):o}}else if(2097152&n.flags){var s=e.sameMap(n.types,(function(e){return Ks(e,t,r)}));return s!==n.types?pd(s):n}return r?Vc(n):n}function Hs(n,t,r,a){var i,o,s,c,l;e.rangeEquals(r,a,0,r.length)?(o=t.symbol?Vs(t.symbol):e.createSymbolTable(t.declaredProperties),s=t.declaredCallSignatures,c=t.declaredConstructSignatures,l=t.declaredIndexInfos):(i=Np(r,a),o=Is(t.declaredProperties,i,1===r.length),s=Ip(t.declaredCallSignatures,i),c=Ip(t.declaredConstructSignatures,i),l=kp(t.declaredIndexInfos,i));var u=ds(t);if(u.length){t.symbol&&o===Vs(t.symbol)&&(o=e.createSymbolTable(t.declaredProperties)),hi(n,o,s,c,l);for(var d=e.lastOrUndefined(a),p=0,f=u;p<f.length;p++){var m=f[p],_=d?Ks(Yp(m,i),d):m;ks(o,Cc(_)),s=e.concatenate(s,$c(_,0)),c=e.concatenate(c,$c(_,1));var g=_!==Ie?al(_):[Ul(He,Ie,!1)];l=e.concatenate(l,e.filter(g,(function(e){return!el(l,e.keyType)})))}}hi(n,o,s,c,l)}function Ws(e,n,t,r,a,i,o,s){var c=new p(le,s);return c.declaration=e,c.typeParameters=n,c.parameters=r,c.thisParameter=t,c.resolvedReturnType=a,c.resolvedTypePredicate=i,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function zs(e){var n=Ws(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return n.target=e.target,n.mapper=e.mapper,n.compositeSignatures=e.compositeSignatures,n.compositeKind=e.compositeKind,n}function Js(e,n){var t=zs(e);return t.compositeSignatures=n,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function qs(n,t){if((24&n.flags)===t)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});var r=8===t?"inner":"outer";return n.optionalCallSignatureCache[r]||(n.optionalCallSignatureCache[r]=function(n,t){e.Debug.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var r=zs(n);return r.flags|=t,r}(n,t))}function Xs(n,t){if(ne(n)){var r=n.parameters.length-1,a=Xo(n.parameters[r]);if(Lm(a))return[i(a,r)];if(!t&&1048576&a.flags&&e.every(a.types,Lm))return e.map(a.types,(function(e){return i(e,r)}))}return[n.parameters];function i(t,r){var a=$l(t),i=t.target.labeledElementDeclarations,o=e.map(a,(function(e,a){var o=!!i&&Lb(i[a])||Db(n,r+a,t),s=t.target.elementFlags[a],c=Pr(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?Pu(e):e,c}));return e.concatenate(n.parameters.slice(0,r),o)}}function Ys(e,n,t,r,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if(am(s,n,t,r,a,t?lf:sf))return s}}function Qs(n,t,r){if(t.typeParameters){if(r>0)return;for(var a=1;a<n.length;a++)if(!Ys(n[a],t,!1,!1,!1))return;return[t]}var i;for(a=0;a<n.length;a++){var o=a===r?t:Ys(n[a],t,!0,!1,!0);if(!o)return;i=e.appendIfUnique(i,o)}return i}function Zs(n){for(var t,r,a=0;a<n.length;a++){if(0===n[a].length)return e.emptyArray;n[a].length>1&&(r=void 0===r?a:-1);for(var i=0,o=n[a];i<o.length;i++){var s=o[i];if(!t||!Ys(t,s,!1,!1,!0)){var c=Qs(n,s,a);if(c){var l=s;if(c.length>1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)u=zm(d,pd(e.mapDefined(c,(function(e){return e.thisParameter&&Xo(e.thisParameter)}))));(l=Js(s,c)).thisParameter=u}(t||(t=[])).push(l)}}}}if(!e.length(t)&&-1!==r){for(var p=n[void 0!==r?r:0],f=p.slice(),m=function(n){if(n!==p){var t=n[0];if(e.Debug.assert(!!t,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),f=t.typeParameters&&e.some(f,(function(e){return!!e.typeParameters&&!$s(t.typeParameters,e.typeParameters)}))?void 0:e.map(f,(function(n){return function(n,t){var r,a=n.typeParameters||t.typeParameters;n.typeParameters&&t.typeParameters&&(r=Np(t.typeParameters,n.typeParameters));var i=n.declaration,o=function(e,n,t){for(var r=Ob(e),a=Ob(n),i=r>=a?e:n,o=i===e?n:e,s=i===e?r:a,c=Mb(e)||Mb(n),l=c&&!Mb(i),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=Nb(i,d);i===n&&(p=Yp(p,t));var f=Nb(o,d)||Pe;o===n&&(f=Yp(f,t));var m=pd([p,f]),_=c&&!l&&d===s-1,g=d>=wb(i)&&d>=wb(o),y=d>=r?void 0:Db(e,d),h=d>=a?void 0:Db(n,d),v=Pr(1|(g&&!_?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg".concat(d));v.type=_?Pu(m):m,u[d]=v}if(l){var b=Pr(1,"args");b.type=Pu(kb(o,s)),o===n&&(b.type=Yp(b.type,t)),u[s]=b}return u}(n,t,r),s=function(e,n,t){if(!e||!n)return e||n;var r=pd([Xo(e),Yp(Xo(n),t)]);return zm(e,r)}(n.thisParameter,t.thisParameter,r),c=Math.max(n.minArgumentCount,t.minArgumentCount),l=Ws(i,a,s,o,void 0,void 0,c,39&(n.flags|t.flags));l.compositeKind=1048576,l.compositeSignatures=e.concatenate(2097152!==n.compositeKind&&n.compositeSignatures||[n],[t]),r&&(l.mapper=2097152!==n.compositeKind&&n.mapper&&n.compositeSignatures?Fp(n.mapper,r):r);return l}(n,t)})),!f)return"break"}},_=0,g=n;_<g.length;_++){if("break"===m(g[_]))break}t=f}return t||e.emptyArray}function $s(n,t){if(e.length(n)!==e.length(t))return!1;if(!n||!t)return!0;for(var r=Np(t,n),a=0;a<n.length;a++){var i=n[a],o=t[a];if(i!==o&&!of(Wl(i)||Pe,Yp(Wl(o)||Pe,r)))return!1}return!0}function ec(n){var t=al(n[0]);if(t){for(var r=[],a=function(t){var a=t.keyType;e.every(n,(function(e){return!!il(e,a)}))&&r.push(Ul(a,ad(e.map(n,(function(e){return ol(e,a)}))),e.some(n,(function(e){return il(e,a).isReadonly}))))},i=0,o=t;i<o.length;i++){a(o[i])}return r}return e.emptyArray}function nc(e,n){return e?n?pd([e,n]):e:n}function tc(n){var t=e.countWhere(n,(function(e){return $c(e,1).length>0})),r=e.map(n,as);if(t>0&&t===e.countWhere(r,(function(e){return e}))){var a=r.indexOf(!0);r[a]=!1}return r}function rc(n){for(var t,r,a,i=n.types,o=tc(i),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=n.types[c];if(!o[c]){var u=$c(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var n=zs(e);return n.resolvedReturnType=function(e,n,t,r){for(var a=[],i=0;i<n.length;i++)i===r?a.push(e):t[i]&&a.push(Cl($c(n[i],1)[0]));return pd(a)}(Cl(e),i,o,c),n}))),r=ac(r,u)}t=ac(t,$c(l,0)),a=e.reduceLeft(al(l),(function(e,n){return ic(e,n,!1)}),a)},l=0;l<i.length;l++)c(l);hi(n,T,t||e.emptyArray,r||e.emptyArray,a||e.emptyArray)}function ac(n,t){for(var r=function(t){n&&!e.every(n,(function(e){return!am(e,t,!1,!1,!1,sf)}))||(n=e.append(n,t))},a=0,i=t;a<i.length;a++){r(i[a])}return n}function ic(n,t,r){if(n)for(var a=0;a<n.length;a++){var i=n[a];if(i.keyType===t.keyType)return n[a]=Ul(i.keyType,r?ad([i.type,t.type]):pd([i.type,t.type]),r?i.isReadonly||t.isReadonly:i.isReadonly&&t.isReadonly),n}return e.append(n,t)}function oc(n){var t=ei(n.symbol);if(n.target)hi(n,T,e.emptyArray,e.emptyArray,e.emptyArray),hi(n,i=Is(xc(n.target),n.mapper,!1),r=Ip($c(n.target,0),n.mapper),a=Ip($c(n.target,1),n.mapper),o=kp(al(n.target),n.mapper));else if(2048&t.flags){hi(n,T,e.emptyArray,e.emptyArray,e.emptyArray);var r=Tl((i=Vs(t)).get("__call")),a=Tl(i.get("__new"));hi(n,i,r,a,o=Vl(t))}else{var i=T,o=void 0;if(t.exports&&(i=Ya(t),t===ie)){var s=new e.Map;i.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),i=s}var c=void 0;if(hi(n,i,e.emptyArray,e.emptyArray,e.emptyArray),32&t.flags){var l=ls(ms(t));11272192&l.flags?ks(i=e.createSymbolTable(function(n){var t=gi(n),r=Bl(n);return r?e.concatenate(t,[r]):t}(i)),Cc(l)):l===Ie&&(c=Ul(He,Ie,!1))}var u=Bl(i);if(u?o=jl(u):(c&&(o=e.append(o,c)),384&t.flags&&(32&Ss(t).flags||e.some(n.properties,(function(e){return!!(296&Xo(e).flags)})))&&(o=e.append(o,At))),hi(n,i,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&t.flags&&(n.callSignatures=Tl(t)),32&t.flags){var d=ms(t);a=t.members?Tl(t.members.get("__constructor")):e.emptyArray;16&t.flags&&(a=e.addRange(a.slice(),e.mapDefined(n.callSignatures,(function(e){return ob(e.declaration)?Ws(e.declaration,e.typeParameters,e.thisParameter,e.parameters,d,void 0,e.minArgumentCount,39&e.flags):void 0})))),a.length||(a=function(n){var t=$c(ls(n),1),r=e.getClassLikeDeclarationOfSymbol(n.symbol),a=!!r&&e.hasSyntacticModifier(r,128);if(0===t.length)return[Ws(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,a?4:0)];for(var i=os(n),o=e.isInJSFile(i),s=gu(i),c=e.length(s),l=[],u=0,d=t;u<d.length;u++){var p=d[u],f=yl(p.typeParameters),m=e.length(p.typeParameters);if(o||c>=f&&c<=m){var _=m?Ol(p,hl(s,p.typeParameters,f,o)):zs(p);_.typeParameters=n.localTypeParameters,_.resolvedReturnType=n,_.flags=a?4|_.flags:-5&_.flags,l.push(_)}}return l}(d)),n.constructSignatures=a}}}function sc(e,n,t){return Yp(e,Np([n.indexType,n.objectType],[hp(0),Ku([t])]))}function cc(n){if(4194304&n.flags){var t=Vc(n.type);return Dm(t)?qu(t):Ed(t)}if(16777216&n.flags){if(n.root.isDistributive){var r=n.checkType,a=cc(r);if(a!==r)return Xp(n,Gp(n.root.checkType,a,n.mapper))}return n}return 1048576&n.flags?Cg(n,cc):2097152&n.flags?pd(e.sameMap(n.types,cc)):n}function lc(n){return 4096&e.getCheckFlags(n)}function uc(e,n,t,r){for(var a=0,i=Cc(e);a<i.length;a++){r(hd(i[a],n))}if(1&e.flags)r(He);else for(var o=0,s=al(e);o<s.length;o++){var c=s[o];(!t||134217732&c.keyType.flags)&&r(c.keyType)}}function dc(n){var t,r=e.createSymbolTable();hi(n,T,e.emptyArray,e.emptyArray,e.emptyArray);var a=pc(n),i=fc(n),o=mc(n.target||n),s=_c(n.target||n),c=Vc(hc(n)),l=vc(n),u=G?128:8576;function d(e){Eg(o?Yp(o,Bp(n.mapper,a,e)):e,(function(i){return function(e,i){if(Os(i)){var u=Gs(i),d=r.get(u);if(d)d.nameType=ad([d.nameType,i]),d.keyType=ad([d.keyType,e]);else{var p=Os(e)?Qc(c,Gs(e)):void 0,f=!!(4&l||!(8&l)&&p&&16777216&p.flags),m=!!(1&l||!(2&l)&&p&&rE(p)),_=I&&!f&&p&&16777216&p.flags,g=Pr(4|(f?16777216:0),u,262144|(p?lc(p):0)|(m?8:0)|(_?524288:0));g.mappedType=n,g.nameType=i,g.keyType=e,p&&(g.syntheticOrigin=p,g.declarations=o?void 0:p.declarations),r.set(u,g)}}else if(Kl(i)||33&i.flags){var y=Ul(5&i.flags?He:40&i.flags?We:i,Yp(s,Bp(n.mapper,a,e)),!!(1&l));t=ic(t,y,!0)}}(e,i)}))}yc(n)?uc(c,u,G,d):Eg(cc(i),d),hi(n,r,e.emptyArray,e.emptyArray,t||e.emptyArray)}function pc(e){return e.typeParameter||(e.typeParameter=Ts(ni(e.declaration.typeParameter)))}function fc(e){return e.constraintType||(e.constraintType=Ic(pc(e))||Re)}function mc(e){return e.declaration.nameType?e.nameType||(e.nameType=Yp(Lp(e.declaration.nameType),e.mapper)):void 0}function _c(e){return e.templateType||(e.templateType=e.declaration.type?Yp(yo(Lp(e.declaration.type),!0,!!(4&vc(e))),e.mapper):Re)}function gc(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function yc(e){var n=gc(e);return 192===n.kind&&140===n.operator}function hc(e){if(!e.modifiersType)if(yc(e))e.modifiersType=Yp(Lp(gc(e).type),e.mapper);else{var n=fc(zd(e.declaration)),t=n&&262144&n.flags?Ic(n):n;e.modifiersType=t&&4194304&t.flags?Yp(t.type,e.mapper):Pe}return e.modifiersType}function vc(e){var n=e.declaration;return(n.readonlyToken?40===n.readonlyToken.kind?2:1:0)|(n.questionToken?40===n.questionToken.kind?8:4:0)}function bc(e){var n=vc(e);return 8&n?-1:4&n?1:0}function Ec(e){var n=bc(e),t=hc(e);return n||(Tc(t)?bc(t):0)}function Tc(n){return!!(32&e.getObjectFlags(n))&&Md(fc(n))}function Sc(n){return n.members||(524288&n.flags?4&n.objectFlags?function(n){var t=Rs(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),a=$l(n);Hs(n,t,r,a.length===r.length?a:e.concatenate(a,[n]))}(n):3&n.objectFlags?function(n){Hs(n,Rs(n),e.emptyArray,e.emptyArray)}(n):1024&n.objectFlags?function(n){for(var t=il(n.source,He),r=vc(n.mappedType),a=!(1&r),i=4&r?0:16777216,o=t?[Ul(He,h_(t.type,n.mappedType,n.constraintType),a&&t.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=Cc(n.source);c<l.length;c++){var u=l[c],d=8192|(a&&rE(u)?8:0),p=Pr(4|u.flags&i,u.escapedName,d);if(p.declarations=u.declarations,p.nameType=Wr(u).nameType,p.propertyType=Xo(u),8388608&n.constraintType.type.flags&&262144&n.constraintType.type.objectType.flags&&262144&n.constraintType.type.indexType.flags){var f=n.constraintType.type.objectType,m=sc(n.mappedType,n.constraintType.type,f);p.mappedType=m,p.constraintType=Ed(f)}else p.mappedType=n.mappedType,p.constraintType=n.constraintType;s.set(u.escapedName,p)}hi(n,s,e.emptyArray,e.emptyArray,o)}(n):16&n.objectFlags?oc(n):32&n.objectFlags&&dc(n):1048576&n.flags?function(n){var t=Zs(e.map(n.types,(function(e){return e===kn?[Lt]:$c(e,0)}))),r=Zs(e.map(n.types,(function(e){return $c(e,1)}))),a=ec(n.types);hi(n,T,t,r,a)}(n):2097152&n.flags&&rc(n)),n}function xc(n){return 524288&n.flags?Sc(n).properties:e.emptyArray}function Lc(e,n){if(524288&e.flags){var t=Sc(e).members.get(n);if(t&&ci(t))return t}}function Dc(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,a=n.types;r<a.length;r++){for(var i=a[r],o=0,s=Cc(i);o<s.length;o++){var c=s[o];if(!t.has(c.escapedName)){var l=Wc(n,c.escapedName);l&&t.set(c.escapedName,l)}}if(1048576&n.flags&&0===al(i).length)break}n.resolvedProperties=gi(t)}return n.resolvedProperties}function Cc(e){return 3145728&(e=jc(e)).flags?Dc(e):xc(e)}function Ac(e){return 262144&e.flags?Ic(e):8388608&e.flags?function(e){return Pc(e)?function(e){var n=kc(e.indexType);if(n&&n!==e.indexType){var t=Hd(e.objectType,n,e.accessFlags);if(t)return t}var r=kc(e.objectType);if(r&&r!==e.objectType)return Hd(r,e.indexType,e.accessFlags);return}(e):void 0}(e):16777216&e.flags?function(e){return Pc(e)?Oc(e):void 0}(e):wc(e)}function Ic(e){return Pc(e)?Wl(e):void 0}function kc(e){var n=Gd(e,!1);return n!==e?n:Ac(e)}function Nc(e){if(!e.resolvedDefaultConstraint){var n=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?Yp(Lp(e.root.node.trueType),e.combinedMapper):Zd(e))}(e),t=$d(e);e.resolvedDefaultConstraint=ro(n)?t:ro(t)?n:ad([n,t])}return e.resolvedDefaultConstraint}function Rc(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var n=Gd(e.checkType,!1),t=n===e.checkType?Ac(n):n;if(t&&t!==e.checkType){var r=Xp(e,Gp(e.root.checkType,t,e.mapper));if(!(131072&r.flags))return r}}}function Oc(e){return Rc(e)||Nc(e)}function wc(e){if(464781312&e.flags){var n=Fc(e);return n!==bn&&n!==En?n:void 0}return 4194304&e.flags?ln:void 0}function Mc(e){return wc(e)||e}function Pc(e){return Fc(e)!==En}function Fc(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;var t=[];return n.resolvedBaseConstraint=Ks(r(n),n);function r(n){if(!n.immediateBaseConstraint){if(!Qi(n,4))return En;var r=void 0;if((t.length<10||t.length<50&&!em(n,t,t.length))&&(t.push(n),r=function(n){if(262144&n.flags){var t=Wl(n);return n.isThisType||!t?t:a(t)}if(3145728&n.flags){for(var r=[],i=!1,o=0,s=u=n.types;o<s.length;o++){var c=s[o],l=a(c);l?(l!==c&&(i=!0),r.push(l)):i=!0}return i?1048576&n.flags&&r.length===u.length?ad(r):2097152&n.flags&&r.length?pd(r):void 0:n}if(4194304&n.flags)return ln;if(134217728&n.flags){var u=n.types,d=e.mapDefined(u,a);return d.length===u.length?Sd(n.texts,d):He}if(268435456&n.flags){return(t=a(n.type))?Ld(n.symbol,t):He}if(8388608&n.flags){var p=a(n.objectType),f=a(n.indexType),m=p&&f&&Hd(p,f,n.accessFlags);return m&&a(m)}if(16777216&n.flags){return(t=Oc(n))&&a(t)}if(33554432&n.flags)return a(n.substitute);return n}(Gd(n,!1)),t.pop()),!eo()){if(262144&n.flags){var i=Hl(n);if(i){var s=kr(i,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Fi(n));!o||e.isNodeDescendantOf(i,o)||e.isNodeDescendantOf(o,i)||e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}r=En}n.immediateBaseConstraint=r||bn}return n.immediateBaseConstraint}function a(e){var n=r(e);return n!==bn&&n!==En?n:void 0}}function Gc(n){if(n.default)n.default===Tn&&(n.default=En);else if(n.target){var t=Gc(n.target);n.default=t?Yp(t,n.mapper):bn}else{n.default=Tn;var r=n.symbol&&e.forEach(n.symbol.declarations,(function(n){return e.isTypeParameterDeclaration(n)&&n.default})),a=r?Lp(r):bn;n.default===Tn&&(n.default=a)}return n.default}function Bc(e){var n=Gc(e);return n!==bn&&n!==En?n:void 0}function Uc(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var n=Hp(e);if(n&&!e.declaration.nameType){var t=Ic(n);if(t&&(om(t)||Lm(t)))return Yp(e,Gp(n,t,e.mapper))}return e}(e))}function Vc(n){var t,r=465829888&n.flags?wc(n)||Pe:n;return 32&e.getObjectFlags(r)?Uc(r):2097152&r.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Ks(e,e,!0))}(r):402653316&r.flags?Mn:296&r.flags?Pn:2112&r.flags?(t=L>=7,_t||(_t=Su("BigInt",0,t))||mn):528&r.flags?Fn:12288&r.flags?Cu(L>=2):67108864&r.flags?mn:4194304&r.flags?ln:2&r.flags&&!I?mn:r}function jc(e){return zc(Vc(zc(e)))}function Kc(n,t,r){for(var a,i,o,s,c,l=1048576&n.flags,u=l?0:16777216,d=4,p=l?0:8,f=!1,m=0,_=n.types;m<_.length;m++){if(!(ao(I=Vc(_[m]))||131072&I.flags)){var g=(A=Qc(I,t,r))?e.getDeclarationModifierFlagsFromSymbol(A):0;if(A){if(l?u|=16777216&A.flags:u&=A.flags,o){if(A!==o){if((zS(A)||A)===(zS(o)||o)&&-1===rm(o,A,(function(e,n){return e===n?-1:0})))f=!!o.parent&&!!e.length(rs(o.parent));else{s||(s=new e.Map).set(Y(o),o);var y=Y(A);s.has(y)||s.set(y,A)}}}else o=A;l&&rE(A)?p|=8:l||rE(A)||(p&=-9),p|=(24&g?0:256)|(16&g?512:0)|(8&g?1024:0)|(32&g?2048:0),Ah(A)||(d=2)}else if(l){var h=!Ms(t)&&ll(I,t);h?(p|=32|(h.isReadonly?8:0),c=e.append(c,Lm(I)?Am(I)||Ge:h.type)):!R_(I)||4194304&e.getObjectFlags(I)?p|=16:(p|=32,c=e.append(c,Ge))}}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!s&&!(16&p)&&!c){if(f){var v=zm(o,o.type);return v.parent=null===(i=null===(a=o.valueDeclaration)||void 0===a?void 0:a.symbol)||void 0===i?void 0:i.parent,v.containingType=n,v.mapper=o.mapper,v}return o}for(var b,E,T,S,x=[],L=!1,D=0,C=s?e.arrayFrom(s.values()):[o];D<C.length;D++){var A=C[D];S?A.valueDeclaration&&A.valueDeclaration!==S&&(L=!0):S=A.valueDeclaration,b=e.addRange(b,A.declarations);var I=Xo(A);E?I!==E&&(p|=64):(E=I,T=Wr(A).nameType),(vm(I)||Rd(I))&&(p|=128),131072&I.flags&&(p|=131072),x.push(I)}e.addRange(x,c);var k=Pr(4|u,t,d|p);return k.containingType=n,!L&&S&&(k.valueDeclaration=S,S.symbol.parent&&(k.parent=S.symbol.parent)),k.declarations=b,k.nameType=T,x.length>2?(k.checkFlags|=65536,k.deferralParent=n,k.deferralConstituents=x):k.type=l?ad(x):pd(x),k}}function Hc(n,t,r){var a,i,o=(null===(a=n.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===a?void 0:a.get(t))||!r?null===(i=n.propertyCache)||void 0===i?void 0:i.get(t):void 0;o||(o=Kc(n,t,r))&&(r?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable())).set(t,o);return o}function Wc(n,t,r){var a=Hc(n,t,r);return!a||16&e.getCheckFlags(a)?void 0:a}function zc(n){return 1048576&n.flags&&33554432&n.objectFlags?n.resolvedReducedType||(n.resolvedReducedType=function(n){var t=e.sameMap(n.types,zc);if(t===n.types)return n;var r=ad(t);1048576&r.flags&&(r.resolvedReducedType=r);return r}(n)):2097152&n.flags?(33554432&n.objectFlags||(n.objectFlags|=33554432|(e.some(Dc(n),Jc)?67108864:0)),67108864&n.objectFlags?en:n):n}function Jc(e){return qc(e)||Xc(e)}function qc(n){return!(16777216&n.flags)&&192===(131264&e.getCheckFlags(n))&&!!(131072&Xo(n).flags)}function Xc(n){return!n.valueDeclaration&&!!(1024&e.getCheckFlags(n))}function Yc(n,t){if(2097152&t.flags&&67108864&e.getObjectFlags(t)){var r=e.find(Dc(t),qc);if(r)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Fi(t,void 0,536870912),Mi(r));var a=e.find(Dc(t),Xc);if(a)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Fi(t,void 0,536870912),Mi(a))}return n}function Qc(e,n,t){if(524288&(e=jc(e)).flags){var r=Sc(e),a=r.members.get(n);if(a&&ci(a))return a;if(t)return;var i=r===vn?kn:r.callSignatures.length?Nn:r.constructSignatures.length?Rn:void 0;if(i){var o=Lc(i,n);if(o)return o}return Lc(In,n)}if(3145728&e.flags)return Wc(e,n,t)}function Zc(n,t){if(3670016&n.flags){var r=Sc(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function $c(e,n){return Zc(jc(e),n)}function el(n,t){return e.find(n,(function(e){return e.keyType===t}))}function nl(n,t){for(var r,a,i,o=0,s=n;o<s.length;o++){var c=s[o];c.keyType===He?r=c:tl(t,c.keyType)&&(a?(i||(i=[a])).push(c):a=c)}return i?Ul(Pe,pd(e.map(i,(function(e){return e.type}))),e.reduceLeft(i,(function(e,n){return e&&n.isReadonly}),!0)):a||(r&&tl(t,He)?r:void 0)}function tl(e,n){return df(e,n)||n===He&&df(e,We)||n===We&&!!(128&e.flags)&&Qy(e.value)}function rl(n){return 3670016&n.flags?Sc(n).indexInfos:e.emptyArray}function al(e){return rl(jc(e))}function il(e,n){return el(al(e),n)}function ol(e,n){var t;return null===(t=il(e,n))||void 0===t?void 0:t.type}function sl(e,n){return al(e).filter((function(e){return tl(n,e.keyType)}))}function cl(e,n){return nl(al(e),n)}function ll(n,t){return cl(n,Ms(t)?Ze:yp(e.unescapeLeadingUnderscores(t)))}function ul(n){for(var t,r=0,a=e.getEffectiveTypeParameterDeclarations(n);r<a.length;r++){var i=a[r];t=e.appendIfUnique(t,Ts(i.symbol))}return t}function dl(e){var n=[];return e.forEach((function(e,t){_i(t)||n.push(e)})),n}function pl(n){return e.isInJSFile(n)&&(n.type&&314===n.type.kind||e.getJSDocParameterTags(n).some((function(e){var n=e.isBracketed,t=e.typeExpression;return n||!!t&&314===t.type.kind})))}function fl(n,t){if(!e.isExternalModuleNameRelative(n)){var r=qr(re,'"'+n+'"',512);return r&&t?ei(r):r}}function ml(n){if(e.hasQuestionToken(n)||_l(n)||pl(n))return!0;if(n.initializer){var t=vl(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=wb(t,3)}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!a&&(!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length)}function _l(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&314===r.type.kind}function gl(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function yl(n){var t,r=0;if(n)for(var a=0;a<n.length;a++)(t=n[a]).symbol&&e.forEach(t.symbol.declarations,(function(n){return e.isTypeParameterDeclaration(n)&&n.default}))||(r=a+1);return r}function hl(n,t,r,a){var i=e.length(t);if(!i)return[];var o=e.length(n);if(a||o>=r&&o<=i){for(var s=n?n.slice():[],c=o;c<i;c++)s[c]=Re;var l=F_(a);for(c=o;c<i;c++){var u=Bc(t[c]);a&&u&&(of(u,Pe)||of(u,mn))&&(u=Ie),s[c]=u?Yp(u,Np(t,s)):l}return s.length=t.length,s}return n&&n.slice()}function vl(n){var t=zr(n);if(!t.resolvedSignature){var r=[],a=0,i=0,o=void 0,s=!1,c=e.getImmediatelyInvokedFunctionExpression(n),l=e.isJSDocConstructSignature(n);!c&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n)&&(a|=32);for(var u=l?1:0;u<n.parameters.length;u++){var d=n.parameters[u],p=d.symbol,f=e.isJSDocParameterTag(d)?d.typeExpression&&d.typeExpression.type:d.type;if(p&&4&p.flags&&!e.isBindingPattern(d.name))p=Qr(d,p.escapedName,111551,void 0,void 0,!1);0===u&&"this"===p.escapedName?(s=!0,o=d.symbol):r.push(p),f&&195===f.kind&&(a|=2),_l(d)||d.initializer||d.questionToken||e.isRestParameter(d)||c&&r.length>c.arguments.length&&!f||pl(d)||(i=r.length)}if((171===n.kind||172===n.kind)&&Fs(n)&&(!s||!o)){var m=171===n.kind?172:171,_=e.getDeclarationOfKind(ni(n),m);_&&(o=function(e){var n=ML(e);return n&&n.symbol}(_))}var g=170===n.kind?ms(ei(n.parent.symbol)):void 0,y=g?g.localTypeParameters:ul(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&function(n,t){if(e.isJSDocSignature(n)||!El(n))return!1;var r=e.lastOrUndefined(n.parameters),a=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),i=e.firstDefined(a,(function(n){return n.typeExpression&&e.isJSDocVariadicType(n.typeExpression.type)?n.typeExpression.type:void 0})),o=Pr(3,"args",32768);o.type=i?Pu(Lp(i.type)):Un,i&&t.pop();return t.push(o),!0}(n,r))&&(a|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(a|=4),t.resolvedSignature=Ws(n,y,o,r,void 0,void 0,i,a)}return t.resolvedSignature}function bl(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var t=e.getJSDocTypeTag(n);return(null===t||void 0===t?void 0:t.typeExpression)&&Lv(Lp(t.typeExpression))}}function El(n){var t=zr(n);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function n(t){if(!t)return!1;switch(t.kind){case 79:return t.escapedText===se.escapedName&&dL(t)===se;case 166:case 168:case 171:case 172:return 161===t.name.kind&&n(t.name);case 205:case 206:return n(t.expression);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function Tl(n){if(!n||!n.declarations)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var a=n.declarations[r];if(e.isFunctionLike(a)){if(r>0&&a.body){var i=n.declarations[r-1];if(a.parent===i.parent&&a.kind===i.kind&&a.pos===i.end)continue}t.push(vl(a))}}return t}function Sl(e){var n=Ba(e,e);if(n){var t=Ka(n);if(t)return Xo(t)}return Ie}function xl(e){if(e.thisParameter)return Xo(e.thisParameter)}function Ll(n){if(!n.resolvedTypePredicate){if(n.target){var t=Ll(n.target);n.resolvedTypePredicate=t?(o=t,s=n.mapper,gl(o.kind,o.parameterName,o.parameterIndex,Yp(o.type,s))):St}else if(n.compositeSignatures)n.resolvedTypePredicate=function(e,n){for(var t,r=[],a=0,i=e;a<i.length;a++){var o=Ll(i[a]);if(!o||2===o.kind||3===o.kind){if(2097152!==n)continue;return}if(t){if(!id(t,o))return}else t=o;r.push(o.type)}if(!t)return;var s=Dl(r,n);return gl(t.kind,t.parameterName,t.parameterIndex,s)}(n.compositeSignatures,n.compositeKind)||St;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),a=void 0;if(!r&&e.isInJSFile(n.declaration)){var i=bl(n.declaration);i&&n!==i&&(a=Ll(i))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?function(n,t){var r=n.parameterName,a=n.type&&Lp(n.type);return 191===r.kind?gl(n.assertsModifier?2:0,void 0,void 0,a):gl(n.assertsModifier?3:1,r.escapedText,e.findIndex(t.parameters,(function(e){return e.escapedName===r.escapedText})),a)}(r,n):a||St}e.Debug.assert(!!n.resolvedTypePredicate)}var o,s;return n.resolvedTypePredicate===St?void 0:n.resolvedTypePredicate}function Dl(e,n,t){return 2097152!==n?ad(e,t):pd(e)}function Cl(n){if(!n.resolvedReturnType){if(!Qi(n,3))return Re;var t=n.target?Yp(Cl(n.target),n.mapper):n.compositeSignatures?Yp(Dl(e.map(n.compositeSignatures,Cl),n.compositeKind,2),n.mapper):Al(n.declaration)||(e.nodeIsMissing(n.declaration.body)?Ie:zb(n.declaration));if(8&n.flags?t=Gm(t):16&n.flags&&(t=Pm(t)),!eo()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)kr(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(M){var a=n.declaration,i=e.getNameOfDeclaration(a);i?kr(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(i)):kr(a,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=Ie}n.resolvedReturnType=t}return n.resolvedReturnType}function Al(n){if(170===n.kind)return ms(ei(n.parent.symbol));if(e.isJSDocConstructSignature(n))return Lp(n.parameters[0].type);var t=e.getEffectiveReturnTypeNode(n);if(t)return Lp(t);if(171===n.kind&&Fs(n)){var r=e.isInJSFile(n)&&_o(n);if(r)return r;var a=Bo(e.getDeclarationOfKind(ni(n),172));if(a)return a}return function(e){var n=bl(e);return n&&Cl(n)}(n)}function Il(e){return!e.resolvedReturnType&&Zi(e,3)>=0}function kl(e){if(ne(e)){var n=Xo(e.parameters[e.parameters.length-1]),t=Lm(n)?Am(n):n;return t&&ol(t,We)}}function Nl(e,n,t,r){var a=Rl(e,hl(n,e.typeParameters,yl(e.typeParameters),t));if(r){var i=Dv(Cl(a));if(i){var o=zs(i);o.typeParameters=r;var s=zs(a);return s.resolvedReturnType=Fl(o),s}}return a}function Rl(n,t){var r=n.instantiations||(n.instantiations=new e.Map),a=Jl(t),i=r.get(a);return i||r.set(a,i=Ol(n,t)),i}function Ol(e,n){return Vp(e,function(e,n){return Np(e.typeParameters,n)}(e,n),!0)}function wl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Vp(e,Pp(e.typeParameters),!0)}(e)):e}function Ml(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=function(n){return Nl(n,e.map(n.typeParameters,(function(e){return e.target&&!Ic(e.target)?e.target:e})),e.isInJSFile(n.declaration))}(n)):n}function Pl(n){var t=n.typeParameters;if(t){if(n.baseSignatureCache)return n.baseSignatureCache;for(var r=Pp(t),a=Np(t,e.map(t,(function(e){return Ic(e)||Pe}))),i=e.map(t,(function(e){return Yp(e,a)||Pe})),o=0;o<t.length-1;o++)i=Ap(i,a);return i=Ap(i,r),n.baseSignatureCache=Vp(n,Np(t,i),!0)}return n}function Fl(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=170===t||174===t||179===t,a=fi(16);a.members=T,a.properties=e.emptyArray,a.callSignatures=r?e.emptyArray:[n],a.constructSignatures=r?[n]:e.emptyArray,a.indexInfos=e.emptyArray,n.isolatedSignatureType=a}return n.isolatedSignatureType}function Gl(e){return e.members?Bl(e.members):void 0}function Bl(e){return e.get("__index")}function Ul(e,n,t,r){return{keyType:e,type:n,isReadonly:t,declaration:r}}function Vl(n){var t=Gl(n);return t?jl(t):e.emptyArray}function jl(n){if(n.declarations){for(var t=[],r=function(n){if(1===n.parameters.length){var r=n.parameters[0];r.type&&Eg(Lp(r.type),(function(r){Kl(r)&&!el(t,r)&&t.push(Ul(r,n.type?Lp(n.type):Ie,e.hasEffectiveModifier(n,64),n))}))}},a=0,i=n.declarations;a<i.length;a++){r(i[a])}return t}return e.emptyArray}function Kl(n){return!!(4108&n.flags)||Rd(n)||!!(2097152&n.flags)&&!Od(n)&&e.some(n.types,Kl)}function Hl(n){return e.mapDefined(e.filter(n.symbol&&n.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Wl(n){if(!n.constraint)if(n.target){var t=Ic(n.target);n.constraint=t?Yp(t,n.mapper):bn}else{var r=Hl(n);if(r){var a=Lp(r);1&a.flags&&!ao(a)&&(a=194===r.parent.parent.kind?ln:Pe),n.constraint=a}else n.constraint=function(n){var t,r;if(null===(t=n.symbol)||void 0===t?void 0:t.declarations)for(var a=0,i=n.symbol.declarations;a<i.length;a++){var o=i[a];if(189===o.parent.kind){var s=e.walkUpParenthesizedTypesAndGetParentAndChild(o.parent.parent),c=s[0],l=void 0===c?o.parent:c,u=s[1];if(177===u.kind){var d=u,p=eT(d);if(p){var f=d.typeArguments.indexOf(l);if(f<p.length){var m=Ic(p[f]);if(m){var _=Yp(m,Np(p,ZE(d,p)));_!==n&&(r=e.append(r,_))}}}}else if(163===u.kind&&u.dotDotDotToken||185===u.kind||196===u.kind&&u.dotDotDotToken)r=e.append(r,Pu(Pe));else if(198===u.kind)r=e.append(r,He);else if(162===u.kind&&194===u.parent.kind)r=e.append(r,ln);else if(194===u.kind&&u.type&&e.skipParentheses(u.type)===o.parent&&188===u.parent.kind&&u.parent.extendsType===u&&194===u.parent.checkType.kind&&u.parent.checkType.type){var g=u.parent.checkType,y=Lp(g.type);r=e.append(r,Yp(y,Op(Ts(ni(g.typeParameter)),g.typeParameter.constraint?Lp(g.typeParameter.constraint):ln)))}}}return r&&pd(r)}(n)||bn}return n.constraint===bn?void 0:n.constraint}function zl(n){var t=e.getDeclarationOfKind(n.symbol,162),r=e.isJSDocTemplateTag(t.parent)?e.getEffectiveContainerForJSDocTemplateTag(t.parent):t.parent;return r&&ni(r)}function Jl(e){var n="";if(e)for(var t=e.length,r=0;r<t;){for(var a=e[r].id,i=1;r+i<t&&e[r+i].id===a+i;)i++;n.length&&(n+=","),n+=a,i>1&&(n+=":"+i),r+=i}return n}function ql(e,n){return e?"@".concat(Y(e))+(n?":".concat(Jl(n)):""):""}function Xl(n,t){for(var r=0,a=0,i=n;a<i.length;a++){var o=i[a];o.flags&t||(r|=e.getObjectFlags(o))}return 917504&r}function Yl(e,n){var t=Jl(n),r=e.instantiations.get(t);return r||(r=fi(4,e.symbol),e.instantiations.set(t,r),r.objectFlags|=n?Xl(n,0):0,r.target=e,r.resolvedTypeArguments=n),r}function Ql(e){var n=ui(e.flags);return n.symbol=e.symbol,n.objectFlags=e.objectFlags,n.target=e.target,n.resolvedTypeArguments=e.resolvedTypeArguments,n}function Zl(e,n,t,r,a){if(!r){var i=op(r=ip(n));a=t?Ap(i,t):i}var o=fi(4,e.symbol);return o.target=e,o.node=n,o.mapper=t,o.aliasSymbol=r,o.aliasTypeArguments=a,o}function $l(n){var t,r;if(!n.resolvedTypeArguments){if(!Qi(n,6))return(null===(t=n.target.localTypeParameters)||void 0===t?void 0:t.map((function(){return Re})))||e.emptyArray;var a=n.node,i=a?177===a.kind?e.concatenate(n.target.outerTypeParameters,ZE(a,n.target.localTypeParameters)):182===a.kind?[Lp(a.elementType)]:e.map(a.elements,Lp):e.emptyArray;eo()?n.resolvedTypeArguments=n.mapper?Ap(i,n.mapper):i:(n.resolvedTypeArguments=(null===(r=n.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return Re})))||e.emptyArray,kr(n.node||o,n.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Mi(n.target.symbol)))}return n.resolvedTypeArguments}function eu(n){return e.length(n.target.typeParameters)}function nu(n,t){var r=Ss(ei(t)),a=r.localTypeParameters;if(a){var i=e.length(n.typeArguments),o=yl(a),s=e.isInJSFile(n);if(!(!M&&s)&&(i<o||i>a.length)){var c=s&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent);if(kr(n,o===a.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Fi(r,void 0,2),o,a.length),!s)return Re}return 177===n.kind&&Uu(n,e.length(n.typeArguments)!==a.length)?Zl(r,n,void 0):Yl(r,e.concatenate(r.outerTypeParameters,hl(gu(n),a,o,s)))}return fu(n,t)?r:Re}function tu(n,t,r,a){var i=Ss(n);if(i===Me&&z.has(n.escapedName)&&t&&1===t.length)return Ld(n,t[0]);var o=Wr(n),s=o.typeParameters,c=Jl(t)+ql(r,a),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=Qp(i,Np(s,hl(t,s,yl(s),e.isInJSFile(n.valueDeclaration))),r,a)),l}function ru(n){var t,r=null===(t=n.declarations)||void 0===t?void 0:t.find(e.isTypeAlias);return!(!r||!e.getContainingFunction(r))}function au(e){return e.parent?"".concat(au(e.parent),".").concat(e.escapedName):e.escapedName}function iu(e){var n=(160===e.kind?e.right:205===e.kind?e.name:e).escapedText;if(n){var t=160===e.kind?iu(e.left):205===e.kind?iu(e.expression):void 0,r=t?"".concat(au(t),".").concat(n):n,a=Ce.get(r);return a||(Ce.set(r,a=Pr(524288,n,1048576)),a.parent=t,a.declaredType=Oe),a}return Le}function ou(n,t,r){var a=function(n){switch(n.kind){case 177:return n.typeName;case 227:var t=n.expression;if(e.isEntityNameExpression(t))return t}}(n);if(!a)return Le;var i=Fa(a,t,r);return i&&i!==Le?i:r?Le:iu(a)}function su(n,t){if(t===Le)return Re;if(96&(t=function(n){var t=n.valueDeclaration;if(t&&e.isInJSFile(t)&&!(524288&n.flags)&&!e.getExpandoInitializer(t,!1)){var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(r){var a=ni(r);if(a)return sb(a,n)}}}(t)||t).flags)return nu(n,t);if(524288&t.flags)return function(n,t){if(1048576&e.getCheckFlags(t)){var r=gu(n),a=ql(t,r),i=Ae.get(a);return i||((i=pi(1,"error")).aliasSymbol=t,i.aliasTypeArguments=r,Ae.set(a,i)),i}var o=Ss(t),s=Wr(t).typeParameters;if(s){var c=e.length(n.typeArguments),l=yl(s);if(c<l||c>s.length)return kr(n,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Mi(t),l,s.length),Re;var u=ip(n),d=!u||!ru(t)&&ru(u)?void 0:u;return tu(t,gu(n),d,op(d))}return fu(n,t)?o:Re}(n,t);var r=xs(t);if(r)return fu(n,t)?_p(r):Re;if(111551&t.flags&&pu(n)){var a=function(e,n){var t=zr(e);if(!t.resolvedJSDocType){var r=Xo(n),a=r;if(n.valueDeclaration){var i=199===e.kind&&e.qualifier;r.symbol&&r.symbol!==n&&i&&(a=su(e,r.symbol))}t.resolvedJSDocType=a}return t.resolvedJSDocType}(n,t);return a||(ou(n,788968),Xo(t))}return Re}function cu(e,n){if(3&n.flags||n===e)return e;var t="".concat(Qu(e),">").concat(Qu(n)),r=Ee.get(t);if(r)return r;var a=ui(33554432);return a.baseType=e,a.substitute=n,Ee.set(t,a),a}function lu(e){return 183===e.kind&&1===e.elements.length}function uu(e,n,t){return lu(n)&&lu(t)?uu(e,n.elements[0],t.elements[0]):Jd(Lp(n))===e?Lp(t):void 0}function du(n,t){for(var r,a=!0;t&&!e.isStatement(t)&&318!==t.kind;){var i=t.parent;if(163===i.kind&&(a=!a),(a||8650752&n.flags)&&188===i.kind&&t===i.trueType){var o=uu(n,i.checkType,i.extendsType);o&&(r=e.append(r,o))}t=i}return r?cu(n,pd(e.append(r,n))):n}function pu(e){return!!(4194304&e.flags)&&(177===e.kind||199===e.kind)}function fu(n,t){return!n.typeArguments||(kr(n,e.Diagnostics.Type_0_is_not_generic,t?Mi(t):n.typeName?e.declarationNameToString(n.typeName):u),!1)}function mu(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return fu(n),He;case"Number":return fu(n),We;case"Boolean":return fu(n),Qe;case"Void":return fu(n),$e;case"Undefined":return fu(n),Ge;case"Null":return fu(n),je;case"Function":case"function":return fu(n),kn;case"array":return t&&t.length||M?void 0:Un;case"promise":return t&&t.length||M?void 0:Kb(Ie);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=Lp(t[0]),a=Lp(t[1]),i=r===He||r===We?[Ul(r,a,!1)]:e.emptyArray;return vi(void 0,T,e.emptyArray,e.emptyArray,i)}return Ie}return fu(n),M?void 0:Ie}}}function _u(n){var t=zr(n);if(!t.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return t.resolvedSymbol=Le,t.resolvedType=SE(n.parent.expression);var r=void 0,a=void 0,i=788968;pu(n)&&((a=mu(n))||((r=ou(n,i,!0))===Le?r=ou(n,900095):ou(n,i),a=su(n,r))),a||(a=su(n,r=ou(n,i))),t.resolvedSymbol=r,t.resolvedType=a}return t.resolvedType}function gu(n){return e.map(n.typeArguments,Lp)}function yu(n){var t=zr(n);if(!t.resolvedType){var r=e.isThisIdentifier(n.exprName)?py(n.exprName):VE(n.exprName);t.resolvedType=_p($m(r))}return t.resolvedType}function hu(n,t){function r(e){var n=e.declarations;if(n)for(var t=0,r=n;t<r.length;t++){var a=r[t];switch(a.kind){case 256:case 257:case 259:return a}}}if(!n)return t?hn:mn;var a=Ss(n);return 524288&a.flags?e.length(a.typeParameters)!==t?(kr(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?hn:mn):a:(kr(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?hn:mn)}function vu(n,t){return Tu(n,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function bu(n,t){return Tu(n,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function Eu(n,t,r){var a=Tu(n,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0);if(a&&(Ss(a),e.length(Wr(a).typeParameters)!==t))return void kr(a.declarations&&e.find(a.declarations,e.isTypeAliasDeclaration),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(a),t);return a}function Tu(e,n,t){return Qr(void 0,e,n,t,e,!1,!1,!1)}function Su(e,n,t){var r=bu(e,t);return r||t?hu(r,n):void 0}function xu(){return lt||(lt=Su("ImportMeta",0,!0)||mn)}function Lu(e){return dt||(dt=Su("ImportCallOptions",0,e))||mn}function Du(e){return Hn||(Hn=vu("Symbol",e))}function Cu(e){return zn||(zn=Su("Symbol",0,e))||mn}function Au(e){return qn||(qn=Su("Promise",1,e))||hn}function Iu(e){return Xn||(Xn=Su("PromiseLike",1,e))||hn}function ku(e){return Yn||(Yn=vu("Promise",e))}function Nu(e){return Zn||(Zn=Su("Iterable",1,e))||hn}function Ru(e,n){void 0===n&&(n=0);var t=Tu(e,788968,void 0);return t&&hu(t,n)}function Ou(e){return mt||(mt=Eu("Awaited",1,e)||(e?Le:void 0)),mt===Le?void 0:mt}function wu(e,n){return e!==hn?Yl(e,n):mn}function Mu(e){return wu(Jn||(Jn=Su("TypedPropertyDescriptor",1,!0)||hn),[e])}function Pu(e,n){return wu(n?wn:On,[e])}function Fu(e){switch(e.kind){case 184:return 2;case 185:return Gu(e);case 196:return e.questionToken?2:e.dotDotDotToken?Gu(e):1;default:return 1}}function Gu(e){return xp(e.type)?4:8}function Bu(n){var t=function(n){return e.isTypeOperatorNode(n)&&144===n.operator}(n.parent);return xp(n)?t?wn:On:Hu(e.map(n.elements,Fu),t,e.some(n.elements,(function(e){return 196!==e.kind}))?void 0:n.elements)}function Uu(n,t){return!!ip(n)||Vu(n)&&(182===n.kind?ju(n.elementType):183===n.kind?e.some(n.elements,ju):t||e.some(n.typeArguments,ju))}function Vu(e){var n=e.parent;switch(n.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return Vu(n);case 258:return!0}return!1}function ju(n){switch(n.kind){case 177:return pu(n)||!!(524288&ou(n,788968).flags);case 180:return!0;case 192:return 153!==n.operator&&ju(n.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return ju(n.type);case 185:return 182!==n.type.kind||ju(n.type.elementType);case 186:case 187:return e.some(n.types,ju);case 193:return ju(n.objectType)||ju(n.indexType);case 188:return ju(n.checkType)||ju(n.extendsType)||ju(n.trueType)||ju(n.falseType)}return!1}function Ku(n,t,r,a){void 0===r&&(r=!1);var i=Hu(t||e.map(n,(function(e){return 1})),r,a);return i===hn?mn:n.length?Wu(i,n):i}function Hu(n,t,r){if(1===n.length&&4&n[0])return t?wn:On;var a=e.map(n,(function(e){return 1&e?"#":2&e?"?":4&e?".":"*"})).join()+(t?"R":"")+(r&&r.length?","+e.map(r,X).join(","):""),i=de.get(a);return i||de.set(a,i=function(n,t,r){var a,i=n.length,o=e.countWhere(n,(function(e){return!!(9&e)})),s=[],c=0;if(i){a=new Array(i);for(var l=0;l<i;l++){var u=a[l]=mi(),d=n[l];if(!(12&(c|=d))){var p=Pr(4|(2&d?16777216:0),""+l,t?8:0);p.tupleLabelDeclaration=null===r||void 0===r?void 0:r[l],p.type=u,s.push(p)}}}var f=s.length,m=Pr(4,"length");if(12&c)m.type=We;else{var _=[];for(l=o;l<=i;l++)_.push(hp(l));m.type=ad(_)}s.push(m);var g=fi(12);return g.typeParameters=a,g.outerTypeParameters=void 0,g.localTypeParameters=a,g.instantiations=new e.Map,g.instantiations.set(Jl(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=mi(),g.thisType.isThisType=!0,g.thisType.constraint=g,g.declaredProperties=s,g.declaredCallSignatures=e.emptyArray,g.declaredConstructSignatures=e.emptyArray,g.declaredIndexInfos=e.emptyArray,g.elementFlags=n,g.minLength=o,g.fixedLength=f,g.hasRestElement=!!(12&c),g.combinedFlags=c,g.readonly=t,g.labeledElementDeclarations=r,g}(n,t,r)),i}function Wu(e,n){return 8&e.objectFlags?zu(e,n):Yl(e,n)}function zu(n,t){var r,a,i;if(!(14&n.combinedFlags))return Yl(n,t);if(8&n.combinedFlags){var s=e.findIndex(t,(function(e,t){return!!(8&n.elementFlags[t]&&1179648&e.flags)}));if(s>=0)return md(e.map(t,(function(e,t){return 8&n.elementFlags[t]?e:Pe})))?Cg(t[s],(function(r){return zu(n,e.replaceElement(t,s,r))})):Re}for(var c=[],l=[],u=[],d=-1,p=-1,f=-1,m=function(s){var l=t[s],u=n.elementFlags[s];if(8&u)if(58982400&l.flags||Tc(l))h(l,8,null===(r=n.labeledElementDeclarations)||void 0===r?void 0:r[s]);else if(Lm(l)){var d=$l(l);if(d.length+c.length>=1e4)return kr(o,e.isPartOfTypeNode(o)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Re};e.forEach(d,(function(e,n){var t;return h(e,l.target.elementFlags[n],null===(t=l.target.labeledElementDeclarations)||void 0===t?void 0:t[n])}))}else h(um(l)&&ol(l,We)||Re,4,null===(a=n.labeledElementDeclarations)||void 0===a?void 0:a[s]);else h(l,u,null===(i=n.labeledElementDeclarations)||void 0===i?void 0:i[s])},_=0;_<t.length;_++){var g=m(_);if("object"===typeof g)return g.value}for(_=0;_<d;_++)2&l[_]&&(l[_]=1);p>=0&&p<f&&(c[p]=ad(e.sameMap(c.slice(p,f+1),(function(e,n){return 8&l[p+n]?jd(e,We):e}))),c.splice(p+1,f-p),l.splice(p+1,f-p),null===u||void 0===u||u.splice(p+1,f-p));var y=Hu(l,n.readonly,u);return y===hn?mn:l.length?Yl(y,c):y;function h(e,n,t){1&n&&(d=l.length),4&n&&p<0&&(p=l.length),6&n&&(f=l.length),c.push(e),l.push(n),u&&t?u.push(t):u=void 0}}function Ju(n,t,r){void 0===r&&(r=0);var a=n.target,i=eu(n)-r;return t>a.fixedLength?function(e){var n=Am(e);return n&&Pu(n)}(n)||Ku(e.emptyArray):Ku($l(n).slice(t,i),a.elementFlags.slice(t,i),!1,a.labeledElementDeclarations&&a.labeledElementDeclarations.slice(t,i))}function qu(n){return ad(e.append(e.arrayOf(n.target.fixedLength,(function(e){return yp(""+e)})),Ed(n.target.readonly?wn:On)))}function Xu(n,t){var r=e.findIndex(n.elementFlags,(function(e){return!(e&t)}));return r>=0?r:n.elementFlags.length}function Yu(n,t){return n.elementFlags.length-e.findLastIndex(n.elementFlags,(function(e){return!(e&t)}))-1}function Qu(e){return e.id}function Zu(n,t){return e.binarySearch(n,t,Qu,e.compareValues)>=0}function $u(n,t){var r=e.binarySearch(n,t,Qu,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function ed(n,t,r){var a=r.flags;if(1048576&a)return nd(n,t|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(r)?1048576:0),r.types);if(!(131072&a))if(t|=205258751&a,465829888&a&&(t|=33554432),r===Ne&&(t|=8388608),!I&&98304&a)131072&e.getObjectFlags(r)||(t|=4194304);else{var i=n.length,o=i&&r.id>n[i-1].id?~i:e.binarySearch(n,r,Qu,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function nd(e,n,t){for(var r=0,a=t;r<a.length;r++){n=ed(e,n,a[r])}return n}function td(n,t){for(var r=0,a=t;r<a.length;r++){var i=a[r];if(1048576&i.flags){var o=i.origin;i.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(n,i):o&&1048576&o.flags&&td(n,o.types)}}}function rd(e,n){var t=di(e);return t.types=n,t}function ad(n,t,r,a,i){if(void 0===t&&(t=1),0===n.length)return en;if(1===n.length)return n[0];var s=[],c=nd(s,0,n);if(0!==t){if(3&c)return 1&c?8388608&c?Ne:Ie:65536&c||Zu(s,Pe)?Pe:Fe;if(U&&32768&c){var l=e.binarySearch(s,Ve,Qu,e.compareValues);l>=0&&Zu(s,Ge)&&e.orderedRemoveItemAt(s,l)}if((402664320&c||16384&c&&32768&c)&&function(n,t,r){for(var a=n.length;a>0;){var i=n[--a],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||r&&32768&o&&16384&t||gp(i)&&Zu(n,i.regularType))&&e.orderedRemoveItemAt(n,a)}}(s,c,!!(2&t)),128&c&&134217728&c&&function(n){var t=e.filter(n,Rd);if(t.length)for(var r=n.length,a=function(){r--;var a=n[r];128&a.flags&&e.some(t,(function(e){return D_(a,e)}))&&e.orderedRemoveItemAt(n,r)};r>0;)a()}(s),2===t&&(s=function(n,t){var r=Jl(n),a=Te.get(r);if(a)return a;for(var i=t&&e.some(n,(function(e){return!!(524288&e.flags)&&!Tc(e)&&Af(Sc(e))})),s=n.length,c=s,l=0;c>0;){var u=n[--c];if(i||469499904&u.flags)for(var d=61603840&u.flags?e.find(Cc(u),(function(e){return ym(Xo(e))})):void 0,p=d&&_p(Xo(d)),f=0,m=n;f<m.length;f++){var _=m[f];if(u!==_){if(1e5===l&&l/(s-c)*s>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map((function(e){return e.id}))}),void kr(o,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,d&&61603840&_.flags){var g=to(_,d.escapedName);if(g&&ym(g)&&_p(g)!==p)continue}if(wf(u,_,hr)&&(!(1&e.getObjectFlags(Zo(u)))||!(1&e.getObjectFlags(Zo(_)))||pf(u,_))){e.orderedRemoveItemAt(n,c);break}}}}return Te.set(r,n),n}(s,!!(524288&c)),!s))return Re;if(0===s.length)return 65536&c?4194304&c?je:Ke:32768&c?4194304&c?Ge:Be:en}if(!i&&1048576&c){var u=[];td(u,n);for(var d=[],p=function(n){e.some(u,(function(e){return Zu(e.types,n)}))||d.push(n)},f=0,m=s;f<m.length;f++){p(m[f])}if(!r&&1===u.length&&0===d.length)return u[0];if(e.reduceLeft(u,(function(e,n){return e+n.types.length}),0)+d.length===s.length){for(var _=0,g=u;_<g.length;_++){$u(d,g[_])}i=rd(1048576,d)}}return od(s,(36323363&c?0:65536)|(2097152&c?33554432:0),r,a,i)}function id(e,n){return e.kind===n.kind&&e.parameterIndex===n.parameterIndex}function od(e,n,t,r,a){if(0===e.length)return en;if(1===e.length)return e[0];var i=(a?1048576&a.flags?"|".concat(Jl(a.types)):2097152&a.flags?"&".concat(Jl(a.types)):"#".concat(a.type.id,"|").concat(Jl(e)):Jl(e))+ql(t,r),o=pe.get(i);return o||((o=ui(1048576)).objectFlags=n|Xl(e,98304),o.types=e,o.origin=a,o.aliasSymbol=t,o.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),pe.set(i,o)),o}function sd(e,n,t){var r=t.flags;return 2097152&r?cd(e,n,t.types):(kf(t)?16777216&n||(n|=16777216,e.set(t.id.toString(),t)):(3&r?t===Ne&&(n|=8388608):!I&&98304&r||(U&&t===Ve&&(n|=262144,t=Ge),e.has(t.id.toString())||(109440&t.flags&&109440&n&&(n|=67108864),e.set(t.id.toString(),t))),n|=205258751&r),n)}function cd(e,n,t){for(var r=0,a=t;r<a.length;r++){n=sd(e,n,_p(a[r]))}return n}function ld(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];if(!Zu(a.types,n)){var i=128&n.flags?He:256&n.flags?We:2048&n.flags?ze:8192&n.flags?Ze:void 0;if(!i||!Zu(a.types,i))return!1}}return!0}function ud(n,t){return e.every(n,(function(n){return!!(1048576&n.flags)&&e.some(n.types,(function(e){return!!(e.flags&t)}))}))}function dd(e,n){for(var t=0;t<e.length;t++)e[t]=xg(e[t],(function(e){return!(e.flags&n)}))}function pd(n,t,r){var a=new e.Map,i=cd(a,0,n),o=e.arrayFrom(a.values());if(131072&i)return e.contains(o,nn)?nn:en;if(I&&98304&i&&84410368&i||67108864&i&&402783228&i||402653316&i&&67238776&i||296&i&&469891796&i||2112&i&&469889980&i||12288&i&&469879804&i||49152&i&&469842940&i)return en;if(134217728&i&&128&i&&function(n){for(var t=n.length,r=e.filter(n,(function(e){return!!(128&e.flags)}));t>0;){var a=n[--t];if(134217728&a.flags)for(var i=0,o=r;i<o.length;i++){if(uf(o[i],a)){e.orderedRemoveItemAt(n,t);break}if(Rd(a))return!0}}return!1}(o))return en;if(1&i)return 8388608&i?Ne:Ie;if(!I&&98304&i)return 32768&i?Ge:je;if((4&i&&128&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i)&&function(n,t){for(var r=n.length;r>0;){var a=n[--r];(4&a.flags&&128&t||8&a.flags&&256&t||64&a.flags&&2048&t||4096&a.flags&&8192&t)&&e.orderedRemoveItemAt(n,r)}}(o,i),16777216&i&&524288&i&&e.orderedRemoveItemAt(o,e.findIndex(o,kf)),262144&i&&(o[o.indexOf(Ge)]=Ve),0===o.length)return Pe;if(1===o.length)return o[0];var s=Jl(o)+ql(t,r),c=fe.get(s);if(!c){if(1048576&i)if(function(n){var t,r=e.findIndex(n,(function(n){return!!(65536&e.getObjectFlags(n))}));if(r<0)return!1;for(var a=r+1;a<n.length;){var i=n[a];65536&e.getObjectFlags(i)?((t||(t=[n[r]])).push(i),e.orderedRemoveItemAt(n,a)):a++}if(!t)return!1;for(var o=[],s=[],c=0,l=t;c<l.length;c++)for(var u=0,d=l[c].types;u<d.length;u++)$u(o,i=d[u])&&ld(t,i)&&$u(s,i);return n[r]=od(s,65536),!0}(o))c=pd(o,t,r);else if(ud(o,32768)){var l=U&&e.some(o,(function(e){return Zu(e.types,Ve)}))?Ve:Ge;dd(o,32768),c=ad([pd(o),l],1,t,r)}else if(ud(o,65536))dd(o,65536),c=ad([pd(o),je],1,t,r);else{if(!md(o))return Re;var u=function(e){for(var n=fd(e),t=[],r=0;r<n;r++){for(var a=e.slice(),i=r,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;a[o]=s[i%c],i=Math.floor(i/c)}var l=pd(a);131072&l.flags||t.push(l)}return t}(o);c=ad(u,1,t,r,e.some(u,(function(e){return!!(2097152&e.flags)}))?rd(2097152,o):void 0)}else c=function(e,n,t){var r=ui(2097152);return r.objectFlags=Xl(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,t,r);fe.set(s,c)}return c}function fd(n){return e.reduceLeft(n,(function(e,n){return 1048576&n.flags?e*n.types.length:131072&n.flags?0:e}),1)}function md(n){var t=fd(n);return!(t>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map((function(e){return e.id})),size:t}),kr(o,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function _d(e,n){var t=ui(4194304);return t.type=e,t.stringsOnly=n,t}function gd(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=_d(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=_d(e,!1))}function yd(n){return e.isPrivateIdentifier(n)?en:e.isIdentifier(n)?yp(e.unescapeLeadingUnderscores(n.escapedText)):_p(e.isComputedPropertyName(n)?Zy(n):VE(n))}function hd(n,t,r){if(r||!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var a=Wr(js(n)).nameType;if(!a){var i=e.getNameOfDeclaration(n.valueDeclaration);a="default"===n.escapedName?yp("default"):i&&yd(i)||(e.isKnownSymbol(n)?void 0:yp(e.symbolName(n)))}if(a&&a.flags&t)return a}return en}function vd(n,t){return!!(n.flags&t||2097152&n.flags&&e.some(n.types,(function(e){return vd(e,t)})))}function bd(n,t,r){var a=r&&(7&e.getObjectFlags(n)||n.aliasSymbol)?function(e){var n=di(4194304);return n.type=e,n}(n):void 0,i=e.map(Cc(n),(function(e){return hd(e,t)})),o=e.map(al(n),(function(e){return e!==At&&vd(e.keyType,t)?e.keyType===He&&8&t?sn:e.keyType:en}));return ad(e.concatenate(i,o),1,void 0,void 0,a)}function Ed(n,t,r){return void 0===t&&(t=G),1048576&(n=zc(n)).flags?pd(e.map(n.types,(function(e){return Ed(e,t,r)}))):2097152&n.flags?ad(e.map(n.types,(function(e){return Ed(e,t,r)}))):58982400&n.flags||Dm(n)||Tc(n)&&!function(n){var t=pc(n);return function n(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===t:137363456&r.flags?e.every(r.types,n):8388608&r.flags?n(r.objectType)&&n(r.indexType):33554432&r.flags?n(r.substitute):!!(268435456&r.flags)&&n(r.type))}(mc(n)||t)}(n)?gd(n,t):32&e.getObjectFlags(n)?function(e,n,t){var r=pc(e),a=fc(e),i=mc(e.target||e);if(!i&&!t)return a;var o=[];if(yc(e)){if(Md(a))return gd(e,n);uc(Vc(hc(e)),8576,n,c)}else Eg(cc(a),c);Md(a)&&Eg(a,c);var s=t?xg(ad(o),(function(e){return!(5&e.flags)})):ad(o);return 1048576&s.flags&&1048576&a.flags&&Jl(s.types)===Jl(a.types)?a:s;function c(n){var t=i?Yp(i,Bp(e.mapper,r,n)):n;o.push(t===He?sn:t)}}(n,t,r):n===Ne?Ne:2&n.flags?en:131073&n.flags?ln:bd(n,(r?128:402653316)|(t?0:12584),t===G&&!r)}function Td(e){if(G)return e;var n=(pt||(pt=Eu("Extract",2,!0)||Le),pt===Le?void 0:pt);return n?tu(n,[e,He]):He}function Sd(n,t){var r=e.findIndex(t,(function(e){return!!(1179648&e.flags)}));if(r>=0)return md(t)?Cg(t[r],(function(a){return Sd(n,e.replaceElement(t,r,a))})):Re;if(e.contains(t,Ne))return Ne;var a=[],i=[],o=n[0];if(!function e(n,t){for(var r=0;r<t.length;r++){var s=t[r];if(101248&s.flags)o+=xd(s)||"",o+=n[r+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=n[r+1]}else{if(!Md(s)&&!Nd(s))return!1;a.push(s),i.push(o),o=n[r+1]}}return!0}(n,t))return He;if(0===a.length)return yp(o);if(i.push(o),e.every(i,(function(e){return""===e}))&&e.every(a,(function(e){return!!(4&e.flags)})))return He;var s="".concat(Jl(a),"|").concat(e.map(i,(function(e){return e.length})).join(","),"|").concat(i.join("")),c=ve.get(s);return c||ve.set(s,c=function(e,n){var t=ui(134217728);return t.texts=e,t.types=n,t}(i,a)),c}function xd(n){return 128&n.flags?n.value:256&n.flags?""+n.value:2048&n.flags?e.pseudoBigIntToString(n.value):98816&n.flags?n.intrinsicName:void 0}function Ld(e,n){return 1179648&n.flags?Cg(n,(function(n){return Ld(e,n)})):Md(n)?function(e,n){var t="".concat(Y(e),",").concat(Qu(n)),r=be.get(t);r||be.set(t,r=function(e,n){var t=ui(268435456);return t.symbol=e,t.type=n,t}(e,n));return r}(e,n):128&n.flags?yp(function(e,n){switch(z.get(e.escapedName)){case 0:return n.toUpperCase();case 1:return n.toLowerCase();case 2:return n.charAt(0).toUpperCase()+n.slice(1);case 3:return n.charAt(0).toLowerCase()+n.slice(1)}return n}(e,n.value)):n}function Dd(n){if(M)return!1;if(8192&e.getObjectFlags(n))return!0;if(1048576&n.flags)return e.every(n.types,Dd);if(2097152&n.flags)return e.some(n.types,Dd);if(465829888&n.flags){var t=Fc(n);return t!==n&&Dd(t)}return!1}function Cd(n,t){return Os(n)?Gs(n):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function Ad(n,t){if(8208&t.flags){var r=e.findAncestor(n.parent,(function(n){return!e.isAccessExpression(n)}))||n.parent;return e.isCallLikeExpression(r)?e.isCallOrNewExpression(r)&&e.isIdentifier(n)&&$_(r,n):e.every(t.declarations,(function(n){return!e.isFunctionLike(n)||!!(134217728&e.getCombinedNodeFlags(n))}))}return!0}function Id(n,t,r,a,i,o){var s,c=i&&206===i.kind?i:void 0,l=i&&e.isPrivateIdentifier(i)?void 0:Cd(r,i);if(void 0!==l){if(256&o)return Iy(t,l)||Ie;var u=Qc(t,l);if(u){if(64&o&&i&&u.declarations&&134217728&Ch(u)&&Ad(i,u))Mr(null!==(s=null===c||void 0===c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(i)?i.indexType:i,u.declarations,l);if(c){if(cv(u,c,lv(c.expression,t.symbol)),aE(c,u,e.getAssignmentTargetKind(c)))return void kr(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Mi(u));if(8&o&&(zr(i).resolvedSymbol=u),Jh(c,u))return ke}var d=Xo(u);return c&&1!==e.getAssignmentTargetKind(c)?Yg(c,d):d}if(Sg(t,Lm)&&Qy(l)&&+l>=0){if(i&&Sg(t,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var p=kd(i);Lm(t)?kr(p,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Fi(t),eu(t),e.unescapeLeadingUnderscores(l)):kr(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Fi(t))}return b(il(t,We)),Cg(t,(function(e){var n=Am(e)||Ge;return 1&o?ad([n,Ge]):n}))}}if(!(98304&r.flags)&&lE(r,402665900)){if(131073&t.flags)return t;var f=cl(t,r)||il(t,He);if(f)return 2&o&&f.keyType!==We?void(c&&kr(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Fi(r),Fi(n))):i&&f.keyType===He&&!lE(r,12)?(kr(p=kd(i),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Fi(r)),1&o?ad([f.type,Ge]):f.type):(b(f),1&o?ad([f.type,Ge]):f.type);if(131072&r.flags)return en;if(Dd(t))return Ie;if(c&&!dE(t)){if(R_(t)){if(M&&384&r.flags)return fr.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Fi(t))),Ge;if(12&r.flags){var m=e.map(t.properties,(function(e){return Xo(e)}));return ad(e.append(m,Ge))}}if(t.symbol===ie&&void 0!==l&&ie.exports.has(l)&&418&ie.exports.get(l).flags)kr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Fi(t));else if(M&&!x.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&ev(l,t)){var _=Fi(t);kr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,_,_+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(ol(t,We))kr(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==l&&(g=av(l,t)))void 0!==g&&kr(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,Fi(t),g);else{var y=function(n,t,r){function a(e){var t=Lc(n,e);if(t){var a=Lv(Xo(t));return!!a&&wb(a)>=1&&df(r,kb(a,0))}return!1}var i=e.isAssignmentTarget(t)?"set":"get";if(!a(i))return;var o=e.tryGetPropertyAccessOrIdentifierToString(t.expression);void 0===o?o=i:o+="."+i;return o}(t,c,r);if(void 0!==y)kr(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Fi(t),y);else{var h=void 0;if(1024&r.flags)h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Fi(r)+"]",Fi(t));else if(8192&r.flags){var v=Pa(r.symbol,c);h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",Fi(t))}else 128&r.flags||256&r.flags?h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Fi(t)):12&r.flags&&(h=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Fi(r),Fi(t)));h=e.chainDiagnosticMessages(h,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Fi(a),Fi(t)),fr.add(e.createDiagnosticForNodeFromMessageChain(c,h))}}}return}}if(Dd(t))return Ie;if(i){p=kd(i);384&r.flags?kr(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Fi(t)):12&r.flags?kr(p,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Fi(t),Fi(r)):kr(p,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Fi(r))}return ro(r)?r:void 0;function b(n){n&&n.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&kr(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Fi(t))}}function kd(e){return 206===e.kind?e.argumentExpression:193===e.kind?e.indexType:161===e.kind?e.expression:e}function Nd(e){return!!(77&e.flags)}function Rd(n){return!!(134217728&n.flags)&&e.every(n.types,Nd)}function Od(e){return!!Pd(e)}function wd(e){return!!(8388608&Pd(e))}function Md(e){return!!(16777216&Pd(e))}function Pd(n){return 3145728&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|e.reduceLeft(n.types,(function(e,n){return e|Pd(n)}),0)),25165824&n.objectFlags):33554432&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|Pd(n.substitute)|Pd(n.baseType)),25165824&n.objectFlags):(58982400&n.flags||Tc(n)||Dm(n)?8388608:0)|(465829888&n.flags&&!Rd(n)?16777216:0)}function Fd(e){return!!(262144&e.flags&&e.isThisType)}function Gd(n,t){return 8388608&n.flags?function(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===En?n:n[r];n[r]=En;var a=Gd(n.objectType,t),i=Gd(n.indexType,t),o=function(n,t,r){if(1048576&t.flags){var a=e.map(t.types,(function(e){return Gd(jd(n,e),r)}));return r?pd(a):ad(a)}}(a,i,t);if(o)return n[r]=o;if(!(465829888&i.flags)){var s=Bd(a,i,t);if(s)return n[r]=s}if(Dm(a)&&296&i.flags){var c=Im(a,8&i.flags?0:a.target.fixedLength,0,t);if(c)return n[r]=c}if(Tc(a))return n[r]=Cg(Vd(a,n.indexType),(function(e){return Gd(e,t)}));return n[r]=n}(n,t):16777216&n.flags?function(e,n){var t=e.checkType,r=e.extendsType,a=Zd(e),i=$d(e);if(131072&i.flags&&Jd(a)===Jd(t)){if(1&t.flags||df($p(t),$p(r)))return Gd(a,n);if(Ud(t,r))return en}else if(131072&a.flags&&Jd(i)===Jd(t)){if(!(1&t.flags)&&df($p(t),$p(r)))return en;if(1&t.flags||Ud(t,r))return Gd(i,n)}return e}(n,t):n}function Bd(n,t,r){if(3145728&n.flags){var a=e.map(n.types,(function(e){return Gd(jd(e,t),r)}));return 2097152&n.flags||r?pd(a):ad(a)}}function Ud(e,n){return!!(131072&ad([nc(e,n),en]).flags)}function Vd(e,n){var t=Np([pc(e)],[n]),r=Fp(e.mapper,t);return Yp(_c(e),r)}function jd(e,n,t,r,a,i){return void 0===t&&(t=0),Hd(e,n,t,r,a,i)||(r?Re:Pe)}function Kd(e,n){return Sg(e,(function(e){if(384&e.flags){var t=Gs(e);if(Qy(t)){var r=+t;return r>=0&&r<n}}return!1}))}function Hd(e,n,t,r,a,i){if(void 0===t&&(t=0),e===Ne||n===Ne)return Ne;if(!Nf(e)||98304&n.flags||!lE(n,12)||(n=He),x.noUncheckedIndexedAccess&&32&t&&(t|=1),Md(n)||(r&&193!==r.kind?Dm(e)&&!Kd(n,e.target.fixedLength):wd(e)&&(!Lm(e)||!Kd(n,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&t,s=e.id+","+n.id+","+o+ql(a,i),c=he.get(s);return c||he.set(s,c=function(e,n,t,r,a){var i=ui(8388608);return i.objectType=e,i.indexType=n,i.accessFlags=t,i.aliasSymbol=r,i.aliasTypeArguments=a,i}(e,n,o,a,i)),c}var l=jc(e);if(1048576&n.flags&&!(16&n.flags)){for(var u=[],d=!1,p=0,f=n.types;p<f.length;p++){var m=Id(e,l,f[p],n,r,t|(d?128:0));if(m)u.push(m);else{if(!r)return;d=!0}}if(d)return;return 4&t?pd(u,a,i):ad(u,1,a,i)}return Id(e,l,n,n,r,72|t)}function Wd(e){var n=zr(e);if(!n.resolvedType){var t=Lp(e.objectType),r=Lp(e.indexType),a=ip(e),i=jd(t,r,0,e,a,op(a));n.resolvedType=8388608&i.flags&&i.objectType===t&&i.indexType===r?du(i,e):i}return n.resolvedType}function zd(e){var n=zr(e);if(!n.resolvedType){var t=fi(32,e.symbol);t.declaration=e,t.aliasSymbol=ip(e),t.aliasTypeArguments=op(t.aliasSymbol),n.resolvedType=t,fc(t)}return n.resolvedType}function Jd(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?jd(Jd(e.objectType),Jd(e.indexType)):e}function qd(e){return!e.isDistributive&&Xd(e.node.checkType)&&Xd(e.node.extendsType)}function Xd(n){return e.isTupleTypeNode(n)&&1===e.length(n.elements)&&!e.isOptionalTypeNode(n.elements[0])&&!e.isRestTypeNode(n.elements[0])}function Yd(e,n){return qd(e)&&Lm(n)?$l(n)[0]:n}function Qd(n,t,r,a){for(var i,s,c=0;;){if(1e3===c){kr(o,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),i=Re;break}var l=qd(n),u=Yp(Yd(n,Jd(n.checkType)),t),d=Od(u),p=Yp(Yd(n,n.extendsType),t);if(u===Ne||p===Ne)return Ne;var f=void 0;if(n.inferTypeParameters){var m=o_(n.inferTypeParameters,void 0,0);d||I_(m.inferences,u,p,1536),f=t?Fp(m.mapper,t):m.mapper}var _=f?Yp(Yd(n,n.extendsType),f):p;if(!d&&!Od(_)){if(!(3&_.flags)&&(1&u.flags&&!l||!df(Zp(u),Zp(_)))){1&u.flags&&!l&&(s||(s=[])).push(Yp(Lp(n.node.trueType),f||t));var g=Lp(n.node.falseType);if(16777216&g.flags){var y=g.root;if(y.node.parent===n.node&&(!y.isDistributive||y.checkType===n.checkType)){n=y;continue}if(b(g,t))continue}i=Yp(g,t);break}if(3&_.flags||df($p(u),$p(_))){var h=Lp(n.node.trueType),v=f||t;if(b(h,v))continue;i=Yp(h,v);break}}(i=ui(16777216)).root=n,i.checkType=Yp(n.checkType,t),i.extendsType=Yp(n.extendsType,t),i.mapper=t,i.combinedMapper=f,i.aliasSymbol=r||n.aliasSymbol,i.aliasTypeArguments=r?a:Ap(n.aliasTypeArguments,t);break}return s?ad(e.append(s,i)):i;function b(i,o){if(16777216&i.flags&&o){var s=i.root;if(s.outerTypeParameters){var l=Fp(i.mapper,o),u=e.map(s.outerTypeParameters,(function(e){return Rp(e,l)})),d=Np(s.outerTypeParameters,u),p=s.isDistributive?Rp(s.checkType,d):void 0;if(!p||p===s.checkType||!(1179648&p.flags))return n=s,t=d,r=void 0,a=void 0,s.aliasSymbol&&c++,!0}}return!1}}function Zd(e){return e.resolvedTrueType||(e.resolvedTrueType=Yp(Lp(e.root.node.trueType),e.mapper))}function $d(e){return e.resolvedFalseType||(e.resolvedFalseType=Yp(Lp(e.root.node.falseType),e.mapper))}function ep(n){var t;return n.locals&&n.locals.forEach((function(n){262144&n.flags&&(t=e.append(t,Ss(n)))})),t}function np(n){return e.isIdentifier(n)?[n]:e.append(np(n.left),n.right)}function tp(n){var t=zr(n);if(!t.resolvedType){if(n.isTypeOf&&n.typeArguments)return kr(n,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=Le,t.resolvedType=Re;if(!e.isLiteralImportTypeNode(n))return kr(n.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=Le,t.resolvedType=Re;var r=n.isTypeOf?111551:4194304&n.flags?900095:788968,a=Ba(n,n.argument.literal);if(!a)return t.resolvedSymbol=Le,t.resolvedType=Re;var i=Ka(a,!1);if(e.nodeIsMissing(n.qualifier)){if(i.flags&r)t.resolvedType=rp(n,t,i,r);else kr(n,111551===r?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,n.argument.literal.text),t.resolvedSymbol=Le,t.resolvedType=Re}else{for(var o=np(n.qualifier),s=i,c=void 0;c=o.shift();){var l=o.length?1920:r,u=ei(Aa(s)),d=n.isTypeOf?Qc(Xo(u),c.escapedText):qr(Ya(u),c.escapedText,l);if(!d)return kr(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,Pa(s),e.declarationNameToString(c)),t.resolvedType=Re;zr(c).resolvedSymbol=d,zr(c.parent).resolvedSymbol=d,s=d}t.resolvedType=rp(n,t,s,r)}}return t.resolvedType}function rp(e,n,t,r){var a=Aa(t);return n.resolvedSymbol=a,111551===r?Xo(t):su(e,a)}function ap(n){var t=zr(n);if(!t.resolvedType){var r=ip(n);if(0!==Vs(n.symbol).size||r){var a=fi(16,n.symbol);a.aliasSymbol=r,a.aliasTypeArguments=op(r),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(a=Pu(a)),t.resolvedType=a}else t.resolvedType=yn}return t.resolvedType}function ip(n){for(var t=n.parent;e.isParenthesizedTypeNode(t)||e.isJSDocTypeExpression(t)||e.isTypeOperatorNode(t)&&144===t.operator;)t=t.parent;return e.isTypeAlias(t)?ni(t):void 0}function op(e){return e?rs(e):void 0}function sp(e){return!!(524288&e.flags)&&!Tc(e)}function cp(e){return If(e)||!!(474058748&e.flags)}function lp(n,t){if(!(1048576&n.flags))return n;if(e.every(n.types,cp))return e.find(n.types,If)||mn;var r=e.find(n.types,(function(e){return!cp(e)}));return r?e.find(n.types,(function(e){return e!==r&&!cp(e)}))?n:function(n){for(var r=e.createSymbolTable(),a=0,i=Cc(n);a<i.length;a++){var o=i[a];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(dp(o)){var s=65536&o.flags&&!(32768&o.flags),c=Pr(16777220,o.escapedName,lc(o)|(t?8:0));c.type=s?Ge:yo(Xo(o),!0),c.declarations=o.declarations,c.nameType=Wr(o).nameType,c.syntheticOrigin=o,r.set(o.escapedName,c)}}var l=vi(n.symbol,r,e.emptyArray,e.emptyArray,al(n));return l.objectFlags|=262272,l}(r):n}function up(n,t,r,a,i){if(1&n.flags||1&t.flags)return Ie;if(2&n.flags||2&t.flags)return Pe;if(131072&n.flags)return t;if(131072&t.flags)return n;if(1048576&(n=lp(n,i)).flags)return md([n,t])?Cg(n,(function(e){return up(e,t,r,a,i)})):Re;if(1048576&(t=lp(t,i)).flags)return md([n,t])?Cg(t,(function(e){return up(n,e,r,a,i)})):Re;if(473960444&t.flags)return n;if(wd(n)||wd(t)){if(If(n))return t;if(2097152&n.flags){var o=n.types,s=o[o.length-1];if(sp(s)&&sp(t))return pd(e.concatenate(o.slice(0,o.length-1),[up(s,t,r,a,i)]))}return pd([n,t])}for(var c=e.createSymbolTable(),l=new e.Set,u=n===mn?al(t):ec([n,t]),d=0,p=Cc(t);d<p.length;d++){var f=p[d];24&e.getDeclarationModifierFlagsFromSymbol(f)?l.add(f.escapedName):dp(f)&&c.set(f.escapedName,pp(f,i))}for(var m=0,_=Cc(n);m<_.length;m++){var g=_[m];if(!l.has(g.escapedName)&&dp(g))if(c.has(g.escapedName)){var y=Xo(f=c.get(g.escapedName));if(16777216&f.flags){var h=e.concatenate(g.declarations,f.declarations),v=Pr(4|16777216&g.flags,g.escapedName);v.type=ad([Xo(g),Hm(y)]),v.leftSpread=g,v.rightSpread=f,v.declarations=h,v.nameType=Wr(g).nameType,c.set(g.escapedName,v)}}else c.set(g.escapedName,pp(g,i))}var b=vi(r,c,e.emptyArray,e.emptyArray,e.sameMap(u,(function(e){return function(e,n){return e.isReadonly!==n?Ul(e.keyType,e.type,n,e.declaration):e}(e,i)})));return b.objectFlags|=4456576|a,b}function dp(n){var t;return!e.some(n.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(106496&n.flags)||!(null===(t=n.declarations)||void 0===t?void 0:t.some((function(n){return e.isClassLike(n.parent)}))))}function pp(e,n){var t=65536&e.flags&&!(32768&e.flags);if(!t&&n===rE(e))return e;var r=Pr(4|16777216&e.flags,e.escapedName,lc(e)|(n?8:0));return r.type=t?Ge:Xo(e),r.declarations=e.declarations,r.nameType=Wr(e).nameType,r.syntheticOrigin=e,r}function fp(e,n,t,r){var a=ui(e);return a.symbol=t,a.value=n,a.regularType=r||a,a}function mp(e){if(2944&e.flags){if(!e.freshType){var n=fp(e.flags,e.value,e.symbol,e);n.freshType=n,e.freshType=n}return e.freshType}return e}function _p(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=Cg(e,_p)):e}function gp(e){return!!(2944&e.flags)&&e.freshType===e}function yp(e){var n;return me.get(e)||(me.set(e,n=fp(128,e)),n)}function hp(e){var n;return _e.get(e)||(_e.set(e,n=fp(256,e)),n)}function vp(n){var t,r=e.pseudoBigIntToString(n);return ge.get(r)||(ge.set(r,t=fp(2048,n)),t)}function bp(e,n,t){var r,a=n+("string"===typeof e?"@":"#")+e,i=1024|("string"===typeof e?128:256);return ye.get(a)||(ye.set(a,r=fp(i,e,t)),r)}function Ep(n){if(e.isValidESSymbolDeclaration(n)){var t=ni(n),r=Wr(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=function(e){var n=ui(8192);return n.symbol=e,n.escapedName="__@".concat(n.symbol.escapedName,"@").concat(Y(n.symbol)),n}(t))}return Ze}function Tp(n){var t=zr(n);return t.resolvedType||(t.resolvedType=function(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;if(r&&(e.isClassLike(r)||257===r.kind)&&!e.isStatic(t)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(n,t.body)))return ms(ni(r)).thisType;if(r&&e.isObjectLiteralExpression(r)&&e.isBinaryExpression(r.parent)&&6===e.getAssignmentDeclarationKind(r.parent))return ms(ni(r.parent.left).parent).thisType;var a=4194304&n.flags?e.getHostSignatureFromJSDoc(n):void 0;return a&&e.isFunctionExpression(a)&&e.isBinaryExpression(a.parent)&&3===e.getAssignmentDeclarationKind(a.parent)?ms(ni(a.parent.left).parent).thisType:ob(t)&&e.isNodeDescendantOf(n,t.body)?ms(ni(t)).thisType:(kr(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Re)}(n)),t.resolvedType}function Sp(e){return Lp(xp(e.type)||e.type)}function xp(e){switch(e.kind){case 190:return xp(e.type);case 183:if(1===e.elements.length&&(185===(e=e.elements[0]).kind||196===e.kind&&e.dotDotDotToken))return xp(e.type);break;case 182:return e.elementType}}function Lp(e){return du(Dp(e),e)}function Dp(n){switch(n.kind){case 130:case 310:case 311:return Ie;case 154:return Pe;case 149:return He;case 146:return We;case 157:return ze;case 133:return Qe;case 150:return Ze;case 114:return $e;case 152:return Ge;case 104:return je;case 143:return en;case 147:return 131072&n.flags&&!M?Ie:on;case 138:return Me;case 191:case 108:return Tp(n);case 195:return function(e){if(104===e.literal.kind)return je;var n=zr(e);return n.resolvedType||(n.resolvedType=_p(VE(e.literal))),n.resolvedType}(n);case 177:case 227:return _u(n);case 176:return n.assertsModifier?$e:Qe;case 180:return yu(n);case 182:case 183:return function(n){var t=zr(n);if(!t.resolvedType){var r=Bu(n);if(r===hn)t.resolvedType=mn;else if(183===n.kind&&e.some(n.elements,(function(e){return!!(8&Fu(e))}))||!Uu(n)){var a=182===n.kind?[Lp(n.elementType)]:e.map(n.elements,Lp);t.resolvedType=Wu(r,a)}else t.resolvedType=183===n.kind&&0===n.elements.length?r:Zl(r,n,void 0)}return t.resolvedType}(n);case 184:return function(e){return yo(Lp(e.type),!0)}(n);case 186:return function(n){var t=zr(n);if(!t.resolvedType){var r=ip(n);t.resolvedType=ad(e.map(n.types,Lp),1,r,op(r))}return t.resolvedType}(n);case 187:return function(n){var t=zr(n);if(!t.resolvedType){var r=ip(n);t.resolvedType=pd(e.map(n.types,Lp),r,op(r))}return t.resolvedType}(n);case 312:return function(e){var n=Lp(e.type);return I?Mm(n,65536):n}(n);case 314:return yo(Lp(n.type));case 196:return function(e){var n=zr(e);return n.resolvedType||(n.resolvedType=e.dotDotDotToken?Sp(e):yo(Lp(e.type),!0,!!e.questionToken))}(n);case 190:case 313:case 307:return Lp(n.type);case 185:return Sp(n);case 316:return function(n){var t=Lp(n.type),r=n.parent,a=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(a)){var i=e.getHostSignatureFromJSDoc(a),o=e.isJSDocCallbackTag(a.parent.parent);if(i||o){var s=o?e.lastOrUndefined(a.parent.parent.typeExpression.parameters):e.lastOrUndefined(i.parameters),c=e.getParameterSymbolFromJSDoc(a);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return Pu(t)}}if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))return Pu(t);return yo(t)}(n);case 178:case 179:case 181:case 320:case 315:case 321:return ap(n);case 192:return function(n){var t=zr(n);if(!t.resolvedType)switch(n.operator){case 140:t.resolvedType=Ed(Lp(n.type));break;case 153:t.resolvedType=150===n.type.kind?Ep(e.walkUpParenthesizedTypes(n.parent)):Re;break;case 144:t.resolvedType=Lp(n.type);break;default:throw e.Debug.assertNever(n.operator)}return t.resolvedType}(n);case 193:return Wd(n);case 194:return zd(n);case 188:return function(n){var t=zr(n);if(!t.resolvedType){var r=Lp(n.checkType),a=ip(n),i=op(a),o=ns(n,!0),s=i?o:e.filter(o,(function(e){return Kp(e,n)})),c={node:n,checkType:r,extendsType:Lp(n.extendsType),isDistributive:!!(262144&r.flags),inferTypeParameters:ep(n),outerTypeParameters:s,instantiations:void 0,aliasSymbol:a,aliasTypeArguments:i};t.resolvedType=Qd(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(Jl(s),t.resolvedType))}return t.resolvedType}(n);case 189:return function(e){var n=zr(e);return n.resolvedType||(n.resolvedType=Ts(ni(e.typeParameter))),n.resolvedType}(n);case 197:return function(n){var t=zr(n);return t.resolvedType||(t.resolvedType=Sd(pa([n.head.text],e.map(n.templateSpans,(function(e){return e.literal.text})),!0),e.map(n.templateSpans,(function(e){return Lp(e.type)})))),t.resolvedType}(n);case 199:return tp(n);case 79:case 160:case 205:var t=kx(n);return t?Ss(t):Re;default:return Re}}function Cp(e,n,t){if(e&&e.length)for(var r=0;r<e.length;r++){var a=e[r],i=t(a,n);if(a!==i){var o=0===r?[]:e.slice(0,r);for(o.push(i),r++;r<e.length;r++)o.push(t(e[r],n));return o}}return e}function Ap(e,n){return Cp(e,n,Yp)}function Ip(e,n){return Cp(e,n,Vp)}function kp(e,n){return Cp(e,n,ef)}function Np(e,n){return 1===e.length?Op(e[0],n?n[0]:Ie):function(e,n){return{kind:1,sources:e,targets:n}}(e,n)}function Rp(e,n){switch(n.kind){case 0:return e===n.source?n.target:e;case 1:for(var t=n.sources,r=n.targets,a=0;a<t.length;a++)if(e===t[a])return r?r[a]:Ie;return e;case 2:return n.func(e);case 3:case 4:var i=Rp(e,n.mapper1);return i!==e&&3===n.kind?Yp(i,n.mapper2):Rp(i,n.mapper2)}}function Op(e,n){return{kind:0,source:e,target:n}}function wp(e){return{kind:2,func:e}}function Mp(e,n,t){return{kind:e,mapper1:n,mapper2:t}}function Pp(e){return Np(e,void 0)}function Fp(e,n){return e?Mp(3,e,n):n}function Gp(e,n,t){return t?Mp(4,Op(e,n),t):Op(e,n)}function Bp(e,n,t){return e?Mp(4,e,Op(n,t)):Op(n,t)}function Up(e){var n=mi(e.symbol);return n.target=e,n}function Vp(n,t,r){var a;if(n.typeParameters&&!r){a=e.map(n.typeParameters,Up),t=Fp(Np(n.typeParameters,a),t);for(var i=0,o=a;i<o.length;i++){o[i].mapper=t}}var s=Ws(n.declaration,a,n.thisParameter&&jp(n.thisParameter,t),Cp(n.parameters,t,jp),void 0,void 0,n.minArgumentCount,39&n.flags);return s.target=n,s.mapper=t,s}function jp(n,t){var r=Wr(n);if(r.type&&!f_(r.type))return n;1&e.getCheckFlags(n)&&(n=r.target,t=Fp(r.mapper,t));var a=Pr(n.flags,n.escapedName,1|53256&e.getCheckFlags(n));return a.declarations=n.declarations,a.parent=n.parent,a.target=n,a.mapper=t,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),r.nameType&&(a.nameType=r.nameType),a}function Kp(n,t){if(n.symbol&&n.symbol.declarations&&1===n.symbol.declarations.length){for(var r=n.symbol.declarations[0].parent,a=t;a!==r;a=a.parent)if(!a||234===a.kind||188===a.kind&&e.forEachChild(a.extendsType,i))return!0;return i(t)}return!0;function i(t){switch(t.kind){case 191:return!!n.isThisType;case 79:return!n.isThisType&&e.isPartOfTypeNode(t)&&function(e){return!(177===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||199===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&Dp(t)===n;case 180:return!0;case 168:case 167:return!t.type&&!!t.body||e.some(t.typeParameters,i)||e.some(t.parameters,i)||!!t.type&&i(t.type)}return!!e.forEachChild(t,i)}}function Hp(e){var n=fc(e);if(4194304&n.flags){var t=Jd(n.type);if(262144&t.flags)return t}}function Wp(n,t,r,a){var i=Hp(n);if(i){var o=Yp(i,t);if(i!==o)return Ag(zc(o),(function(r){if(61603843&r.flags&&r!==Ne&&!ao(r)){if(!n.declaration.nameType){var a=void 0;if(om(r)||1&r.flags&&Zi(i,4)<0&&(a=Ic(i))&&Sg(a,e.or(om,Lm)))return function(e,n,t){var r=Jp(n,We,!0,t);return ao(r)?Re:Pu(r,zp(sm(e),vc(n)))}(r,n,Gp(i,r,t));if(Dm(r))return function(n,t,r,a){var i=n.target.elementFlags,o=e.map($l(n),(function(e,n){var o=8&i[n]?e:4&i[n]?Pu(e):Ku([e],[i[n]]);return Wp(t,Gp(r,o,a))})),s=zp(n.target.readonly,vc(t));return Ku(o,e.map(o,(function(e){return 8})),s)}(r,n,i,t);if(Lm(r))return function(n,t,r){var a=n.target.elementFlags,i=e.map($l(n),(function(e,n){return Jp(t,yp(""+n),!!(2&a[n]),r)})),o=vc(t),s=4&o?e.map(a,(function(e){return 1&e?2:e})):8&o?e.map(a,(function(e){return 2&e?1:e})):a,c=zp(n.target.readonly,o);return e.contains(i,Re)?Re:Ku(i,s,c,n.target.labeledElementDeclarations)}(r,n,Gp(i,r,t))}return qp(n,Gp(i,r,t))}return r}),r,a)}return Yp(fc(n),t)===Ne?Ne:qp(n,t,r,a)}function zp(e,n){return!!(1&n)||!(2&n)&&e}function Jp(e,n,t,r){var a=Bp(r,pc(e),n),i=Yp(_c(e.target||e),a),o=vc(e);return I&&4&o&&!cE(i,49152)?Pm(i,!0):I&&8&o&&t?ag(i,524288):i}function qp(e,n,t,r){var a=fi(64|e.objectFlags,e.symbol);if(32&e.objectFlags){a.declaration=e.declaration;var i=pc(e),o=Up(i);a.typeParameter=o,n=Fp(Op(i,o),n),o.mapper=n}return a.target=e,a.mapper=n,a.aliasSymbol=t||e.aliasSymbol,a.aliasTypeArguments=t?r:Ap(e.aliasTypeArguments,n),a}function Xp(n,t,r,a){var i=n.root;if(i.outerTypeParameters){var o=e.map(i.outerTypeParameters,(function(e){return Rp(e,t)})),s=Jl(o)+ql(r,a),c=i.instantiations.get(s);if(!c){var l=Np(i.outerTypeParameters,o),u=i.checkType,d=i.isDistributive?Rp(u,l):void 0;c=d&&u!==d&&1179648&d.flags?Ag(d,(function(e){return Qd(i,Gp(u,e,l))}),r,a):Qd(i,l,r,a),i.instantiations.set(s,c)}return c}return n}function Yp(e,n){return e&&n?Qp(e,n,void 0,void 0):e}function Qp(n,t,r,a){if(!f_(n))return n;if(100===b||v>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:b,instantiationCount:v}),kr(o,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Re;h++,v++,b++;var i=function(n,t,r,a){var i=n.flags;if(262144&i)return Rp(n,t);if(524288&i){var o=n.objectFlags;if(52&o){if(4&o&&!n.node){var s=n.resolvedTypeArguments,c=Ap(s,t);return c!==s?Wu(n.target,c):n}return 1024&o?function(n,t){var r=Yp(n.mappedType,t);if(!(32&e.getObjectFlags(r)))return n;var a=Yp(n.constraintType,t);if(!(4194304&a.flags))return n;var i=g_(Yp(n.source,t),r,a);if(i)return i;return n}(n,t):function(n,t,r,a){var i=4&n.objectFlags?n.node:n.symbol.declarations[0],o=zr(i),s=4&n.objectFlags?o.resolvedType:64&n.objectFlags?n.target:n,c=o.outerTypeParameters;if(!c){var l=ns(i,!0);if(ob(i)){var u=ul(i);l=e.addRange(l,u)}c=l||e.emptyArray;var d=4&n.objectFlags?[i]:n.symbol.declarations;c=(4&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(n){return e.some(d,(function(e){return Kp(n,e)}))})):c,o.outerTypeParameters=c}if(c.length){var p=Fp(n.mapper,t),f=e.map(c,(function(e){return Rp(e,p)})),m=r||n.aliasSymbol,_=r?a:Ap(n.aliasTypeArguments,t),g=Jl(f)+ql(m,_);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(Jl(c)+ql(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(g);if(!y){var h=Np(c,f);y=4&s.objectFlags?Zl(n.target,n.node,h,m,_):32&s.objectFlags?Wp(s,h,m,_):qp(s,h,m,_),s.instantiations.set(g,y)}return y}return n}(n,t,r,a)}return n}if(3145728&i){var l=1048576&n.flags?n.origin:void 0,u=l&&3145728&l.flags?l.types:n.types,d=Ap(u,t);if(d===u&&r===n.aliasSymbol)return n;var p=r||n.aliasSymbol,f=r?a:Ap(n.aliasTypeArguments,t);return 2097152&i||l&&2097152&l.flags?pd(d,p,f):ad(d,1,p,f)}if(4194304&i)return Ed(Yp(n.type,t));if(134217728&i)return Sd(n.texts,Ap(n.types,t));if(268435456&i)return Ld(n.symbol,Yp(n.type,t));if(8388608&i){p=r||n.aliasSymbol,f=r?a:Ap(n.aliasTypeArguments,t);return jd(Yp(n.objectType,t),Yp(n.indexType,t),n.accessFlags,void 0,p,f)}if(16777216&i)return Xp(n,Fp(n.mapper,t),r,a);if(33554432&i){var m=Yp(n.baseType,t);if(8650752&m.flags)return cu(m,Yp(n.substitute,t));var _=Yp(n.substitute,t);return 3&_.flags||df($p(m),$p(_))?m:_}return n}(n,t,r,a);return b--,i}function Zp(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Yp(e,fn))}function $p(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Yp(e,pn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function ef(e,n){return Ul(e.keyType,Yp(e.type,n),e.isReadonly,e.declaration)}function nf(n){switch(e.Debug.assert(168!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 212:case 213:case 168:case 255:return tf(n);case 204:return e.some(n.properties,nf);case 203:return e.some(n.elements,nf);case 221:return nf(n.whenTrue)||nf(n.whenFalse);case 220:return(56===n.operatorToken.kind||60===n.operatorToken.kind)&&(nf(n.left)||nf(n.right));case 294:return nf(n.initializer);case 211:return nf(n.expression);case 285:return e.some(n.properties,nf)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,nf);case 284:var t=n.initializer;return!!t&&nf(t);case 287:var r=n.expression;return!!r&&nf(r)}return!1}function tf(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!_o(n))&&(e.hasContextSensitiveParameters(n)||function(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&234!==n.body.kind&&nf(n.body)}(n))}function rf(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||e.isFunctionExpressionOrArrowFunction(n)||e.isObjectLiteralMethod(n))&&tf(n)}function af(n){if(524288&n.flags){var t=Sc(n);if(t.constructSignatures.length||t.callSignatures.length){var r=fi(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r.indexInfos=e.emptyArray,r}}else if(2097152&n.flags)return pd(e.map(n.types,af));return n}function of(e,n){return wf(e,n,Er)}function sf(e,n){return wf(e,n,Er)?-1:0}function cf(e,n){return wf(e,n,vr)?-1:0}function lf(e,n){return wf(e,n,yr)?-1:0}function uf(e,n){return wf(e,n,yr)}function df(e,n){return wf(e,n,vr)}function pf(n,t){return 1048576&n.flags?e.every(n.types,(function(e){return pf(e,t)})):1048576&t.flags?e.some(t.types,(function(e){return pf(n,e)})):58982400&n.flags?pf(wc(n)||Pe,t):t===In?!!(67633152&n.flags):t===kn?!!(524288&n.flags)&&tg(n):$o(n,Zo(t))||om(t)&&!sm(t)&&pf(n,wn)}function ff(e,n){return wf(e,n,br)}function mf(e,n){return ff(e,n)||ff(n,e)}function _f(e,n,t,r,a,i){return Ff(e,n,vr,t,r,a,i)}function gf(e,n,t,r,a,i){return yf(e,n,vr,t,r,a,i,void 0)}function yf(e,n,t,r,a,i,o,s){return!!wf(e,n,t)||(!r||!vf(a,e,n,t,i,o,s))&&Ff(e,n,t,r,i,o,s)}function hf(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,hf))}function vf(n,t,r,a,i,o,s){if(!n||hf(r))return!1;if(!Ff(t,r,a,void 0)&&function(n,t,r,a,i,o,s){for(var c=$c(t,0),l=$c(t,1),u=0,d=[l,c];u<d.length;u++){var p=d[u];if(e.some(p,(function(e){var n=Cl(e);return!(131073&n.flags)&&Ff(n,r,a,void 0)}))){var f=s||{};_f(t,r,n,i,o,f);var m=f.errors[f.errors.length-1];return e.addRelatedInfo(m,e.createDiagnosticForNode(n,p===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(n,t,r,a,i,o,s))return!0;switch(n.kind){case 287:case 211:return vf(n.expression,t,r,a,i,o,s);case 220:switch(n.operatorToken.kind){case 63:case 27:return vf(n.right,t,r,a,i,o,s)}break;case 204:return function(n,t,r,a,i,o){return!(131068&r.flags)&&Tf(function(n){var t,r,a,i;return _a(this,(function(o){switch(o.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,o.label=1;case 1:if(!(t<r.length))return[3,8];if(a=r[t],e.isSpreadAssignment(a))return[3,7];if(!(i=hd(ni(a),8576))||131072&i.flags)return[3,7];switch(a.kind){case 172:case 171:case 168:case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:void 0,nameType:i}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:i,errorMessage:e.isComputedNonLiteralName(a.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(a),o.label=7;case 7:return t++,[3,1];case 8:return[2]}}))}(n),t,r,a,i,o)}(n,t,r,a,o,s);case 203:return function(e,n,t,r,a,i){if(131068&t.flags)return!1;if(mm(n))return Tf(xf(e,t),n,t,r,a,i);var o=e.contextualType;e.contextualType=t;try{var s=qy(e,1,!0);return e.contextualType=o,!!mm(s)&&Tf(xf(e,t),s,t,r,a,i)}finally{e.contextualType=o}}(n,t,r,a,o,s);case 285:return function(n,t,r,a,i,o){var s,c=Tf(function(n){var t,r,a;return _a(this,(function(i){switch(i.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,i.label=1;case 1:return t<r.length?(a=r[t],e.isJsxSpreadAttribute(a)||ih(e.idText(a.name))?[3,3]:[4,{errorNode:a.name,innerExpression:a.initializer,nameType:yp(e.idText(a.name))}]):[3,4];case 2:i.sent(),i.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}(n),t,r,a,i,o);if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var l=n.parent.parent,u=gh(mh(n)),d=void 0===u?"children":e.unescapeLeadingUnderscores(u),p=yp(d),f=jd(r,p),m=e.getSemanticJsxChildren(l.children);if(!e.length(m))return c;var _=e.length(m)>1,g=xg(f,_m),y=xg(f,(function(e){return!_m(e)}));if(_){if(g!==en){var h=Ku(ch(l,0)),v=function(n,t){var r,a,i,o,s;return _a(this,(function(c){switch(c.label){case 0:if(!e.length(n.children))return[2];r=0,a=0,c.label=1;case 1:return a<n.children.length?(i=n.children[a],o=hp(a-r),(s=Sf(i,o,t))?[4,s]:[3,3]):[3,5];case 2:return c.sent(),[3,4];case 3:r++,c.label=4;case 4:return a++,[3,1];case 5:return[2]}}))}(l,T);c=Tf(v,h,g,a,i,o)||c}else if(!wf(jd(t,p),f,a)){c=!0;var b=kr(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,d,Fi(f));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(b)}}else if(y!==en){var E=Sf(m[0],p,T);E&&(c=Tf(function(){return _a(this,(function(e){switch(e.label){case 0:return[4,E];case 1:return e.sent(),[2]}}))}(),t,r,a,i,o)||c)}else if(!wf(jd(t,p),f,a)){c=!0;b=kr(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,d,Fi(f));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(b)}}return c;function T(){if(!s){var t=e.getTextOfNode(n.parent.tagName),a=gh(mh(n)),i=void 0===a?"children":e.unescapeLeadingUnderscores(a),o=jd(r,yp(i)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;s=fa(fa({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,t,i,Fi(o))})}return s}}(n,t,r,a,o,s);case 213:return function(n,t,r,a,i,o){if(e.isBlock(n.body))return!1;if(e.some(n.parameters,e.hasType))return!1;var s=Lv(t);if(!s)return!1;var c=$c(r,0);if(!e.length(c))return!1;var l=n.body,u=Cl(s),d=ad(e.map(c,Cl));if(!Ff(u,d,a,void 0)){var p=l&&vf(l,u,d,a,void 0,i,o);if(p)return p;var f=o||{};if(Ff(u,d,a,l,void 0,i,f),f.errors)return r.symbol&&e.length(r.symbol.declarations)&&e.addRelatedInfo(f.errors[f.errors.length-1],e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0===(2&e.getFunctionFlags(n))&&!to(u,"then")&&Ff(Kb(u),d,a,void 0)&&e.addRelatedInfo(f.errors[f.errors.length-1],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(n,t,r,a,o,s)}return!1}function bf(e,n,t){var r=Hd(n,t);if(r)return r;if(1048576&n.flags){var a=Vf(e,n);if(a)return Hd(a,t)}}function Ef(e,n){e.contextualType=n;try{return IE(e,1,n)}finally{e.contextualType=void 0}}function Tf(n,t,r,a,i,o){for(var s=!1,c=n.next();!c.done;c=n.next()){var l=c.value,u=l.errorNode,d=l.innerExpression,p=l.nameType,f=l.errorMessage,m=bf(t,r,p);if(m&&!(8388608&m.flags)){var _=Hd(t,p);if(_){var g=Cd(p,void 0);if(!Ff(_,m,a,void 0))if(s=!0,!(d&&vf(d,_,m,a,void 0,i,o))){var y=o||{},h=d?Ef(d,_):_;if(U&&Uf(h,m)){var v=e.createDiagnosticForNode(u,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Fi(h),Fi(m));fr.add(v),y.errors=[v]}else{var b=!!(g&&16777216&(Qc(r,g)||Le).flags),E=!!(g&&16777216&(Qc(t,g)||Le).flags);m=jm(m,b),_=jm(_,b&&E),Ff(h,m,a,u,f,i,y)&&h!==_&&Ff(_,m,a,u,f,i,y)}if(y.errors){var T=y.errors[y.errors.length-1],S=Os(p)?Gs(p):void 0,x=void 0!==S?Qc(r,S):void 0,L=!1;if(!x){var D=cl(r,p);D&&D.declaration&&!e.getSourceFileOfNode(D.declaration).hasNoDefaultLib&&(L=!0,e.addRelatedInfo(T,e.createDiagnosticForNode(D.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!L&&(x&&e.length(x.declarations)||r.symbol&&e.length(r.symbol.declarations))){var C=x&&e.length(x.declarations)?x.declarations[0]:r.symbol.declarations[0];e.getSourceFileOfNode(C).hasNoDefaultLib||e.addRelatedInfo(T,e.createDiagnosticForNode(C,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!S||8192&p.flags?Fi(p):e.unescapeLeadingUnderscores(S),Fi(r)))}}}}}}return s}function Sf(n,t,r){switch(n.kind){case 287:return{errorNode:n,innerExpression:n.expression,nameType:t};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:t,errorMessage:r()};case 277:case 278:case 281:return{errorNode:n,innerExpression:n,nameType:t};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function xf(n,t){var r,a,i,o;return _a(this,(function(s){switch(s.label){case 0:if(!(r=e.length(n.elements)))return[2];a=0,s.label=1;case 1:return a<r?mm(t)&&!Qc(t,""+a)?[3,3]:(i=n.elements[a],e.isOmittedExpression(i)?[3,3]:(o=hp(a),[4,{errorNode:i,innerExpression:i,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return a++,[3,1];case 4:return[2]}}))}function Lf(e,n,t,r,a){return Ff(e,n,br,t,r,a)}function Df(n,t,r,a,i,o,s,c){if(n===t)return-1;if(!(l=t).typeParameters&&(!l.thisParameter||ro(xb(l.thisParameter)))&&1===l.parameters.length&&ne(l)&&(xb(l.parameters[0])===Un||ro(xb(l.parameters[0])))&&ro(Cl(l)))return-1;var l,u=Ob(t);if(!Mb(t)&&(8&r?Mb(n)||Ob(n)>u:wb(n)>u))return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=Av(n,t=Ml(t),void 0,s));var d=Ob(n),p=Fb(n),f=Fb(t);if((p||f)&&Yp(p||f,c),p&&f&&d!==u)return 0;var m=t.declaration?t.declaration.kind:0,_=!(3&r)&&k&&168!==m&&167!==m&&170!==m,g=-1,y=xl(n);if(y&&y!==$e){var h=xl(t);if(h){if(!(x=!_&&s(y,h,!1)||s(h,y,a)))return a&&i(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=x}}for(var v=p||f?Math.min(d,u):Math.max(d,u),b=p||f?v-1:-1,E=0;E<v;E++){var T=E===b?Rb(n,E):Nb(n,E),S=E===b?Rb(t,E):Nb(t,E);if(T&&S){var x,L=3&r?void 0:Lv(Fm(T)),D=3&r?void 0:Lv(Fm(S));if((x=L&&D&&!Ll(L)&&!Ll(D)&&(98304&Rm(T))===(98304&Rm(S))?Df(D,L,8&r|(_?2:1),a,i,o,s,c):!(3&r)&&!_&&s(T,S,!1)||s(S,T,a))&&8&r&&E>=wb(n)&&E<wb(t)&&s(T,S,!1)&&(x=0),!x)return a&&i(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Db(n,E)),e.unescapeLeadingUnderscores(Db(t,E))),0;g&=x}}if(!(4&r)){var C=Il(t)?Ie:t.declaration&&ob(t.declaration)?ms(ei(t.declaration.symbol)):Cl(t);if(C===$e)return g;var A=Il(n)?Ie:n.declaration&&ob(n.declaration)?ms(ei(n.declaration.symbol)):Cl(n),I=Ll(t);if(I){var N=Ll(n);if(N)g&=function(n,t,r,a,i){if(n.kind!==t.kind)return r&&(a(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ki(n),Ki(t))),0;if((1===n.kind||3===n.kind)&&n.parameterIndex!==t.parameterIndex)return r&&(a(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,t.parameterName),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ki(n),Ki(t))),0;var o=n.type===t.type?-1:n.type&&t.type?i(n.type,t.type,r):0;0===o&&r&&a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ki(n),Ki(t));return o}(N,I,a,i,s);else if(e.isIdentifierTypePredicate(I))return a&&i(e.Diagnostics.Signature_0_must_be_a_type_predicate,Pi(n)),0}else!(g&=1&r&&s(C,A,!1)||s(A,C,a))&&a&&o&&o(A,C)}return g}function Cf(e,n){var t=wl(e),r=wl(n),a=Cl(t),i=Cl(r);return!(i!==$e&&!wf(i,a,vr)&&!wf(a,i,vr))&&0!==Df(t,r,!0?4:0,!1,void 0,void 0,cf,void 0)}function Af(e){return e!==vn&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function If(n){return 524288&n.flags?!Tc(n)&&Af(Sc(n)):!!(67108864&n.flags)||(1048576&n.flags?e.some(n.types,If):!!(2097152&n.flags)&&e.every(n.types,If))}function kf(n){return!!(16&e.getObjectFlags(n)&&(n.members&&Af(n)||n.symbol&&2048&n.symbol.flags&&0===Vs(n.symbol).size))}function Nf(n){return 524288&n.flags&&!Tc(n)&&0===Cc(n).length&&1===al(n).length&&!!il(n,He)||3145728&n.flags&&e.every(n.types,Nf)||!1}function Rf(n,t,r){if(n===t)return!0;var a=Y(n)+","+Y(t),i=Tr.get(a);if(void 0!==i&&(4&i||!(2&i)||!r))return!!(1&i);if(n.escapedName!==t.escapedName||!(256&n.flags)||!(256&t.flags))return Tr.set(a,6),!1;for(var o=Xo(t),s=0,c=Cc(Xo(n));s<c.length;s++){var l=c[s];if(8&l.flags){var u=Qc(o,l.escapedName);if(!u||!(8&u.flags))return r?(r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),Fi(Ss(t),void 0,64)),Tr.set(a,6)):Tr.set(a,2),!1}}return Tr.set(a,1),!0}function Of(e,n,t,r){var a=e.flags,i=n.flags;if(3&i||131072&a||e===Ne)return!0;if(131072&i)return!1;if(402653316&a&&4&i)return!0;if(128&a&&1024&a&&128&i&&!(1024&i)&&e.value===n.value)return!0;if(296&a&&8&i)return!0;if(256&a&&1024&a&&256&i&&!(1024&i)&&e.value===n.value)return!0;if(2112&a&&64&i)return!0;if(528&a&&16&i)return!0;if(12288&a&&4096&i)return!0;if(32&a&&32&i&&Rf(e.symbol,n.symbol,r))return!0;if(1024&a&&1024&i){if(1048576&a&&1048576&i&&Rf(e.symbol,n.symbol,r))return!0;if(2944&a&&2944&i&&e.value===n.value&&Rf(ti(e.symbol),ti(n.symbol),r))return!0}if(32768&a&&(!I||49152&i))return!0;if(65536&a&&(!I||65536&i))return!0;if(524288&a&&67108864&i)return!0;if(t===vr||t===br){if(1&a)return!0;if(264&a&&!(1024&a)&&(32&i||t===vr&&256&i&&1024&i))return!0}return!1}function wf(e,n,t){if(gp(e)&&(e=e.regularType),gp(n)&&(n=n.regularType),e===n)return!0;if(t!==Er){if(t===br&&!(131072&n.flags)&&Of(n,e,t)||Of(e,n,t))return!0}else{if(e.flags!==n.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&n.flags){var r=t.get(Yf(e,n,0,t,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&n.flags)&&Ff(e,n,t,void 0)}function Mf(n,t){return 2048&e.getObjectFlags(n)&&ih(t.escapedName)}function Pf(n,t){for(;;){var r=gp(n)?n.regularType:4&e.getObjectFlags(n)&&n.node?Yl(n.target,$l(n)):3145728&n.flags?zc(n):33554432&n.flags?t?n.baseType:n.substitute:25165824&n.flags?Gd(n,t):n;if((r=dm(r)||r)===n)break;n=r}return n}function Ff(n,t,r,a,i,s,c){var l,d,p,f,m,_,g=0,y=0,h=0,v=0,b=!1,E=0,T=[],S=!1;e.Debug.assert(r!==Er||!a,"no error reporting in identity checking");var L=j(n,t,3,!!a,i);if(T.length&&P(),b){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:t.id,depth:y,targetDepth:h});var D=kr(a||o,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Fi(n),Fi(t));c&&(c.errors||(c.errors=[])).push(D)}else if(l){if(s){var C=s();C&&(e.concatenateDiagnosticMessageChains(C,l),l=C)}var A=void 0;if(i&&a&&!L&&n.symbol){var k=Wr(n.symbol);if(k.originatingImport&&!e.isImportCall(k.originatingImport))if(Ff(Xo(k.target),t,r,void 0)){var N=e.createDiagnosticForNode(k.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);A=e.append(A,N)}}D=e.createDiagnosticForNodeFromMessageChain(a,l,A);d&&e.addRelatedInfo.apply(void 0,pa([D],d,!1)),c&&(c.errors||(c.errors=[])).push(D),c&&c.skipLogging||fr.add(D)}return a&&c&&c.skipLogging&&0===L&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==L;function R(e){l=e.errorInfo,_=e.lastSkippedInfo,T=e.incompatibleStack,E=e.overrideNextErrorInfo,d=e.relatedInfo}function O(){return{errorInfo:l,lastSkippedInfo:_,incompatibleStack:T.slice(),overrideNextErrorInfo:E,relatedInfo:d?d.slice():void 0}}function w(e,n,t,r,a){E++,_=void 0,T.push([e,n,t,r,a])}function P(){var n=T;T=[];var t=_;if(_=void 0,1===n.length)return F.apply(void 0,n[0]),void(t&&G.apply(void 0,pa([void 0],t,!1)));for(var r="",a=[];n.length;){var i=n.pop(),o=i[0],s=i.slice(1);switch(o.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===r.indexOf("new ")&&(r="(".concat(r,")"));var c=""+s[0];r=0===r.length?"".concat(c):e.isIdentifierText(c,e.getEmitScriptTarget(x))?"".concat(r,".").concat(c):"["===c[0]&&"]"===c[c.length-1]?"".concat(r).concat(c):"".concat(r,"[").concat(c,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===r.length){var l=o;o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?l=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(l=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([l,s[0],s[1]])}else{var u=o.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",d=o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";r="".concat(u).concat(r,"(").concat(d,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,s[0],s[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,s[0],s[1],s[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(o.code))}}r?F(")"===r[r.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,r):a.shift();for(var p=0,f=a;p<f.length;p++){var m=f[p],g=(o=m[0],s=m.slice(1),o.elidedInCompatabilityPyramid);o.elidedInCompatabilityPyramid=!1,F.apply(void 0,pa([o],s,!1)),o.elidedInCompatabilityPyramid=g}t&&G.apply(void 0,pa([void 0],t,!1))}function F(n,t,r,i,o){e.Debug.assert(!!a),T.length&&P(),n.elidedInCompatabilityPyramid||(l=e.chainDiagnosticMessages(l,n,t,r,i,o))}function G(n,t,a){T.length&&P();var i=Gi(t,a),o=i[0],s=i[1],c=t,u=o;if(vm(t)&&!Gf(a)&&(c=bm(t),e.Debug.assert(!df(c,a),"generalized source shouldn't be assignable"),u=Bi(c)),262144&a.flags){var d=wc(a),p=void 0;d&&(df(c,d)||(p=df(t,d)))?F(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,p?o:u,s,Fi(d)):(l=void 0,F(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,u))}if(n)n===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&U&&Bf(t,a).length&&(n=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(r===br)n=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(o===s)n=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(U&&Bf(t,a).length)n=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&a.flags){var f=function(n,t){var r=t.types.filter((function(e){return!!(128&e.flags)}));return e.getSpellingSuggestion(n.value,r,(function(e){return e.value}))}(t,a);if(f)return void F(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,u,s,Fi(f))}n=e.Diagnostics.Type_0_is_not_assignable_to_type_1}F(n,u,s)}function B(n,t,r){return Lm(n)?n.target.readonly&&cm(t)?(r&&F(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Fi(n),Fi(t)),!1):Lm(t)||om(t):sm(n)&&cm(t)?(r&&F(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Fi(n),Fi(t)),!1):!Lm(t)||om(n)}function V(e,n,t){return j(e,n,3,t)}function j(n,t,i,o,s,c){if(void 0===i&&(i=3),void 0===o&&(o=!1),void 0===c&&(c=0),524288&n.flags&&131068&t.flags)return Of(n,t,r,o?F:void 0)?-1:(D(n,t,0,!!(2048&e.getObjectFlags(n))),0);var u=Pf(n,!1),d=Pf(t,!0);if(u===d)return-1;if(r===Er)return function(e,n,t){if(e.flags!==n.flags)return 0;if(67358815&e.flags)return-1;if(K(e,n),3145728&e.flags){var r=W(e,n);return r&&(r&=W(n,e)),r}return X(e,n,!1,0,t)}(u,d,i);if(262144&u.flags&&Ac(u)===d)return-1;if(1048576&d.flags&&524288&u.flags&&d.types.length<=3&&cE(d,98304)){var p=kg(d,-98305);if(1179648&p.flags||(d=Pf(p,!0)),u===p)return-1}if(r===br&&!(131072&d.flags)&&Of(d,u,r)||Of(u,d,r,o?F:void 0))return-1;var f=!!(2048&e.getObjectFlags(u)),m=!(2&c)&&R_(u)&&16384&e.getObjectFlags(u);if(m&&function(n,t,i){var o;if(!Lh(t)||!M&&8192&e.getObjectFlags(t))return!1;var s=!!(2048&e.getObjectFlags(n));if((r===vr||r===br)&&(bg(In,t)||!s&&If(t)))return!1;var c,l=t;1048576&t.flags&&(l=ZL(n,t,j)||function(e){if(cE(e,67108864)){var n=xg(e,(function(e){return!(131068&e.flags)}));if(!(131072&n.flags))return n}return e}(t),c=1048576&l.flags?l.types:[l]);for(var u=function(t){if(function(e,n){return e.valueDeclaration&&n.valueDeclaration&&e.valueDeclaration.parent===n.valueDeclaration}(t,n.symbol)&&!Mf(n,t)){if(!xh(l,t.escapedName,s)){if(i){var r=xg(l,Lh);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){t.valueDeclaration&&e.isJsxAttribute(t.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode(t.valueDeclaration.name)&&(a=t.valueDeclaration.name);var u=Mi(t),d=rv(u,r);(f=d?Mi(d):void 0)?F(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Fi(r),f):F(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,Fi(r))}else{var p=(null===(o=n.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(n.symbol.declarations),f=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,(function(e){return e===p}))&&e.getSourceFileOfNode(p)===e.getSourceFileOfNode(a)){var m=t.valueDeclaration;e.Debug.assertNode(m,e.isObjectLiteralElementLike),a=m;var _=m.name;e.isIdentifier(_)&&(f=av(_,r))}void 0!==f?F(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Mi(t),Fi(r),f):F(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Mi(t),Fi(r))}}return{value:!0}}if(c&&!j(Xo(t),function(n,t){var r=function(n,r){var a,i=3145728&(r=Vc(r)).flags?Wc(r,t):Lc(r,t),o=i&&Xo(i)||(null===(a=ll(r,t))||void 0===a?void 0:a.type)||Ge;return e.append(n,o)};return ad(e.reduceLeft(n,r,void 0)||e.emptyArray)}(c,t.escapedName),3,i))return i&&w(e.Diagnostics.Types_of_property_0_are_incompatible,Mi(t)),{value:!0}}},d=0,p=Cc(n);d<p.length;d++){var f=u(p[d]);if("object"===typeof f)return f.value}return!1}(u,d,o))return o&&G(s,u,t.aliasSymbol?t:d),0;var g=r!==br&&!(2&c)&&2752508&u.flags&&u!==In&&2621440&d.flags&&Kf(d)&&(Cc(u).length>0||Fx(u));if(g&&!function(e,n,t){for(var r=0,a=Cc(e);r<a.length;r++){if(xh(n,a[r].escapedName,t))return!0}return!1}(u,d,f)){if(o){var y=Fi(n.aliasSymbol?n:u),h=Fi(t.aliasSymbol?t:d),v=$c(u,0),b=$c(u,1);v.length>0&&j(Cl(v[0]),d,1,!1)||b.length>0&&j(Cl(b[0]),d,1,!1)?F(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,y,h):F(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,y,h)}return 0}K(u,d);var T=0,x=O();if((1048576&u.flags||1048576&d.flags)&&Ig(u)*Ig(d)<4?T=Y(u,d,o,8|c):(3145728&u.flags||3145728&d.flags)&&(T=X(u,d,o,8|c,i)),T||1048576&u.flags||!(469499904&u.flags||469499904&d.flags)||(T=X(u,d,o,c,i))&&R(x),!T&&2359296&u.flags){var L=function(n,t){for(var r,a=!1,i=0,o=n;i<o.length;i++)if(465829888&(u=o[i]).flags){for(var s=Ac(u);s&&21233664&s.flags;)s=Ac(s);s&&(r=e.append(r,s),t&&(r=e.append(r,u)))}else 469892092&u.flags&&(a=!0);if(r&&(t||a)){if(a)for(var c=0,l=n;c<l.length;c++){var u;469892092&(u=l[c]).flags&&(r=e.append(r,u))}return pd(r)}}(2097152&u.flags?u.types:[u],!!(1048576&d.flags));L&&(2097152&u.flags||1048576&d.flags)&&Sg(L,(function(e){return e!==u}))&&(T=j(L,d,1,!1,void 0,c))&&R(x)}return T&&!S&&(2097152&d.flags&&(m||g)||sp(d)&&!om(d)&&!Lm(d)&&2097152&u.flags&&3670016&Vc(u).flags&&!e.some(u.types,(function(n){return!!(524288&e.getObjectFlags(n))})))&&(S=!0,T&=X(u,d,o,4,i),S=!1),D(u,d,T,f),T;function D(r,i,c,u){if(!c&&o){var d=!!dm(n),p=!!dm(t);r=n.aliasSymbol||d?n:r,i=t.aliasSymbol||p?t:i;var f=E>0;if(f&&E--,524288&r.flags&&524288&i.flags){var m=l;B(r,i,o),l!==m&&(f=!!l)}if(524288&r.flags&&131068&i.flags)!function(n,t){var r=Ui(n.symbol)?Fi(n,n.symbol.valueDeclaration):Fi(n),a=Ui(t.symbol)?Fi(t,t.symbol.valueDeclaration):Fi(t);(Mn===n&&He===t||Pn===n&&We===t||Fn===n&&Qe===t||Cu(!1)===n&&Ze===t)&&F(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,r)}(r,i);else if(r.symbol&&524288&r.flags&&In===r)F(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&i.flags){var g=i.types,y=dh(H.IntrinsicAttributes,a),h=dh(H.IntrinsicClassAttributes,a);if(!ao(y)&&!ao(h)&&(e.contains(g,y)||e.contains(g,h)))return c}else l=Yc(l,t);if(!s&&f)return _=[r,i],c;G(s,r,i)}}}function K(n,t){if(e.tracing&&3145728&n.flags&&3145728&t.flags){var r=n,i=t;if(r.objectFlags&i.objectFlags&65536)return;var o=r.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:n.id,sourceSize:o,targetId:t.id,targetSize:s,pos:null===a||void 0===a?void 0:a.pos,end:null===a||void 0===a?void 0:a.end})}}function W(e,n){for(var t=-1,r=0,a=e.types;r<a.length;r++){var i=z(a[r],n,!1);if(!i)return 0;t&=i}return t}function z(e,n,t){var r=n.types;if(1048576&n.flags){if(Zu(r,e))return-1;var a=Q_(n,e);if(a)if(s=j(e,a,2,!1))return s}for(var i=0,o=r;i<o.length;i++){var s;if(s=j(e,o[i],2,!1))return s}t&&j(e,Vf(e,n,j)||r[r.length-1],2,!0);return 0}function J(e,n,t,r){var a=e.types;if(1048576&e.flags&&Zu(a,n))return-1;for(var i=a.length,o=0;o<i;o++){var s=j(a[o],n,1,t&&o===i-1,void 0,r);if(s)return s}return 0}function q(e,n,t,r){for(var a=-1,i=e.types,o=function(e,n){return 1048576&e.flags&&1048576&n.flags&&!(32768&e.types[0].flags)&&32768&n.types[0].flags?kg(n,-32769):n}(e,n),s=0;s<i.length;s++){var c=i[s];if(1048576&o.flags&&i.length>=o.types.length&&i.length%o.types.length===0){var l=j(c,o.types[s%o.types.length],3,!1,void 0,r);if(l){a&=l;continue}}var u=j(c,n,1,t,void 0,r);if(!u)return 0;a&=u}return a}function X(n,t,a,i,o){if(b)return 0;var s=i|(S?16:0),c=Yf(n,t,s,r,!1),l=r.get(c);if(void 0!==l&&(!(a&&2&l)||4&l)){if(Et){var u=24&l;8&u&&Yp(n,wp(Q)),16&u&&Yp(n,wp(Z))}return 1&l?-1:0}if(p){for(var d=c.startsWith("*")?Yf(n,t,s,r,!0):void 0,_=0;_<g;_++)if(c===p[_]||d&&d===p[_])return 3;if(100===y||100===h)return b=!0,0}else p=[],f=[],m=[];var E=g;p[g]=c,g++;var T,x=v;1&o&&(f[y]=n,y++,1&v||!em(n,f,y)||(v|=1)),2&o&&(m[h]=t,h++,2&v||!em(t,m,h)||(v|=2));var L=0;Et&&(T=Et,Et=function(e){return L|=e?16:8,T(e)}),3===v&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:n.id,sourceIdStack:f.map((function(e){return e.id})),targetId:t.id,targetIdStack:m.map((function(e){return e.id})),depth:y,targetDepth:h}));var D=3!==v?Y(n,t,a,i):3;if(Et&&(Et=T),1&o&&y--,2&o&&h--,v=x,D){if(-1===D||0===y&&0===h){if(-1===D||3===D)for(_=E;_<g;_++)r.set(p[_],1|L);g=E}}else r.set(c,2|(a?4:0)|L),g=E;return D}function Y(n,t,a,i){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:n.id,targetId:t.id});var o=function(n,t,a,i){if(4&i)return te(n,t,a,void 0,0);if(8&i){if(1048576&n.flags)return r===br?J(n,t,a&&!(131068&n.flags),-9&i):q(n,t,a&&!(131068&n.flags),-9&i);if(1048576&t.flags)return z(Jm(n),t,a&&!(131068&n.flags)&&!(131068&t.flags));if(2097152&t.flags)return function(e,n,t,r){for(var a=-1,i=0,o=n.types;i<o.length;i++){var s=j(e,o[i],2,t,void 0,r);if(!s)return 0;a&=s}return a}(Jm(n),t,a,2);if(r===br&&131068&t.flags){var o=e.sameMap(n.types,Mc);if(o!==n.types&&!(2097152&(n=pd(o)).flags))return j(n,t,1,!1)}return J(n,t,!1,1)}var s,c,u=n.flags&t.flags;if(r===Er&&!(524288&u)){if(4194304&u)return j(n.type,t.type,3,!1);var d=0;return 8388608&u&&(d=j(n.objectType,t.objectType,3,!1))&&(d&=j(n.indexType,t.indexType,3,!1))||16777216&u&&n.root.isDistributive===t.root.isDistributive&&(d=j(n.checkType,t.checkType,3,!1))&&(d&=j(n.extendsType,t.extendsType,3,!1))&&(d&=j(Zd(n),Zd(t),3,!1))&&(d&=j($d(n),$d(t),3,!1))?d:33554432&u?j(n.substitute,t.substitute,3,!1):0}var p=!1,_=O();if(17301504&n.flags&&n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol&&!n.aliasTypeArgumentsContainsMarker&&!t.aliasTypeArgumentsContainsMarker){if((ue=Wf(n.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(de=ye(n.aliasTypeArguments,t.aliasTypeArguments,ue,i)))return de}if(Cm(n)&&!n.target.readonly&&(s=j($l(n)[0],t,1))||Cm(t)&&(t.target.readonly||cm(wc(n)||n))&&(s=j(n,$l(t)[0],2)))return s;if(262144&t.flags){if(32&e.getObjectFlags(n)&&!n.declaration.nameType&&j(Ed(t),fc(n),3)&&!(4&vc(n))){var g=_c(n),v=jd(t,pc(n));if(s=j(g,v,3,a))return s}}else if(4194304&t.flags){var b=t.type;if(4194304&n.flags&&(s=j(b,n.type,3,!1)))return s;if(Lm(b)){if(s=j(n,qu(b),2,a))return s}else if(Y=kc(b)){if(-1===j(n,Ed(Y,t.stringsOnly),2,a))return-1}else if(Tc(b)){var E=mc(b),T=fc(b),S=void 0;if(E&&yc(b)){var x=Vc(hc(b)),L=[];uc(x,8576,!1,(function(e){L.push(Yp(E,Bp(b.mapper,pc(b),e)))})),S=ad(pa(pa([],L,!0),[E],!1))}else S=E||T;if(-1===j(n,S,2,a))return-1}}else if(8388608&t.flags){if(8388608&n.flags){if((s=j(n.objectType,t.objectType,3,a))&&(s&=j(n.indexType,t.indexType,3,a)),s)return R(_),s;a&&(c=l)}if(r===vr||r===br){var D=t.objectType,C=t.indexType,A=wc(D)||D,k=wc(C)||C;if(!wd(A)&&!Md(k))if(Y=Hd(A,k,4|(A!==D?2:0))){if(a&&c&&R(_),s=j(n,Y,2,a))return s;a&&c&&l&&(l=ge([c])<=ge([l])?c:l)}}a&&(c=void 0)}else if(Tc(t)&&r!==Er){var N=!!t.declaration.nameType,w=(g=_c(t),vc(t));if(!(8&w)){if(!N&&8388608&g.flags&&g.objectType===n&&g.indexType===pc(t))return-1;if(!Tc(n)){S=N?mc(t):fc(t);var M=Ed(n,void 0,!0),P=4&w,F=P?nc(S,M):void 0;if(P?!(131072&F.flags):j(S,M,3)){var G=_c(t),B=pc(t),U=kg(G,-98305);if(!N&&8388608&U.flags&&U.indexType===B){if(s=j(n,U.objectType,2,a))return s}else{v=jd(n,N?F||S:F?pd([F,B]):B);if(s=j(v,G,3,a))return s}}c=l,R(_)}}}else if(16777216&t.flags){if(em(t,m,h,10))return R(_),3;var K=t;if(!K.root.inferTypeParameters&&(!(X=K.root).isDistributive||!Kp(X.checkType,X.node.trueType)&&!Kp(X.checkType,X.node.falseType))){var H=!df(Zp(K.checkType),Zp(K.extendsType)),W=!H&&df($p(K.checkType),$p(K.extendsType));if((s=H?-1:j(n,Zd(K),2,!1))&&(s&=W?-1:j(n,$d(K),2,!1)))return R(_),s}}else if(134217728&t.flags){if(134217728&n.flags){if(r===br)return function(e,n){var t=e.texts[0],r=n.texts[0],a=e.texts[e.texts.length-1],i=n.texts[n.texts.length-1],o=Math.min(t.length,r.length),s=Math.min(a.length,i.length);return t.slice(0,o)!==r.slice(0,o)||a.slice(a.length-s)!==i.slice(i.length-s)}(n,t)?0:-1;Yp(n,wp(Z))}if(D_(n,t))return-1}var X;if(8650752&n.flags){if(!(8388608&n.flags&&8388608&t.flags))if(!(Y=Ac(n))||262144&n.flags&&1&Y.flags){if(s=j(mn,kg(t,-67108865),3))return R(_),s}else{if(s=j(Y,t,1,!1,void 0,i))return R(_),s;if(s=j(Ks(Y,n),t,1,a&&!(t.flags&n.flags&262144),void 0,i))return R(_),s}}else if(4194304&n.flags){if(s=j(ln,t,1,a))return R(_),s}else if(134217728&n.flags&&!(524288&t.flags)){if(!(134217728&t.flags))if((Y=wc(n))&&Y!==n&&(s=j(Y,t,1,a)))return R(_),s}else if(268435456&n.flags){var Y;if(268435456&t.flags&&n.symbol===t.symbol){if(s=j(n.type,t.type,3,a))return R(_),s}else if((Y=wc(n))&&(s=j(Y,t,1,a)))return R(_),s}else if(16777216&n.flags){if(em(n,f,y,10))return R(_),3;if(16777216&t.flags){var $=n.root.inferTypeParameters,ne=n.extendsType,ae=void 0;if($){var ie=o_($,void 0,0,V);I_(ie.inferences,t.extendsType,ne,1536),ne=Yp(ne,ie.mapper),ae=ie.mapper}if(of(ne,t.extendsType)&&(j(n.checkType,t.checkType,3)||j(t.checkType,n.checkType,3))&&((s=j(Yp(Zd(n),ae),Zd(t),3,a))&&(s&=j($d(n),$d(t),3,a)),s))return R(_),s}else{var oe=Rc(n);if(oe&&(s=j(oe,t,1,a)))return R(_),s}var se=Nc(n);if(se&&(s=j(se,t,1,a)))return R(_),s}else{if(r!==yr&&r!==hr&&(_e=t,32&e.getObjectFlags(_e)&&4&vc(_e))&&If(n))return-1;if(Tc(t))return Tc(n)&&(s=function(e,n,t){if(r===br||(r===Er?vc(e)===vc(n):Ec(e)<=Ec(n))){var a;if(a=j(fc(n),Yp(fc(e),wp(Ec(e)<0?Q:Z)),3,t)){var i=Np([pc(e)],[pc(n)]);if(Yp(mc(e),i)===Yp(mc(n),i))return a&j(Yp(_c(e),i),_c(n),3,t)}}return 0}(n,t,a))?(R(_),s):0;var le=!!(131068&n.flags);if(r!==Er)n=Vc(n);else if(Tc(n))return 0;if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&n.target===t.target&&!Lm(n)&&!(4096&e.getObjectFlags(n)||4096&e.getObjectFlags(t))){var ue,de;if((ue=Jf(n.target))===e.emptyArray)return 1;if(void 0!==(de=ye($l(n),$l(t),ue,i)))return de}else{if(sm(t)?om(n)||Lm(n):om(t)&&Lm(n)&&!n.target.readonly)return r!==Er?j(ol(n,We)||Ie,ol(t,We)||Ie,3,a):0;if((r===yr||r===hr)&&If(t)&&16384&e.getObjectFlags(t)&&!If(n))return 0}if(2621440&n.flags&&524288&t.flags){var pe=a&&l===_.errorInfo&&!le;if((s=te(n,t,pe,void 0,i))&&(s&=re(n,t,0,pe))&&(s&=re(n,t,1,pe))&&(s&=ce(n,t,le,pe,i)),p&&s)l=c||l||_.errorInfo;else if(s)return s}if(2621440&n.flags&&1048576&t.flags){var fe=kg(t,36175872);if(1048576&fe.flags){var me=function(n,t){var a=q_(Cc(n),t);if(!a)return 0;for(var i=1,o=0,s=a;o<s.length;o++){if((i*=Dg(Yo(d=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:n.id,targetId:t.id,numCombinations:i}),0}for(var c=new Array(a.length),l=new e.Set,u=0;u<a.length;u++){var d,p=Yo(d=a[u]);c[u]=1048576&p.flags?p.types:[p],l.add(d.escapedName)}for(var f=e.cartesianProduct(c),m=[],_=function(i){var o=!1;e:for(var s=0,c=t.types;s<c.length;s++){for(var l=c[s],u=function(e){var o=a[e],s=Qc(l,o.escapedName);return s?o===s?"continue":ee(n,t,o,s,(function(n){return i[e]}),!1,0,I||r===br)?void 0:"continue-outer":"continue-outer"},d=0;d<a.length;d++){if("continue-outer"===u(d))continue e}e.pushIfUnique(m,l,e.equateValues),o=!0}if(!o)return{value:0}},g=0,y=f;g<y.length;g++){var h=_(y[g]);if("object"===typeof h)return h.value}for(var v=-1,b=0,E=m;b<E.length;b++){var T=E[b];if((v&=te(n,T,!1,l,0))&&(v&=re(n,T,0,!1))&&(!(v&=re(n,T,1,!1))||Lm(n)&&Lm(T)||(v&=ce(n,T,!1,!1,0))),!v)return v}return v}(n,fe);if(me)return me}}}var _e;return 0;function ge(n){return n?e.reduceLeft(n,(function(e,n){return e+1+ge(n.next)}),0):0}function ye(n,t,i,o){if(s=function(n,t,a,i,o){if(void 0===n&&(n=e.emptyArray),void 0===t&&(t=e.emptyArray),void 0===a&&(a=e.emptyArray),n.length!==t.length&&r===Er)return 0;for(var s=n.length<=t.length?n.length:t.length,c=-1,l=0;l<s;l++){var u=l<a.length?a[l]:1,d=7&u;if(4!==d){var p=n[l],f=t[l],m=-1;if(8&u?m=r===Er?j(p,f,3,!1):sf(p,f):1===d?m=j(p,f,3,i,void 0,o):2===d?m=j(f,p,3,i,void 0,o):3===d?(m=j(f,p,3,!1))||(m=j(p,f,3,i,void 0,o)):(m=j(p,f,3,i,void 0,o))&&(m&=j(f,p,3,i,void 0,o)),!m)return 0;c&=m}}return c}(n,t,i,a,o))return s;if(e.some(i,(function(e){return!!(24&e)})))return c=void 0,void R(_);var u=t&&function(e,n){for(var t=0;t<n.length;t++)if(1===(7&n[t])&&16384&e[t].flags)return!0;return!1}(t,i);if(p=!u,i!==e.emptyArray&&!u){if(p&&(!a||!e.some(i,(function(e){return 0===(7&e)}))))return 0;c=l,R(_)}}}(n,t,a,i);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Q(e){return!Et||e!==Sn&&e!==xn&&e!==Tt||Et(!1),e}function Z(e){return!Et||e!==Sn&&e!==xn&&e!==Tt||Et(!0),e}function $(e,n){if(!n||0===e.length)return e;for(var t,r=0;r<e.length;r++)n.has(e[r].escapedName)?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t||e}function ee(n,t,r,a,i,o,s,c){var l=e.getDeclarationModifierFlagsFromSymbol(r),u=e.getDeclarationModifierFlagsFromSymbol(a);if(8&l||8&u){if(r.valueDeclaration!==a.valueDeclaration)return o&&(8&l&&8&u?F(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Mi(a)):F(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Mi(a),Fi(8&l?n:t),Fi(8&l?t:n))),0}else if(16&u){if(!function(n,t){return!Qf(t,(function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t))&&(r=n,a=Zf(t),!Qf(r,(function(e){var n=Zf(e);return!!n&&$o(n,a)})));var r,a}))}(r,a))return o&&F(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Mi(a),Fi(Zf(r)||n),Fi(Zf(a)||t)),0}else if(16&l)return o&&F(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Mi(a),Fi(n),Fi(t)),0;var d=function(n,t,r,a,i){var o=I&&!!(48&e.getCheckFlags(t)),s=yo(Yo(t),!1,o);return j(r(n),s,3,a,void 0,i)}(r,a,i,o,s);return d?c||!(16777216&r.flags)||16777216&a.flags?d:(o&&F(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Mi(a),Fi(n),Fi(t)),0):(o&&w(e.Diagnostics.Types_of_property_0_are_incompatible,Mi(a)),0)}function ne(n,t,r,a){var o=!1;if(r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name)&&n.symbol&&32&n.symbol.flags){var s=r.valueDeclaration.name.escapedText,c=e.getSymbolNameForPrivateIdentifier(n.symbol,s);if(c&&Qc(n,c)){var p=e.factory.getDeclarationName(n.symbol.valueDeclaration),f=e.factory.getDeclarationName(t.symbol.valueDeclaration);return void F(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ta(s),ta(""===p.escapedText?u:p),ta(""===f.escapedText?u:f))}}var m,_=e.arrayFrom(v_(n,t,a,!1));if((!i||i.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&i.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(o=!0),1===_.length){var g=Mi(r);F.apply(void 0,pa([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,g],Gi(n,t),!1)),e.length(r.declarations)&&(m=e.createDiagnosticForNode(r.declarations[0],e.Diagnostics._0_is_declared_here,g),e.Debug.assert(!!l),d?d.push(m):d=[m]),o&&l&&E++}else B(n,t,!1)&&(_.length>5?F(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Fi(n),Fi(t),e.map(_.slice(0,4),(function(e){return Mi(e)})).join(", "),_.length-4):F(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Fi(n),Fi(t),e.map(_,(function(e){return Mi(e)})).join(", ")),o&&l&&E++)}function te(n,t,a,i,o){if(r===Er)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;var r=$(xc(e),t),a=$(xc(n),t);if(r.length!==a.length)return 0;for(var i=-1,o=0,s=r;o<s.length;o++){var c=s[o],l=Lc(n,c.escapedName);if(!l)return 0;var u=rm(c,l,j);if(!u)return 0;i&=u}return i}(n,t,i);var s=-1;if(Lm(t)){if(om(n)||Lm(n)){if(!t.target.readonly&&(sm(n)||Lm(n)&&n.target.readonly))return 0;var c=eu(n),l=eu(t),u=Lm(n)?4&n.target.combinedFlags:4,d=4&t.target.combinedFlags,p=Lm(n)?n.target.minLength:0,f=t.target.minLength;if(!u&&c<f)return a&&F(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,c,f),0;if(!d&&l<p)return a&&F(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,p,l),0;if(!d&&(u||l<c))return a&&(p<f?F(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,f):F(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,l)),0;for(var m=$l(n),_=$l(t),g=Math.min(Lm(n)?Xu(n.target,11):0,Xu(t.target,11)),y=Math.min(Lm(n)?Yu(n.target,11):0,d?Yu(t.target,11):0),h=!!i,v=0;v<l;v++){var b=v<l-y?v:v+c-l,E=Lm(n)&&(v<g||v>=l-y)?n.target.elementFlags[b]:4,T=t.target.elementFlags[v];if(8&T&&!(8&E))return a&&F(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,v),0;if(8&E&&!(12&T))return a&&F(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,b,v),0;if(1&T&&!(1&E))return a&&F(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,v),0;if(!(h&&((12&E||12&T)&&(h=!1),h&&(null===i||void 0===i?void 0:i.has(""+v))))){var S=Lm(n)?v<g||v>=l-y?jm(m[b],!!(E&T&2)):Im(n,g,y)||en:m[0],x=_[v];if(!(G=j(S,8&E&&4&T?Pu(x):jm(x,!!(2&T)),3,a,void 0,o)))return a&&(l>1||c>1)&&(v<g||v>=l-y||c-g-y===1?w(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,b,v):w(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,g,c-y-1,v)),0;s&=G}}return s}if(12&t.target.combinedFlags)return 0}var L=(r===yr||r===hr)&&!R_(n)&&!fm(n)&&!Lm(n),D=b_(n,t,L,!1);if(D)return a&&ne(n,t,D,L),0;if(R_(t))for(var C=0,A=$(Cc(n),i);C<A.length;C++){if(!Lc(t,(O=A[C]).escapedName))if(!(32768&(S=Xo(O)).flags))return a&&F(e.Diagnostics.Property_0_does_not_exist_on_type_1,Mi(O),Fi(t)),0}for(var I=Cc(t),k=Lm(n)&&Lm(t),N=0,R=$(I,i);N<R.length;N++){var O,M=R[N],P=M.escapedName;if(!(4194304&M.flags)&&(!k||Qy(P)||"length"===P))if((O=Qc(n,P))&&O!==M){var G;if(!(G=ee(n,t,O,M,Yo,a,o,r===br)))return 0;s&=G}}return s}function re(n,t,a,i){var o,s;if(r===Er)return function(e,n,t){var r=$c(e,t),a=$c(n,t);if(r.length!==a.length)return 0;for(var i=-1,o=0;o<r.length;o++){var s=am(r[o],a[o],!1,!1,!1,j);if(!s)return 0;i&=s}return i}(n,t,a);if(t===vn||n===vn)return-1;var c=n.symbol&&ob(n.symbol.valueDeclaration),l=t.symbol&&ob(t.symbol.valueDeclaration),u=$c(n,c&&1===a?0:a),d=$c(t,l&&1===a?0:a);if(1===a&&u.length&&d.length){var p=!!(4&u[0].flags),f=!!(4&d[0].flags);if(p&&!f)return i&&F(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(n,t,r){if(!n.declaration||!t.declaration)return!0;var a=e.getSelectedEffectiveModifierFlags(n.declaration,24),i=e.getSelectedEffectiveModifierFlags(t.declaration,24);if(8===i)return!0;if(16===i&&8!==a)return!0;if(16!==i&&!a)return!0;r&&F(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Hi(a),Hi(i));return!1}(u[0],d[0],i))return 0}var m=-1,_=O(),g=1===a?ie:ae,y=e.getObjectFlags(n),h=e.getObjectFlags(t);if(64&y&&64&h&&n.symbol===t.symbol)for(var v=0;v<d.length;v++){if(!(N=oe(u[v],d[v],!0,i,g(u[v],d[v]))))return 0;m&=N}else if(1===u.length&&1===d.length){var b=r===br||!!x.noStrictGenericChecks,E=e.first(u),T=e.first(d);if(!(m=oe(E,T,b,i,g(E,T)))&&i&&1===a&&y&h&&(170===(null===(o=T.declaration)||void 0===o?void 0:o.kind)||170===(null===(s=E.declaration)||void 0===s?void 0:s.kind))){var S=function(e){return Pi(e,void 0,262144,a)};return F(e.Diagnostics.Type_0_is_not_assignable_to_type_1,S(E),S(T)),F(e.Diagnostics.Types_of_construct_signatures_are_incompatible),m}}else e:for(var L=0,D=d;L<D.length;L++){for(var C=D[L],A=i,I=0,k=u;I<k.length;I++){var N,w=k[I];if(N=oe(w,C,!0,A,g(w,C))){m&=N,R(_);continue e}A=!1}return A&&F(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Fi(n),Pi(C,void 0,void 0,a)),0}return m}function ae(n,t){return 0===n.parameters.length&&0===t.parameters.length?function(n,t){return w(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Fi(n),Fi(t))}:function(n,t){return w(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Fi(n),Fi(t))}}function ie(n,t){return 0===n.parameters.length&&0===t.parameters.length?function(n,t){return w(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Fi(n),Fi(t))}:function(n,t){return w(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Fi(n),Fi(t))}}function oe(e,n,t,a,i){return Df(t?wl(e):e,t?wl(n):n,r===hr?8:0,a,F,i,V,wp(Z))}function se(n,t,r){var a=j(n.type,t.type,3,r);return!a&&r&&(n.keyType===t.keyType?F(e.Diagnostics._0_index_signatures_are_incompatible,Fi(n.keyType)):F(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Fi(n.keyType),Fi(t.keyType))),a}function ce(n,t,a,i,o){if(r===Er)return function(e,n){var t=al(e),r=al(n);if(t.length!==r.length)return 0;for(var a=0,i=r;a<i.length;a++){var o=i[a],s=il(e,o.keyType);if(!s||!j(s.type,o.type,3)||s.isReadonly!==o.isReadonly)return 0}return-1}(n,t);for(var s=al(t),c=e.some(s,(function(e){return e.keyType===He})),l=-1,u=0,d=s;u<d.length;u++){var p=d[u],f=!a&&c&&1&p.type.flags?-1:Tc(n)&&c?j(_c(n),p.type,3,i):le(n,p,i,o);if(!f)return 0;l&=f}return l}function le(n,t,r,a){var i=cl(n,t.keyType);return i?se(i,t,r):1&a||!Wm(n)?(r&&F(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Fi(t.keyType),Fi(n)),0):function(n,t,r){for(var a=-1,i=t.keyType,o=0,s=2097152&n.flags?Dc(n):xc(n);o<s.length;o++){var c=s[o];if(!Mf(n,c)&&tl(hd(c,8576),i)){var l=Yo(c);if(!(f=j(U||32768&l.flags||i===We||!(16777216&c.flags)?l:ag(l,524288),t.type,3,r)))return r&&F(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Mi(c)),0;a&=f}}for(var u=0,d=al(n);u<d.length;u++){var p=d[u];if(tl(p.keyType,i)){var f;if(!(f=se(p,t,r)))return 0;a&=f}}return a}(n,t,r)}}function Gf(n){if(16&n.flags)return!1;if(3145728&n.flags)return!!e.forEach(n.types,Gf);if(465829888&n.flags){var t=Ac(n);if(t&&t!==n)return Gf(t)}return ym(n)||!!(134217728&n.flags)}function Bf(n,t){return Lm(n)&&Lm(t)?e.emptyArray:Cc(t).filter((function(e){return Uf(to(n,e.escapedName),Xo(e))}))}function Uf(e,n){return!!e&&!!n&&cE(e,32768)&&!!Km(n)}function Vf(n,t,r){return void 0===r&&(r=cf),ZL(n,t,r,!0)||function(n,t){var r=e.getObjectFlags(n);if(20&r&&1048576&t.flags)return e.find(t.types,(function(t){if(524288&t.flags){var a=r&e.getObjectFlags(t);if(4&a)return n.target===t.target;if(16&a)return!!n.aliasSymbol&&n.aliasSymbol===t.aliasSymbol}return!1}))}(n,t)||function(n,t){if(128&e.getObjectFlags(n)&&Tg(t,um))return e.find(t.types,(function(e){return!um(e)}))}(n,t)||function(n,t){var r=0;if($c(n,r).length>0||$c(n,r=1).length>0)return e.find(t.types,(function(e){return $c(e,r).length>0}))}(n,t)||function(n,t){for(var r,a=0,i=0,o=t.types;i<o.length;i++){var s=o[i],c=pd([Ed(n),Ed(s)]);if(4194304&c.flags)r=s,a=1/0;else if(1048576&c.flags){var l=e.length(e.filter(c.types,ym));l>=a&&(r=s,a=l)}else ym(c)&&1>=a&&(r=s,a=1)}return r}(n,t)}function jf(n,t,r,a,i){for(var o=n.types.map((function(e){})),s=0,c=t;s<c.length;s++){var l=c[s],u=l[0],d=l[1],p=Hc(n,d);if(!(i&&p&&16&e.getCheckFlags(p)))for(var f=0,m=0,_=n.types;m<_.length;m++){var g=to(_[m],d);g&&r(u(),g)?o[f]=void 0===o[f]||o[f]:o[f]=!1,f++}}var y=o.indexOf(!0);if(-1===y)return a;for(var h=o.indexOf(!0,y+1);-1!==h;){if(!of(n.types[y],n.types[h]))return a;h=o.indexOf(!0,h+1)}return n.types[y]}function Kf(n){if(524288&n.flags){var t=Sc(n);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&e.every(t.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&n.flags)&&e.every(n.types,Kf)}function Hf(n,t,r){var a=Yl(n,e.map(n.typeParameters,(function(e){return e===t?r:e})));return a.objectFlags|=4096,a}function Wf(e){var n=Wr(e);return zf(n.typeParameters,n,(function(t,r,a){var i=tu(e,Ap(n.typeParameters,Op(r,a)));return i.aliasTypeArgumentsContainsMarker=!0,i}))}function zf(n,t,r){var a,i,o;void 0===n&&(n=e.emptyArray);var s=t.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:null!==(o=null!==(a=t.id)&&void 0!==a?a:null===(i=t.declaredType)||void 0===i?void 0:i.id)&&void 0!==o?o:-1}),t.variances=e.emptyArray,s=[];for(var c=function(e){var n=!1,a=!1,i=Et;Et=function(e){return e?a=!0:n=!0};var o=r(t,e,Sn),c=r(t,e,xn),l=(df(c,o)?1:0)|(df(o,c)?2:0);3===l&&df(r(t,e,Tt),o)&&(l=4),Et=i,(n||a)&&(n&&(l|=8),a&&(l|=16)),s.push(l)},l=0,u=n;l<u.length;l++){c(u[l])}t.variances=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return s}function Jf(e){return e===On||e===wn||8&e.objectFlags?S:zf(e.typeParameters,e,Hf)}function qf(e){return 262144&e.flags&&!Ic(e)}function Xf(n){return function(n){return!!(4&e.getObjectFlags(n))&&!n.node}(n)&&e.some($l(n),(function(e){return!!(262144&e.flags)||Xf(e)}))}function Yf(e,n,t,r,a){if(r===Er&&e.id>n.id){var i=e;e=n,n=i}var o=t?":"+t:"";return Xf(e)&&Xf(n)?function(e,n,t,r){var a=[],i="",o=c(e,0),s=c(n,0);return"".concat(i).concat(o,",").concat(s).concat(t);function c(e,n){void 0===n&&(n=0);for(var t=""+e.target.id,o=0,s=$l(e);o<s.length;o++){var l=s[o];if(262144&l.flags){if(r||qf(l)){var u=a.indexOf(l);u<0&&(u=a.length,a.push(l)),t+="="+u;continue}i="*"}else if(n<4&&Xf(l)){t+="<"+c(l,n+1)+">";continue}t+="-"+l.id}return t}}(e,n,o,a):"".concat(e.id,",").concat(n.id).concat(o)}function Qf(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,a=n.containingType.types;r<a.length;r++){var i=Qc(a[r],n.escapedName),o=i&&Qf(i,t);if(o)return o}}function Zf(e){return e.parent&&32&e.parent.flags?Ss(ti(e)):void 0}function $f(e){var n=Zf(e),t=n&&ds(n)[0];return t&&to(t,e.escapedName)}function em(e,n,t,r){if(void 0===r&&(r=3),t>=r)for(var a=nm(e),i=0,o=0,s=0;s<t;s++){var c=n[s];if(nm(c)===a){if(c.id>=o&&++i>=r)return!0;o=c.id}}return!1}function nm(n){if(524288&n.flags&&!O_(n)){if(e.getObjectFlags(n)&&n.node)return n.node;if(n.symbol&&!(16&e.getObjectFlags(n)&&32&n.symbol.flags))return n.symbol;if(Lm(n))return n.target}if(262144&n.flags)return n.symbol;if(8388608&n.flags){do{n=n.objectType}while(8388608&n.flags);return n}return 16777216&n.flags?n.root:n}function tm(e,n){return 0!==rm(e,n,sf)}function rm(n,t,r){if(n===t)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(n);if(a!==(24&e.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(a){if(zS(n)!==zS(t))return 0}else if((16777216&n.flags)!==(16777216&t.flags))return 0;return rE(n)!==rE(t)?0:r(Xo(n),Xo(t))}function am(n,t,r,a,i,o){if(n===t)return-1;if(!function(e,n,t){var r=Ob(e),a=Ob(n),i=wb(e),o=wb(n),s=Mb(e),c=Mb(n);return r===a&&i===o&&s===c||!!(t&&i<=o)}(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var s=Np(n.typeParameters,t.typeParameters),c=0;c<t.typeParameters.length;c++){if(!((_=n.typeParameters[c])===(f=t.typeParameters[c])||o(Yp(Wl(_),s)||Pe,Wl(f)||Pe)&&o(Yp(Bc(_),s)||Pe,Bc(f)||Pe)))return 0}n=Vp(n,s,!0)}var l=-1;if(!a){var u=xl(n);if(u){var d=xl(t);if(d){if(!(m=o(u,d)))return 0;l&=m}}}var p=Ob(t);for(c=0;c<p;c++){var f,m,_=kb(n,c);if(!(m=o(f=kb(t,c),_)))return 0;l&=m}if(!i){var g=Ll(n),y=Ll(t);l&=g||y?function(e,n,t){return e&&n&&id(e,n)?e.type===n.type?-1:e.type&&n.type?t(e.type,n.type):0:0}(g,y,o):o(Cl(n),Cl(t))}return l}function im(n){return 1===n.length?n[0]:function(e){for(var n,t=0,r=e;t<r.length;t++){var a=r[t],i=bm(a);if(n||(n=i),i===a||i!==n)return!1}return!0}(n)?ad(n):e.reduceLeft(n,(function(e,n){return uf(e,n)?n:e}))}function om(n){return!!(4&e.getObjectFlags(n))&&(n.target===On||n.target===wn)}function sm(n){return!!(4&e.getObjectFlags(n))&&n.target===wn}function cm(e){return om(e)&&!sm(e)||Lm(e)&&!e.target.readonly}function lm(e){return om(e)?$l(e)[0]:void 0}function um(e){return om(e)||!(98304&e.flags)&&df(e,jn)}function dm(n){if(4&e.getObjectFlags(n)&&3&e.getObjectFlags(n.target)){if(33554432&e.getObjectFlags(n))return 67108864&e.getObjectFlags(n)?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;var t=n.target;if(1&e.getObjectFlags(t)){var r=os(t);if(r&&79!==r.expression.kind&&205!==r.expression.kind)return}var a=ds(t);if(1===a.length&&!Vs(n.symbol).size){var i=e.length(t.typeParameters)?Yp(a[0],Np(t.typeParameters,$l(n).slice(0,t.typeParameters.length))):a[0];return e.length($l(n))>e.length(t.typeParameters)&&(i=Ks(i,e.last($l(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=i}}}function pm(e){return I?e===rn:e===Be}function fm(e){var n=lm(e);return!!n&&pm(n)}function mm(e){return Lm(e)||!!Qc(e,"0")}function _m(e){return um(e)||mm(e)}function gm(e){return!(240512&e.flags)}function ym(e){return!!(109440&e.flags)}function hm(n){return 2097152&n.flags?e.some(n.types,ym):!!(109440&n.flags)}function vm(n){return!!(16&n.flags)||(1048576&n.flags?!!(1024&n.flags)||e.every(n.types,ym):ym(n))}function bm(e){return 1024&e.flags?vs(e):128&e.flags?He:256&e.flags?We:2048&e.flags?ze:512&e.flags?Qe:1048576&e.flags?Cg(e,bm):e}function Em(e){return 1024&e.flags&&gp(e)?vs(e):128&e.flags&&gp(e)?He:256&e.flags&&gp(e)?We:2048&e.flags&&gp(e)?ze:512&e.flags&&gp(e)?Qe:1048576&e.flags?Cg(e,Em):e}function Tm(e){return 8192&e.flags?Ze:1048576&e.flags?Cg(e,Tm):e}function Sm(e,n){return CE(e,n)||(e=Tm(Em(e))),e}function xm(e,n,t,r){e&&ym(e)&&(e=Sm(e,n?IS(t,n,r):void 0));return e}function Lm(n){return!!(4&e.getObjectFlags(n)&&8&n.target.objectFlags)}function Dm(e){return Lm(e)&&!!(8&e.target.combinedFlags)}function Cm(e){return Dm(e)&&1===e.target.elementFlags.length}function Am(e){return Im(e,e.target.fixedLength)}function Im(e,n,t,r){void 0===t&&(t=0),void 0===r&&(r=!1);var a=eu(e)-t;if(n<a){for(var i=$l(e),o=[],s=n;s<a;s++){var c=i[s];o.push(8&e.target.elementFlags[s]?jd(c,We):c)}return r?pd(o):ad(o)}}function km(e){return"0"===e.value.base10Value}function Nm(e){for(var n=0,t=0,r=e;t<r.length;t++){n|=Rm(r[t])}return n}function Rm(e){return 1048576&e.flags?Nm(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?km(e)?2048:0:512&e.flags?e===Je||e===qe?512:0:117724&e.flags}function Om(e){return 117632&Rm(e)?xg(e,(function(e){return!(117632&Rm(e))})):e}function wm(e){return 4&e.flags?Ht:8&e.flags?Wt:64&e.flags?zt:e===qe||e===Je||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&km(e)?e:en}function Mm(e,n){var t=n&~e.flags&98304;return 0===t?e:ad(32768===t?[e,Ge]:65536===t?[e,je]:[e,Ge,je])}function Pm(n,t){return void 0===t&&(t=!1),e.Debug.assert(I),32768&n.flags?n:ad([n,t?Ve:Ge])}function Fm(e){return I?function(e){var n=ag(e,2097152);return Kn||(Kn=Tu("NonNullable",524288,void 0)||Le),Kn!==Le?tu(Kn,[n]):n}(e):e}function Gm(e){return I?ad([e,Ue]):e}function Bm(e){return I?Lg(e,Ue):e}function Um(n,t,r){return r?e.isOutermostOptionalChain(t)?Pm(n):Gm(n):n}function Vm(n,t){return e.isExpressionOfOptionalChainRoot(t)?Fm(n):e.isOptionalChain(t)?Bm(n):n}function jm(e,n){return U&&n?Lg(e,Ve):e}function Km(e){return U&&(e===Ve||1048576&e.flags&&Zu(e.types,Ve))}function Hm(e){return U?Lg(e,Ve):ag(e,524288)}function Wm(n){return 2097152&n.flags?e.every(n.types,Wm):!(!n.symbol||0===(7040&n.symbol.flags)||Fx(n))||!!(1024&e.getObjectFlags(n)&&Wm(n.source))}function zm(n,t){var r=Pr(n.flags,n.escapedName,8&e.getCheckFlags(n));r.declarations=n.declarations,r.parent=n.parent,r.type=t,r.target=n,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration);var a=Wr(n).nameType;return a&&(r.nameType=a),r}function Jm(n){if(!(R_(n)&&16384&e.getObjectFlags(n)))return n;var t=n.regularType;if(t)return t;var r=n,a=function(n,t){for(var r=e.createSymbolTable(),a=0,i=xc(n);a<i.length;a++){var o=i[a],s=Xo(o),c=t(s);r.set(o.escapedName,c===s?o:zm(o,c))}return r}(n,Jm),i=vi(r.symbol,a,r.callSignatures,r.constructSignatures,r.indexInfos);return i.flags=r.flags,i.objectFlags|=-16385&r.objectFlags,n.regularType=i,i}function qm(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedProperties:void 0}}function Xm(e){if(!e.siblings){for(var n=[],t=0,r=Xm(e.parent);t<r.length;t++){var a=r[t];if(R_(a)){var i=Lc(a,e.propertyName);i&&Eg(Xo(i),(function(e){n.push(e)}))}}e.siblings=n}return e.siblings}function Ym(n){if(!n.resolvedProperties){for(var t=new e.Map,r=0,a=Xm(n);r<a.length;r++){var i=a[r];if(R_(i)&&!(4194304&e.getObjectFlags(i)))for(var o=0,s=Cc(i);o<s.length;o++){var c=s[o];t.set(c.escapedName,c)}}n.resolvedProperties=e.arrayFrom(t.values())}return n.resolvedProperties}function Qm(e,n){if(!(4&e.flags))return e;var t=Xo(e),r=e_(t,n&&qm(n,e.escapedName,void 0));return r===t?e:zm(e,r)}function Zm(e){var n=xe.get(e.escapedName);if(n)return n;var t=zm(e,Ve);return t.flags|=16777216,xe.set(e.escapedName,t),t}function $m(e){return e_(e,void 0)}function e_(n,t){if(393216&e.getObjectFlags(n)){if(void 0===t&&n.widened)return n.widened;var r=void 0;if(98305&n.flags)r=Ie;else if(R_(n))r=function(n,t){for(var r=e.createSymbolTable(),a=0,i=xc(n);a<i.length;a++){var o=i[a];r.set(o.escapedName,Qm(o,t))}if(t)for(var s=0,c=Ym(t);s<c.length;s++)o=c[s],r.has(o.escapedName)||r.set(o.escapedName,Zm(o));var l=vi(n.symbol,r,e.emptyArray,e.emptyArray,e.sameMap(al(n),(function(e){return Ul(e.keyType,$m(e.type),e.isReadonly)})));return l.objectFlags|=532480&e.getObjectFlags(n),l}(n,t);else if(1048576&n.flags){var a=t||qm(void 0,void 0,n.types),i=e.sameMap(n.types,(function(e){return 98304&e.flags?e:e_(e,a)}));r=ad(i,e.some(i,If)?2:1)}else 2097152&n.flags?r=pd(e.sameMap(n.types,$m)):(om(n)||Lm(n))&&(r=Yl(n.target,e.sameMap($l(n),$m)));return r&&void 0===t&&(n.widened=r),r||n}return n}function n_(n){var t=!1;if(131072&e.getObjectFlags(n)){if(1048576&n.flags)if(e.some(n.types,If))t=!0;else for(var r=0,a=n.types;r<a.length;r++){n_(u=a[r])&&(t=!0)}if(om(n)||Lm(n))for(var i=0,o=$l(n);i<o.length;i++){n_(u=o[i])&&(t=!0)}if(R_(n))for(var s=0,c=xc(n);s<c.length;s++){var l=c[s],u=Xo(l);131072&e.getObjectFlags(u)&&(n_(u)||kr(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Mi(l),Fi($m(u))),t=!0)}}return t}function t_(n,t,r){var a=Fi($m(t));if(!e.isInJSFile(n)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),x)){var i;switch(n.kind){case 220:case 166:case 165:i=M?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 163:var o=n;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(Qr(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Rr(M,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}i=n.dotDotDotToken?M?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:M?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 202:if(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!M)return;break;case 315:return void kr(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(M&&!n.name)return void kr(n,3===r?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);i=M?3===r?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:return void(M&&kr(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=M?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Rr(M,n,i,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}}function r_(n,r,a){!(t&&M&&131072&e.getObjectFlags(r))||a&&Wy(n)||n_(r)||t_(n,r,a)}function a_(e,n,t){var r=Ob(e),a=Ob(n),i=Pb(e),o=Pb(n),s=o?a-1:a,c=i?s:Math.min(r,s),l=xl(e);if(l){var u=xl(n);u&&t(l,u)}for(var d=0;d<c;d++)t(kb(e,d),kb(n,d));o&&t(Rb(e,c),o)}function i_(e,n,t){var r=Ll(e),a=Ll(n);r&&a&&id(r,a)&&r.type&&a.type?t(r.type,a.type):t(Cl(e),Cl(n))}function o_(e,n,t,r){return s_(e.map(u_),n,t,r||cf)}function s_(e,n,t,r){var a={inferences:e,signature:n,flags:t,compareTypes:r,mapper:wp((function(e){return c_(a,e,!0)})),nonFixingMapper:wp((function(e){return c_(a,e,!1)}))};return a}function c_(e,n,t){for(var r=e.inferences,a=0;a<r.length;a++){var i=r[a];if(n===i.typeParameter)return t&&!i.isFixed&&(l_(r),i.isFixed=!0),P_(e,a)}return n}function l_(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];r.isFixed||(r.inferredType=void 0)}}function u_(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function d_(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function p_(e){return e&&e.mapper}function f_(n){var t=e.getObjectFlags(n);if(1048576&t)return!!(2097152&t);var r=!!(465829888&n.flags||524288&n.flags&&!m_(n)&&(4&t&&(n.node||e.forEach($l(n),f_))||16&t&&n.symbol&&14384&n.symbol.flags&&n.symbol.declarations||8389664&t)||3145728&n.flags&&!(1024&n.flags)&&!m_(n)&&e.some(n.types,f_));return 3899393&n.flags&&(n.objectFlags|=1048576|(r?2097152:0)),r}function m_(n){if(n.aliasSymbol&&!n.aliasTypeArguments){var t=e.getDeclarationOfKind(n.aliasSymbol,258);return!(!t||!e.findAncestor(t.parent,(function(e){return 303===e.kind||260!==e.kind&&"quit"})))}return!1}function __(n,t){return!!(n===t||3145728&n.flags&&e.some(n.types,(function(e){return __(e,t)}))||16777216&n.flags&&(Zd(n)===t||$d(n)===t))}function g_(n,t,r){if(!Ft){var a=n.id+","+t.id+","+r.id;if(Pt.has(a))return Pt.get(a);Ft=!0;var i=function(n,t,r){if(!(il(n,He)||0!==Cc(n).length&&y_(n)))return;if(om(n))return Pu(h_($l(n)[0],t,r),sm(n));if(Lm(n)){return Ku(e.map($l(n),(function(e){return h_(e,t,r)})),4&vc(t)?e.sameMap(n.target.elementFlags,(function(e){return 2&e?1:e})):n.target.elementFlags,n.target.readonly,n.target.labeledElementDeclarations)}var a=fi(1040,void 0);return a.source=n,a.mappedType=t,a.constraintType=r,a}(n,t,r);return Ft=!1,Pt.set(a,i),i}}function y_(n){return!(524288&e.getObjectFlags(n))||R_(n)&&e.some(Cc(n),(function(e){return y_(Xo(e))}))||Lm(n)&&e.some($l(n),y_)}function h_(e,n,t){var r=jd(t.type,pc(n)),a=_c(n),i=u_(r);return I_([i],e,a),E_(i)||Pe}function v_(n,t,r,a){var i,o,s,c,l,u,d;return _a(this,(function(p){switch(p.label){case 0:i=Cc(t),o=0,s=i,p.label=1;case 1:return o<s.length?Ns(c=s[o])||!r&&(16777216&c.flags||48&e.getCheckFlags(c))?[3,5]:(l=Qc(n,c.escapedName))?[3,3]:[4,c]:[3,6];case 2:return p.sent(),[3,5];case 3:return a&&109440&(u=Xo(c)).flags?1&(d=Xo(l)).flags||_p(d)===_p(u)?[3,5]:[4,c]:[3,5];case 4:p.sent(),p.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function b_(e,n,t,r){var a=v_(e,n,t,r).next();if(!a.done)return a.value}function E_(e){return e.candidates?ad(e.candidates,2):e.contraCandidates?pd(e.contraCandidates):void 0}function T_(e){return!!zr(e).skipDirectInference}function S_(n){return!(!n.symbol||!e.some(n.symbol.declarations,T_))}function x_(n,t){if(n===t||5&t.flags)return!0;if(128&n.flags){var r=n.value;return!!(8&t.flags&&""!==r&&isFinite(+r)||64&t.flags&&""!==r&&function(n){var t=e.createScanner(99,!1),r=!0;t.setOnError((function(){return r=!1})),t.setText(n+"n");var a=t.scan();40===a&&(a=t.scan());var i=t.getTokenFlags();return r&&9===a&&t.getTextPos()===n.length+1&&!(512&i)}(r)||98816&t.flags&&r===t.intrinsicName)}if(134217728&n.flags){var a=n.texts;return 2===a.length&&""===a[0]&&""===a[1]&&df(n.types[0],t)}return df(n,t)}function L_(n,t){return 128&n.flags?A_([n.value],e.emptyArray,t):134217728&n.flags?e.arraysEqual(n.texts,t.texts)?e.map(n.types,C_):A_(n.texts,n.types,t):void 0}function D_(n,t){var r=L_(n,t);return!!r&&e.every(r,(function(e,n){return x_(e,t.types[n])}))}function C_(e){return 402653317&e.flags?e:Sd(["",""],[e])}function A_(e,n,t){var r=e.length-1,a=e[0],i=e[r],o=t.texts,s=o.length-1,c=o[0],l=o[s];if(!(0===r&&a.length<c.length+l.length)&&a.startsWith(c)&&i.endsWith(l)){for(var u=i.slice(0,i.length-l.length),d=[],p=0,f=c.length,m=1;m<s;m++){var _=o[m];if(_.length>0){for(var g=p,y=f;!((y=h(g).indexOf(_,y))>=0);){if(++g===e.length)return;y=0}v(g,y),f+=_.length}else if(f<h(p).length)v(p,f+1);else{if(!(p<r))return;v(p+1,0)}}return v(r,h(r).length),d}function h(n){return n<r?e[n]:u}function v(t,r){var a=t===p?yp(h(t).slice(f,r)):Sd(pa(pa([e[p].slice(f)],e.slice(p+1,t),!0),[h(t).slice(0,r)],!1),n.slice(p,t));d.push(a),p=t,f=r}}function I_(n,t,r,a,i){void 0===a&&(a=0),void 0===i&&(i=!1);var o,s,c,l,u=!1,d=2048,p=!0,f=0;function m(t,s){if(f_(s)){if(t===Ne){var c=o;return o=t,m(s,s),void(o=c)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===s.aliasSymbol)h(t.aliasTypeArguments,s.aliasTypeArguments,Wf(t.aliasSymbol));else if(t===s&&3145728&t.flags)for(var l=0,f=t.types;l<f.length;l++){var v=f[l];m(v,v)}else{if(1048576&s.flags){var T=y(1048576&t.flags?t.types:[t],s.types,k_),L=y(T[0],T[1],N_),D=L[0];if(0===(A=L[1]).length)return;if(s=ad(A),0===D.length)return void _(t,s,1);t=ad(D)}else if(2097152&s.flags&&e.some(s.types,(function(e){return!!b(e)||Tc(e)&&!!b(Hp(e)||en)}))){if(!(1048576&t.flags)){var C=y(2097152&t.flags?t.types:[t],s.types,of),A=(D=C[0],C[1]);if(0===D.length||0===A.length)return;t=pd(D),s=pd(A)}}else 41943040&s.flags&&(s=Jd(s));if(8650752&s.flags){if(524288&e.getObjectFlags(t)||t===we||t===nn||128&a&&(t===ke||t===Vn)||S_(t))return;var I=b(s);if(I){if(!I.isFixed){if((void 0===I.priority||a<I.priority)&&(I.candidates=void 0,I.contraCandidates=void 0,I.topLevel=!0,I.priority=a),a===I.priority){var k=o||t;i&&!u?e.contains(I.contraCandidates,k)||(I.contraCandidates=e.append(I.contraCandidates,k),l_(n)):e.contains(I.candidates,k)||(I.candidates=e.append(I.candidates,k),l_(n))}!(128&a)&&262144&s.flags&&I.topLevel&&!__(r,s)&&(I.topLevel=!1,l_(n))}return void(d=Math.min(d,a))}var N=Gd(s,!1);if(N!==s)g(t,N,m);else if(8388608&s.flags){var R=Gd(s.indexType,!1);if(465829888&R.flags){var O=Bd(Gd(s.objectType,!1),R,!1);O&&O!==s&&g(t,O,m)}}}if(!(4&e.getObjectFlags(t)&&4&e.getObjectFlags(s)&&(t.target===s.target||om(t)&&om(s)))||t.node&&s.node)if(4194304&t.flags&&4194304&s.flags)i=!i,m(t.type,s.type),i=!i;else if((vm(t)||4&t.flags)&&4194304&s.flags){var w=function(n){var t=e.createSymbolTable();Eg(n,(function(n){if(128&n.flags){var r=e.escapeLeadingUnderscores(n.value),a=Pr(4,r);a.type=Ie,n.symbol&&(a.declarations=n.symbol.declarations,a.valueDeclaration=n.symbol.valueDeclaration),t.set(r,a)}}));var r=4&n.flags?[Ul(He,mn,!1)]:e.emptyArray;return vi(void 0,t,e.emptyArray,e.emptyArray,r)}(t);i=!i,_(w,s.type,256),i=!i}else if(8388608&t.flags&&8388608&s.flags)m(t.objectType,s.objectType),m(t.indexType,s.indexType);else if(268435456&t.flags&&268435456&s.flags)t.symbol===s.symbol&&m(t.type,s.type);else if(33554432&t.flags){m(t.baseType,s);var M=a;a|=4,m(t.substitute,s),a=M}else if(16777216&s.flags)g(t,s,S);else if(3145728&s.flags)E(t,s.types,s.flags);else if(1048576&t.flags)for(var P=0,F=t.types;P<F.length;P++){m(F[P],s)}else if(134217728&s.flags)!function(n,t){var r=L_(n,t),a=t.types;if(r||e.every(t.texts,(function(e){return 0===e.length})))for(var i=0;i<a.length;i++)m(r?r[i]:en,a[i])}(t,s);else{if(t=zc(t),!(512&a&&467927040&t.flags)){var G=Vc(t);if(G!==t&&p&&!(2621440&G.flags))return p=!1,m(G,s);t=G}2621440&t.flags&&g(t,s,x)}else h($l(t),$l(s),Jf(t.target))}}}function _(e,n,t){var r=a;a|=t,m(e,n),a=r}function g(n,t,r){var a=n.id+","+t.id,i=s&&s.get(a);if(void 0===i){(s||(s=new e.Map)).set(a,-1);var o=d;d=2048;var u=f,p=nm(n),m=nm(t);e.contains(c,p)&&(f|=1),e.contains(l,m)&&(f|=2),3!==f?((c||(c=[])).push(p),(l||(l=[])).push(m),r(n,t),l.pop(),c.pop()):d=-1,f=u,s.set(a,d),d=Math.min(d,o)}else d=Math.min(d,i)}function y(n,t,r){for(var a,i,o=0,s=t;o<s.length;o++)for(var c=s[o],l=0,u=n;l<u.length;l++){var d=u[l];r(d,c)&&(m(d,c),a=e.appendIfUnique(a,d),i=e.appendIfUnique(i,c))}return[a?e.filter(n,(function(n){return!e.contains(a,n)})):n,i?e.filter(t,(function(n){return!e.contains(i,n)})):t]}function h(e,n,t){for(var r=e.length<n.length?e.length:n.length,a=0;a<r;a++)a<t.length&&2===(7&t[a])?v(e[a],n[a]):m(e[a],n[a])}function v(e,n){k||1024&a?(i=!i,m(e,n),i=!i):m(e,n)}function b(e){if(8650752&e.flags)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(e===a.typeParameter)return a}}function E(n,t,r){var i=0;if(1048576&r){for(var o=void 0,s=1048576&n.flags?n.types:[n],c=new Array(s.length),l=!1,u=0,p=t;u<p.length;u++){if(b(x=p[u]))o=x,i++;else for(var f=0;f<s.length;f++){var g=d;d=2048,m(s[f],x),d===a&&(c[f]=!0),l=l||-1===d,d=Math.min(d,g)}}if(0===i){var y=function(n){for(var t,r=0,a=n;r<a.length;r++){var i=a[r],o=2097152&i.flags&&e.find(i.types,(function(e){return!!b(e)}));if(!o||t&&o!==t)return;t=o}return t}(t);return void(y&&_(n,y,1))}if(1===i&&!l){var h=e.flatMap(s,(function(e,n){return c[n]?void 0:e}));if(h.length)return void m(ad(h),o)}}else for(var v=0,E=t;v<E.length;v++){b(x=E[v])?i++:m(n,x)}if(2097152&r?1===i:i>0)for(var T=0,S=t;T<S.length;T++){var x;b(x=S[T])&&_(n,x,1)}}function T(n,t,r){if(1048576&r.flags){for(var a=!1,i=0,o=r.types;i<o.length;i++){a=T(n,t,o[i])||a}return a}if(4194304&r.flags){var s=b(r.type);if(s&&!s.isFixed&&!S_(n)){var c=g_(n,t,r);c&&_(c,s.typeParameter,524288&e.getObjectFlags(n)?16:8)}return!0}if(262144&r.flags){_(Ed(n),r,32);var l=Ac(r);if(l&&T(n,t,l))return!0;var u=e.map(Cc(n),Xo),d=e.map(al(n),(function(e){return e!==At?e.type:en}));return m(ad(e.concatenate(u,d)),_c(t)),!0}return!1}function S(e,n){if(16777216&e.flags)m(e.checkType,n.checkType),m(e.extendsType,n.extendsType),m(Zd(e),Zd(n)),m($d(e),$d(n));else{var t=a;a|=i?64:0,E(e,[Zd(n),$d(n)],n.flags),a=t}}function x(n,t){if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)&&(n.target===t.target||om(n)&&om(t)))h($l(n),$l(t),Jf(n.target));else{if(Tc(n)&&Tc(t)){m(fc(n),fc(t)),m(_c(n),_c(t));var r=mc(n),a=mc(t);r&&a&&m(r,a)}var i,o;if(32&e.getObjectFlags(t)&&!t.declaration.nameType)if(T(n,t,fc(t)))return;if(!function(e,n){return Lm(e)&&Lm(n)?function(e,n){return!(8&n.target.combinedFlags)&&n.target.minLength>e.target.minLength||!n.target.hasRestElement&&(e.target.hasRestElement||n.target.fixedLength<e.target.fixedLength)}(e,n):!!b_(e,n,!1,!0)&&!!b_(n,e,!1,!1)}(n,t)){if(om(n)||Lm(n)){if(Lm(t)){var s=eu(n),c=eu(t),l=$l(t),u=t.target.elementFlags;if(Lm(n)&&(o=t,eu(i=n)===eu(o)&&e.every(i.target.elementFlags,(function(e,n){return(12&e)===(12&o.target.elementFlags[n])})))){for(var d=0;d<c;d++)m($l(n)[d],l[d]);return}var p=Lm(n)?Math.min(n.target.fixedLength,t.target.fixedLength):0,f=Math.min(Lm(n)?Yu(n.target,3):0,t.target.hasRestElement?Yu(t.target,3):0);for(d=0;d<p;d++)m($l(n)[d],l[d]);if(!Lm(n)||s-p-f===1&&4&n.target.elementFlags[p]){var g=$l(n)[p];for(d=p;d<c-f;d++)m(8&u[d]?Pu(g):g,l[d])}else{var y=c-p-f;if(2===y&&u[p]&u[p+1]&8&&Lm(n)){var v=b(l[p]);v&&void 0!==v.impliedArity&&(m(Ju(n,p,f+s-v.impliedArity),l[p]),m(Ju(n,p+v.impliedArity,f),l[p+1]))}else if(1===y&&8&u[p]){var E=2&t.target.elementFlags[c-1];_(Lm(n)?Ju(n,p,f):Pu($l(n)[0]),l[p],E?2:0)}else if(1===y&&4&u[p]){(g=Lm(n)?Im(n,p,f):$l(n)[0])&&m(g,l[p])}}for(d=0;d<f;d++)m($l(n)[s-d-1],l[c-d-1]);return}if(om(t))return void C(n,t)}!function(e,n){for(var t=xc(n),r=0,a=t;r<a.length;r++){var i=a[r],o=Qc(e,i.escapedName);o&&m(Xo(o),Xo(i))}}(n,t),L(n,t,0),L(n,t,1),C(n,t)}}}function L(n,t,r){for(var a=$c(n,r),i=$c(t,r),o=a.length,s=i.length,c=o<s?o:s,l=!!(524288&e.getObjectFlags(n)),u=0;u<c;u++)D(Pl(a[o-c+u]),wl(i[s-c+u]),l)}function D(e,n,t){if(!t){var r=u,a=n.declaration?n.declaration.kind:0;u=u||168===a||167===a||170===a,a_(e,n,v),u=r}i_(e,n,m)}function C(n,t){var r=e.getObjectFlags(n)&e.getObjectFlags(t)&32?8:0,a=al(t);if(Wm(n))for(var i=0,o=a;i<o.length;i++){for(var s=o[i],c=[],l=0,u=Cc(n);l<u.length;l++){var d=u[l];if(tl(hd(d,8576),s.keyType)){var p=Xo(d);c.push(16777216&d.flags?Hm(p):p)}}for(var f=0,m=al(n);f<m.length;f++){var g=m[f];tl(g.keyType,s.keyType)&&c.push(g.type)}c.length&&_(ad(c),s.type,r)}for(var y=0,h=a;y<h.length;y++){var v=cl(n,(s=h[y]).keyType);v&&_(v.type,s.type,r)}}m(t,r)}function k_(e,n){return U&&n===Ve?e===n:of(e,n)||!!(4&n.flags&&128&e.flags||8&n.flags&&256&e.flags)}function N_(e,n){return!!(524288&e.flags&&524288&n.flags&&e.symbol&&e.symbol===n.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol)}function R_(n){return!!(128&e.getObjectFlags(n))}function O_(n){return!!(32896&e.getObjectFlags(n))}function w_(n){return 416&n.priority?pd(n.contraCandidates):function(n){return e.reduceLeft(n,(function(e,n){return uf(n,e)?n:e}))}(n.contraCandidates)}function M_(n,t){var r=function(n){if(n.length>1){var t=e.filter(n,O_);if(t.length){var r=ad(t,2);return e.concatenate(e.filter(n,(function(e){return!O_(e)})),[r])}}return n}(n.candidates),a=function(e){var n=Ic(e);return!!n&&cE(16777216&n.flags?Nc(n):n,406978556)}(n.typeParameter),i=!a&&n.topLevel&&(n.isFixed||!__(Cl(t),n.typeParameter)),o=a?e.sameMap(r,_p):i?e.sameMap(r,Em):r;return $m(416&n.priority?ad(o,2):function(n){if(!I)return im(n);var t=e.filter(n,(function(e){return!(98304&e.flags)}));return t.length?Mm(im(t),98304&Nm(n)):ad(n,2)}(o))}function P_(n,t){var r,a,i=n.inferences[t];if(!i.inferredType){var o=void 0,s=n.signature;if(s){var c=i.candidates?M_(i,s):void 0;if(i.contraCandidates)o=!c||131072&c.flags||!e.some(i.contraCandidates,(function(e){return uf(c,e)}))?w_(i):c;else if(c)o=c;else if(1&n.flags)o=nn;else{var l=Bc(i.typeParameter);l&&(o=Yp(l,(r=function(n,t){return wp((function(r){return e.findIndex(n.inferences,(function(e){return e.typeParameter===r}))>=t?Pe:r}))}(n,t),a=n.nonFixingMapper,r?Mp(4,r,a):a)))}}else o=E_(i);i.inferredType=o||F_(!!(2&n.flags));var u=Ic(i.typeParameter);if(u){var d=Yp(u,n.nonFixingMapper);o&&n.compareTypes(o,Ks(d,o))||(i.inferredType=o=d)}}return i.inferredType}function F_(e){return e?Ie:Pe}function G_(e){for(var n=[],t=0;t<e.inferences.length;t++)n.push(P_(e,t));return n}function B_(n){switch(n.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return x.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return x.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return x.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return 295===n.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function U_(n){var t=zr(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&Qr(n,n.escapedText,1160127,B_(n),n,!e.isWriteOnlyAccess(n),!1)||Le),t.resolvedSymbol}function V_(n){return!!e.findAncestor(n,(function(e){return 180===e.kind||79!==e.kind&&160!==e.kind&&"quit"}))}function j_(n,t,r,a){switch(n.kind){case 79:if(!e.isThisInTypeQuery(n)){var i=U_(n);return i!==Le?"".concat(a?X(a):"-1","|").concat(Qu(t),"|").concat(Qu(r),"|").concat(Y(i)):void 0}case 108:return"0|".concat(a?X(a):"-1","|").concat(Qu(t),"|").concat(Qu(r));case 229:case 211:return j_(n.expression,t,r,a);case 160:var o=j_(n.left,t,r,a);return o&&o+"."+n.right.escapedText;case 205:case 206:var s=H_(n);if(void 0!==s){var c=j_(n.expression,t,r,a);return c&&c+"."+s}}}function K_(n,t){switch(t.kind){case 211:case 229:return K_(n,t.expression);case 220:return e.isAssignmentExpression(t)&&K_(n,t.left)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&K_(n,t.right)}switch(n.kind){case 230:return 230===t.kind&&n.keywordToken===t.keywordToken&&n.name.escapedText===t.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(n)?108===t.kind:79===t.kind&&U_(n)===U_(t)||(253===t.kind||202===t.kind)&&si(U_(n))===ni(t);case 108:return 108===t.kind;case 106:return 106===t.kind;case 229:case 211:return K_(n.expression,t);case 205:case 206:return e.isAccessExpression(t)&&H_(n)===H_(t)&&K_(n.expression,t.expression);case 160:return e.isAccessExpression(t)&&n.right.escapedText===H_(t)&&K_(n.left,t.expression);case 220:return e.isBinaryExpression(n)&&27===n.operatorToken.kind&&K_(n.right,t)}return!1}function H_(n){var t;return 205===n.kind?n.name.escapedText:206===n.kind&&e.isStringOrNumericLiteralLike(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):202===n.kind&&(t=po(n))?e.escapeLeadingUnderscores(t):void 0}function W_(n,t){for(;e.isAccessExpression(n);)if(K_(n=n.expression,t))return!0;return!1}function z_(n,t){for(;e.isOptionalChain(n);)if(K_(n=n.expression,t))return!0;return!1}function J_(n,t){if(n&&1048576&n.flags){var r=Hc(n,t);if(r&&2&e.getCheckFlags(r))return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=192===(192&r.checkFlags)&&!Od(Xo(r))),!!r.isDiscriminantProperty}return!1}function q_(e,n){for(var t,r=0,a=e;r<a.length;r++){var i=a[r];if(J_(n,i.escapedName)){if(t){t.push(i);continue}t=[i]}}return t}function X_(n){var t=n.types;if(!(t.length<10||65536&e.getObjectFlags(n)||e.countWhere(t,(function(e){return!!(59506688&e.flags)}))<10)){if(void 0===n.keyPropertyName){var r=e.forEach(t,(function(n){return 59506688&n.flags?e.forEach(Cc(n),(function(e){return ym(Xo(e))?e.escapedName:void 0})):void 0})),a=r&&function(n,t){for(var r=new e.Map,a=0,i=function(e){if(61603840&e.flags){var n=to(e,t);if(n){if(!vm(n))return{value:void 0};var i=!1;Eg(n,(function(n){var t=Qu(_p(n)),a=r.get(t);a?a!==Pe&&(r.set(t,Pe),i=!0):r.set(t,e)})),i||a++}}},o=0,s=n;o<s.length;o++){var c=i(s[o]);if("object"===typeof c)return c.value}return a>=10&&2*a>=n.length?r:void 0}(t,r);n.keyPropertyName=a?r:"",n.constituentMap=a}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function Y_(e,n){var t,r=null===(t=e.constituentMap)||void 0===t?void 0:t.get(Qu(_p(n)));return r!==Pe?r:void 0}function Q_(e,n){var t=X_(e),r=t&&to(n,t);return r&&Y_(e,r)}function Z_(e,n){return K_(e,n)||W_(e,n)}function $_(e,n){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){if(Z_(n,r[t]))return!0}return!(205!==e.expression.kind||!Z_(n,e.expression.expression))}function eg(e){return(!e.id||e.id<0)&&(e.id=m,m++),e.id}function ng(e,n){if(e!==n){if(131072&n.flags)return n;var t=xg(e,(function(e){return function(e,n){if(!(1048576&e.flags))return df(e,n);for(var t=0,r=e.types;t<r.length;t++)if(df(r[t],n))return!0;return!1}(n,e)}));if(512&n.flags&&gp(n)&&(t=Cg(t,mp)),df(n,t))return t}return e}function tg(e){var n=Sc(e);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&uf(e,kn))}function rg(n,t){void 0===t&&(t=!1);var r=n.flags;if(4&r)return I?16317953:16776705;if(128&r){var a=""===n.value;return I?a?12123649:7929345:a?12582401:16776705}if(40&r)return I?16317698:16776450;if(256&r){var i=0===n.value;return I?i?12123394:7929090:i?12582146:16776450}if(64&r)return I?16317188:16775940;if(2048&r){i=km(n);return I?i?12122884:7928580:i?12581636:16775940}return 16&r?I?16316168:16774920:528&r?I?n===Je||n===qe?12121864:7927560:n===Je||n===qe?12580616:16774920:524288&r&&!t?16&e.getObjectFlags(n)&&If(n)?I?16318463:16777215:tg(n)?I?7880640:16728e3:I?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?I?7925520:16772880:67108864&r?I?7888800:16736160:131072&r?0:465829888&r?Rd(n)?I?7929345:16776705:rg(wc(n)||Pe,t):1048576&r?e.reduceLeft(n.types,(function(e,n){return e|rg(n,t)}),0):2097152&r?(t||(t=cE(n,131068)),e.reduceLeft(n.types,(function(e,n){return e&rg(n,t)}),16777215)):16777215}function ag(e,n){return xg(e,(function(e){return 0!==(rg(e)&n)}))}function ig(e,n){return n?ad([co(e),GE(n)]):e}function og(e,n){var t,r=yd(n);if(!Os(r))return Re;var a=Gs(r);return to(e,a)||cg(null===(t=ll(e,a))||void 0===t?void 0:t.type)||Re}function sg(e,n){return Sg(e,mm)&&function(e,n){return to(e,""+n)||(Sg(e,Lm)?Cg(e,(function(e){return Am(e)||Ge})):void 0)}(e,n)||cg(oS(65,e,Ge,void 0))||Re}function cg(e){return e&&x.noUncheckedIndexedAccess?ad([e,Ge]):e}function lg(e){return Pu(oS(65,e,Ge,void 0)||Re)}function ug(e){return 220===e.parent.kind&&e.parent.left===e||243===e.parent.kind&&e.parent.initializer===e}function dg(e){return og(pg(e.parent),e.name)}function pg(e){var n=e.parent;switch(n.kind){case 242:return He;case 243:return iS(n)||Re;case 220:return function(e){return 203===e.parent.kind&&ug(e.parent)||294===e.parent.kind&&ug(e.parent.parent)?ig(pg(e),e.right):GE(e.right)}(n);case 214:return Ge;case 203:return function(e,n){return sg(pg(e),e.elements.indexOf(n))}(n,e);case 224:return function(e){return lg(pg(e.parent))}(n);case 294:return dg(n);case 295:return function(e){return ig(dg(e),e.objectAssignmentInitializer)}(n)}return Re}function fg(e){return zr(e).resolvedType||GE(e)}function mg(e){return 253===e.kind?function(e){return e.initializer?fg(e.initializer):242===e.parent.parent.kind?He:243===e.parent.parent.kind&&iS(e.parent.parent)||Re}(e):function(e){var n=e.parent,t=mg(n.parent);return ig(200===n.kind?og(t,e.propertyName||e.name):e.dotDotDotToken?lg(t):sg(t,n.elements.indexOf(e)),e.initializer)}(e)}function _g(e){switch(e.kind){case 211:return _g(e.expression);case 220:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return _g(e.left);case 27:return _g(e.right)}}return e}function gg(e){var n=e.parent;return 211===n.kind||220===n.kind&&63===n.operatorToken.kind&&n.left===e||220===n.kind&&27===n.operatorToken.kind&&n.right===e?gg(n):e}function yg(e){return 288===e.kind?_p(GE(e.expression)):en}function hg(e){var n=zr(e);if(!n.switchTypes){n.switchTypes=[];for(var t=0,r=e.caseBlock.clauses;t<r.length;t++){var a=r[t];n.switchTypes.push(yg(a))}}return n.switchTypes}function vg(n,t){for(var r=[],a=0,i=n.caseBlock.clauses;a<i.length;a++){var o=i[a];if(288===o.kind){if(e.isStringLiteralLike(o.expression)){r.push(o.expression.text);continue}return e.emptyArray}t&&r.push(void 0)}return r}function bg(e,n){return e===n||1048576&n.flags&&function(e,n){if(1048576&e.flags){for(var t=0,r=e.types;t<r.length;t++){var a=r[t];if(!Zu(n.types,a))return!1}return!0}if(1024&e.flags&&vs(e)===n)return!0;return Zu(n.types,e)}(e,n)}function Eg(n,t){return 1048576&n.flags?e.forEach(n.types,t):t(n)}function Tg(n,t){return 1048576&n.flags?e.some(n.types,t):t(n)}function Sg(n,t){return 1048576&n.flags?e.every(n.types,t):t(n)}function xg(n,t){if(1048576&n.flags){var r=n.types,a=e.filter(r,t);if(a===r)return n;var i=n.origin,o=void 0;if(i&&1048576&i.flags){var s=i.types,c=e.filter(s,(function(e){return!!(1048576&e.flags)||t(e)}));if(s.length-c.length===r.length-a.length){if(1===c.length)return c[0];o=rd(1048576,c)}}return od(a,n.objectFlags,void 0,void 0,o)}return 131072&n.flags||t(n)?n:en}function Lg(e,n){return xg(e,(function(e){return e!==n}))}function Dg(e){return 1048576&e.flags?e.types.length:1}function Cg(e,n,t){if(131072&e.flags)return e;if(!(1048576&e.flags))return n(e);for(var r,a=e.origin,i=!1,o=0,s=a&&1048576&a.flags?a.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?Cg(c,n,t):n(c);i||(i=c!==l),l&&(r?r.push(l):r=[l])}return i?r&&ad(r,t?0:1):e}function Ag(n,t,r,a){return 1048576&n.flags&&r?ad(e.map(n.types,t),1,r,a):Cg(n,t)}function Ig(e){return 1048576&e.flags?e.types.length:1}function kg(e,n){return xg(e,(function(e){return 0!==(e.flags&n)}))}function Ng(e,n){return cE(e,134217804)&&cE(n,402655616)?Cg(e,(function(e){return 4&e.flags?kg(n,402653316):Rd(e)&&!cE(n,402653188)?kg(n,128):8&e.flags?kg(n,264):64&e.flags?kg(n,2112):e})):e}function Rg(e){return 0===e.flags}function Og(e){return 0===e.flags?e.type:e}function wg(e,n){return n?{flags:0,type:131072&e.flags?nn:e}:e}function Mg(e){return Se[e.id]||(Se[e.id]=function(e){var n=fi(256);return n.elementType=e,n}(e))}function Pg(e,n){var t=Jm(bm(UE(n)));return bg(t,e.elementType)?e:Mg(ad([e.elementType,t]))}function Fg(e){return e.finalArrayType||(e.finalArrayType=131072&(n=e.elementType).flags?Vn:Pu(1048576&n.flags?ad(n.types,2):n));var n}function Gg(n){return 256&e.getObjectFlags(n)?Fg(n):n}function Bg(n){return 256&e.getObjectFlags(n)?n.elementType:en}function Ug(n){var t=gg(n),r=t.parent,a=e.isPropertyAccessExpression(r)&&("length"===r.name.escapedText||207===r.parent.kind&&e.isIdentifier(r.name)&&e.isPushOrUnshiftIdentifier(r.name)),i=206===r.kind&&r.expression===t&&220===r.parent.kind&&63===r.parent.operatorToken.kind&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&lE(GE(r.argumentExpression),296);return a||i}function Vg(n,t){if(8752&n.flags)return Xo(n);if(7&n.flags){if(262144&e.getCheckFlags(n)){var r=n.syntheticOrigin;if(r&&Vg(r))return Xo(n)}var a=n.valueDeclaration;if(a){if(s=a,(e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isParameter(s))&&(e.getEffectiveTypeAnnotationNode(s)||e.isInJSFile(s)&&e.hasInitializer(s)&&s.initializer&&e.isFunctionExpressionOrArrowFunction(s.initializer)&&e.getEffectiveReturnTypeNode(s.initializer)))return Xo(n);if(e.isVariableDeclaration(a)&&243===a.parent.parent.kind){var i=a.parent.parent,o=jg(i.expression,void 0);if(o)return oS(i.awaitModifier?15:13,o,Ge,void 0)}t&&e.addRelatedInfo(t,e.createDiagnosticForNode(a,e.Diagnostics._0_needs_an_explicit_type_annotation,Mi(n)))}}var s}function jg(n,t){if(!(16777216&n.flags))switch(n.kind){case 79:var r=si(U_(n));return Vg(2097152&r.flags?Ia(r):r,t);case 108:return function(n){var t=e.getThisContainer(n,!1);if(e.isFunctionLike(t)){var r=vl(t);if(r.thisParameter)return Vg(r.thisParameter)}if(e.isClassLike(t.parent)){var a=ni(t.parent);return e.isStatic(t)?Xo(a):Ss(a).thisType}}(n);case 106:return _y(n);case 205:var a=jg(n.expression,t);if(a){var i=n.name,o=void 0;if(e.isPrivateIdentifier(i)){if(!a.symbol)return;o=Qc(a,e.getSymbolNameForPrivateIdentifier(a.symbol,i.escapedText))}else o=Qc(a,i.escapedText);return o&&Vg(o,t)}return;case 211:return jg(n.expression,t)}}function Kg(n){var t=zr(n),r=t.effectsSignature;if(void 0===r){var a=void 0;237===n.parent.kind?a=jg(n.expression,void 0):106!==n.expression.kind&&(a=e.isOptionalChain(n)?Gh(Vm(VE(n.expression),n.expression),n.expression):Rh(n.expression));var i=$c(a&&Vc(a)||Pe,0),o=1!==i.length||i[0].typeParameters?e.some(i,Hg)?ib(n):void 0:i[0];r=t.effectsSignature=o&&Hg(o)?o:Lt}return r===Lt?void 0:r}function Hg(e){return!!(Ll(e)||e.declaration&&131072&(Al(e.declaration)||Pe).flags)}function Wg(e){var n=Jg(e,!1);return gt=e,yt=n,n}function zg(n){var t=e.skipParentheses(n,!0);return 95===t.kind||220===t.kind&&(55===t.operatorToken.kind&&(zg(t.left)||zg(t.right))||56===t.operatorToken.kind&&zg(t.left)&&zg(t.right))}function Jg(n,t){for(;;){if(n===gt)return yt;var r=n.flags;if(4096&r){if(!t){var a=eg(n),i=or[a];return void 0!==i?i:or[a]=Jg(n,!0)}t=!1}if(368&r)n=n.antecedent;else if(512&r){var o=Kg(n.node);if(o){var s=Ll(o);if(s&&3===s.kind&&!s.type){var c=n.node.arguments[s.parameterIndex];if(c&&zg(c))return!1}if(131072&Cl(o).flags)return!1}n=n.antecedent}else{if(4&r)return e.some(n.antecedents,(function(e){return Jg(e,!1)}));if(8&r){var l=n.antecedents;if(void 0===l||0===l.length)return!1;n=l[0]}else{if(!(128&r)){if(1024&r){gt=void 0;var u=n.target,d=u.antecedents;u.antecedents=n.antecedents;var p=Jg(n.antecedent,!1);return u.antecedents=d,p}return!(1&r)}if(n.clauseStart===n.clauseEnd&&Yb(n.switchStatement))return!1;n=n.antecedent}}}}function qg(n,t){for(;;){var r=n.flags;if(4096&r){if(!t){var a=eg(n),i=sr[a];return void 0!==i?i:sr[a]=qg(n,!0)}t=!1}if(496&r)n=n.antecedent;else if(512&r){if(106===n.node.expression.kind)return!0;n=n.antecedent}else{if(4&r)return e.every(n.antecedents,(function(e){return qg(e,!1)}));if(!(8&r)){if(1024&r){var o=n.target,s=o.antecedents;o.antecedents=n.antecedents;var c=qg(n.antecedent,!1);return o.antecedents=s,c}return!!(1&r)}n=n.antecedents[0]}}}function Xg(n){switch(n.kind){case 79:var t=U_(n);return ey(t)||e.isParameterOrCatchClauseVariable(t)&&!Zg(t);case 205:case 206:return Xg(n.expression)&&rE(zr(n).resolvedSymbol||Le)}return!1}function Yg(n,t,r,a){var i;void 0===r&&(r=t);var o=!1,s=0;if(jt)return Re;if(!n.flowNode)return t;Kt++;var c=Vt,l=Og(p(n.flowNode));Vt=c;var u=256&e.getObjectFlags(l)&&Ug(n)?Vn:Gg(l);return u===an||n.parent&&229===n.parent.kind&&!(131072&u.flags)&&131072&ag(u,2097152).flags?t:u===Fe?Pe:u;function d(){return o?i:(o=!0,i=j_(n,t,r,a))}function p(i){if(2e3===s)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:i.id}),jt=!0,function(n){var t=e.findAncestor(n,e.isFunctionOrModuleBlock),r=e.getSourceFileOfNode(n),a=e.getSpanOfTokenAtPosition(r,t.statements.pos);fr.add(e.createFileDiagnostic(r,a.start,a.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(n),Re;var o;for(s++;;){var l=i.flags;if(4096&l){for(var u=c;u<Vt;u++)if(ar[u]===i)return s--,ir[u];o=i}var d=void 0;if(16&l){if(!(d=m(i))){i=i.antecedent;continue}}else if(512&l){if(!(d=g(i))){i=i.antecedent;continue}}else if(96&l)d=h(i);else if(128&l)d=v(i);else if(12&l){if(1===i.antecedents.length){i=i.antecedents[0];continue}d=4&l?b(i):T(i)}else if(256&l){if(!(d=y(i))){i=i.antecedent;continue}}else if(1024&l){var f=i.target,_=f.antecedents;f.antecedents=i.antecedents,d=p(i.antecedent),f.antecedents=_}else if(2&l){var E=i.node;if(E&&E!==a&&205!==n.kind&&206!==n.kind&&108!==n.kind){i=E.flowNode;continue}d=r}else d=JT(t);return o&&(ar[Vt]=o,ir[Vt]=d,Vt++),s--,d}}function f(e){var t=e.node;return ry(253===t.kind||202===t.kind?mg(t):pg(t),n)}function m(r){var a=r.node;if(K_(n,a)){if(!Wg(r))return an;if(2===e.getAssignmentTargetKind(a)){var i=p(r.antecedent);return wg(bm(Og(i)),Rg(i))}if(t===ke||t===Vn){if(function(e){return 253===e.kind&&e.initializer&&go(e.initializer)||202!==e.kind&&220===e.parent.kind&&go(e.parent.right)}(a))return Mg(en);var o=Em(f(r));return df(o,t)?o:Un}return 1048576&t.flags?ng(t,f(r)):t}if(W_(n,a)){if(!Wg(r))return an;if(e.isVariableDeclaration(a)&&(e.isInJSFile(a)||e.isVarConst(a))){var s=e.getDeclaredExpandoInitializer(a);if(s&&(212===s.kind||213===s.kind))return p(r.antecedent)}return t}if(e.isVariableDeclaration(a)&&242===a.parent.parent.kind&&K_(n,a.parent.parent.expression))return wh(Og(p(r.antecedent)))}function _(n,t){var r=e.skipParentheses(t,!0);if(95===r.kind)return an;if(220===r.kind){if(55===r.operatorToken.kind)return _(_(n,r.left),r.right);if(56===r.operatorToken.kind)return ad([_(n,r.left),_(n,r.right)])}return H(n,r,!0)}function g(e){var n=Kg(e.node);if(n){var t=Ll(n);if(t&&(2===t.kind||3===t.kind)){var r=p(e.antecedent),a=Gg(Og(r)),i=t.type?K(a,t,e.node,!0):3===t.kind&&t.parameterIndex>=0&&t.parameterIndex<e.node.arguments.length?_(a,e.node.arguments[t.parameterIndex]):a;return i===a?r:wg(i,Rg(r))}if(131072&Cl(n).flags)return an}}function y(r){if(t===ke||t===Vn){var a=r.node,i=207===a.kind?a.expression.expression:a.left.expression;if(K_(n,_g(i))){var o=p(r.antecedent),s=Og(o);if(256&e.getObjectFlags(s)){var c=s;if(207===a.kind)for(var l=0,u=a.arguments;l<u.length;l++){c=Pg(c,u[l])}else lE(UE(a.left.argumentExpression),296)&&(c=Pg(c,a.right));return c===s?o:wg(c,Rg(o))}return o}}}function h(e){var n=p(e.antecedent),t=Og(n);if(131072&t.flags)return n;var r=0!==(32&e.flags),a=Gg(t),i=H(a,e.node,r);return i===a?n:wg(i,Rg(n))}function v(t){var r=t.switchStatement.expression,a=p(t.antecedent),i=Og(a);if(K_(n,r))i=F(i,t.switchStatement,t.clauseStart,t.clauseEnd);else if(215===r.kind&&K_(n,r.expression))i=function(n,t,r,a){var i=vg(t,!0);if(!i.length)return n;var o,s,c=e.findIndex(i,(function(e){return void 0===e})),l=r===a||c>=r&&c<a;if(c>-1){var u=i.filter((function(e){return void 0!==e})),d=c<r?r-1:r,p=c<a?a-1:a;o=u.slice(d,p),s=Xb(d,p,u,l)}else o=i.slice(r,a),s=Xb(r,a,i,l);if(l)return xg(n,(function(e){return(rg(e)&s)===s}));var f=ag(ad(o.map((function(e){return G(n,e)||n}))),s);return ag(Cg(n,B(f)),s)}(i,t.switchStatement,t.clauseStart,t.clauseEnd);else{I&&(z_(r,n)?i=P(i,t.switchStatement,t.clauseStart,t.clauseEnd,(function(e){return!(163840&e.flags)})):215===r.kind&&z_(r.expression,n)&&(i=P(i,t.switchStatement,t.clauseStart,t.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))));var o=x(r,i);o&&(i=function(n,t,r,a,i){if(a<i&&1048576&n.flags&&X_(n)===H_(t)){var o=hg(r).slice(a,i),s=ad(e.map(o,(function(e){return Y_(n,e)||Pe})));if(s!==Pe)return s}return L(n,t,(function(e){return F(e,r,a,i)}))}(i,o,t.switchStatement,t.clauseStart,t.clauseEnd))}return wg(i,Rg(a))}function b(n){for(var a,i=[],o=!1,s=!1,c=0,l=n.antecedents;c<l.length;c++){var u=l[c];if(!a&&128&u.flags&&u.clauseStart===u.clauseEnd)a=u;else{if((f=Og(d=p(u)))===t&&t===r)return f;e.pushIfUnique(i,f),bg(f,t)||(o=!0),Rg(d)&&(s=!0)}}if(a){var d,f=Og(d=p(a));if(!e.contains(i,f)&&!Yb(a.switchStatement)){if(f===t&&t===r)return f;i.push(f),bg(f,t)||(o=!0),Rg(d)&&(s=!0)}}return wg(S(i,o?2:1),s)}function T(n){var r=eg(n),a=er[r]||(er[r]=new e.Map),i=d();if(!i)return t;var o=a.get(i);if(o)return o;for(var s=Bt;s<Ut;s++)if(nr[s]===n&&tr[s]===i&&rr[s].length)return wg(S(rr[s],1),!0);for(var c,l=[],u=!1,f=0,m=n.antecedents;f<m.length;f++){var _=m[f],g=void 0;if(c){nr[Ut]=n,tr[Ut]=i,rr[Ut]=l,Ut++;var y=ht;ht=void 0,g=p(_),ht=y,Ut--;var h=a.get(i);if(h)return h}else g=c=p(_);var v=Og(g);if(e.pushIfUnique(l,v),bg(v,t)||(u=!0),v===t)break}var b=S(l,u?2:1);return Rg(c)?wg(b,!0):(a.set(i,b),b)}function S(n,r){if(function(n){for(var t=!1,r=0,a=n;r<a.length;r++){var i=a[r];if(!(131072&i.flags)){if(!(256&e.getObjectFlags(i)))return!1;t=!0}}return t}(n))return Mg(ad(e.map(n,Bg)));var a=ad(e.sameMap(n,Gg),r);return a!==t&&a.flags&t.flags&1048576&&e.arraysEqual(a.types,t.types)?t:a}function x(r,a){var i,o,s=1048576&t.flags?t:a;return 1048576&s.flags&&(i=function(n){if(e.isAccessExpression(n))return n;if(e.isIdentifier(n)){var t=U_(n);if(ey(t)){var r=t.valueDeclaration;if(e.isVariableDeclaration(r)&&!r.type&&r.initializer&&e.isAccessExpression(r.initializer))return r.initializer;if(e.isBindingElement(r)&&!r.initializer){var a=r.parent.parent;if(e.isVariableDeclaration(a)&&!a.type&&a.initializer&&(e.isIdentifier(a.initializer)||e.isAccessExpression(a.initializer)))return r}}}}(r))&&(o=H_(i))&&K_(n,e.isAccessExpression(i)?i.expression:i.parent.parent.initializer)&&J_(s,o)?i:void 0}function L(n,t,r){var a=H_(t);if(void 0===a)return n;var i=I&&e.isOptionalChain(t)&&cE(n,98304),o=to(i?ag(n,2097152):n,a);if(!o)return n;var s=r(o=i?Pm(o):o);return xg(n,(function(e){var n=function(e,n){var t;return to(e,n)||(null===(t=ll(e,n))||void 0===t?void 0:t.type)||Pe}(e,a);return!(131072&s.flags)&&ff(s,n)}))}function D(e,n,t,r,a){if((36===t||37===t)&&1048576&e.flags){var i=X_(e);if(i&&i===H_(n)){var o=Y_(e,GE(r));if(o)return t===(a?36:37)?o:ym(to(o,i)||Pe)?Lg(e,o):e}}return L(e,n,(function(e){return R(e,t,r,a)}))}function C(e,t,r){if(K_(n,t))return 2&e.flags&&r?Fe:ag(e,r?4194304:8388608);I&&r&&z_(t,n)&&(e=ag(e,2097152));var a=x(t,e);return a?L(e,a,(function(e){return ag(e,r?4194304:8388608)})):e}function A(n,r,a){return 1048576&n.flags||524288&n.flags&&t!==n||Fd(n)||2097152&n.flags&&e.every(n.types,(function(e){return e.symbol!==ie}))?xg(n,(function(e){return function(e,n,t){var r=Qc(e,n);return r?!!(16777216&r.flags)||t:!!ll(e,n)||!t}(e,r,a)})):n}function k(t,r,a){switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return C(H(t,r.right,a),r.left,a);case 34:case 35:case 36:case 37:var i=r.operatorToken.kind,o=_g(r.left),s=_g(r.right);if(215===o.kind&&e.isStringLiteralLike(s))return M(t,o,i,s,a);if(215===s.kind&&e.isStringLiteralLike(o))return M(t,s,i,o,a);if(K_(n,o))return R(t,i,s,a);if(K_(n,s))return R(t,i,o,a);I&&(z_(o,n)?t=N(t,i,s,a):z_(s,n)&&(t=N(t,i,o,a)));var c=x(o,t);if(c)return D(t,c,i,s,a);var l=x(s,t);if(l)return D(t,l,i,o,a);if(U(o))return V(t,i,s,a);if(U(s))return V(t,i,o,a);break;case 102:return function(t,r,a){var i=_g(r.left);if(!K_(n,i))return a&&I&&z_(i,n)?ag(t,2097152):t;var o,s=GE(r.right);if(!pf(s,kn))return t;var c=Qc(s,"prototype");if(c){var l=Xo(c);ro(l)||(o=l)}if(ro(t)&&(o===In||o===kn))return t;if(!o){var u=$c(s,1);o=u.length?ad(e.map(u,(function(e){return Cl(wl(e))}))):mn}if(!a&&1048576&s.flags){if(!e.find(s.types,(function(e){return!is(e)})))return t}return j(t,o,a,pf)}(t,r,a);case 101:if(e.isPrivateIdentifier(r.left))return function(t,r,a){var i=_g(r.right);if(!K_(n,i))return t;e.Debug.assertNode(r.left,e.isPrivateIdentifier);var o=Wh(r.left);if(void 0===o)return t;var s=o.parent,c=e.hasStaticModifier(e.Debug.checkDefined(o.valueDeclaration,"should always have a declaration"))?Xo(s):Ss(s);return j(t,c,a,pf)}(t,r,a);var u=_g(r.right),d=Nx(r.left);if(128&d.flags){var p=e.escapeLeadingUnderscores(d.value);if(Km(t)&&e.isAccessExpression(n)&&K_(n.expression,u)&&H_(n)===p)return ag(t,a?524288:65536);if(K_(n,u))return A(t,p,a)}break;case 27:return H(t,r.right,a);case 55:return a?H(H(t,r.left,!0),r.right,!0):ad([H(t,r.left,!1),H(t,r.right,!1)]);case 56:return a?ad([H(t,r.left,!0),H(t,r.right,!0)]):H(H(t,r.left,!1),r.right,!1)}return t}function N(e,n,t,r){var a=34===n||36===n,i=34===n||35===n?98304:32768,o=GE(t);return a!==r&&Sg(o,(function(e){return!!(e.flags&i)}))||a===r&&Sg(o,(function(e){return!(e.flags&(3|i))}))?ag(e,2097152):e}function R(e,n,t,r){if(1&e.flags)return e;35!==n&&37!==n||(r=!r);var a=GE(t);if(r&&2&e.flags&&(34===n||35===n)&&65536&a.flags)return ad([je,Ge]);if(2&e.flags&&r&&(36===n||37===n))return 67239932&a.flags?a:524288&a.flags?on:e;if(98304&a.flags){if(!I)return e;var i=34===n||35===n?r?262144:2097152:65536&a.flags?r?131072:1048576:r?65536:524288;return 2&e.flags&&3145728&i?Fe:ag(e,i)}return r?Ng(xg(e,34===n?function(e){return mf(e,a)||(n=a,0!==(524&e.flags)&&0!==(28&n.flags));var n}:function(e){return mf(e,a)}),a):ym(a)?xg(e,(function(e){return!(hm(e)&&mf(e,a))})):e}function M(e,t,r,a,i){35!==r&&37!==r||(i=!i);var o=_g(t.expression);if(!K_(n,o))return I&&z_(o,n)&&i===("undefined"!==a.text)?ag(e,2097152):e;if(1&e.flags&&"function"===a.text)return e;if(i&&2&e.flags&&"object"===a.text)return e===Fe?on:ad([on,je]);var s=i?O.get(a.text)||128:w.get(a.text)||32768,c=G(e,a.text);return ag(i&&c?Cg(e,B(c)):e,s)}function P(n,t,r,a,i){return r!==a&&e.every(hg(t).slice(r,a),i)?ag(n,2097152):n}function F(n,t,r,a){var i=hg(t);if(!i.length)return n;var o=i.slice(r,a),s=r===a||e.contains(o,en);if(2&n.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var u=o[l];if(67239932&u.flags)void 0!==c&&c.push(u);else{if(!(524288&u.flags))return n;void 0===c&&(c=o.slice(0,l)),c.push(on)}}return ad(void 0===c?o:c)}var d=ad(o),p=131072&d.flags?en:Ng(xg(n,(function(e){return mf(d,e)})),d);if(!s)return p;var f=xg(n,(function(n){return!(hm(n)&&e.contains(i,_p(function(n){return 2097152&n.flags&&e.find(n.types,ym)||n}(n))))}));return 131072&p.flags?f:ad([p,f])}function G(e,n){switch(n){case"function":return 1&e.flags?e:kn;case"object":return 2&e.flags?ad([on,je]):e;default:return _r.get(n)}}function B(e){return function(n){if(uf(n,e))return n;if(uf(e,n))return e;if(465829888&n.flags){var t=wc(n)||Ie;if(uf(e,t))return pd([n,e])}return n}}function U(t){return(e.isPropertyAccessExpression(t)&&"constructor"===e.idText(t.name)||e.isElementAccessExpression(t)&&e.isStringLiteralLike(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&K_(n,t.expression)}function V(n,t,r,a){if(a?34!==t&&36!==t:35!==t&&37!==t)return n;var i=GE(r);if(!iL(i)&&!is(i))return n;var o=Qc(i,"prototype");if(!o)return n;var s=Xo(o),c=ro(s)?void 0:s;return c&&c!==In&&c!==kn?ro(n)?c:xg(n,(function(n){return function(n,t){if(524288&n.flags&&1&e.getObjectFlags(n)||524288&t.flags&&1&e.getObjectFlags(t))return n.symbol===t.symbol;return uf(n,t)}(n,c)})):n}function j(e,n,t,r){if(!t)return xg(e,(function(e){return!r(e,n)}));if(1048576&e.flags){var a=xg(e,(function(e){return r(e,n)}));if(!(131072&a.flags))return a}return uf(n,e)?n:df(e,n)?e:df(n,e)?n:pd([e,n])}function K(t,r,a,i){if(r.type&&(!ro(t)||r.type!==In&&r.type!==kn)){var o=function(n,t){if(1===n.kind||3===n.kind)return t.arguments[n.parameterIndex];var r=e.skipParentheses(t.expression);return e.isAccessExpression(r)?e.skipParentheses(r.expression):void 0}(r,a);if(o){if(K_(n,o))return j(t,r.type,i,uf);I&&i&&z_(o,n)&&!(65536&rg(r.type))&&(t=ag(t,2097152));var s=x(o,t);if(s)return L(t,s,(function(e){return j(e,r.type,i,uf)}))}}return t}function H(t,r,a){if(e.isExpressionOfOptionalChainRoot(r)||e.isBinaryExpression(r.parent)&&60===r.parent.operatorToken.kind&&r.parent.left===r)return function(e,t,r){if(K_(n,t))return ag(e,r?2097152:262144);var a=x(t,e);if(a)return L(e,a,(function(e){return ag(e,r?2097152:262144)}));return e}(t,r,a);switch(r.kind){case 79:if(!K_(n,r)&&E<5){var i=U_(r);if(ey(i)){var o=i.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&Xg(n)){E++;var s=H(t,o.initializer,a);return E--,s}}}case 108:case 106:case 205:case 206:return C(t,r,a);case 207:return function(t,r,a){if($_(r,n)){var i=a||!e.isCallChain(r)?Kg(r):void 0,o=i&&Ll(i);if(o&&(0===o.kind||1===o.kind))return K(t,o,r,a)}if(Km(t)&&e.isAccessExpression(n)&&e.isPropertyAccessExpression(r.expression)){var s=r.expression;if(K_(n.expression,_g(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===r.arguments.length){var c=r.arguments[0];if(e.isStringLiteralLike(c)&&H_(n)===e.escapeLeadingUnderscores(c.text))return ag(t,a?524288:65536)}}return t}(t,r,a);case 211:case 229:return H(t,r.expression,a);case 220:return k(t,r,a);case 218:if(53===r.operator)return H(t,r.operand,!a)}return t}}function Qg(n){return e.findAncestor(n.parent,(function(n){return e.isFunctionLike(n)&&!e.getImmediatelyInvokedFunctionExpression(n)||261===n.kind||303===n.kind||166===n.kind}))}function Zg(n){if(!n.valueDeclaration)return!1;var t,r=e.getRootDeclaration(n.valueDeclaration).parent,a=zr(r);return 8388608&a.flags||(a.flags|=8388608,t=r,e.findAncestor(t.parent,(function(n){return(e.isFunctionLike(n)||e.isCatchClause(n))&&!!(8388608&zr(n).flags)}))||$g(r)),n.isAssigned||!1}function $g(n){if(79===n.kind){if(e.isAssignmentTarget(n)){var t=U_(n);e.isParameterOrCatchClauseVariable(t)&&(t.isAssigned=!0)}}else e.forEachChild(n,$g)}function ey(e){return 3&e.flags&&0!==(2&Ch(e))}function ny(e){return!!(465829888&e.flags&&1146880&Mc(e).flags)}function ty(e){return!(!(465829888&e.flags)||cE(Mc(e),98304))}function ry(n,t,r){var a=!(r&&2&r)&&Tg(n,ny)&&(function(e,n){var t=n.parent;return 205===t.kind||207===t.kind&&t.expression===n||206===t.kind&&t.expression===n&&!(Tg(e,ty)&&Md(GE(t.argumentExpression)))}(n,t)||function(n){var t=(e.isIdentifier(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))&&!((e.isJsxOpeningElement(n.parent)||e.isJsxSelfClosingElement(n.parent))&&n.parent.tagName===n)&&By(n,8);return t&&!Od(t)}(t));return a?Cg(n,(function(e){return 465829888&e.flags?Mc(e):e})):n}function ay(n){return!!e.findAncestor(n,(function(n){var t=n.parent;return void 0===t?"quit":e.isExportAssignment(t)?t.expression===n&&e.isEntityNameExpression(n):!!e.isExportSpecifier(t)&&(t.name===n||t.propertyName===n)}))}function iy(n,t){if(Ca(n,111551)&&!V_(t)&&!Ra(n)){var r=Ia(n);111551&r.flags&&(x.isolatedModules||e.shouldPreserveConstEnums(x)&&ay(t)||!qx(r)?wa(n):function(e){var n=Wr(e);n.constEnumReferenced||(n.constEnumReferenced=!0)}(n))}}function oy(n,t){var r=U_(n);if(r===Le)return Re;if(r===se){if(Qh(n))return kr(n,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Re;var a=e.getContainingFunction(n);return L<2&&(213===a.kind?kr(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(a,256)&&kr(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),zr(a).flags|=8192,Xo(r)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||iy(r,n);var i=si(r),o=2097152&i.flags?Ia(i):i;o.declarations&&134217728&Ch(o)&&Ad(n,o)&&Mr(n,o.declarations,n.escapedText);var s=i.valueDeclaration;if(s&&32&i.flags)if(256===s.kind&&e.nodeIsDecorated(s))for(a=e.getContainingClass(n);void 0!==a;){if(a===s&&a.name!==n){zr(s).flags|=16777216,zr(n).flags|=33554432;break}a=e.getContainingClass(a)}else if(225===s.kind)for(a=e.getThisContainer(n,!1);303!==a.kind;){if(a.parent===s){(e.isPropertyDeclaration(a)&&e.isStatic(a)||e.isClassStaticBlockDeclaration(a))&&(zr(s).flags|=16777216,zr(n).flags|=33554432);break}a=e.getThisContainer(a,!1)}!function(n,t){if(L>=2||0===(34&t.flags)||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||291===t.valueDeclaration.parent.kind)return;var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),a=function(n,t){return!!e.findAncestor(n,(function(n){return n===t?"quit":e.isFunctionLike(n)||n.parent&&e.isPropertyDeclaration(n.parent)&&!e.hasStaticModifier(n.parent)&&n.parent.initializer===n}))}(n,r),i=sy(r);if(i){if(a){var o=!0;if(e.isForStatement(r))if((u=e.getAncestor(t.valueDeclaration,254))&&u.parent===r){var s=function(n,t){return e.findAncestor(n,(function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement}))}(n.parent,r);if(s){var c=zr(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,t),s===r.initializer&&(o=!1)}}o&&(zr(i).flags|=65536)}var u;if(e.isForStatement(r))(u=e.getAncestor(t.valueDeclaration,254))&&u.parent===r&&function(n,t){var r=n;for(;211===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(218===r.parent.kind||219===r.parent.kind){var i=r.parent;a=45===i.operator||46===i.operator}if(!a)return!1;return!!e.findAncestor(r,(function(e){return e===t?"quit":e===t.statement}))}(n,r)&&(zr(t.valueDeclaration).flags|=4194304);zr(t.valueDeclaration).flags|=524288}a&&(zr(t.valueDeclaration).flags|=262144)}(n,r);var c=Xo(i),l=e.getAssignmentTargetKind(n);if(l){if(!(3&i.flags)&&!(e.isInJSFile(n)&&512&i.flags))return kr(n,384&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&i.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Mi(r)),Re;if(rE(i))return 3&i.flags?kr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Mi(r)):kr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Mi(r)),Re}var u=2097152&i.flags;if(3&i.flags){if(1===l)return c}else{if(!u)return c;s=la(r)}if(!s)return c;c=ry(c,n,t);for(var d=163===e.getRootDeclaration(s).kind,p=Qg(s),f=Qg(n),m=f!==p,_=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&ug(n.parent.parent),g=134217728&r.flags;f!==p&&(212===f.kind||213===f.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(f))&&(ey(i)&&c!==Vn||d&&!Zg(i));)f=Qg(f);var y=d||u||m||_||g||e.isBindingElement(s)||c!==ke&&c!==Vn&&(!I||0!==(16387&c.flags)||V_(n)||274===n.parent.kind)||229===n.parent.kind||253===s.kind&&s.exclamationToken||8388608&s.flags,h=y?d?function(e,n){if(Qi(n.symbol,2)){var t=I&&163===n.kind&&n.initializer&&32768&Rm(e)&&!(32768&Rm(VE(n.initializer)));return eo(),t?ag(e,524288):e}return Jo(n.symbol),e}(c,s):c:c===ke||c===Vn?Ge:Pm(c),v=Yg(n,c,h,f);if(Ug(n)||c!==ke&&c!==Vn){if(!y&&!(32768&Rm(c))&&32768&Rm(v))return kr(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,Mi(r)),c}else if(v===ke||v===Vn)return M&&(kr(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Mi(r),Fi(v)),kr(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Mi(r),Fi(v))),JT(v);return l?bm(v):v}function sy(n){return e.findAncestor(n,(function(n){return!n||e.nodeStartsNewLexicalEnvironment(n)?"quit":e.isIterationStatement(n,!1)}))}function cy(e,n){(zr(e).flags|=2,166===n.kind||170===n.kind)?zr(n.parent).flags|=4:zr(n).flags|=4}function ly(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,ly)}function uy(e){return ls(Ss(ni(e)))===Ke}function dy(n,t,r){var a=t.parent;e.getClassExtendsHeritageElement(a)&&!uy(a)&&n.flowNode&&!qg(n.flowNode,!1)&&kr(n,r)}function py(n){var t=V_(n),r=e.getThisContainer(n,!0),a=!1;switch(170===r.kind&&dy(n,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),213===r.kind&&(r=e.getThisContainer(r,!1),a=!0),function(n,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,n.pos)&&e.length(t.parent.decorators)&&kr(n,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(n,r),r.kind){case 260:kr(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:kr(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:my(n,r)&&kr(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:kr(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!t&&a&&L<2&&cy(n,r);var i=fy(n,!0,r);if(P){var o=Xo(ie);if(i===o&&a)kr(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var s=kr(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var c=fy(r);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||Ie}function fy(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=e.getThisContainer(n,!1));var a=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!Ey(n)||e.getThisParameter(r))){var i=xl(vl(r))||a&&function(n){var t=e.getJSDocType(n);if(t&&315===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Lp(r.parameters[0].type)}var a=e.getJSDocThisTag(n);if(a&&a.typeExpression)return Lp(a.typeExpression)}(r);if(!i){var o=function(n){if(212===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent))return n.parent.left.expression.expression;if(168===n.kind&&204===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent))return n.parent.parent.left.expression;if(212===n.kind&&294===n.parent.kind&&204===n.parent.parent.kind&&e.isBinaryExpression(n.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent.parent))return n.parent.parent.parent.left.expression;if(212===n.kind&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&("value"===n.parent.name.escapedText||"get"===n.parent.name.escapedText||"set"===n.parent.name.escapedText)&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent.parent))return n.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&("value"===n.name.escapedText||"get"===n.name.escapedText||"set"===n.name.escapedText)&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent))return n.parent.parent.arguments[0].expression}(r);if(a&&o){var s=VE(o).symbol;s&&s.members&&16&s.flags&&(i=Ss(s).thisType)}else ob(r)&&(i=Ss(ei(r.symbol)).thisType);i||(i=hy(r))}if(i)return Yg(n,i)}if(e.isClassLike(r.parent)){var c=ni(r.parent);return Yg(n,e.isStatic(r)?Xo(c):Ss(c).thisType)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var l=ni(r);return l&&Xo(l)}if(r.externalModuleIndicator)return Ge;if(t)return Xo(ie)}}function my(n,t){return!!e.findAncestor(n,(function(n){return e.isFunctionLikeDeclaration(n)?"quit":163===n.kind&&n.parent===t}))}function _y(n){var t=207===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),a=r,i=!1;if(!t)for(;a&&213===a.kind;)a=e.getSuperContainer(a,!0),i=L<2;var o=0;if(!function(n){if(!n)return!1;if(t)return 170===n.kind;if(e.isClassLike(n.parent)||204===n.parent.kind)return e.isStatic(n)?168===n.kind||167===n.kind||171===n.kind||172===n.kind||166===n.kind||169===n.kind:168===n.kind||167===n.kind||171===n.kind||172===n.kind||166===n.kind||165===n.kind||170===n.kind;return!1}(a)){var s=e.findAncestor(n,(function(e){return e===a?"quit":161===e.kind}));return s&&161===s.kind?kr(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?kr(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||204===a.parent.kind)?kr(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):kr(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Re}if(t||170!==r.kind||dy(n,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(a)||t?(o=512,!t&&L>=2&&L<=8&&(e.isPropertyDeclaration(a)||e.isClassStaticBlockDeclaration(a))&&e.forEachEnclosingBlockScopeContainer(n.parent,(function(n){e.isSourceFile(n)&&!e.isExternalOrCommonJsModule(n)||(zr(n).flags|=134217728)}))):o=256,zr(n).flags|=o,168===a.kind&&e.hasSyntacticModifier(a,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?zr(a).flags|=4096:zr(a).flags|=2048),i&&cy(n.parent,a),204===a.parent.kind)return L<2?(kr(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Re):Ie;var c=a.parent;if(!e.getClassExtendsHeritageElement(c))return kr(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Re;var l=Ss(ni(c)),u=l&&ds(l)[0];return u?170===a.kind&&my(n,a)?(kr(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Re):512===o?ls(l):Ks(u,l.thisType):Re}function gy(n){return 4&e.getObjectFlags(n)&&n.target===Bn?$l(n)[0]:void 0}function yy(n){return Cg(n,(function(n){return 2097152&n.flags?e.forEach(n.types,gy):gy(n)}))}function hy(n){if(213!==n.kind){if(rf(n)){var t=zy(n);if(t){var r=t.thisParameter;if(r)return Xo(r)}}var a=e.isInJSFile(n);if(P||a){var i=function(e){return 168!==e.kind&&171!==e.kind&&172!==e.kind||204!==e.parent.kind?212===e.kind&&294===e.parent.kind?e.parent.parent:void 0:e.parent}(n);if(i){for(var o=Py(i),s=i,c=o;c;){var l=yy(c);if(l)return Yp(l,p_(Uy(i)));if(294!==s.parent.kind)break;c=Py(s=s.parent.parent)}return $m(o?Fm(o):SE(i))}var u=e.walkUpParenthesizedExpressions(n.parent);if(220===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(a&&e.isIdentifier(p)){var f=e.getSourceFileOfNode(u);if(f.commonJsModuleIndicator&&U_(p)===f.symbol)return}return $m(SE(p))}}}}}function vy(n){var t=n.parent;if(rf(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var a=Gv(r),i=t.parameters.indexOf(n);if(n.dotDotDotToken)return Rv(a,i,a.length,Ie,void 0,0);var o=zr(r),s=o.resolvedSignature;o.resolvedSignature=xt;var c=i<a.length?Em(VE(a[i])):n.initializer?void 0:Be;return o.resolvedSignature=s,c}var l=zy(t);if(l){var u=t.parameters.indexOf(n)-(e.getThisParameter(t)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(t.parameters)===n?Rb(l,u):Nb(l,u)}}}function by(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Lp(t);switch(n.kind){case 163:return vy(n);case 202:return function(n){var t=n.parent.parent,r=n.propertyName||n.name,a=by(t)||202!==t.kind&&t.initializer&&LE(t);if(!a||e.isBindingPattern(r)||e.isComputedNonLiteralName(r))return;if(201===t.name.kind){var i=e.indexOfNode(n.parent.elements,n);if(i<0)return;return Ny(a,i)}var o=yd(r);if(Os(o)){return to(a,Gs(o))}}(n);case 166:if(e.isStatic(n))return function(n){var t=e.isExpression(n.parent)&&By(n.parent);return t?Iy(t,ni(n).escapedName):void 0}(n)}}function Ey(n){for(var t=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(t||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(t=!0),n=n.parent}return!1}function Ty(n,t){var r=!!(2&e.getFunctionFlags(t)),a=Sy(t);if(a)return IS(n,a,r)||void 0}function Sy(n){var t=Al(n);if(t)return t;var r=Wy(n);if(r&&!Il(r))return Cl(r);var a=e.getImmediatelyInvokedFunctionExpression(n);return a?By(a):void 0}function xy(e,n){var t=Gv(e).indexOf(n);return-1===t?void 0:Ly(e,t)}function Ly(n,t){if(e.isImportCall(n))return 0===t?He:1===t?Lu(!1):Ie;var r=zr(n).resolvedSignature===Dt?Dt:ib(n);if(e.isJsxOpeningLikeElement(n)&&0===t)return Vy(r,n);var a=r.parameters.length-1;return ne(r)&&t>=a?jd(Xo(r.parameters[a]),hp(t-a),256):kb(r,t)}function Dy(n,t){var r=n.parent,a=r.left,i=r.operatorToken,o=r.right;switch(i.kind){case 63:case 76:case 75:case 77:return n===o?function(n){var t,r,a=e.getAssignmentDeclarationKind(n);switch(a){case 0:case 4:var i=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n))return U_(n);if(e.isPropertyAccessExpression(n)){var t=GE(n.expression);return e.isPrivateIdentifier(n.name)?r(t,n.name):Qc(t,n.name.escapedText)}return;function r(e,n){var t=Kh(n.escapedText,n);return t&&zh(e,t)}}(n.left),o=i&&i.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&Yp(Lp(c),Wr(i).mapper)||o.initializer&&GE(n.left):0===a?GE(n.left):Ay(n);case 5:if(Cy(n,a))return Ay(n);if(n.left.symbol){var s=n.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(n.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return Lp(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=Qr(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var f=e.getElementOrPropertyAccessName(l);if(void 0!==f)return Iy(Lp(p),f)}return}}return e.isInJSFile(s)?void 0:GE(n.left)}return GE(n.left);case 1:case 6:case 3:var m=null===(t=n.left.symbol)||void 0===t?void 0:t.valueDeclaration;case 2:m||(m=null===(r=n.symbol)||void 0===r?void 0:r.valueDeclaration);var _=m&&e.getEffectiveTypeAnnotationNode(m);return _?Lp(_):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(a)}}(r):void 0;case 56:case 60:var s=By(r,t);return n===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(r))?GE(a):s;case 55:case 27:return n===o?By(r,t):void 0;default:return}}function Cy(n,t){if(void 0===t&&(t=e.getAssignmentDeclarationKind(n)),4===t)return!0;if(!e.isInJSFile(n)||5!==t||!e.isIdentifier(n.left.expression))return!1;var r=n.left.expression.escapedText,a=Qr(n.left,r,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null===a||void 0===a?void 0:a.valueDeclaration)}function Ay(n){if(!n.symbol)return GE(n.left);if(n.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(t){var r=Lp(t);if(r)return r}}var a=e.cast(n.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(a.expression,!1))){var i=py(a.expression),o=e.getElementOrPropertyAccessName(a);return void 0!==o&&Iy(i,o)||void 0}}function Iy(n,t){return Cg(n,(function(n){var r,a;if(Tc(n)){var i=fc(n),o=wc(i)||i,s=yp(e.unescapeLeadingUnderscores(t));if(df(s,o))return Vd(n,s)}else if(3670016&n.flags){var c=Qc(n,t);if(c)return a=c,262144&e.getCheckFlags(a)&&!a.type&&Zi(a,0)>=0?void 0:Xo(c);if(Lm(n)){var l=Am(n);if(l&&Qy(t)&&+t>=0)return l}return null===(r=nl(rl(n),yp(e.unescapeLeadingUnderscores(t))))||void 0===r?void 0:r.type}}),!0)}function ky(n,t){var r=n.parent,a=e.isPropertyAssignment(n)&&by(n);if(a)return a;var i=Py(r,t);if(i){if(Fs(n))return Iy(i,ni(n).escapedName);if(n.name){var o=yd(n.name);return Cg(i,(function(e){var n;return null===(n=nl(rl(e),o))||void 0===n?void 0:n.type}),!0)}}}function Ny(e,n){return e&&(Iy(e,""+n)||Cg(e,(function(e){return sS(1,e,Ge,void 0,!1)}),!0))}function Ry(n){var t=n.parent;return e.isJsxAttributeLike(t)?By(n):e.isJsxElement(t)?function(n,t){var r=Py(n.openingElement.tagName),a=gh(mh(n));if(r&&!ro(r)&&a&&""!==a){var i=e.getSemanticJsxChildren(n.children),o=i.indexOf(t),s=Iy(r,a);return s&&(1===i.length?s:Cg(s,(function(e){return um(e)?jd(e,hp(o)):e}),!0))}}(t,n):void 0}function Oy(n){if(e.isJsxAttribute(n)){var t=Py(n.parent);if(!t||ro(t))return;return Iy(t,n.name.escapedText)}return By(n.parent)}function wy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return wy(e.expression);case 287:return!e.expression||wy(e.expression)}return!1}function My(n,t){return function(n,t){var r=X_(n),a=r&&e.find(t.properties,(function(e){return e.symbol&&294===e.kind&&e.symbol.escapedName===r&&wy(e.initializer)})),i=a&&UE(a.initializer);return i&&Y_(n,i)}(t,n)||jf(t,e.concatenate(e.map(e.filter(n.properties,(function(e){return!!e.symbol&&294===e.kind&&wy(e.initializer)&&J_(t,e.symbol.escapedName)})),(function(e){return[function(){return UE(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(Cc(t),(function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null===n||void 0===n?void 0:n.symbol)||void 0===r?void 0:r.members)&&!n.symbol.members.has(e.escapedName)&&J_(t,e.escapedName)})),(function(e){return[function(){return Ge},e.escapedName]}))),df,t)}function Py(n,t){var r=Fy(e.isObjectLiteralMethod(n)?function(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(16777216&n.flags))return ky(n,t)}(n,t):By(n,t),n,t);if(r&&!(t&&2&t&&8650752&r.flags)){var a=Cg(r,Vc,!0);return 1048576&a.flags&&e.isObjectLiteralExpression(n)?My(n,a):1048576&a.flags&&e.isJsxAttributes(n)?function(n,t){return jf(t,e.concatenate(e.map(e.filter(n.properties,(function(e){return!!e.symbol&&284===e.kind&&J_(t,e.symbol.escapedName)&&(!e.initializer||wy(e.initializer))})),(function(e){return[e.initializer?function(){return UE(e.initializer)}:function(){return Xe},e.symbol.escapedName]})),e.map(e.filter(Cc(t),(function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null===n||void 0===n?void 0:n.symbol)||void 0===r?void 0:r.members)&&!n.symbol.members.has(e.escapedName)&&J_(t,e.escapedName)})),(function(e){return[function(){return Ge},e.escapedName]}))),df,t)}(n,a):a}}function Fy(n,t,r){if(n&&cE(n,465829888)){var a=Uy(t);if(a&&e.some(a.inferences,wE)){if(r&&1&r)return Gy(n,a.nonFixingMapper);if(a.returnMapper)return Gy(n,a.returnMapper)}}return n}function Gy(n,t){return 465829888&n.flags?Yp(n,t):1048576&n.flags?ad(e.map(n.types,(function(e){return Gy(e,t)})),0):2097152&n.flags?pd(e.map(n.types,(function(e){return Gy(e,t)}))):n}function By(n,t){if(16777216&n.flags);else{if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 253:case 163:case 166:case 165:case 202:return function(n,t){var r=n.parent;if(e.hasInitializer(r)&&n===r.initializer){var a=by(r);if(a)return a;if(!(8&t)&&e.isBindingPattern(r.name))return No(r.name,!0,!1)}}(n,t);case 213:case 246:return function(n){var t=e.getContainingFunction(n);if(t){var r=Sy(t);if(r){var a=e.getFunctionFlags(t);if(1&a){var i=fS(r,2&a?2:1,void 0);if(!i)return;r=i.returnType}if(2&a){var o=Cg(r,gT);return o&&ad([o,Hb(o)])}return r}}}(n);case 223:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),a=Sy(t);if(a)return n.asteriskToken?a:IS(0,a,0!==(2&r))}}(r);case 217:return function(e,n){var t=By(e,n);if(t){var r=gT(t);return r&&ad([r,Hb(r)])}}(r,t);case 207:case 208:return xy(r,n);case 210:case 228:return e.isConstTypeReference(r.type)?o(r):Lp(r.type);case 220:return Dy(n,t);case 294:case 295:return ky(r,t);case 296:return By(r.parent,t);case 203:var a=r;return Ny(Py(a,t),e.indexOfNode(a.elements,n));case 221:return function(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?By(t,n):void 0}(n,t);case 232:return e.Debug.assert(222===r.parent.kind),function(e,n){if(209===e.parent.kind)return xy(e.parent,n)}(r.parent,n);case 211:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?e.isJSDocTypeTag(i)&&e.isConstTypeReference(i.typeExpression.type)?o(r):Lp(i.typeExpression.type):By(r,t);case 229:return By(r,t);case 287:return Ry(r);case 284:case 286:return Oy(r);case 279:case 278:return function(n,t){if(e.isJsxOpeningElement(n)&&n.parent.contextualType&&4!==t)return n.parent.contextualType;return Ly(n,0)}(r,t)}}function o(e){return By(e)}}function Uy(n){var t=e.findAncestor(n,(function(e){return!!e.inferenceContext}));return t&&t.inferenceContext}function Vy(n,t){return 0!==wv(t)?function(e,n){var t=Bb(e,Pe);t=jy(n,mh(n),t);var r=dh(H.IntrinsicAttributes,n);ao(r)||(t=nc(r,t));return t}(n,t):function(n,t){var r=mh(t),a=(o=r,_h(H.ElementAttributesPropertyNameContainer,o)),i=void 0===a?Bb(n,Pe):""===a?Cl(n):function(e,n){if(e.compositeSignatures){for(var t=[],r=0,a=e.compositeSignatures;r<a.length;r++){var i=Cl(a[r]);if(ro(i))return i;var o=to(i,n);if(!o)return;t.push(o)}return pd(t)}var s=Cl(e);return ro(s)?s:to(s,n)}(n,a);var o;if(!i)return a&&e.length(t.attributes.properties)&&kr(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),Pe;if(ro(i=jy(t,r,i)))return i;var s=i,c=dh(H.IntrinsicClassAttributes,t);if(!ao(c)){var l=rs(c.symbol),u=Cl(n);s=nc(l?Yl(c,hl([u],l,yl(l),e.isInJSFile(t))):c,s)}var d=dh(H.IntrinsicAttributes,t);return ao(d)||(s=nc(d,s)),s}(n,t)}function jy(n,t,r){var a,i=(a=t)&&qr(a.exports,H.LibraryManagedAttributes,788968);if(i){var o=Ss(i),s=function(e){if(oh(e.tagName))return Fl(tb(e,n=vh(e)));var n,t=SE(e.tagName);return 128&t.flags?(n=hh(t,e))?Fl(tb(e,n)):Re:t}(n);if(524288&i.flags){var c=Wr(i).typeParameters;if(e.length(c)>=2)return tu(i,hl([s,r],c,2,e.isInJSFile(n)))}if(e.length(o.typeParameters)>=2)return Yl(o,hl([s,r],o.typeParameters,2,e.isInJSFile(n)))}return r}function Ky(n){return e.getStrictOptionValue(x,"noImplicitAny")?e.reduceLeft(n,(function(n,t){return n!==t&&n?$s(n.typeParameters,t.typeParameters)?function(n,t){var r,a=n.typeParameters||t.typeParameters;n.typeParameters&&t.typeParameters&&(r=Np(t.typeParameters,n.typeParameters));var i=n.declaration,o=function(e,n,t){for(var r=Ob(e),a=Ob(n),i=r>=a?e:n,o=i===e?n:e,s=i===e?r:a,c=Mb(e)||Mb(n),l=c&&!Mb(i),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=Nb(i,d);i===n&&(p=Yp(p,t));var f=Nb(o,d)||Pe;o===n&&(f=Yp(f,t));var m=ad([p,f]),_=c&&!l&&d===s-1,g=d>=wb(i)&&d>=wb(o),y=d>=r?void 0:Db(e,d),h=d>=a?void 0:Db(n,d),v=Pr(1|(g&&!_?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg".concat(d));v.type=_?Pu(m):m,u[d]=v}if(l){var b=Pr(1,"args");b.type=Pu(kb(o,s)),o===n&&(b.type=Yp(b.type,t)),u[s]=b}return u}(n,t,r),s=function(e,n,t){if(!e||!n)return e||n;var r=ad([Xo(e),Yp(Xo(n),t)]);return zm(e,r)}(n.thisParameter,t.thisParameter,r),c=Math.max(n.minArgumentCount,t.minArgumentCount),l=Ws(i,a,s,o,void 0,void 0,c,39&(n.flags|t.flags));l.compositeKind=2097152,l.compositeSignatures=e.concatenate(2097152===n.compositeKind&&n.compositeSignatures||[n],[t]),r&&(l.mapper=2097152===n.compositeKind&&n.mapper&&n.compositeSignatures?Fp(n.mapper,r):r);return l}(n,t):void 0:n})):void 0}function Hy(n,t){var r=$c(n,0),a=e.filter(r,(function(n){return!function(n,t){for(var r=0;r<t.parameters.length;r++){var a=t.parameters[r];if(a.initializer||a.questionToken||a.dotDotDotToken||pl(a))break}t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--;return!Mb(n)&&Ob(n)<r}(n,t)}));return 1===a.length?a[0]:Ky(a)}function Wy(n){return e.isFunctionExpressionOrArrowFunction(n)||e.isObjectLiteralMethod(n)?zy(n):void 0}function zy(n){e.Debug.assert(168!==n.kind||e.isObjectLiteralMethod(n));var t=bl(n);if(t)return t;var r=Py(n,1);if(r){if(!(1048576&r.flags))return Hy(r,n);for(var a,i=0,o=r.types;i<o.length;i++){var s=Hy(o[i],n);if(s)if(a){if(!am(a[0],s,!1,!0,!0,sf))return;a.push(s)}else a=[s]}return a?1===a.length?a[0]:Js(a[0],a):void 0}}function Jy(e){return 202===e.kind&&!!e.initializer||220===e.kind&&63===e.operatorToken.kind}function qy(n,t,r){for(var a=n.elements,i=a.length,o=[],s=[],c=Py(n),l=e.isAssignmentTarget(n),u=AE(n),d=!1,p=0;p<i;p++){var f=a[p];if(224===f.kind){L<2&&hL(f,x.downlevelIteration?1536:1024);var m=VE(f.expression,t,r);if(um(m))o.push(m),s.push(8);else if(l){var _=ol(m,We)||sS(65,m,Ge,void 0,!1)||Pe;o.push(_),s.push(4)}else o.push(oS(33,m,Ge,f.expression)),s.push(4)}else if(U&&226===f.kind)d=!0,o.push(Ve),s.push(2);else{var g=IE(f,t,Ny(c,o.length),r);o.push(yo(g,!0,d)),s.push(d?2:1)}}return l?Ku(o,s):r||u||c&&Tg(c,mm)?Xy(Ku(o,s,u)):Xy(Pu(o.length?ad(e.sameMap(o,(function(e,n){return 8&s[n]?Hd(e,We)||Ie:e})),2):I?rn:Be,u))}function Xy(n){if(!(4&e.getObjectFlags(n)))return n;var t=n.literalType;return t||((t=n.literalType=Ql(n)).objectFlags|=294912),t}function Yy(e){switch(e.kind){case 161:return function(e){return lE(Zy(e),296)}(e);case 79:return Qy(e.escapedText);case 8:case 10:return Qy(e.text);default:return!1}}function Qy(e){return(+e).toString()===e}function Zy(n){var t=zr(n.expression);if(!t.resolvedType){if((e.isTypeLiteralNode(n.parent.parent)||e.isClassLike(n.parent.parent)||e.isInterfaceDeclaration(n.parent.parent))&&e.isBinaryExpression(n.expression)&&101===n.expression.operatorToken.kind)return t.resolvedType=Re;if(t.resolvedType=VE(n.expression),e.isPropertyDeclaration(n.parent)&&!e.hasStaticModifier(n.parent)&&e.isClassExpression(n.parent.parent)){var r=sy(e.getEnclosingBlockScopeContainer(n.parent.parent));r&&(zr(r).flags|=65536,zr(n).flags|=524288,zr(n.parent.parent).flags|=524288)}(98304&t.resolvedType.flags||!lE(t.resolvedType,402665900)&&!df(t.resolvedType,cn))&&kr(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function $y(n){var t,r=null===(t=n.declarations)||void 0===t?void 0:t[0];return Qy(n.escapedName)||r&&e.isNamedDeclaration(r)&&Yy(r.name)}function eh(n){var t,r=null===(t=n.declarations)||void 0===t?void 0:t[0];return e.isKnownSymbol(n)||r&&e.isNamedDeclaration(r)&&e.isComputedPropertyName(r.name)&&lE(Zy(r.name),4096)}function nh(e,n,t,r){for(var a=[],i=n;i<t.length;i++){var o=t[i];(r===He&&!eh(o)||r===We&&$y(o)||r===Ze&&eh(o))&&a.push(Xo(t[i]))}return Ul(r,a.length?ad(a,2):Ge,AE(e))}function th(n){e.Debug.assert(0!==(2097152&n.flags),"Should only get Alias here.");var t=Wr(n);if(!t.immediateTarget){var r=la(n);if(!r)return e.Debug.fail();t.immediateTarget=Da(r,!0)}return t.immediateTarget}function rh(n,t){var r=e.isAssignmentTarget(n);!function(n,t){for(var r=new e.Map,a=0,i=n.properties;a<i.length;a++){var o=i[a];if(296!==o.kind){var s=o.name;if(161===s.kind&&kL(s),295===o.kind&&!t&&o.objectAssignmentInitializer)return JL(o.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);if(80===s.kind&&JL(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var u=l[c];131===u.kind&&168===o.kind||JL(u,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(u))}var d=void 0;switch(o.kind){case 295:OL(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:RL(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&YL(s),d=4;break;case 168:d=8;break;case 171:d=1;break;case 172:d=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!t){var p=e.getPropertyNameForPropertyNameNode(s);if(void 0===p)continue;var f=r.get(p);if(f)if(12&d&&12&f)JL(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&d&&3&f))return JL(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===f||d===f)return JL(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);r.set(p,d|f)}else r.set(p,d)}}else if(t){var m=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(m)||e.isObjectLiteralExpression(m))return JL(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(n,r);for(var a=I?e.createSymbolTable():void 0,i=e.createSymbolTable(),o=[],s=mn,c=Py(n),l=c&&c.pattern&&(200===c.pattern.kind||204===c.pattern.kind),u=AE(n),d=u?8:0,p=e.isInJSFile(n)&&!e.isInJsonFile(n),f=e.getJSDocEnumTag(n),m=!c&&p&&!f,_=B,g=!1,y=!1,h=!1,v=!1,b=0,E=n.properties;b<E.length;b++){var T=E[b];T.name&&e.isComputedPropertyName(T.name)&&Zy(T.name)}for(var S=0,D=0,C=n.properties;D<C.length;D++){var A=C[D],k=ni(A),N=A.name&&161===A.name.kind?Zy(A.name):void 0;if(294===A.kind||295===A.kind||e.isObjectLiteralMethod(A)){var R=294===A.kind?kE(A,t):295===A.kind?IE(!r&&A.objectAssignmentInitializer?A.objectAssignmentInitializer:A.name,t):NE(A,t);if(p){var O=_o(A);O?(_f(R,O,A),R=O):f&&f.typeExpression&&_f(R,Lp(f.typeExpression),A)}_|=917504&e.getObjectFlags(R);var w=N&&Os(N)?N:void 0,M=w?Pr(4|k.flags,Gs(w),4096|d):Pr(4|k.flags,k.escapedName,d);if(w&&(M.nameType=w),r)(294===A.kind&&Jy(A.initializer)||295===A.kind&&A.objectAssignmentInitializer)&&(M.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var P=Qc(c,k.escapedName);P?M.flags|=16777216&P.flags:x.suppressExcessPropertyErrors||il(c,He)||kr(A.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Mi(k),Fi(c))}M.declarations=k.declarations,M.parent=k.parent,k.valueDeclaration&&(M.valueDeclaration=k.valueDeclaration),M.type=R,M.target=k,k=M,null===a||void 0===a||a.set(M.escapedName,M)}else{if(296===A.kind){if(L<2&&hL(A,2),o.length>0&&(s=up(s,V(),n.symbol,_,u),o=[],i=e.createSymbolTable(),y=!1,h=!1,v=!1),ah(R=zc(VE(A.expression)))){var F=lp(R,u);if(a&&lh(F,a,A),S=o.length,ao(s))continue;s=up(s,F,n.symbol,_,u)}else kr(A,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Re;continue}e.Debug.assert(171===A.kind||172===A.kind),gx(A)}!N||8576&N.flags?i.set(k.escapedName,k):df(N,cn)&&(df(N,We)?h=!0:df(N,Ze)?v=!0:y=!0,r&&(g=!0)),o.push(k)}if(l&&296!==n.parent.kind)for(var G=0,U=Cc(c);G<U.length;G++){M=U[G];i.get(M.escapedName)||Qc(s,M.escapedName)||(16777216&M.flags||kr(M.valueDeclaration||M.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(M.escapedName,M),o.push(M))}return ao(s)?Re:s!==mn?(o.length>0&&(s=up(s,V(),n.symbol,_,u),o=[],i=e.createSymbolTable(),y=!1,h=!1),Cg(s,(function(e){return e===mn?V():e}))):V();function V(){var t=[];y&&t.push(nh(n,S,o,He)),h&&t.push(nh(n,S,o,We)),v&&t.push(nh(n,S,o,Ze));var a=vi(n.symbol,i,e.emptyArray,e.emptyArray,t);return a.objectFlags|=262272|_,m&&(a.objectFlags|=8192),g&&(a.objectFlags|=512),r&&(a.pattern=n),a}}function ah(n){if(465829888&n.flags){var t=wc(n);if(void 0!==t)return ah(t)}return!!(126615553&n.flags||117632&Rm(n)&&ah(Om(n))||3145728&n.flags&&e.every(n.types,ah))}function ih(n){return e.stringContains(n,"-")}function oh(n){return 79===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function sh(e,n){return e.initializer?IE(e.initializer,n):Xe}function ch(e,n){for(var t=[],r=0,a=e.children;r<a.length;r++){var i=a[r];if(11===i.kind)i.containsOnlyTriviaWhiteSpaces||t.push(He);else{if(287===i.kind&&!i.expression)continue;t.push(IE(i,n))}}return t}function lh(n,t,r){for(var a=0,i=Cc(n);a<i.length;a++){var o=i[a];if(!(16777216&o.flags)){var s=t.get(o.escapedName);if(s){var c=kr(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(r,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function uh(n,t){return function(n,t){for(var r,a=n.attributes,i=I?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=_n,c=!1,l=!1,u=2048,d=gh(mh(n)),p=0,f=a.properties;p<f.length;p++){var m=f[p],_=m.symbol;if(e.isJsxAttribute(m)){var g=sh(m,t);u|=917504&e.getObjectFlags(g);var y=Pr(4|_.flags,_.escapedName);y.declarations=_.declarations,y.parent=_.parent,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),y.type=g,y.target=_,o.set(y.escapedName,y),null===i||void 0===i||i.set(y.escapedName,y),m.name.escapedText===d&&(l=!0)}else e.Debug.assert(286===m.kind),o.size>0&&(s=up(s,x(),a.symbol,u,!1),o=e.createSymbolTable()),ro(g=zc(SE(m.expression,t)))&&(c=!0),ah(g)?(s=up(s,g,a.symbol,u,!1),i&&lh(g,i,m)):r=r?pd([r,g]):g}c||o.size>0&&(s=up(s,x(),a.symbol,u,!1));var h=277===n.parent.kind?n.parent:void 0;if(h&&h.openingElement===n&&h.children.length>0){var v=ch(h,t);if(!c&&d&&""!==d){l&&kr(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=Py(n.attributes),E=b&&Iy(b,d),T=Pr(4,d);T.type=1===v.length?v[0]:E&&Tg(E,mm)?Ku(v):Pu(ad(v)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(T.valueDeclaration,a),T.valueDeclaration.symbol=T;var S=e.createSymbolTable();S.set(d,T),s=up(s,vi(a.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),a.symbol,u,!1)}}return c?Ie:r&&s!==_n?pd([r,s]):r||(s===_n?x():s);function x(){u|=B;var n=vi(a.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return n.objectFlags|=262272|u,n}}(n.parent,t)}function dh(e,n){var t=mh(n),r=t&&Ya(t),a=r&&qr(r,e,788968);return a?Ss(a):Re}function ph(n){var t=zr(n);if(!t.resolvedSymbol){var r=dh(H.IntrinsicElements,n);if(ao(r))return M&&kr(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(H.IntrinsicElements)),t.resolvedSymbol=Le;if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=Qc(r,n.tagName.escapedText);return a?(t.jsxFlags|=1,t.resolvedSymbol=a):ol(r,He)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(kr(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+H.IntrinsicElements),t.resolvedSymbol=Le)}return t.resolvedSymbol}function fh(n){var t=n&&e.getSourceFileOfNode(n),r=t&&zr(t);if(!r||!1!==r.jsxImplicitImportContainer){if(r&&r.jsxImplicitImportContainer)return r.jsxImplicitImportContainer;var a=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(x,t),x);if(a){var i=Va(n,a,e.getEmitModuleResolutionKind(x)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,n),o=i&&i!==Le?ei(Aa(i)):void 0;return r&&(r.jsxImplicitImportContainer=o||!1),o}}}function mh(e){var n=e&&zr(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=fh(e);if(!t||t===Le){var r=Lr(e);t=Qr(e,r,1920,void 0,r,!1)}if(t){var a=Aa(qr(Ya(Aa(t)),H.JSX,1920));if(a&&a!==Le)return n&&(n.jsxNamespace=a),a}n&&(n.jsxNamespace=!1)}var i=Aa(Tu(H.JSX,1920,void 0));return i!==Le?i:void 0}function _h(n,t){var r=t&&qr(t.exports,n,788968),a=r&&Ss(r),i=a&&Cc(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&r.declarations&&kr(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function gh(e){return _h(H.ElementChildrenAttributeNameContainer,e)}function yh(n,t){if(4&n.flags)return[xt];if(128&n.flags){var r=hh(n,t);return r?[tb(t,r)]:(kr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+H.IntrinsicElements),e.emptyArray)}var a=Vc(n),i=$c(a,1);return 0===i.length&&(i=$c(a,0)),0===i.length&&1048576&a.flags&&(i=Zs(e.map(a.types,(function(e){return yh(e,t)})))),i}function hh(n,t){var r=dh(H.IntrinsicElements,t);if(!ao(r)){var a=n.value,i=Qc(r,e.escapeLeadingUnderscores(a));if(i)return Xo(i);var o=ol(r,He);return o||void 0}return Ie}function vh(n){e.Debug.assert(oh(n.tagName));var t=zr(n);if(!t.resolvedJsxElementAttributesType){var r=ph(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=Xo(r)||Re:2&t.jsxFlags?t.resolvedJsxElementAttributesType=ol(dh(H.IntrinsicElements,n),He)||Re:t.resolvedJsxElementAttributesType=Re}return t.resolvedJsxElementAttributesType}function bh(e){var n=dh(H.ElementClass,e);if(!ao(n))return n}function Eh(e){return dh(H.Element,e)}function Th(e){var n=Eh(e);if(n)return ad([n,je])}function Sh(n){var t,r=e.isJsxOpeningLikeElement(n);if(r&&function(n){(function(n){if(e.isPropertyAccessExpression(n)){var t=n;do{var r=i(t.name);if(r)return r;t=t.expression}while(e.isPropertyAccessExpression(t));var a=i(t);if(a)return a}function i(n){if(e.isIdentifier(n)&&-1!==e.idText(n).indexOf(":"))return JL(n,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(n.tagName),DL(n,n.typeArguments);for(var t=new e.Map,r=0,a=n.attributes.properties;r<a.length;r++){var i=a[r];if(286!==i.kind){var o=i.name,s=i.initializer;if(t.get(o.escapedText))return JL(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(o.escapedText,!0),s&&287===s.kind&&!s.expression)return JL(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(n),t=n,0===(x.jsx||0)&&kr(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Eh(t)&&M&&kr(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!fh(n)){var a=fr&&2===x.jsx?e.Diagnostics.Cannot_find_name_0:void 0,i=Lr(n),o=r?n.tagName:n,s=void 0;if(e.isJsxOpeningFragment(n)&&"null"===i||(s=Qr(o,i,111551,a,i,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!Ra(s)&&wa(s)),e.isJsxOpeningFragment(n)){var c=Dr(e.getSourceFileOfNode(n));c&&Qr(o,c,111551,a,c,!0)}}if(r){var l=n,u=ib(l);lb(u,n),function(n,t,r){if(1===n)(a=Th(r))&&Ff(t,a,vr,r.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===n)(i=bh(r))&&Ff(t,i,vr,r.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var a=Th(r),i=bh(r);if(!a||!i)return;Ff(t,ad([a,i]),vr,r.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var n=e.getTextOfNode(r.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,n)}}(wv(l),Cl(u),l)}}function xh(e,n,t){if(524288&e.flags){if(Lc(e,n)||ll(e,n)||Ms(n)&&il(e,He)||t&&ih(n))return!0}else if(3145728&e.flags&&Lh(e))for(var r=0,a=e.types;r<a.length;r++){if(xh(a[r],n,t))return!0}return!1}function Lh(n){return!!(524288&n.flags&&!(512&e.getObjectFlags(n))||67108864&n.flags||1048576&n.flags&&e.some(n.types,Lh)||2097152&n.flags&&e.every(n.types,Lh))}function Dh(n,t){if(function(n){if(n.expression&&e.isCommaSequence(n.expression))JL(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(n),n.expression){var r=VE(n.expression,t);return n.dotDotDotToken&&r!==Ie&&!om(r)&&kr(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return Re}function Ch(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function Ah(n){if(8192&n.flags||4&e.getCheckFlags(n))return!0;if(e.isInJSFile(n.valueDeclaration)){var t=n.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&3===e.getAssignmentDeclarationKind(t)}}function Ih(e,n,t,r,a,i){return void 0===i&&(i=!0),kh(e,n,t,r,a,i?160===e.kind?e.right:199===e.kind?e:202===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function kh(n,t,r,a,i,o){var s,c,l=e.getDeclarationModifierFlagsFromSymbol(i,r);if(t){if(L<2&&Nh(i))return o&&kr(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&l)return o&&kr(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Mi(i),Fi(Zf(i))),!1}if(128&l&&Nh(i)&&(e.isThisProperty(n)||e.isThisInitializedObjectBindingExpression(n)||e.isObjectBindingPattern(n.parent)&&e.isThisInitializedDeclaration(n.parent.parent))&&((c=e.getClassLikeDeclarationOfSymbol(ti(i)))&&(s=n,e.findAncestor(s,(function(n){return!!(e.isConstructorDeclaration(n)&&e.nodeIsPresent(n.body)||e.isPropertyDeclaration(n))||!(!e.isClassLike(n)&&!e.isFunctionLikeDeclaration(n))&&"quit"})))))return o&&kr(o,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Mi(i),e.getTextOfIdentifierOrLiteral(c.name)),!1;if(!(24&l))return!0;if(8&l)return!!Dx(n,c=e.getClassLikeDeclarationOfSymbol(ti(i)))||(o&&kr(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Mi(i),Fi(Zf(i))),!1);if(t)return!0;var u=Lx(n,(function(n){var t=Ss(ni(n));return function(n,t,r){return Qf(t,(function(t){return!!(16&e.getDeclarationModifierFlagsFromSymbol(t,r))&&!$o(n,Zf(t))}))?void 0:n}(t,i,r)?t:void 0}));if(!u){var d=void 0;if(32&l||!(d=function(n){var t=e.getThisContainer(n,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}(n))||!d.type)return o&&kr(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Mi(i),Fi(Zf(i)||a)),!1;var p=Lp(d.type);u=(262144&p.flags?Ic(p):p).target}return!!(32&l)||(262144&a.flags&&(a=a.isThisType?Ic(a):wc(a)),!(!a||!$o(a,u))||(o&&kr(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Mi(i),Fi(u),Fi(a)),!1))}function Nh(e){return!!Qf(e,(function(e){return!(8192&e.flags)}))}function Rh(e){return Gh(VE(e),e)}function Oh(e){return!!(98304&(I?Rm(e):e.flags))}function wh(e){return Oh(e)?Fm(e):e}function Mh(n,t){kr(n,32768&t?65536&t?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function Ph(n,t){kr(n,32768&t?65536&t?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Fh(n,t,r){if(I&&2&n.flags)return kr(t,e.Diagnostics.Object_is_of_type_unknown),Re;var a=98304&(I?Rm(n):n.flags);if(a){r(t,a);var i=Fm(n);return 229376&i.flags?Re:i}return n}function Gh(e,n){return Fh(e,n,Mh)}function Bh(n,t){var r=Gh(n,t);return 16384&r.flags&&kr(t,e.Diagnostics.Object_is_possibly_undefined),r}function Uh(e,n){return 32&e.flags?function(e,n){var t=VE(e.expression),r=Vm(t,e.expression);return Um(qh(e,e.expression,Gh(r,e.expression),e.name,n),e,r!==t)}(e,n):qh(e,e.expression,Rh(e.expression),e.name,n)}function Vh(n,t){var r=e.isPartOfTypeQuery(n)&&e.isThisIdentifier(n.left)?Gh(py(n.left),n.left):Rh(n.left);return qh(n,n.left,r,n.right,t)}function jh(n){for(;211===n.parent.kind;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function Kh(n,t){for(var r=e.getContainingClass(t);r;r=e.getContainingClass(r)){var a=r.symbol,i=e.getSymbolNameForPrivateIdentifier(a,n),o=a.members&&a.members.get(i)||a.exports&&a.exports.get(i);if(o)return o}}function Hh(n){!function(n){e.getContainingClass(n)?e.isExpressionNode(n)?!Wh(n)&&JL(n,e.Diagnostics.Cannot_find_name_0,e.idText(n)):JL(n,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression):JL(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies)}(n);var t=Wh(n);return t&&cv(t,void 0,!1),Ie}function Wh(n){if(e.isExpressionNode(n)){var t=zr(n);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=Kh(n.escapedText,n)),t.resolvedSymbol}}function zh(e,n){return Qc(e,n.escapedName)}function Jh(n,t){return(vo(t)||e.isThisProperty(n)&&bo(t))&&e.getThisContainer(n,!0)===Eo(t)}function qh(n,t,r,a,i){var o,s,c=zr(t).resolvedSymbol,l=e.getAssignmentTargetKind(n),d=Vc(0!==l||jh(n)?$m(r):r),p=ro(d)||d===nn;if(e.isPrivateIdentifier(a)){L<99&&(0!==l&&hL(n,1048576),1!==l&&hL(n,524288));var f=Kh(a.escapedText,a);if(l&&f&&f.valueDeclaration&&e.isMethodDeclaration(f.valueDeclaration)&&JL(a,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(a)),(null===f||void 0===f?void 0:f.valueDeclaration)&&99===e.getEmitScriptTarget(x)&&!C){var m=e.getContainingClass(f.valueDeclaration),_=e.findAncestor(n,(function(n){return n===m?"quit":!(!e.isPropertyDeclaration(n.parent)||!e.hasStaticModifier(n.parent)||n.parent.initializer!==n||n.parent.parent!==m)}));if(_){var g=ni(_.parent);e.Debug.assert(g,"Initializer without declaration symbol");var y=kr(n,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(f));e.addRelatedInfo(y,e.createDiagnosticForNode(_.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(g)))}}if(p){if(f)return ao(d)?Re:d;if(!e.getContainingClass(a))return JL(a,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ie}if(!(o=f?zh(r,f):void 0)&&function(n,t,r){var a,i=Cc(n);i&&e.forEach(i,(function(n){var r=n.valueDeclaration;if(r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)&&r.name.escapedText===t.escapedText)return a=n,!0}));var o=ta(t);if(a){var s=e.Debug.checkDefined(a.valueDeclaration),c=e.Debug.checkDefined(e.getContainingClass(s));if(null===r||void 0===r?void 0:r.valueDeclaration){var l=r.valueDeclaration,d=e.getContainingClass(l);if(e.Debug.assert(!!d),e.findAncestor(d,(function(e){return c===e}))){var p=kr(t,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Fi(n));return e.addRelatedInfo(p,e.createDiagnosticForNode(l,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return kr(t,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,ta(c.name||u)),!0}return!1}(r,a,f))return Re;o&&65536&o.flags&&!(32768&o.flags)&&1!==l&&kr(n,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(p)return e.isIdentifier(t)&&c&&iy(c,n),ao(d)?Re:d;o=Qc(d,a.escapedText)}if(e.isIdentifier(t)&&c&&(x.isolatedModules||!o||!qx(o)||e.shouldPreserveConstEnums(x)&&ay(n))&&iy(c,n),o){o.declarations&&134217728&Ch(o)&&Ad(n,o)&&Mr(a,o.declarations,a.escapedText),function(n,t,r){var a,i=n.valueDeclaration;if(!i||e.getSourceFileOfNode(t).isDeclarationFile)return;var o=e.idText(r);!Qh(t)||function(n){return e.isPropertyDeclaration(n)&&n.questionToken}(i)||e.isAccessExpression(t)&&e.isAccessExpression(t.expression)||Xr(i,r)||!x.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;var n=Xo(e.parent);for(;;){if(!(n=n.symbol&&Zh(n)))return!1;var t=Qc(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(n)?256!==i.kind||177===t.parent.kind||8388608&i.flags||Xr(i,r)||(a=kr(r,e.Diagnostics.Class_0_used_before_its_declaration,o)):a=kr(r,e.Diagnostics.Property_0_is_used_before_its_initialization,o);a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}(o,n,a),cv(o,n,lv(t,c)),zr(n).resolvedSymbol=o;var h=e.isWriteAccess(n);if(Ih(n,106===t.kind,h,d,o),aE(n,o,l))return kr(a,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(a)),Re;s=Jh(n,o)?ke:h?qo(o):Xo(o)}else{var v=e.isPrivateIdentifier(a)||0!==l&&wd(r)&&!Fd(r)?void 0:ll(d,a.escapedText);if(!v||!v.type){var b=Xh(n,r.symbol,!0);return!b&&Dd(r)?Ie:r.symbol===ie?(ie.exports.has(a.escapedText)&&418&ie.exports.get(a.escapedText).flags?kr(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(a.escapedText),Fi(r)):M&&kr(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Fi(r)),Ie):(a.escapedText&&!aa(n)&&$h(a,Fd(r)?d:r,b),Re)}v.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&kr(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Fi(d)),s=x.noUncheckedIndexedAccess&&!e.isAssignmentTarget(n)?ad([v.type,Ge]):v.type,x.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(n)&&kr(a,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(a.escapedText))}return Yh(n,o,s,a,i)}function Xh(n,t,r){var a=e.getSourceFileOfNode(n);if(a&&void 0===x.checkJs&&void 0===a.checkJsDirective&&(1===a.scriptKind||2===a.scriptKind)){var i=e.forEach(null===t||void 0===t?void 0:t.declarations,e.getSourceFileOfNode);return!(a!==i&&i&&Jr(i))&&!(r&&t&&32&t.flags)&&!(n&&r&&e.isPropertyAccessExpression(n)&&108===n.expression.kind)}return!1}function Yh(n,t,r,a,i){var o=e.getAssignmentTargetKind(n);if(1===o)return jm(r,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags)&&!fx(t.declarations))return r;if(r===ke)return So(n,t);r=ry(r,n,i);var s=!1;if(I&&R&&e.isAccessExpression(n)&&108===n.expression.kind){var c=t&&t.valueDeclaration;if(c&&JS(c)&&!e.isStatic(c)){var l=Qg(n);170!==l.kind||l.parent!==c.parent||8388608&c.flags||(s=!0)}}else I&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&Qg(n)===Qg(t.valueDeclaration)&&(s=!0);var u=Yg(n,r,s?Pm(r):r);return s&&!(32768&Rm(r))&&32768&Rm(u)?(kr(a,e.Diagnostics.Property_0_is_used_before_being_assigned,Mi(t)),r):o?bm(u):u}function Qh(n){return!!e.findAncestor(n,(function(n){switch(n.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return!(!e.isBlock(n.parent)||!e.isClassStaticBlockDeclaration(n.parent.parent))||"quit";default:return!e.isExpressionNode(n)&&"quit"}}))}function Zh(e){var n=ds(e);if(0!==n.length)return pd(n)}function $h(n,t,r){var a,i;if(!e.isPrivateIdentifier(n)&&1048576&t.flags&&!(131068&t.flags))for(var o=0,s=t.types;o<s.length;o++){var c=s[o];if(!Qc(c,n.escapedText)&&!ll(c,n.escapedText)){a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Fi(c));break}}if(ev(n.escapedText,t)){var l=e.declarationNameToString(n),u=Fi(t);a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,u,u+"."+l)}else{var d=uT(t);if(d&&Qc(d,n.escapedText))a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Fi(t)),i=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var p=e.declarationNameToString(n),f=Fi(t),m=function(n,t){var r=Vc(t).symbol;if(!r)return;for(var a=e.getScriptTargetFeatures(),i=e.getOwnKeys(a),o=0,s=i;o<s.length;o++){var c=s[o],l=a[c][e.symbolName(r)];if(void 0!==l&&e.contains(l,n))return c}}(p,t);if(void 0!==m)a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,p,f,m);else{var _=tv(n,t);if(void 0!==_){var g=e.symbolName(_),y=r?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;a=e.chainDiagnosticMessages(a,y,p,f,g),i=_.valueDeclaration&&e.createDiagnosticForNode(_.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else{var h=function(n){return x.lib&&!x.lib.includes("dom")&&(t=n,r=function(n){return n.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(n.symbol.escapedName))},3145728&t.flags?e.every(t.types,r):r(t))&&If(n);var t,r}(t)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;a=e.chainDiagnosticMessages(Yc(a,t),h,p,f)}}}}var v=e.createDiagnosticForNodeFromMessageChain(n,a);i&&e.addRelatedInfo(v,i),Nr(!r||a.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function ev(n,t){var r=t.symbol&&Qc(Xo(t.symbol),n);return void 0!==r&&!!r.valueDeclaration&&e.isStatic(r.valueDeclaration)}function nv(e,n){return sv(e,Cc(n),106500)}function tv(n,t){var r=Cc(t);if("string"!==typeof n){var a=n.parent;e.isPropertyAccessExpression(a)&&(r=e.filter(r,(function(e){return uv(a,t,e)}))),n=e.idText(n)}return sv(n,r,111551)}function rv(n,t){var r=e.isString(n)?n:e.idText(n),a=Cc(t),i="for"===r?e.find(a,(function(n){return"htmlFor"===e.symbolName(n)})):"class"===r?e.find(a,(function(n){return"className"===e.symbolName(n)})):void 0;return null!==i&&void 0!==i?i:sv(r,a,111551)}function av(n,t){var r=tv(n,t);return r&&e.symbolName(r)}function iv(n,t,r){return e.Debug.assert(void 0!==t,"outername should always be defined"),Zr(n,t,r,void 0,t,!1,!1,!0,(function(n,r,a){e.Debug.assertEqual(t,r,"name should equal outerName");var i,o=qr(n,r,a);if(o)return o;n===re?i=e.mapDefined(["string","number","boolean","object","bigint","symbol"],(function(e){return n.has(e.charAt(0).toUpperCase()+e.slice(1))?Pr(524288,e):void 0})).concat(e.arrayFrom(n.values())):i=e.arrayFrom(n.values());return sv(e.unescapeLeadingUnderscores(r),i,a)}))}function ov(n,t){return t.exports&&sv(e.idText(n),Ja(t),2623475)}function sv(n,t,r){return e.getSpellingSuggestion(n,t,(function(n){var t=e.symbolName(n);if(e.startsWith(t,'"'))return;if(n.flags&r)return t;if(2097152&n.flags){var a=function(e){if(Wr(e).target!==De)return Ia(e)}(n);if(a&&a.flags&r)return t}return}))}function cv(n,t,r){var a=n&&106500&n.flags&&n.valueDeclaration;if(a){var i=e.hasEffectiveModifier(a,8),o=n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name);if((i||o)&&(!t||!e.isWriteOnlyAccess(t)||65536&n.flags)){if(r){var s=e.findAncestor(t,e.isFunctionLikeDeclaration);if(s&&s.symbol===n)return}(1&e.getCheckFlags(n)?Wr(n).target:n).isReferenced=67108863}}}function lv(n,t){return 108===n.kind||!!t&&e.isEntityNameExpression(n)&&t===U_(e.getFirstIdentifier(n))}function uv(e,n,t){return pv(e,205===e.kind&&106===e.expression.kind,!1,n,t)}function dv(e,n,t,r){if(ro(r))return!0;var a=Qc(r,t);return!!a&&pv(e,n,!1,r,a)}function pv(n,t,r,a,i){if(ro(a))return!0;if(i.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(i.valueDeclaration)){var o=e.getContainingClass(i.valueDeclaration);return!e.isOptionalChain(n)&&!!e.findAncestor(n,(function(e){return e===o}))}return kh(n,t,r,a,i)}function fv(n){var t=n.initializer;if(254===t.kind){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return ni(r)}else if(79===t.kind)return U_(t)}function mv(e,n){return 32&e.flags?function(e,n){var t=VE(e.expression),r=Vm(t,e.expression);return Um(_v(e,Gh(r,e.expression),n),e,r!==t)}(e,n):_v(e,Rh(e.expression),n)}function _v(n,t,r){var a=0!==e.getAssignmentTargetKind(n)||jh(n)?$m(t):t,i=n.argumentExpression,o=VE(i);if(ao(a)||a===nn)return a;if(dE(a)&&!e.isStringLiteralLike(i))return kr(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Re;var s=function(n){var t,r=e.skipParentheses(n);if(79===r.kind){var a=U_(r);if(3&a.flags)for(var i=n,o=n.parent;o;){if(242===o.kind&&i===o.statement&&fv(o)===a&&1===al(t=GE(o.expression)).length&&il(t,We))return!0;i=o,o=o.parent}}return!1}(i)?We:o,c=Hd(a,s,e.isAssignmentTarget(n)?4|(wd(a)&&!Fd(a)?2:0):32,n)||Re;return tT(Yh(n,zr(n).resolvedSymbol,c,i,r),n)}function gv(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function yv(n){return gv(n)&&e.forEach(n.typeArguments,mx),209===n.kind?VE(n.template):e.isJsxOpeningLikeElement(n)?VE(n.attributes):164!==n.kind&&e.forEach(n.arguments,(function(e){VE(e)})),xt}function hv(e){return yv(e),Lt}function vv(e){return!!e&&(224===e.kind||231===e.kind&&e.isSpread)}function bv(n){return e.findIndex(n,vv)}function Ev(e){return!!(16384&e.flags)}function Tv(e){return!!(49155&e.flags)}function Sv(n,t,r,a){var i;void 0===a&&(a=!1);var o=!1,s=Ob(r),c=wb(r);if(209===n.kind)if(i=t.length,222===n.template.kind){var l=e.last(n.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var u=n.template;e.Debug.assert(14===u.kind),o=!!u.isUnterminated}else if(164===n.kind)i=Bv(n,r);else if(e.isJsxOpeningLikeElement(n)){if(o=n.attributes.end===n.end)return!0;i=0===c?t.length:1,s=0===t.length?s:1,c=Math.min(c,1)}else{if(!n.arguments)return e.Debug.assert(208===n.kind),0===wb(r);i=a?t.length+1:t.length,o=n.arguments.end===n.end;var d=bv(t);if(d>=0)return d>=wb(r)&&(Mb(r)||d<Ob(r))}if(!Mb(r)&&i>s)return!1;if(o||i>=c)return!0;for(var p=i;p<c;p++){if(131072&xg(kb(r,p),e.isInJSFile(n)&&!I?Tv:Ev).flags)return!1}return!0}function xv(n,t){var r=e.length(n.typeParameters),a=yl(n.typeParameters);return!e.some(t)||t.length>=a&&t.length<=r}function Lv(e){return Cv(e,0,!1)}function Dv(e){return Cv(e,0,!1)||Cv(e,1,!1)}function Cv(e,n,t){if(524288&e.flags){var r=Sc(e);if(t||0===r.properties.length&&0===r.indexInfos.length){if(0===n&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===n&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function Av(n,t,r,a){var i=o_(n.typeParameters,n,0,a),o=Pb(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return a_(s?Vp(t,s):t,n,(function(e,n){I_(i.inferences,e,n)})),r||i_(t,n,(function(e,n){I_(i.inferences,e,n,128)})),Nl(n,G_(i),e.isInJSFile(t.declaration))}function Iv(n){if(!n)return $e;var t=VE(n);return e.isOptionalChainRoot(n.parent)?Fm(t):e.isOptionalChain(n.parent)?Bm(t):t}function kv(n,t,r,a,i){if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r){var a=Vy(n,e),i=TE(e.attributes,a,r,t);return I_(r.inferences,i,a),G_(r)}(n,t,a,i);if(164!==n.kind){var o=By(n,e.every(t.typeParameters,(function(e){return!!Bc(e)}))?8:0);if(o){var s=Uy(n),c=p_(function(n,t){return void 0===t&&(t=0),n&&s_(e.map(n.inferences,d_),n.signature,n.flags|t,n.compareTypes)}(s,1)),l=Yp(o,c),u=Lv(l),d=u&&u.typeParameters?Fl(Rl(u,u.typeParameters)):l,p=Cl(t);I_(i.inferences,d,p,128);var f=o_(t.typeParameters,t,i.flags),m=Yp(o,s&&s.returnMapper);I_(f.inferences,m,p),i.returnMapper=e.some(f.inferences,wE)?p_(function(n){var t=e.filter(n.inferences,wE);return t.length?s_(e.map(t,d_),n.signature,n.flags,n.compareTypes):void 0}(f)):void 0}}var _=Fb(t),g=_?Math.min(Ob(t)-1,r.length):r.length;if(_&&262144&_.flags){var y=e.find(i.inferences,(function(e){return e.typeParameter===_}));y&&(y.impliedArity=e.findIndex(r,vv,g)<0?r.length-g:void 0)}var h=xl(t);if(h){var v=Pv(n);I_(i.inferences,Iv(v),h)}for(var b=0;b<g;b++){var E=r[b];if(226!==E.kind){var T=kb(t,b),S=TE(E,T,i,a);I_(i.inferences,S,T)}}if(_){var x=Rv(r,g,r.length,_,i,a);I_(i.inferences,x,_)}return G_(i)}function Nv(e){return 1048576&e.flags?Cg(e,Nv):1&e.flags||cm(wc(e)||e)?e:Lm(e)?Ku($l(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Ku([e],[8])}function Rv(n,t,r,a,i,o){if(t>=r-1&&vv(d=n[r-1]))return Nv(231===d.kind?d.type:TE(d.expression,a,i,o));for(var s=[],c=[],l=[],u=t;u<r;u++){var d;if(vv(d=n[u])){var p=231===d.kind?d.type:VE(d.expression);um(p)?(s.push(p),c.push(8)):(s.push(oS(33,p,Ge,224===d.kind?d.expression:d)),c.push(4))}else{var f=jd(a,hp(u-t),256),m=TE(d,f,i,o),_=cE(f,406978556);s.push(_?_p(m):Em(m)),c.push(1)}231===d.kind&&d.tupleNameSource&&l.push(d.tupleNameSource)}return Ku(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function Ov(n,t,r,a){for(var i,o=e.isInJSFile(n.declaration),s=n.typeParameters,c=hl(e.map(t,Lp),s,yl(s),o),l=0;l<t.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var u=Ic(s[l]);if(u){var d=r&&a?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,p=a||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;i||(i=Np(s,c));var f=c[l];if(!_f(f,Ks(Yp(u,i),f),r?t[l]:void 0,p,d))return}}return c}function wv(n){if(oh(n.tagName))return 2;var t=Vc(VE(n.tagName));return e.length($c(t,1))?0:e.length($c(t,0))?1:2}function Mv(n,t,r,a,i,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return function(n,t,r,a,i,o,s){var c=Vy(t,n),l=TE(n.attributes,c,void 0,a);return function(){var t;if(fh(n))return!0;var r=e.isJsxOpeningElement(n)||e.isJsxSelfClosingElement(n)&&!oh(n.tagName)?VE(n.tagName):void 0;if(!r)return!0;var a=$c(r,0);if(!e.length(a))return!0;var o=_L(n);if(!o)return!0;var c=Fa(o,111551,!0,!1,n);if(!c)return!0;var l=$c(Xo(c),0);if(!e.length(l))return!0;for(var u=!1,d=0,p=0,f=l;p<f.length;p++){var m=$c(kb(f[p],0),0);if(e.length(m))for(var _=0,g=m;_<g.length;_++){var y=g[_];if(u=!0,Mb(y))return!0;var h=Ob(y);h>d&&(d=h)}}if(!u)return!0;for(var v=1/0,b=0,E=a;b<E.length;b++){var T=wb(E[b]);T<v&&(v=T)}if(v<=d)return!0;if(i){var S=e.createDiagnosticForNode(n.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(n.tagName),v,e.entityNameToString(o),d),x=null===(t=kx(n.tagName))||void 0===t?void 0:t.valueDeclaration;x&&e.addRelatedInfo(S,e.createDiagnosticForNode(x,e.Diagnostics._0_is_declared_here,e.entityNameToString(n.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||fr.add(S)}return!1}()&&yf(l,c,r,i?n.tagName:void 0,n.attributes,void 0,o,s)}(n,r,a,i,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=xl(r);if(l&&l!==$e&&208!==n.kind){var u=Pv(n),d=Iv(u),p=o?u||n:void 0,f=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Ff(d,l,a,p,f,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var m=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,_=Fb(r),g=_?Math.min(Ob(r)-1,t.length):t.length,y=0;y<g;y++){var h=t[y];if(226!==h.kind){var v=kb(r,y),b=TE(h,v,void 0,i),E=4&i?Jm(b):b;if(!yf(E,v,a,o?h:void 0,h,m,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),x(h,E,v),c.errors||e.emptyArray}}if(_){var T=Rv(t,g,t.length,_,void 0,i),S=t.length-g;p=o?0===S?n:1===S?t[g]:e.setTextRangePosEnd(Fv(n,T),t[g].pos,t[t.length-1].end):void 0;if(!Ff(T,_,a,p,m,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),x(p,T,_),c.errors||e.emptyArray}return;function x(n,t,r){if(n&&o&&c.errors&&c.errors.length){if(lT(r))return;var i=lT(t);i&&wf(i,r,a)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await))}}}function Pv(n){var t=207===n.kind?n.expression:209===n.kind?n.tag:void 0;if(t){var r=e.skipOuterExpressions(t);if(e.isAccessExpression(r))return r.expression}}function Fv(n,t,r,a){var i=e.parseNodeFactory.createSyntheticExpression(t,r,a);return e.setTextRange(i,n),e.setParent(i,n),i}function Gv(n){if(209===n.kind){var t=n.template,r=[Fv(t,ct||(ct=Su("TemplateStringsArray",0,!0)||mn))];return 222===t.kind&&e.forEach(t.templateSpans,(function(e){r.push(e.expression)})),r}if(164===n.kind)return function(n){var t=n.parent,r=n.expression;switch(t.kind){case 256:case 225:return[Fv(r,Xo(ni(t)))];case 163:var a=t.parent;return[Fv(r,170===t.parent.kind?Xo(ni(a)):Re),Fv(r,Ie),Fv(r,We)];case 166:case 168:case 171:case 172:var i=166!==t.kind&&0!==L;return[Fv(r,wx(t)),Fv(r,Mx(t)),Fv(r,i?Mu(Nx(t)):Ie)]}return e.Debug.fail()}(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var a=n.arguments||e.emptyArray,i=bv(a);if(i>=0){for(var o=a.slice(0,i),s=function(n){var t=a[n],r=224===t.kind&&(Ut?VE(t.expression):SE(t.expression));r&&Lm(r)?e.forEach($l(r),(function(e,n){var a,i=r.target.elementFlags[n],s=Fv(t,4&i?Pu(e):e,!!(12&i),null===(a=r.target.labeledElementDeclarations)||void 0===a?void 0:a[n]);o.push(s)})):o.push(t)},c=i;c<a.length;c++)s(c);return o}return a}function Bv(n,t){switch(n.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return 0===L||t.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function Uv(n,t){var r,a,i=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var o=e.getErrorSpanForNode(i,n.expression.name);r=o.start,a=t?o.length:n.end-r}else{var s=e.getErrorSpanForNode(i,n.expression);r=s.start,a=t?s.length:n.end-r}return{start:r,length:a,sourceFile:i}}function Vv(n,t,r,a,i,o){if(e.isCallExpression(n)){var s=Uv(n),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,t,r,a,i,o)}return e.createDiagnosticForNode(n,t,r,a,i,o)}function jv(n,t,r){var a,i=bv(r);if(i>-1)return e.createDiagnosticForNode(r[i],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=t;d<p.length;d++){var f=p[d],m=wb(f),_=Ob(f);m<s&&(s=m,o=f),c=Math.max(c,_),m<r.length&&m>l&&(l=m),r.length<_&&_<u&&(u=_)}var g=e.some(t,Mb),y=g?s:s<c?s+"-"+c:s,h=g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:1===y&&0===r.length&&function(n){if(!e.isCallExpression(n)||!e.isIdentifier(n.expression))return!1;var t=Qr(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),r=null===t||void 0===t?void 0:t.valueDeclaration;if(!r||!e.isParameter(r)||!e.isFunctionExpressionOrArrowFunction(r.parent)||!e.isNewExpression(r.parent.parent)||!e.isIdentifier(r.parent.parent.expression))return!1;var a=ku(!1);return!!a&&kx(r.parent.parent.expression,!0)===a}(n)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(s<r.length&&r.length<c)return Vv(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,r.length,l,u);if(r.length<s){var v=Vv(n,h,y,r.length),b=null===(a=null===o||void 0===o?void 0:o.declaration)||void 0===a?void 0:a.parameters[o.thisParameter?r.length+1:r.length];if(b){var E=e.createDiagnosticForNode(b,e.isBindingPattern(b.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(b)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,b.name?e.isBindingPattern(b.name)?void 0:e.idText(e.getFirstIdentifier(b.name)):r.length);return e.addRelatedInfo(v,E)}return v}var T=e.factory.createNodeArray(r.slice(c)),S=e.first(T).pos,x=e.last(T).end;return x===S&&x++,e.setTextRangePosEnd(T,S,x),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),T,h,y,r.length)}function Kv(n,r,a,i,o,s){var c,l=209===n.kind,u=164===n.kind,d=e.isJsxOpeningLikeElement(n),p=!a&&t;u||(c=n.typeArguments,(l||d||106!==n.expression.kind)&&e.forEach(c,mx));var f=a||[];if(function(n,t,r){var a,i,o,s,c=0,l=-1;e.Debug.assert(!t.length);for(var u=0,d=n;u<d.length;u++){var p=d[u],f=p.declaration&&ni(p.declaration),m=p.declaration&&p.declaration.parent;i&&f!==i?(o=c=t.length,a=m):a&&m===a?o+=1:(a=m,o=c),i=f,te(p)?(s=++l,c++):s=o,t.splice(s,0,r?qs(p,r):p)}}(r,f,o),!f.length)return p&&fr.add(Vv(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),hv(n);var m,_,g,y,h=Gv(n),v=1===f.length&&!f[0].typeParameters,b=u||v||!e.some(h,nf)?0:4,E=!!(16&i)&&207===n.kind&&n.arguments.hasTrailingComma;if(f.length>1&&(y=K(f,yr,v,E)),y||(y=K(f,vr,v,E)),y)return y;if(p)if(m)if(1===m.length||m.length>3){var T,S=m[m.length-1];m.length>3&&(T=e.chainDiagnosticMessages(T,e.Diagnostics.The_last_overload_gave_the_following_error),T=e.chainDiagnosticMessages(T,e.Diagnostics.No_overload_matches_this_call));var x=Mv(n,h,S,vr,0,!0,(function(){return T}));if(x)for(var L=0,D=x;L<D.length;L++){var C=D[L];S.declaration&&m.length>3&&e.addRelatedInfo(C,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),j(S,C),fr.add(C)}else e.Debug.fail("No error for last overload signature")}else{for(var A=[],I=0,k=Number.MAX_VALUE,N=0,R=0,O=function(t){var r=Mv(n,h,t,vr,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,R+1,f.length,Pi(t))}));r?(r.length<=k&&(k=r.length,N=R),I=Math.max(I,r.length),A.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),R++},w=0,M=m;w<M.length;w++){O(M[w])}var P=I>1?A[N]:e.flatten(A);e.Debug.assert(P.length>0,"No errors reported for 3 or fewer overload signatures");var F=e.chainDiagnosticMessages(e.map(P,(function(e){return"string"===typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),G=pa([],e.flatMap(P,(function(e){return e.relatedInformation})),!0),B=void 0;if(e.every(P,(function(e){return e.start===P[0].start&&e.length===P[0].length&&e.file===P[0].file}))){var U=P[0];B={file:U.file,start:U.start,length:U.length,code:F.code,category:F.category,messageText:F,relatedInformation:G}}else B=e.createDiagnosticForNodeFromMessageChain(n,F,G);j(m[0],B),fr.add(B)}else if(_)fr.add(jv(n,[_],h));else if(g)Ov(g,n.typeArguments,!0,s);else{var V=e.filter(r,(function(e){return xv(e,c)}));0===V.length?fr.add(function(n,t,r){var a=r.length;if(1===t.length){var i=yl((d=t[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,i<o?i+"-"+o:i,a)}for(var s=-1/0,c=1/0,l=0,u=t;l<u.length;l++){var d,p=yl((d=u[l]).typeParameters);o=e.length(d.typeParameters),p>a?c=Math.min(c,p):o<a&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,a,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,a)}(n,r,c)):u?s&&fr.add(Vv(n,s)):fr.add(jv(n,V,h))}return function(n,t,r,a){return e.Debug.assert(t.length>0),gx(n),a||1===t.length||t.some((function(e){return!!e.typeParameters}))?function(n,t,r){var a=function(e,n){for(var t=-1,r=-1,a=0;a<e.length;a++){var i=e[a],o=Ob(i);if(Mb(i)||o>=n)return a;o>r&&(r=o,t=a)}return t}(t,void 0===oe?r.length:oe),i=t[a],o=i.typeParameters;if(!o)return i;var s=gv(n)?n.typeArguments:void 0,c=s?Ol(i,function(e,n,t){var r=e.map(Nx);for(;r.length>n.length;)r.pop();for(;r.length<n.length;)r.push(Ic(n[r.length])||F_(t));return r}(s,o,e.isInJSFile(n))):function(n,t,r,a){var i=o_(t,r,e.isInJSFile(n)?2:0),o=kv(n,r,a,12,i);return Ol(r,o)}(n,o,i,r);return t[a]=c,c}(n,t,r):function(n){var t,r=e.mapDefined(n,(function(e){return e.thisParameter}));r.length&&(t=Wv(r,r.map(xb)));for(var a=e.minAndMax(n,Hv),i=a.min,o=a.max,s=[],c=function(t){var r=e.mapDefined(n,(function(n){return ne(n)?t<n.parameters.length-1?n.parameters[t]:e.last(n.parameters):t<n.parameters.length?n.parameters[t]:void 0}));e.Debug.assert(0!==r.length),s.push(Wv(r,e.mapDefined(n,(function(e){return Nb(e,t)}))))},l=0;l<o;l++)c(l);var u=e.mapDefined(n,(function(n){return ne(n)?e.last(n.parameters):void 0})),d=0;if(0!==u.length){var p=Pu(ad(e.mapDefined(n,kl),2));s.push(zv(u,p)),d|=1}n.some(te)&&(d|=2);return Ws(n[0].declaration,void 0,t,s,pd(n.map(Cl)),void 0,i,d)}(t)}(n,f,h,!!a);function j(n,t){var r,a,i=m,o=_,s=g,c=(null===(a=null===(r=n.declaration)||void 0===r?void 0:r.symbol)||void 0===a?void 0:a.declarations)||e.emptyArray,l=c.length>1?e.find(c,(function(n){return e.isFunctionLikeDeclaration(n)&&e.nodeIsPresent(n.body)})):void 0;if(l){var u=vl(l),d=!u.typeParameters;K([u],vr,d)&&e.addRelatedInfo(t,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,_=o,g=s}function K(t,r,a,i){if(void 0===i&&(i=!1),m=void 0,_=void 0,g=void 0,a){var o=t[0];if(e.some(c)||!Sv(n,h,o,i))return;return Mv(n,h,o,r,0,!1,void 0)?void(m=[o]):o}for(var s=0;s<t.length;s++){if(xv(o=t[s],c)&&Sv(n,h,o,i)){var l=void 0,u=void 0;if(o.typeParameters){var d=void 0;if(e.some(c)){if(!(d=Ov(o,c,!1))){g=o;continue}}else u=o_(o.typeParameters,o,e.isInJSFile(n)?2:0),d=kv(n,o,h,8|b,u),b|=4&u.flags?8:0;if(l=Nl(o,d,e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),Fb(o)&&!Sv(n,h,l,i)){_=l;continue}}else l=o;if(!Mv(n,h,l,r,b,!1,void 0)){if(b){if(b=0,u)if(l=Nl(o,d=kv(n,o,h,b,u),e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),Fb(o)&&!Sv(n,h,l,i)){_=l;continue}if(Mv(n,h,l,r,b,!1,void 0)){(m||(m=[])).push(l);continue}}return t[s]=l,l}(m||(m=[])).push(l)}}}}function Hv(e){var n=e.parameters.length;return ne(e)?n-1:n}function Wv(e,n){return zv(e,ad(n,2))}function zv(n,t){return zm(e.first(n),t)}function Jv(e){return!(!e.typeParameters||!iL(Cl(e)))}function qv(e,n,t,r){return ro(e)||ro(n)&&!!(262144&e.flags)||!t&&!r&&!(1048576&n.flags)&&!(131072&zc(n).flags)&&df(e,kn)}function Xv(n,t,r){if(n.arguments&&L<1){var a=bv(n.arguments);a>=0&&kr(n.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=Rh(n.expression);if(i===nn)return Ct;if(ao(i=Vc(i)))return hv(n);if(ro(i))return n.typeArguments&&kr(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),yv(n);var o=$c(i,1);if(o.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,a=e.getSelectedEffectiveModifierFlags(r,24);if(!a||170!==r.kind)return!0;var i=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=Ss(r.parent.symbol);if(!Dx(n,i)){var s=e.getContainingClass(n);if(s&&16&a){var c=Nx(s);if(Yv(r.parent.symbol,c))return!0}return 8&a&&kr(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Fi(o)),16&a&&kr(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Fi(o)),!1}return!0}(n,o[0]))return hv(n);if(o.some((function(e){return 4&e.flags})))return kr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),hv(n);var s=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return s&&e.hasSyntacticModifier(s,128)?(kr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),hv(n)):Kv(n,o,t,r,0)}var c=$c(i,0);if(c.length){var l=Kv(n,c,t,r,0);return M||(l.declaration&&!ob(l.declaration)&&Cl(l)!==$e&&kr(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),xl(l)===$e&&kr(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return Zv(n.expression,i,1),hv(n)}function Yv(n,t){var r=ds(t);if(!e.length(r))return!1;var a=r[0];if(2097152&a.flags){for(var i=tc(a.types),o=0,s=0,c=a.types;s<c.length;s++){var l=c[s];if(!i[o]&&3&e.getObjectFlags(l)){if(l.symbol===n)return!0;if(Yv(n,l))return!0}o++}return!1}return a.symbol===n||Yv(n,a)}function Qv(n,t,r){var a,i=0===r,o=_T(t),s=o&&$c(o,r).length>0;if(1048576&t.flags){for(var c=!1,l=0,u=t.types;l<u.length;l++){var d=u[l];if(0!==$c(d,r).length){if(c=!0,a)break}else if(a||(a=e.chainDiagnosticMessages(a,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Fi(d)),a=e.chainDiagnosticMessages(a,i?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Fi(t))),c)break}c||(a=e.chainDiagnosticMessages(void 0,i?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Fi(t))),a||(a=e.chainDiagnosticMessages(a,i?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Fi(t)))}else a=e.chainDiagnosticMessages(a,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Fi(t));var p=i?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(n.parent)&&0===n.parent.arguments.length){var f=zr(n).resolvedSymbol;f&&32768&f.flags&&(p=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(a,p),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Zv(n,t,r,a){var i=Qv(n,t,r),o=i.messageChain,s=i.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(n,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,s)),e.isCallExpression(n.parent)){var l=Uv(n.parent,!0),u=l.start,d=l.length;c.start=u,c.length=d}fr.add(c),$v(t,r,a?e.addRelatedInfo(c,a):c)}function $v(n,t,r){if(n.symbol){var a=Wr(n.symbol).originatingImport;if(a&&!e.isImportCall(a)){var i=$c(Xo(Wr(n.symbol).target),t);if(!i||!i.length)return;e.addRelatedInfo(r,e.createDiagnosticForNode(a,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function eb(n){switch(n.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function nb(n,t,r){var a=VE(n.expression),i=Vc(a);if(ao(i))return hv(n);var o,s,c=$c(i,0),l=$c(i,1).length;if(qv(a,i,c.length,l))return yv(n);if(o=n,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!ne(e)&&e.parameters.length<Bv(o,e)}))){var u=e.getTextOfNode(n.expression,!1);return kr(n,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),hv(n)}var d=eb(n);if(!c.length){var p=Qv(n.expression,i,0),f=e.chainDiagnosticMessages(p.messageChain,d),m=e.createDiagnosticForNodeFromMessageChain(n.expression,f);return p.relatedMessage&&e.addRelatedInfo(m,e.createDiagnosticForNode(n.expression,p.relatedMessage)),fr.add(m),$v(i,0,m),hv(n)}return Kv(n,c,t,r,0,d)}function tb(n,t){var r=mh(n),a=r&&Ya(r),i=a&&qr(a,H.Element,788968),o=i&&W.symbolToEntityName(i,788968,n),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,W.typeToTypeNode(t,n))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(130)),c=Pr(1,"props");return c.type=t,Ws(s,void 0,void 0,[c],i?Ss(i):Re,void 0,1,0)}function rb(n,t,r){if(oh(n.tagName)){var a=vh(n),i=tb(n,a);return gf(TE(n.attributes,Vy(i,n),void 0,0),a,n.tagName,n.attributes),e.length(n.typeArguments)&&(e.forEach(n.typeArguments,mx),fr.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),n.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(n.typeArguments)))),i}var o=VE(n.tagName),s=Vc(o);if(ao(s))return hv(n);var c=yh(o,n);return qv(o,s,c.length,0)?yv(n):0===c.length?(kr(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),hv(n)):Kv(n,c,t,r,0)}function ab(n,t,r){switch(n.kind){case 207:return function(n,t,r){if(106===n.expression.kind){var a=_y(n.expression);if(ro(a)){for(var i=0,o=n.arguments;i<o.length;i++)VE(o[i]);return xt}if(!ao(a)){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(s)return Kv(n,cs(a,s.typeArguments,s),t,r,0)}return yv(n)}var c,l=VE(n.expression);if(e.isCallChain(n)){var u=Vm(l,n.expression);c=u===l?0:e.isOutermostOptionalChain(n)?16:8,l=u}else c=0;if((l=Fh(l,n.expression,Ph))===nn)return Ct;var d=Vc(l);if(ao(d))return hv(n);var p=$c(d,0),f=$c(d,1).length;if(qv(l,d,p.length,f))return!ao(l)&&n.typeArguments&&kr(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),yv(n);if(!p.length){if(f)kr(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Fi(l));else{var m=void 0;if(1===n.arguments.length){var _=e.getSourceFileOfNode(n).text;e.isLineBreak(_.charCodeAt(e.skipTrivia(_,n.expression.end,!0)-1))&&(m=e.createDiagnosticForNode(n.expression,e.Diagnostics.Are_you_missing_a_semicolon))}Zv(n.expression,d,0,m)}return hv(n)}return 8&r&&!n.typeArguments&&p.some(Jv)?(OE(n,r),Dt):p.some((function(n){return e.isInJSFile(n.declaration)&&!!e.getJSDocClassTag(n.declaration)}))?(kr(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Fi(l)),hv(n)):Kv(n,p,t,r,c)}(n,t,r);case 208:return Xv(n,t,r);case 209:return function(n,t,r){var a=VE(n.tag),i=Vc(a);if(ao(i))return hv(n);var o=$c(i,0),s=$c(i,1).length;if(qv(a,i,o.length,s))return yv(n);if(!o.length){if(e.isArrayLiteralExpression(n.parent)){var c=e.createDiagnosticForNode(n.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return fr.add(c),hv(n)}return Zv(n.tag,i,0),hv(n)}return Kv(n,o,t,r,0)}(n,t,r);case 164:return nb(n,t,r);case 279:case 278:return rb(n,t,r)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function ib(e,n,t){var r=zr(e),a=r.resolvedSignature;if(a&&a!==Dt&&!n)return a;r.resolvedSignature=Dt;var i=ab(e,n,t||0);return i!==Dt&&(r.resolvedSignature=Bt===Ut?i:a),i}function ob(n){var t;if(!n||!e.isInJSFile(n))return!1;var r=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?n:e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?n.initializer:void 0;if(r){if(e.getJSDocClassTag(n))return!0;var a=ni(r);return!!(null===(t=null===a||void 0===a?void 0:a.members)||void 0===t?void 0:t.size)}return!1}function sb(n,t){var r,a;if(t){var i=Wr(t);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(Y(n))){var o=e.isTransientSymbol(n)?n:Br(n);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&t.flags,(null===(r=t.exports)||void 0===r?void 0:r.size)&&Kr(o.exports,t.exports),(null===(a=t.members)||void 0===a?void 0:a.size)&&Kr(o.members,t.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new e.Map)).set(Y(o),o),o}return i.inferredClassSymbol.get(Y(n))}}function cb(n,t){if(n.parent){var r,a;if(e.isVariableDeclaration(n.parent)&&n.parent.initializer===n){if(!e.isInJSFile(n)&&(!e.isVarConst(n.parent)||!e.isFunctionLikeDeclaration(n)))return;r=n.parent.name,a=n.parent}else if(e.isBinaryExpression(n.parent)){var i=n.parent,o=n.parent.operatorToken.kind;if(63!==o||!t&&i.right!==n){if((56===o||60===o)&&(e.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(r=i.parent.name,a=i.parent):e.isBinaryExpression(i.parent)&&63===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(a=r=i.parent.left),!r||!e.isBindableStaticNameExpression(r)||!e.isSameEntityName(r,i.left)))return}else a=r=i.left}else t&&e.isFunctionDeclaration(n)&&(r=n.name,a=n);if(a&&r&&(t||e.getExpandoInitializer(n,e.isPrototypeAccess(r))))return ni(a)}}function lb(n,t){if(n.declaration&&134217728&n.declaration.flags){var r=ub(t),a=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(t));i=r,o=n.declaration,s=a,c=Pi(n),wr(o,s?e.createDiagnosticForNode(i,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(i,e.Diagnostics._0_is_deprecated,c))}var i,o,s,c}function ub(n){switch((n=e.skipParentheses(n)).kind){case 207:case 164:case 208:return ub(n.expression);case 209:return ub(n.tag);case 279:case 278:return ub(n.tagName);case 206:return n.argumentExpression;case 205:return n.name;case 177:var t=n;return e.isQualifiedName(t.typeName)?t.typeName.right:t;default:return n}}function db(n){if(!e.isCallExpression(n))return!1;var t=n.expression;if(e.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),!e.isIdentifier(t)||"Symbol"!==t.escapedText)return!1;var r=Du(!1);return!!r&&r===Qr(t,"Symbol",111551,void 0,void 0,!1)}function pb(n){if(CL(n.arguments)||function(n){if(D===e.ModuleKind.ES2015)return JL(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(n.typeArguments)return JL(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;if(D!==e.ModuleKind.ESNext){if(TL(t),t.length>1)return JL(t[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext)}if(0===t.length||t.length>2)return JL(n,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var r=e.find(t,e.isSpreadElement);if(r)return JL(r,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(n),0===n.arguments.length)return Wb(n,Ie);for(var t=n.arguments[0],r=SE(t),a=n.arguments.length>1?SE(n.arguments[1]):void 0,i=2;i<n.arguments.length;++i)SE(n.arguments[i]);if((32768&r.flags||65536&r.flags||!df(r,He))&&kr(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Fi(r)),a){var o=Lu(!0);o!==mn&&_f(a,Mm(o,32768),n.arguments[1])}var s=Ba(n,t);if(s){var c=Ha(s,t,!0,!1);if(c)return Wb(n,mb(Xo(c),c,s,t)||_b(Xo(c),c,s,t))}return Wb(n,Ie)}function fb(n,t,r){var a=e.createSymbolTable(),i=Pr(2097152,"default");return i.parent=t,i.nameType=yp("default"),i.target=Aa(n),a.set("default",i),vi(r,a,e.emptyArray,e.emptyArray,e.emptyArray)}function mb(e,n,t,r){if(va(r)&&e&&!ao(e)){var a=e;if(!a.defaultOnlyType){var i=fb(n,t);a.defaultOnlyType=i}return a.defaultOnlyType}}function _b(n,t,r,a){var i;if(A&&n&&!ao(n)){var o=n;if(!o.syntheticType)if(ba(null===(i=r.declarations)||void 0===i?void 0:i.find(e.isSourceFile),r,!1,a)){var s=Pr(2048,"__type"),c=fb(t,r,s);s.type=c,o.syntheticType=ah(n)?up(n,c,s,0,!1):c}else o.syntheticType=n;return o.syntheticType}return n}function gb(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=Qr(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(t===ce)return!0;if(2097152&t.flags)return!1;var r=16&t.flags?255:3&t.flags?253:0;if(0!==r){var a=e.getDeclarationOfKind(t,r);return!!a&&!!(8388608&a.flags)}return!1}function yb(n){(function(n){if(n.questionDotToken||32&n.flags)return JL(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(n)||DL(n,n.typeArguments),L<2&&hL(n,262144);var t=ib(n);return lb(t,n),Cl(t)}function hb(e){switch(e.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return hb(e.expression);case 218:var n=e.operator,t=e.operand;return 40===n&&(8===t.kind||9===t.kind)||39===n&&8===t.kind;case 205:case 206:var r=Nx(e.expression).symbol;return r&&2097152&r.flags&&(r=Ia(r)),!!(r&&384&r.flags&&1===hs(r))}return!1}function vb(n,r,a,i){var o=VE(a,i);if(e.isConstTypeReference(r))return hb(a)||kr(a,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),_p(o);mx(r),o=Jm(bm(o));var s=Lp(r);t&&!ao(s)&&(ff(s,$m(o))||Lf(o,s,n,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first));return s}function bb(e){return 32&e.flags?function(e){var n=VE(e.expression),t=Vm(n,e.expression);return Um(Fm(t),e,t!==n)}(e):Fm(VE(e.expression))}function Eb(n){return function(n){var t=n.name.escapedText;switch(n.keywordToken){case 103:if("target"!==t)return JL(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"target");break;case 100:if("meta"!==t)JL(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"meta")}}(n),103===n.keywordToken?Sb(n):100===n.keywordToken?function(n){D===e.ModuleKind.Node12||D===e.ModuleKind.NodeNext?e.getSourceFileOfNode(n).impliedNodeFormat!==e.ModuleKind.ESNext&&kr(n,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):D<e.ModuleKind.ES2020&&D!==e.ModuleKind.System&&kr(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var t=e.getSourceFileOfNode(n);return e.Debug.assert(!!(2097152&t.flags),"Containing file is missing import meta node flag."),"meta"===n.name.escapedText?xu():Re}(n):e.Debug.assertNever(n.keywordToken)}function Tb(n){switch(n.keywordToken){case 100:return function(){if(!ut){var n=Pr(0,"ImportMetaExpression"),t=xu(),r=Pr(4,"meta",8);r.parent=n,r.type=t;var a=e.createSymbolTable([r]);n.members=a,ut=vi(n,a,e.emptyArray,e.emptyArray,e.emptyArray)}return ut}();case 103:var t=Sb(n);return ao(t)?Re:function(n){var t=Pr(0,"NewTargetExpression"),r=Pr(4,"target",8);r.parent=t,r.type=n;var a=e.createSymbolTable([r]);return t.members=a,vi(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}(t);default:e.Debug.assertNever(n.keywordToken)}}function Sb(n){var t=e.getNewTargetContainer(n);return t?170===t.kind?Xo(ni(t.parent)):Xo(ni(t)):(kr(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Re)}function xb(n){var t=Xo(n);if(I){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return Pm(t)}return t}function Lb(n){return e.Debug.assert(e.isIdentifier(n.name)),n.name.escapedText}function Db(e,n,t){var r=e.parameters.length-(ne(e)?1:0);if(n<r)return e.parameters[n].escapedName;var a=e.parameters[r]||Le,i=t||Xo(a);if(Lm(i)){var o=i.target.labeledElementDeclarations,s=n-r;return o&&Lb(o[s])||a.escapedName+"_"+s}return a.escapedName}function Cb(n){return n.valueDeclaration&&e.isParameter(n.valueDeclaration)&&e.isIdentifier(n.valueDeclaration.name)}function Ab(n){return 196===n.kind||e.isParameter(n)&&n.name&&e.isIdentifier(n.name)}function Ib(e,n){var t=e.parameters.length-(ne(e)?1:0);if(n<t){var r=e.parameters[n].valueDeclaration;return r&&Ab(r)?r:void 0}var a=e.parameters[t]||Le,i=Xo(a);if(Lm(i)){var o=i.target.labeledElementDeclarations;return o&&o[n-t]}return a.valueDeclaration&&Ab(a.valueDeclaration)?a.valueDeclaration:void 0}function kb(e,n){return Nb(e,n)||Ie}function Nb(e,n){var t=e.parameters.length-(ne(e)?1:0);if(n<t)return xb(e.parameters[n]);if(ne(e)){var r=Xo(e.parameters[t]),a=n-t;if(!Lm(r)||r.target.hasRestElement||a<r.target.fixedLength)return jd(r,hp(a))}}function Rb(n,t){var r=Ob(n),a=wb(n),i=Pb(n);if(i&&t>=r-1)return t===r-1?i:Pu(jd(i,We));for(var o=[],s=[],c=[],l=t;l<r;l++){!i||l<r-1?(o.push(kb(n,l)),s.push(l<a?1:2)):(o.push(i),s.push(8));var u=Ib(n,l);u&&c.push(u)}return Ku(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function Ob(e){var n=e.parameters.length;if(ne(e)){var t=Xo(e.parameters[n-1]);if(Lm(t))return n+t.target.fixedLength-(t.target.hasRestElement?0:1)}return n}function wb(n,t){var r=1&t,a=2&t;if(a||void 0===n.resolvedMinArgumentCount){var i=void 0;if(ne(n)){var o=Xo(n.parameters[n.parameters.length-1]);if(Lm(o)){var s=e.findIndex(o.target.elementFlags,(function(e){return!(1&e)})),c=s<0?o.target.fixedLength:s;c>0&&(i=n.parameters.length-1+c)}}if(void 0===i){if(!r&&32&n.flags)return 0;i=n.minArgumentCount}if(a)return i;for(var l=i-1;l>=0;l--){if(131072&xg(kb(n,l),Ev).flags)break;i=l}n.resolvedMinArgumentCount=i}return n.resolvedMinArgumentCount}function Mb(e){if(ne(e)){var n=Xo(e.parameters[e.parameters.length-1]);return!Lm(n)||n.target.hasRestElement}return!1}function Pb(e){if(ne(e)){var n=Xo(e.parameters[e.parameters.length-1]);if(!Lm(n))return n;if(n.target.hasRestElement)return Ju(n,n.target.fixedLength)}}function Fb(e){var n=Pb(e);return!n||om(n)||ro(n)||0!==(131072&zc(n).flags)?void 0:n}function Gb(e){return Bb(e,en)}function Bb(e,n){return e.parameters.length>0?kb(e,0):n}function Ub(n,t){if(t.typeParameters){if(n.typeParameters)return;n.typeParameters=t.typeParameters}t.thisParameter&&((!(i=n.thisParameter)||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(n.thisParameter=zm(t.thisParameter,void 0)),Vb(n.thisParameter,Xo(t.thisParameter))));for(var r=n.parameters.length-(ne(n)?1:0),a=0;a<r;a++){var i=n.parameters[a];if(!e.getEffectiveTypeAnnotationNode(i.valueDeclaration))Vb(i,Nb(t,a))}if(ne(n)){i=e.last(n.parameters);if(e.isTransientSymbol(i)||!e.getEffectiveTypeAnnotationNode(i.valueDeclaration))Vb(i,Rb(t,r))}}function Vb(e,n){var t=Wr(e);if(!t.type){var r=e.valueDeclaration;t.type=n||Ro(r,!0),79!==r.name.kind&&(t.type===Pe&&(t.type=No(r.name)),jb(r.name))}}function jb(n){for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];e.isOmittedExpression(a)||(79===a.name.kind?Wr(ni(a)).type=mo(a):jb(a.name))}}function Kb(e){var n=Au(!0);return n!==hn?Yl(n,[e=gT(mT(e))||Pe]):Pe}function Hb(e){var n=Iu(!0);return n!==hn?Yl(n,[e=gT(mT(e))||Pe]):Pe}function Wb(n,t){var r=Kb(t);return r===Pe?(kr(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Re):(ku(!0)||kr(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),r)}function zb(n,t){if(!n.body)return Re;var r,a,i,o=e.getFunctionFlags(n),s=0!==(2&o),c=0!==(1&o),l=$e;if(234!==n.body.kind)r=SE(n.body,t&&-9&t),s&&(r=mT(dT(r,!1,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(c){var u=Zb(n,t);u?u.length>0&&(r=ad(u,2)):l=en;var d=function(n,t){var r=[],a=[],i=0!==(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,(function(n){var o,s=n.expression?VE(n.expression,t):Be;if(e.pushIfUnique(r,qb(n,s,Ie,i)),n.asteriskToken){var c=fS(s,i?19:17,n.expression);o=c&&c.nextType}else o=By(n);o&&e.pushIfUnique(a,o)})),{yieldTypes:r,nextTypes:a}}(n,t),p=d.yieldTypes,f=d.nextTypes;a=e.some(p)?ad(p,2):void 0,i=e.some(f)?pd(f):void 0}else{var m=Zb(n,t);if(!m)return 2&o?Wb(n,en):en;if(0===m.length)return 2&o?Wb(n,$e):$e;r=ad(m,2)}if(r||a||i){if(a&&r_(n,a,3),r&&r_(n,r,1),i&&r_(n,i,2),r&&ym(r)||a&&ym(a)||i&&ym(i)){var _=Wy(n),g=_?_===vl(n)?c?void 0:r:Fy(Cl(_),n):void 0;c?(a=xm(a,g,0,s),r=xm(r,g,1,s),i=xm(i,g,2,s)):r=function(e,n,t){return e&&ym(e)&&(e=Sm(e,n?t?uT(n):n:void 0)),e}(r,g,s)}a&&(a=$m(a)),r&&(r=$m(r)),i&&(i=$m(i))}return c?Jb(a||en,r||l,i||Ty(2,n)||Pe,s):s?Kb(r||l):r||l}function Jb(e,n,t,r){var a=r?wt:Mt,i=a.getGlobalGeneratorType(!1);if(e=a.resolveIterationType(e,void 0)||Pe,n=a.resolveIterationType(n,void 0)||Pe,t=a.resolveIterationType(t,void 0)||Pe,i===hn){var o=a.getGlobalIterableIteratorType(!1),s=o!==hn?yS(o,a):void 0,c=s?s.returnType:Ie,l=s?s.nextType:Ge;return df(n,c)&&df(l,t)?o!==hn?wu(o,[e]):(a.getGlobalIterableIteratorType(!0),mn):(a.getGlobalGeneratorType(!0),mn)}return wu(i,[e,n,t])}function qb(n,t,r,a){var i=n.expression||n,o=n.asteriskToken?oS(a?19:17,t,r,i):t;return a?_T(o,i,n.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Xb(e,n,t,r){var a=0;if(r){for(var i=n;i<t.length;i++)a|=w.get(t[i])||32768;for(i=e;i<n;i++)a&=~(w.get(t[i])||0);for(i=0;i<e;i++)a|=w.get(t[i])||32768}else{for(i=e;i<n;i++)a|=O.get(t[i])||128;for(i=0;i<e;i++)a&=~(O.get(t[i])||0)}return a}function Yb(n){var t=zr(n);return void 0!==t.isExhaustive?t.isExhaustive:t.isExhaustive=function(n){if(215===n.expression.kind){var t=GE(n.expression.expression),r=Xb(0,0,vg(n,!1),!0),a=wc(t)||t;return 3&a.flags?556800===(556800&r):!!(131072&xg(a,(function(e){return(rg(e)&r)===r})).flags)}var i=GE(n.expression);if(!vm(i))return!1;var o=hg(n);if(!o.length||e.some(o,gm))return!1;return function(n,t){return 1048576&n.flags?!e.forEach(n.types,(function(n){return!e.contains(t,n)})):e.contains(t,n)}(Cg(i,_p),o)}(n)}function Qb(e){return e.endFlowNode&&Wg(e.endFlowNode)}function Zb(n,t){var r=e.getFunctionFlags(n),a=[],i=Qb(n),o=!1;if(e.forEachReturnStatement(n.body,(function(s){var c=s.expression;if(c){var l=SE(c,t&&-9&t);2&r&&(l=mT(dT(l,!1,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(a,l)}else i=!0})),0!==a.length||i||!o&&!function(e){switch(e.kind){case 212:case 213:return!0;case 168:return 204===e.parent.kind;default:return!1}}(n))return!(I&&a.length&&i)||ob(n)&&a.some((function(e){return e.symbol===n.symbol}))||e.pushIfUnique(a,Ge),a}function $b(n,r){if(t){var a=e.getFunctionFlags(n),i=r&&RS(r,a);if((!i||!cE(i,16385))&&167!==n.kind&&!e.nodeIsMissing(n.body)&&234===n.body.kind&&Qb(n)){var o=512&n.flags,s=e.getEffectiveReturnTypeNode(n)||n;if(i&&131072&i.flags)kr(s,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!o)kr(s,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&I&&!df(Ge,i))kr(s,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(x.noImplicitReturns){if(!i){if(!o)return;if(OS(n,Cl(vl(n))))return}kr(s,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function eE(n,t){if(e.Debug.assert(168!==n.kind||e.isObjectLiteralMethod(n)),gx(n),e.isFunctionExpression(n)&&zT(n,n.name),t&&4&t&&nf(n)){if(!e.getEffectiveReturnTypeNode(n)&&!e.hasContextSensitiveParameters(n)){var r=zy(n);if(r&&f_(Cl(r))){var a=zr(n);if(a.contextFreeType)return a.contextFreeType;var i=zb(n,t),o=Ws(void 0,void 0,void 0,e.emptyArray,i,void 0,0,0),s=vi(n.symbol,T,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=524288,a.contextFreeType=s}}return vn}return LL(n)||212!==n.kind||NL(n),function(n,t){var r=zr(n);if(!(1024&r.flags)){var a=zy(n);if(!(1024&r.flags)){r.flags|=1024;var i=e.firstOrUndefined($c(Xo(ni(n)),0));if(!i)return;if(nf(n))if(a){var o=Uy(n);t&&2&t&&function(n,t,r){for(var a=n.parameters.length-(ne(n)?1:0),i=0;i<a;i++){var o=n.parameters[i].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&I_(r.inferences,Lp(s),kb(t,i))}}var c=Pb(t);if(c&&262144&c.flags){Ub(n,Vp(t,r.nonFixingMapper));var l=Ob(t)-1;I_(r.inferences,Rb(n,l),c)}}(i,a,o),Ub(i,o?Vp(a,o.mapper):a)}else!function(e){e.thisParameter&&Vb(e.thisParameter);for(var n=0,t=e.parameters;n<t.length;n++)Vb(t[n])}(i);if(a&&!Al(n)&&!i.resolvedReturnType){var s=zb(n,t);i.resolvedReturnType||(i.resolvedReturnType=s)}WE(n)}}}(n,t),Xo(ni(n))}function nE(e,n,t,r){if(void 0===r&&(r=!1),!df(n,un)){var a=r&&lT(n);return Or(e,!!a&&df(a,un),t),!1}return!0}function tE(n){if(!e.isCallExpression(n))return!1;if(!e.isBindableObjectDefinePropertyCall(n))return!1;var t=SE(n.arguments[2]);if(to(t,"value")){var r=Qc(t,"writable"),a=r&&Xo(r);if(!a||a===Je||a===qe)return!0;if(r&&r.valueDeclaration&&e.isPropertyAssignment(r.valueDeclaration)){var i=VE(r.valueDeclaration.initializer);if(i===Je||i===qe)return!0}return!1}return!Qc(t,"set")}function rE(n){return!!(8&e.getCheckFlags(n)||4&n.flags&&64&e.getDeclarationModifierFlagsFromSymbol(n)||3&n.flags&&2&Ch(n)||98304&n.flags&&!(65536&n.flags)||8&n.flags||e.some(n.declarations,tE))}function aE(n,t,r){var a,i;if(0===r)return!1;if(rE(t)){if(4&t.flags&&e.isAccessExpression(n)&&108===n.expression.kind){var o=e.getContainingFunction(n);if(!o||170!==o.kind&&!ob(o))return!0;if(t.valueDeclaration){var s=e.isBinaryExpression(t.valueDeclaration),c=o.parent===t.valueDeclaration.parent,l=o===t.valueDeclaration.parent,u=s&&(null===(a=t.parent)||void 0===a?void 0:a.valueDeclaration)===o.parent,d=s&&(null===(i=t.parent)||void 0===i?void 0:i.valueDeclaration)===o;return!(c||l||u||d)}}return!0}if(e.isAccessExpression(n)){var p=e.skipParentheses(n.expression);if(79===p.kind){var f=zr(p).resolvedSymbol;if(2097152&f.flags){var m=la(f);return!!m&&267===m.kind}}}return!1}function iE(n,t,r){var a=e.skipOuterExpressions(n,7);return 79===a.kind||e.isAccessExpression(a)?!(32&a.flags)||(kr(n,r),!1):(kr(n,t),!1)}function oE(n){VE(n.expression);var t=e.skipParentheses(n.expression);if(!e.isAccessExpression(t))return kr(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Qe;e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)&&kr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var r=si(zr(t).resolvedSymbol);return r&&(rE(r)&&kr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(n,t){var r=Xo(t);!I||131075&r.flags||(U?16777216&t.flags:32768&Rm(r))||kr(n,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}(t,r)),Qe}function sE(e){return cE(e,2112)?lE(e,3)||cE(e,296)?un:ze:We}function cE(e,n){if(e.flags&n)return!0;if(3145728&e.flags)for(var t=0,r=e.types;t<r.length;t++){if(cE(r[t],n))return!0}return!1}function lE(e,n,t){return!!(e.flags&n)||!(t&&114691&e.flags)&&(!!(296&n)&&df(e,We)||!!(2112&n)&&df(e,ze)||!!(402653316&n)&&df(e,He)||!!(528&n)&&df(e,Qe)||!!(16384&n)&&df(e,$e)||!!(131072&n)&&df(e,en)||!!(65536&n)&&df(e,je)||!!(32768&n)&&df(e,Ge)||!!(4096&n)&&df(e,Ze)||!!(67108864&n)&&df(e,on))}function uE(n,t,r){return 1048576&n.flags?e.every(n.types,(function(e){return uE(e,t,r)})):lE(n,t,r)}function dE(n){return!!(16&e.getObjectFlags(n))&&!!n.symbol&&pE(n.symbol)}function pE(e){return 0!==(128&e.flags)}function fE(n,t,r,a,i){void 0===i&&(i=!1);var o=n.properties,s=o[r];if(294===s.kind||295===s.kind){var c=s.name,l=yd(c);if(Os(l)){var u=Qc(t,Gs(l));u&&(cv(u,s,i),Ih(s,!1,!0,t,u))}var d=lo(s,jd(t,l,32,c));return _E(295===s.kind?s:s.initializer,d)}if(296===s.kind){if(!(r<o.length-1)){L<99&&hL(s,4);var p=[];if(a)for(var f=0,m=a;f<m.length;f++){var _=m[f];e.isSpreadAssignment(_)||p.push(_.name)}d=oo(t,p,t.symbol);return TL(a,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_E(s.expression,d)}kr(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else kr(s,e.Diagnostics.Property_assignment_expected)}function mE(n,t,r,a,i){var o=n.elements,s=o[r];if(226!==s.kind){if(224!==s.kind){var c=hp(r);if(um(t)){var l=Hd(t,c,32|(Jy(s)?16:0),Fv(s,c))||Re;return _E(s,lo(s,Jy(s)?ag(l,524288):l),i)}return _E(s,a,i)}if(r<o.length-1)kr(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(220!==u.kind||63!==u.operatorToken.kind)return TL(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_E(u,Sg(t,Lm)?Cg(t,(function(e){return Ju(e,r)})):Pu(a),i);kr(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function _E(n,t,r,a){var i;if(295===n.kind){var o=n;o.objectAssignmentInitializer&&(!I||32768&Rm(VE(o.objectAssignmentInitializer))||(t=ag(t,524288)),function(e,n,t,r,a){var i,o=n.kind;if(63===o&&(204===e.kind||203===e.kind))return _E(e,VE(t,r),r,108===t.kind);i=55===o||56===o||60===o?tS(e,r):VE(e,r);var s=VE(t,r);hE(e,n,t,i,s,a)}(o.name,o.equalsToken,o.objectAssignmentInitializer,r)),i=n.name}else i=n;return 220===i.kind&&63===i.operatorToken.kind&&(V(i,r),i=i.left),204===i.kind?function(e,n,t){var r=e.properties;if(I&&0===r.length)return Gh(n,e);for(var a=0;a<r.length;a++)fE(e,n,a,r,t);return n}(i,t,a):203===i.kind?function(e,n,t){var r=e.elements;L<2&&x.downlevelIteration&&hL(e,512);for(var a=oS(193,n,Ge,e)||Re,i=x.noUncheckedIndexedAccess?void 0:a,o=0;o<r.length;o++){var s=a;224===e.elements[o].kind&&(s=i=null!==i&&void 0!==i?i:oS(65,n,Ge,e)||Re),mE(e,n,o,s,t)}return n}(i,t,r):function(n,t,r){var a=VE(n,r),i=296===n.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,o=296===n.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;iE(n,i,o)&&gf(t,a,n,n);e.isPrivateIdentifierPropertyAccessExpression(n)&&hL(n.parent,1048576);return t}(i,t,r)}function gE(n){switch((n=e.skipParentheses(n)).kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return gE(n.whenTrue)&&gE(n.whenFalse);case 220:return!e.isAssignmentOperator(n.operatorToken.kind)&&(gE(n.left)&&gE(n.right));case 218:case 219:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;default:return!1}}function yE(e,n){return 0!==(98304&n.flags)||ff(e,n)}function hE(n,r,a,i,o,s){var c,l,u=r.kind;switch(u){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(i===nn||o===nn)return nn;i=Gh(i,n),o=Gh(o,a);var d=void 0;if(528&i.flags&&528&o.flags&&void 0!==(d=function(e){switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}(r.kind)))return kr(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d)),We;var p,f=nE(n,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),m=nE(a,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(lE(i,3)&&lE(o,3)||!cE(i,2112)&&!cE(o,2112))p=We;else if(D(i,o)){switch(u){case 49:case 72:N();break;case 42:case 67:L<3&&kr(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=ze}else N(D),p=Re;return f&&m&&A(p),p;case 39:case 64:if(i===nn||o===nn)return nn;lE(i,402653316)||lE(o,402653316)||(i=Gh(i,n),o=Gh(o,a));var _=void 0;if(lE(i,296,!0)&&lE(o,296,!0)?_=We:lE(i,2112,!0)&&lE(o,2112,!0)?_=ze:lE(i,402653316,!0)||lE(o,402653316,!0)?_=He:(ro(i)||ro(o))&&(_=ao(i)||ao(o)?Re:Ie),_&&!C(u))return _;if(!_){var g=402655727;return N((function(e,n){return lE(e,g)&&lE(n,g)})),Ie}return 64===u&&A(_),_;case 29:case 31:case 32:case 33:return C(u)&&(i=bm(Gh(i,n)),o=bm(Gh(o,a)),k((function(e,n){return ff(e,n)||ff(n,e)||df(e,un)&&df(n,un)}))),Qe;case 34:case 35:case 36:case 37:return k((function(e,n){return yE(e,n)||yE(n,e)})),Qe;case 102:return function(n,t,r,a){return r===nn||a===nn?nn:(!ro(r)&&uE(r,131068)&&kr(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ro(a)||Fx(a)||uf(a,kn)||kr(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Qe)}(n,a,i,o);case 101:return function(n,t,r,a){if(r===nn||a===nn)return nn;e.isPrivateIdentifier(n)?(L<99&&hL(n,2097152),!zr(n).resolvedSymbol&&e.getContainingClass(n)&&$h(n,a,Xh(n,a.symbol,!0))):uE(r=Gh(r,n),402665900)||lE(r,407109632)||kr(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);var i=Ac(a=Gh(a,t));return(!uE(a,126091264)||i&&(lE(a,3145728)&&!uE(i,126091264)||!cE(i,126615552)))&&kr(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Qe}(n,a,i,o);case 55:case 76:var y=4194304&rg(i)?ad([(l=I?i:bm(o),Cg(l,wm)),o]):i;return 76===u&&A(o),y;case 56:case 75:var h=8388608&rg(i)?ad([Om(i),o],2):i;return 75===u&&A(o),h;case 60:case 77:var v=262144&rg(i)?ad([Fm(i),o],2):i;return 77===u&&A(o),v;case 63:var b=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return function(n,t){if(2===n)for(var r=0,a=xc(t);r<a.length;r++){var i=a[r],o=Xo(i);if(o.symbol&&32&o.symbol.flags){var s=i.escapedName,c=Qr(i.valueDeclaration,s,788968,void 0,s,!1);(null===c||void 0===c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(Vr(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),i),Vr(i,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(b,o),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var i=ni(n),o=e.getAssignedExpandoInitializer(a);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(r=null===i||void 0===i?void 0:i.exports)||void 0===r?void 0:r.size);default:return!1}}(b)?(524288&o.flags&&(2===b||6===b||If(o)||tg(o)||1&e.getObjectFlags(o))||A(o),i):(A(o),Jm(o));case 27:if(!x.allowUnreachableCode&&gE(n)&&(79!==(c=a).kind||"eval"!==c.escapedText)){var E=e.getSourceFileOfNode(n),T=E.text,S=e.skipTrivia(T,n.pos);E.parseDiagnostics.some((function(n){return n.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(n,S)}))||kr(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return e.Debug.fail()}function D(e,n){return lE(e,2112)&&lE(n,2112)}function C(t){var r=cE(i,12288)?n:cE(o,12288)?a:void 0;return!r||(kr(r,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t)),!1)}function A(r){if(t&&e.isAssignmentOperator(u)&&iE(n,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(n)||"exports"!==e.unescapeLeadingUnderscores(n.escapedText))){var o=void 0;if(U&&e.isPropertyAccessExpression(n)&&cE(r,32768))Uf(r,to(GE(n.expression),n.name.escapedText))&&(o=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target);gf(r,i,n,a,o)}}function k(e){return!e(i,o)&&(N(e),!0)}function N(n){var t,a=!1,c=s||r;if(n){var l=gT(i),u=gT(o);a=!(l===i&&u===o)&&!(!l||!u)&&n(l,u)}var d=i,p=o;!a&&n&&(t=function(e,n,t){var r=e,a=n,i=bm(e),o=bm(n);t(i,o)||(r=i,a=o);return[r,a]}(i,o,n),d=t[0],p=t[1]);var f=Gi(d,p),m=f[0],_=f[1];(function(n,t,a,i){var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return Or(n,t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,a,i);return})(c,a,m,_)||Or(c,a,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),m,_)}}function vE(n){var t=n.parent;return e.isParenthesizedExpression(t)&&vE(t)||e.isElementAccessExpression(t)&&t.argumentExpression===n}function bE(n){for(var t=[n.head.text],r=[],a=0,i=n.templateSpans;a<i.length;a++){var o=i[a],s=VE(o.expression);cE(s,12288)&&kr(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(o.literal.text),r.push(df(s,dn)?s:He)}return AE(n)||vE(n)||Tg(By(n)||Pe,EE)?Sd(t,r):He}function EE(e){return!!(134217856&e.flags||58982400&e.flags&&cE(wc(e)||Pe,402653316))}function TE(n,t,r,a){var i=function(n){return 285!==n.kind||e.isJsxSelfClosingElement(n.parent)?n:n.parent.parent}(n),o=i.contextualType,s=i.inferenceContext;try{i.contextualType=t,i.inferenceContext=r;var c=VE(n,1|a|(r?2:0));return cE(c,2944)&&CE(c,Fy(t,n))?_p(c):c}finally{i.contextualType=o,i.inferenceContext=s}}function SE(e,n){var t=zr(e);if(!t.resolvedType){if(n&&0!==n)return VE(e,n);var r=Bt,a=ht;Bt=Ut,ht=void 0,t.resolvedType=VE(e,n),ht=a,Bt=r}return t.resolvedType}function xE(n){return 210===(n=e.skipParentheses(n,!0)).kind||228===n.kind||e.isJSDocTypeAssertion(n)}function LE(n,t){var r=e.getEffectiveInitializer(n),a=BE(r)||(t?TE(r,t,void 0,0):SE(r));return e.isParameter(n)&&201===n.name.kind&&Lm(a)&&!a.target.hasRestElement&&eu(a)<n.name.elements.length?function(n,t){for(var r=t.elements,a=$l(n).slice(),i=n.target.elementFlags.slice(),o=eu(n);o<r.length;o++){var s=r[o];(o<r.length-1||202!==s.kind||!s.dotDotDotToken)&&(a.push(!e.isOmittedExpression(s)&&Jy(s)?Io(s,!1,!1):Ie),i.push(2),e.isOmittedExpression(s)||Jy(s)||t_(s,Ie))}return Ku(a,i,n.target.readonly)}(a,n.name):a}function DE(n,t){var r=2&e.getCombinedNodeFlags(n)||e.isDeclarationReadonly(n)?t:Em(t);if(e.isInJSFile(n)){if(pm(r))return t_(n,Ie),Ie;if(fm(r))return t_(n,Un),Un}return r}function CE(n,t){if(t){if(3145728&t.flags){var r=t.types;return e.some(r,(function(e){return CE(n,e)}))}if(58982400&t.flags){var a=wc(t)||Pe;return cE(a,4)&&cE(n,128)||cE(a,8)&&cE(n,256)||cE(a,64)&&cE(n,2048)||cE(a,4096)&&cE(n,8192)||CE(n,a)}return!!(406847616&t.flags&&cE(n,128)||256&t.flags&&cE(n,256)||2048&t.flags&&cE(n,2048)||512&t.flags&&cE(n,512)||8192&t.flags&&cE(n,8192))}return!1}function AE(n){var t=n.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeAssertion(t)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(t))||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&AE(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t)||e.isTemplateSpan(t))&&AE(t.parent)}function IE(e,n,t,r){var a=VE(e,n,r);return AE(e)?_p(a):xE(e)?a:Sm(a,Fy(2===arguments.length?By(e):t,e))}function kE(e,n){return 161===e.name.kind&&Zy(e.name),IE(e.initializer,n)}function NE(e,n){return FL(e),161===e.name.kind&&Zy(e.name),RE(e,eE(e,n),n)}function RE(n,t,r){if(r&&10&r){var a=Cv(t,0,!0),i=Cv(t,1,!0),o=a||i;if(o&&o.typeParameters){var s=Py(n,2);if(s){var c=Cv(Fm(s),a?0:1,!1);if(c&&!c.typeParameters){if(8&r)return OE(n,r),vn;var l=Uy(n),u=l.signature&&Cl(l.signature),d=u&&Dv(u);if(d&&!d.typeParameters&&!e.every(l.inferences,wE)){var p=function(n,t){for(var r,a,i=[],o=0,s=t;o<s.length;o++){var c=(f=s[o]).symbol.escapedName;if(ME(n.inferredTypeParameters,c)||ME(i,c)){var l=mi(Pr(262144,PE(e.concatenate(n.inferredTypeParameters,i),c)));l.target=f,r=e.append(r,f),a=e.append(a,l),i.push(l)}else i.push(f)}if(a)for(var u=Np(r,a),d=0,p=a;d<p.length;d++){var f;(f=p[d]).mapper=u}return i}(l,o.typeParameters),f=Rl(o,p),m=e.map(l.inferences,(function(e){return u_(e.typeParameter)}));if(a_(f,c,(function(e,n){I_(m,e,n,0,!0)})),e.some(m,wE)&&(i_(f,c,(function(e,n){I_(m,e,n)})),!function(e,n){for(var t=0;t<e.length;t++)if(wE(e[t])&&wE(n[t]))return!0;return!1}(l.inferences,m)))return function(e,n){for(var t=0;t<e.length;t++)!wE(e[t])&&wE(n[t])&&(e[t]=n[t])}(l.inferences,m),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,p),Fl(f)}return Fl(Av(o,c,l))}}}}return t}function OE(e,n){2&n&&(Uy(e).flags|=4)}function wE(e){return!(!e.candidates&&!e.contraCandidates)}function ME(n,t){return e.some(n,(function(e){return e.symbol.escapedName===t}))}function PE(e,n){for(var t=n.length;t>1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;for(var r=n.slice(0,t),a=1;;a++){var i=r+a;if(!ME(e,i))return i}}function FE(e){var n=Lv(e);if(n&&!n.typeParameters)return Cl(n)}function GE(n){var t=BE(n);if(t)return t;if(67108864&n.flags&&ht){var r=ht[X(n)];if(r)return r}var a=Kt,i=VE(n);Kt!==a&&((ht||(ht=[]))[X(n)]=i,e.setNodeFlags(n,67108864|n.flags));return i}function BE(n){var t=e.skipParentheses(n,!0);if(e.isJSDocTypeAssertion(t)){var r=e.getJSDocTypeAssertionType(t);if(!e.isConstTypeReference(r))return Lp(r)}if(t=e.skipParentheses(n),!e.isCallExpression(t)||106===t.expression.kind||e.isRequireCall(t,!0)||db(t)){if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return Lp(t.type);if(8===n.kind||10===n.kind||110===n.kind||95===n.kind)return VE(n)}else{if(r=e.isCallChain(t)?function(e){var n=VE(e.expression),t=Vm(n,e.expression),r=FE(n);return r&&Um(r,e,t!==n)}(t):FE(Rh(t.expression)))return r}}function UE(e){var n=zr(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=Ie;try{return n.contextFreeType=VE(e,4)}finally{e.contextualType=t}}function VE(n,a,i){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var s=o;o=n,v=0;var c=function(n,a,i){var o=n.kind;if(r)switch(o){case 225:case 212:case 213:r.throwIfCancellationRequested()}switch(o){case 79:return oy(n,a);case 80:return Hh(n);case 108:return py(n);case 106:return _y(n);case 104:return Ke;case 14:case 10:return mp(yp(n.text));case 8:return YL(n),mp(hp(+n.text));case 9:return function(n){if(!(e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent))&&L<7&&JL(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(n),mp(vp({negative:!1,base10Value:e.parsePseudoBigInt(n.text)}));case 110:return Xe;case 95:return Je;case 222:return bE(n);case 13:return Gn;case 203:return qy(n,a,i);case 204:return rh(n,a);case 205:return Uh(n,a);case 160:return Vh(n,a);case 206:return mv(n,a);case 207:if(100===n.expression.kind)return pb(n);case 208:return function(n,t){var r;DL(n,n.typeArguments)||CL(n.arguments);var a=ib(n,void 0,t);if(a===Dt)return tn;if(lb(a,n),106===n.expression.kind)return $e;if(208===n.kind){var i=a.declaration;if(i&&170!==i.kind&&174!==i.kind&&179!==i.kind&&!e.isJSDocConstructSignature(i)&&!ob(i))return M&&kr(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ie}if(e.isInJSFile(n)&&gb(n))return Sl(n.arguments[0]);var o=Cl(a);if(12288&o.flags&&db(n))return Ep(e.walkUpParenthesizedExpressions(n.parent));if(207===n.kind&&!n.questionDotToken&&237===n.parent.kind&&16384&o.flags&&Ll(a))if(e.isDottedName(n.expression)){if(!Kg(n)){var s=kr(n.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);jg(n.expression,s)}}else kr(n.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(n)){var c=cb(n,!1);if(null===(r=null===c||void 0===c?void 0:c.exports)||void 0===r?void 0:r.size){var l=vi(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,pd([o,l])}}return o}(n,a);case 209:return yb(n);case 211:return function(n,t){if(e.hasJSDocNodes(n)&&e.isJSDocTypeAssertion(n)){var r=e.getJSDocTypeAssertionType(n);return vb(r,r,n.expression,t)}return VE(n.expression,t)}(n,a);case 225:return function(e){return jS(e),gx(e),Xo(ni(e))}(n);case 212:case 213:return eE(n,a);case 215:return function(e){return VE(e.expression),gr}(n);case 210:case 228:return function(n){if(210===n.kind){var t=e.getSourceFileOfNode(n);t&&e.fileExtensionIsOneOf(t.fileName,[".cts",".mts"])&&JL(n,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return vb(n,n.type,n.expression)}(n);case 229:return bb(n);case 230:return Eb(n);case 214:return oE(n);case 216:return function(e){return VE(e.expression),Be}(n);case 217:return function(n){if(t){var r=e.getContainingFunctionOrClassStaticBlock(n);if(r&&e.isClassStaticBlockDeclaration(r))kr(n,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&n.flags)){var a;if(e.isInTopLevelContext(n)){if(!HL(a=e.getSourceFileOfNode(n))){var i=void 0;if(!e.isEffectiveExternalModule(a,x)){i||(i=e.getSpanOfTokenAtPosition(a,n.pos));var o=e.createFileDiagnostic(a,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);fr.add(o)}(D!==e.ModuleKind.ES2022&&D!==e.ModuleKind.ESNext&&D!==e.ModuleKind.System&&(D!==e.ModuleKind.NodeNext||e.getSourceFileOfNode(n).impliedNodeFormat!==e.ModuleKind.ESNext)||L<4)&&(i=e.getSpanOfTokenAtPosition(a,n.pos),o=e.createFileDiagnostic(a,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher),fr.add(o))}}else if(!HL(a=e.getSourceFileOfNode(n))){if(i=e.getSpanOfTokenAtPosition(a,n.pos),o=e.createFileDiagnostic(a,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&170!==r.kind&&0===(2&e.getFunctionFlags(r))){var s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(o,s)}fr.add(o)}}Ey(n)&&kr(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=VE(n.expression),l=dT(c,!0,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l!==c||ao(l)||3&c.flags||Nr(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),l}(n);case 218:return function(n){var t=VE(n.operand);if(t===nn)return nn;switch(n.operand.kind){case 8:switch(n.operator){case 40:return mp(hp(-n.operand.text));case 39:return mp(hp(+n.operand.text))}break;case 9:if(40===n.operator)return mp(vp({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Gh(t,n.operand),cE(t,12288)&&kr(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),39===n.operator?(cE(t,2112)&&kr(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),Fi(bm(t))),We):sE(t);case 53:tS(n.operand);var r=12582912&rg(t);return 4194304===r?Je:8388608===r?Xe:Qe;case 45:case 46:return nE(n.operand,Gh(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&iE(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),sE(t)}return Re}(n);case 219:return function(n){var t=VE(n.operand);return t===nn?nn:(nE(n.operand,Gh(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&iE(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),sE(t))}(n);case 220:return V(n,a);case 221:return function(e,n){var t=tS(e.condition);return eS(e.condition,t,e.whenTrue),ad([VE(e.whenTrue,n),VE(e.whenFalse,n)],2)}(n,a);case 224:return function(e,n){return L<2&&hL(e,x.downlevelIteration?1536:1024),oS(33,VE(e.expression,n),Ge,e.expression)}(n,a);case 226:return Be;case 223:return function(n){t&&(8192&n.flags||WL(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Ey(n)&&kr(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(n);if(!r)return Ie;var a=e.getFunctionFlags(r);if(!(1&a))return Ie;var i=0!==(2&a);n.asteriskToken&&(i&&L<99&&hL(n,26624),!i&&L<2&&x.downlevelIteration&&hL(n,256));var o=Al(r),s=o&&kS(o,i),c=s&&s.yieldType||Ie,l=s&&s.nextType||Ie,u=i?_T(l)||Ie:l,d=n.expression?VE(n.expression):Be,p=qb(n,d,u,i);if(o&&p&&gf(p,c,n.expression||n,n.expression),n.asteriskToken)return cS(i?19:17,1,d,n.expression)||Ie;if(o)return IS(2,o,i)||Ie;var f=Ty(2,r);if(!f&&(f=Ie,t&&M&&!e.expressionResultIsUnused(n))){var m=By(n);m&&!ro(m)||kr(n,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return f}(n);case 231:return function(e){return e.isSpread?jd(e.type,We):e.type}(n);case 287:return Dh(n,a);case 277:case 278:return function(e,n){return gx(e),Eh(e)||Ie}(n);case 281:return function(n){Sh(n.openingFragment);var t=e.getSourceFileOfNode(n);return!e.getJSXTransformEnabled(x)||!x.jsxFactory&&!t.pragmas.has("jsx")||x.jsxFragmentFactory||t.pragmas.has("jsxfrag")||kr(n,x.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),ch(n),Eh(n)||Ie}(n);case 285:return uh(n,a);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Re}(n,a,i),l=RE(n,c,a);return dE(l)&&function(n,t){205===n.parent.kind&&n.parent.expression===n||206===n.parent.kind&&n.parent.expression===n||(79===n.kind||160===n.kind)&&Cx(n)||180===n.parent.kind&&n.parent.exprName===n||274===n.parent.kind||kr(n,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(x.isolatedModules){e.Debug.assert(!!(128&t.symbol.flags)),8388608&t.symbol.valueDeclaration.flags&&kr(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(n,l),o=s,null===e.tracing||void 0===e.tracing||e.tracing.pop(),l}function jE(n){n.expression&&WL(n.expression,e.Diagnostics.Type_expected),mx(n.constraint),mx(n.default);var r=Ts(ni(n));wc(r),function(e){return Gc(e)!==En}(r)||kr(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Fi(r));var a=Ic(r),i=Bc(r);a&&i&&_f(i,Ks(Yp(a,Op(r,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),t&&GS(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function KE(n){bL(n),qT(n);var t=e.getContainingFunction(n);e.hasSyntacticModifier(n,16476)&&(170===t.kind&&e.nodeIsPresent(t.body)||kr(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),170===t.kind&&e.isIdentifier(n.name)&&"constructor"===n.name.escapedText&&kr(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&kr(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&("this"===n.name.escapedText||"new"===n.name.escapedText)&&(0!==t.parameters.indexOf(n)&&kr(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),170!==t.kind&&174!==t.kind&&179!==t.kind||kr(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),213===t.kind&&kr(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),171!==t.kind&&172!==t.kind||kr(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!n.dotDotDotToken||e.isBindingPattern(n.name)||df(zc(Xo(n.symbol)),jn)||kr(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function HE(n,t,r){for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===r)return kr(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((201===s.kind||200===s.kind)&&HE(s,t,r))return!0}}}function WE(n){175===n.kind?function(n){bL(n)||function(n){var t=n.parameters[0];if(1!==n.parameters.length)return JL(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(TL(n.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return JL(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return JL(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return JL(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return JL(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return JL(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var r=Lp(t.type);if(Tg(r,(function(e){return!!(8576&e.flags)}))||Od(r))return JL(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!Sg(r,Kl))return JL(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!n.type)return JL(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(n)}(n):178!==n.kind&&255!==n.kind&&179!==n.kind&&173!==n.kind&&170!==n.kind&&174!==n.kind||LL(n);var r=e.getFunctionFlags(n);if(4&r||(3===(3&r)&&L<99&&hL(n,6144),2===(3&r)&&L<4&&hL(n,64),0!==(3&r)&&L<2&&hL(n,128)),BS(e.getEffectiveTypeParameterDeclarations(n)),e.forEach(n.parameters,KE),n.type&&mx(n.type),t){!function(n){if(L>=2||!e.hasRestParameter(n)||8388608&n.flags||e.nodeIsMissing(n.body))return;e.forEach(n.parameters,(function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===se.escapedName&&Ar("noEmit",n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(n);var a=e.getEffectiveReturnTypeNode(n);if(M&&!a)switch(n.kind){case 174:kr(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:kr(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(a){var i=e.getFunctionFlags(n);if(1===(5&i)){var o=Lp(a);if(o===$e)kr(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=IS(0,o,0!==(2&i))||Ie;_f(Jb(s,IS(1,o,0!==(2&i))||s,IS(2,o,0!==(2&i))||Pe,!!(2&i)),o,a)}}else 2===(3&i)&&function(n,t){var r=Lp(t);if(L>=2){if(ao(r))return;var a=Au(!0);if(a!==hn&&!Qo(r,a))return void kr(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Fi(gT(r)||$e))}else{if(function(n){hT(n&&e.getEntityNameFromTypeNode(n))}(t),ao(r))return;var i=e.getEntityNameFromTypeNode(t);if(void 0===i)return void kr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Fi(r));var o=Fa(i,111551,!0),s=o?Xo(o):Re;if(ao(s))return void(79===i.kind&&"Promise"===i.escapedText&&Zo(r)===Au(!1)?kr(t,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):kr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(i)));var c=(d=!0,Qn||(Qn=Su("PromiseConstructorLike",0,d))||mn);if(c===mn)return void kr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(i));if(!_f(s,c,t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=i&&e.getFirstIdentifier(i),u=qr(n.locals,l.escapedText,111551);if(u)return void kr(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(i))}var d;dT(r,!1,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(n,a)}175!==n.kind&&315!==n.kind&&DT(n)}}function zE(n){for(var t=new e.Map,r=0,a=n.members;r<a.length;r++){var i=a[r];if(165===i.kind){var o=void 0,s=i.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}t.get(o)?(kr(e.getNameOfDeclaration(i.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),kr(i.name,e.Diagnostics.Duplicate_identifier_0,o)):t.set(o,!0)}}}function JE(n){if(257===n.kind){var t=ni(n);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==n)return}var r=Gl(ni(n));if(null===r||void 0===r?void 0:r.declarations){for(var a=new e.Map,i=function(e){1===e.parameters.length&&e.parameters[0].type&&Eg(Lp(e.parameters[0].type),(function(n){var t=a.get(Qu(n));t?t.declarations.push(e):a.set(Qu(n),{type:n,declarations:[e]})}))},o=0,s=r.declarations;o<s.length;o++){i(s[o])}a.forEach((function(n){if(n.declarations.length>1)for(var t=0,r=n.declarations;t<r.length;t++){kr(r[t],e.Diagnostics.Duplicate_index_signature_for_type_0,Fi(n.type))}}))}}function qE(n){bL(n)||function(n){if(e.isComputedPropertyName(n.name)&&e.isBinaryExpression(n.name.expression)&&101===n.name.expression.operatorToken.kind)return JL(n.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&"constructor"===n.name.text)return JL(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(PL(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(L<2&&e.isPrivateIdentifier(n.name))return JL(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(257===n.parent.kind){if(PL(n.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(n.initializer)return JL(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(n.parent)){if(PL(n.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(n.initializer)return JL(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&n.flags&&BL(n);if(e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||8388608&n.flags||e.isStatic(n)||e.hasAbstractModifier(n))){var t=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return JL(n.exclamationToken,t)}}(n)||kL(n.name),qT(n),XE(n),e.isPrivateIdentifier(n.name)&&e.hasStaticModifier(n)&&n.initializer&&99===L&&!x.useDefineForClassFields&&kr(n.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(n,128)&&166===n.kind&&n.initializer&&kr(n,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(n.name))}function XE(n){if(e.isPrivateIdentifier(n.name)&&L<99){for(var t=e.getEnclosingBlockScopeContainer(n);t;t=e.getEnclosingBlockScopeContainer(t))zr(t).flags|=67108864;if(e.isClassExpression(n.parent)){var r=sy(n.parent);r&&(zr(n.name).flags|=524288,zr(r).flags|=65536)}}}function YE(n){WE(n),function(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var a=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return zL(n,a,r.end-a,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(n)||function(n){var t=e.getEffectiveReturnTypeNode(n);if(t)JL(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(n),mx(n.body);var r=ni(n);if(n===e.getDeclarationOfKind(r,n.kind)&&sT(r),!e.nodeIsMissing(n.body)&&t){var a=n.parent;if(e.getClassExtendsHeritageElement(a)){cy(n.parent,a);var i=uy(a),o=ly(n.body);if(o){if(i&&kr(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==e.getEmitScriptTarget(x)||!C)&&(e.some(n.parent.members,(function(n){return!!e.isPrivateIdentifierClassElementDeclaration(n)||166===n.kind&&!e.isStatic(n)&&!!n.initializer}))||e.some(n.parameters,(function(n){return e.hasSyntacticModifier(n,16476)})))){for(var s=void 0,c=0,l=n.body.statements;c<l.length;c++){var u=l[c];if(237===u.kind&&e.isSuperCall(u.expression)){s=u;break}if(!e.isPrologueDirective(u))break}s||kr(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else i||kr(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function QE(n){if(t){if(LL(n)||function(n){if(!(8388608&n.flags)&&181!==n.parent.kind&&257!==n.parent.kind){if(L<1)return JL(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(L<2&&e.isPrivateIdentifier(n.name))return JL(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===n.body&&!e.hasSyntacticModifier(n,128))return zL(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(n.body){if(e.hasSyntacticModifier(n,128))return JL(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(181===n.parent.kind||257===n.parent.kind)return JL(n.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return JL(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return ML(e)||e.parameters.length===(171===e.kind?0:1)}(n))return JL(n.name,171===n.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(172===n.kind){if(n.type)return JL(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return JL(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return JL(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return JL(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(n)||kL(n.name),ST(n),WE(n),171===n.kind&&!(8388608&n.flags)&&e.nodeIsPresent(n.body)&&256&n.flags&&(512&n.flags||kr(n.name,e.Diagnostics.A_get_accessor_must_return_a_value)),161===n.name.kind&&Zy(n.name),Fs(n)){var r=ni(n),a=e.getDeclarationOfKind(r,171),i=e.getDeclarationOfKind(r,172);if(a&&i&&!(1&nL(a))){zr(a).flags|=1;var o=e.getEffectiveModifierFlags(a),s=e.getEffectiveModifierFlags(i);(128&o)!==(128&s)&&(kr(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),kr(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&o&&!(24&s)||8&o&&!(8&s))&&(kr(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),kr(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var c=Bo(a),l=Bo(i);c&&l&&_f(c,l,a,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var u=Uo(ni(n));171===n.kind&&$b(n,u)}mx(n.body),XE(n)}function ZE(n,t){return hl(e.map(n.typeArguments,Lp),t,yl(t),e.isInJSFile(n))}function $E(n,t){for(var r,a,i=!0,o=0;o<t.length;o++){var s=Ic(t[o]);s&&(r||(a=Np(t,r=ZE(n,t))),i=i&&_f(r[o],Yp(s,a),n.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function eT(n){var t=_u(n);if(!ao(t)){var r=zr(n).resolvedSymbol;if(r)return 524288&r.flags&&Wr(r).typeParameters||(4&e.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function nT(n){DL(n,n.typeArguments),177!==n.kind||void 0===n.typeName.jsdocDotPos||e.isInJSFile(n)||e.isInJSDoc(n)||zL(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(n.typeArguments,mx);var r=_u(n);if(!ao(r)){if(n.typeArguments&&t){var a=eT(n);a&&$E(n,a)}var i=zr(n).resolvedSymbol;i&&(e.some(i.declarations,(function(e){return Sx(e)&&!!(134217728&e.flags)}))&&Mr(ub(n),i.declarations,i.escapedName),32&r.flags&&8&i.flags&&kr(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Fi(r)))}}function tT(n,t){if(!(8388608&n.flags))return n;var r=n.objectType,a=n.indexType;if(df(a,Ed(r,!1)))return 206===t.kind&&e.isAssignmentTarget(t)&&32&e.getObjectFlags(r)&&1&vc(r)&&kr(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Fi(r)),n;var i=Vc(r);if(il(i,We)&&lE(a,296))return n;if(wd(r)){var o=Cd(a,t);if(o){var s=Eg(i,(function(e){return Qc(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return kr(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Re}}return kr(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Fi(a),Fi(r)),Re}function rT(n){!function(n){var t;if(null===(t=n.members)||void 0===t?void 0:t.length)JL(n.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}(n),mx(n.typeParameter),mx(n.nameType),mx(n.type),n.type||t_(n,Ie);var t=zd(n),r=mc(t);r?_f(r,ln,n.nameType):_f(fc(t),ln,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}function aT(n){!function(n){if(153===n.operator){if(150!==n.type.kind)return JL(n.type,e.Diagnostics._0_expected,e.tokenToString(150));var t=e.walkUpParenthesizedTypes(n.parent);switch(e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 253:var r=t;if(79!==r.name.kind)return JL(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return JL(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return JL(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return JL(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(t,64))return JL(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:JL(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(144===n.operator&&182!==n.type.kind&&183!==n.type.kind)WL(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))}(n),mx(n.type)}function iT(n){return(e.hasEffectiveModifier(n,8)||e.isPrivateIdentifierClassElementDeclaration(n))&&!!(8388608&n.flags)}function oT(n,t){var r=e.getCombinedModifierFlags(n);return 257!==n.parent.kind&&256!==n.parent.kind&&225!==n.parent.kind&&8388608&n.flags&&(2&r||e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent)||(r|=1),r|=2),r&t}function sT(n){if(t){var r,a,i,o=0,s=155,c=!1,l=!0,u=!1,d=n.declarations,p=0!==(16384&n.flags),f=!1,m=!1,_=!1,g=[];if(d)for(var y=0,h=d;y<h.length;y++){var v=h[y],b=8388608&v.flags,E=v.parent&&(257===v.parent.kind||181===v.parent.kind)||b;if(E&&(i=void 0),256!==v.kind&&225!==v.kind||b||(_=!0),255===v.kind||168===v.kind||167===v.kind||170===v.kind){g.push(v);var T=oT(v,155);o|=T,s&=T,c=c||e.hasQuestionToken(v),l=l&&e.hasQuestionToken(v);var S=e.nodeIsPresent(v.body);S&&r?p?m=!0:f=!0:(null===i||void 0===i?void 0:i.parent)===v.parent&&i.end!==v.pos&&N(i),S?r||(r=v):u=!0,i=v,E||(a=v)}}if(m&&e.forEach(g,(function(n){kr(n,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),f&&e.forEach(g,(function(n){kr(e.getNameOfDeclaration(n)||n,e.Diagnostics.Duplicate_function_implementation)})),_&&!p&&16&n.flags&&d){var x=e.filter(d,(function(e){return 256===e.kind})).map((function(n){return e.createDiagnosticForNode(n,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)}));e.forEach(d,(function(t){var r=256===t.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:255===t.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&e.addRelatedInfo.apply(void 0,pa([kr(e.getNameOfDeclaration(t)||t,r,e.symbolName(n))],x,!1))}))}if(!a||a.body||e.hasSyntacticModifier(a,128)||a.questionToken||N(a),u&&(d&&(function(n,t,r,a,i){if(0!==(a^i)){var o=oT(k(n,t),r);e.forEach(n,(function(n){var t=oT(n,r)^o;1&t?kr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?kr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?kr(e.getNameOfDeclaration(n)||n,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&kr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(d,r,155,o,s),function(n,t,r,a){if(r!==a){var i=e.hasQuestionToken(k(n,t));e.forEach(n,(function(n){e.hasQuestionToken(n)!==i&&kr(e.getNameOfDeclaration(n),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(d,r,c,l)),r))for(var L=Tl(n),D=vl(r),C=0,A=L;C<A.length;C++){var I=A[C];if(!Cf(D,I)){e.addRelatedInfo(kr(I.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(r,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function k(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function N(n){if(!n.name||!e.nodeIsMissing(n.name)){var t=!1,r=e.forEachChild(n.parent,(function(e){if(t)return e;t=e===n}));if(r&&r.pos===n.end&&r.kind===n.kind){var a=r.name||r,i=r.name;if(n.name&&i&&(e.isPrivateIdentifier(n.name)&&e.isPrivateIdentifier(i)&&n.name.escapedText===i.escapedText||e.isComputedPropertyName(n.name)&&e.isComputedPropertyName(i)||e.isPropertyNameLiteral(n.name)&&e.isPropertyNameLiteral(i)&&e.getEscapedTextOfIdentifierOrLiteral(n.name)===e.getEscapedTextOfIdentifierOrLiteral(i))){if((168===n.kind||167===n.kind)&&e.isStatic(n)!==e.isStatic(r))kr(a,e.isStatic(n)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static);return}if(e.nodeIsPresent(r.body))return void kr(a,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(n.name))}var o=n.name||n;p?kr(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(n,128)?kr(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):kr(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function cT(n){if(t){var r=n.localSymbol;if((r||(r=ni(n)).exportSymbol)&&e.getDeclarationOfKind(r,n.kind)===n){for(var a=0,i=0,o=0,s=0,c=r.declarations;s<c.length;s++){var l=y(_=c[s]),u=oT(_,513);1&u?512&u?o|=l:a|=l:i|=l}var d=a&i,p=o&(a|i);if(d||p)for(var f=0,m=r.declarations;f<m.length;f++){l=y(_=m[f]);var _,g=e.getNameOfDeclaration(_);l&p?kr(g,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(g)):l&d&&kr(g,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(g))}}}function y(n){var t=n;switch(t.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var r=t,a=e.isExportAssignment(r)?r.expression:r.right;if(!e.isEntityNameExpression(a))return 1;t=a;case 264:case 267:case 266:var i=0,o=Ia(ni(t));return e.forEach(o.declarations,(function(e){i|=y(e)})),i;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(t)}}}function lT(e,n,t,r){var a=uT(e,n);return a&&_T(a,n,t,r)}function uT(n,t){if(!ro(n)){var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Qo(n,Au(!1)))return r.promisedTypeOfPromise=$l(n)[0];if(!uE(n,262140)){var a=to(n,"then");if(!ro(a)){var i=a?$c(a,0):e.emptyArray;if(0!==i.length){var o=ag(ad(e.map(i,Gb)),2097152);if(!ro(o)){var s=$c(o,0);if(0!==s.length)return r.promisedTypeOfPromise=ad(e.map(s,Gb),2);t&&kr(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&kr(t,e.Diagnostics.A_promise_must_have_a_then_method)}}}}function dT(e,n,t,r,a){return(n?_T(e,t,r,a):gT(e,t,r,a))||Re}function pT(e){if(uE(e,262140))return!1;var n=to(e,"then");return!!n&&$c(ag(n,2097152),0).length>0}function fT(e){var n;if(16777216&e.flags){var t=Ou(!1);return!!t&&e.aliasSymbol===t&&1===(null===(n=e.aliasTypeArguments)||void 0===n?void 0:n.length)}return!1}function mT(e){return 1048576&e.flags?Cg(e,mT):fT(e)?e.aliasTypeArguments[0]:e}function _T(n,t,r,a){var i=gT(n,t,r,a);return i&&function(n){if(ro(n))return n;if(fT(n))return n;if(wd(n)){var t=wc(n);if(!t||3&t.flags||If(t)||pT(t)){var r=Ou(!0);if(r)return tu(r,[mT(n)])}}return e.Debug.assert(void 0===uT(n),"type provided should not be a non-generic 'promise'-like."),n}(i)}function gT(n,t,r,a){if(ro(n))return n;if(fT(n))return n;var i=n;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&n.flags){var o=t?function(e){return gT(e,t,r,a)}:gT;return i.awaitedTypeOfType=Cg(n,o)}var s=uT(n);if(s){if(n.id===s.id||pr.lastIndexOf(s.id)>=0)return void(t&&kr(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));pr.push(n.id);var c=gT(s,t,r,a);if(pr.pop(),!c)return;return i.awaitedTypeOfType=c}if(!pT(n))return i.awaitedTypeOfType=n;t&&(e.Debug.assertIsDefined(r),kr(t,r,a))}function yT(n){var t=ib(n);lb(t,n);var r=Cl(t);if(!(1&r.flags)){var a,i,o=eb(n);switch(n.parent.kind){case 256:a=ad([Xo(ni(n.parent)),$e]);break;case 163:a=$e,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 166:a=$e,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 168:case 171:case 172:a=ad([Mu(Nx(n.parent)),$e]);break;default:return e.Debug.fail()}_f(r,a,n,o,(function(){return i}))}}function hT(n){if(n){var t=e.getFirstIdentifier(n),r=2097152|(79===n.kind?788968:1920),a=Qr(t,t.escapedText,r,void 0,void 0,!0);a&&2097152&a.flags&&ci(a)&&!qx(Ia(a))&&!Ra(a)&&wa(a)}}function vT(n){var t=bT(n);t&&e.isEntityName(t)&&hT(t)}function bT(e){if(e)switch(e.kind){case 187:case 186:return ET(e.types);case 188:return ET([e.trueType,e.falseType]);case 190:case 196:return bT(e.type);case 177:return e.typeName}}function ET(n){for(var t,r=0,a=n;r<a.length;r++){for(var i=a[r];190===i.kind||196===i.kind;)i=i.type;if(143!==i.kind&&(I||(195!==i.kind||104!==i.literal.kind)&&152!==i.kind)){var o=bT(i);if(!o)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return}else t=o}}return t}function TT(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function ST(n){if(n.decorators&&e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){x.experimentalDecorators||kr(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=n.decorators[0];if(hL(t,8),163===n.kind&&hL(t,32),x.emitDecoratorMetadata)switch(hL(t,16),n.kind){case 256:var r=e.getFirstConstructorWithBody(n);if(r)for(var a=0,i=r.parameters;a<i.length;a++){vT(TT(i[a]))}break;case 171:case 172:var o=171===n.kind?172:171,s=e.getDeclarationOfKind(ni(n),o);vT(Go(n)||s&&Go(s));break;case 168:for(var c=0,l=n.parameters;c<l.length;c++){vT(TT(l[c]))}vT(e.getEffectiveReturnTypeNode(n));break;case 166:vT(e.getEffectiveTypeAnnotationNode(n));break;case 163:vT(TT(n));for(var u=0,d=n.parent.parameters;u<d.length;u++){vT(TT(d[u]))}}e.forEach(n.decorators,yT)}}function xT(e){switch(e.kind){case 79:return e;case 205:return e.name;default:return}}function LT(n){var r;ST(n),WE(n);var a=e.getFunctionFlags(n);if(n.name&&161===n.name.kind&&Zy(n.name),Fs(n)){var i=ni(n),o=n.localSymbol||i,s=null===(r=o.declarations)||void 0===r?void 0:r.find((function(e){return e.kind===n.kind&&!(131072&e.flags)}));n===s&&sT(o),i.parent&&sT(i)}var c=167===n.kind?void 0:n.body;if(mx(c),$b(n,Al(n)),t&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(c)&&!iT(n)&&t_(n,Ie),1&a&&e.nodeIsPresent(c)&&Cl(vl(n))),e.isInJSFile(n)){var l=e.getJSDocTypeTag(n);l&&l.typeExpression&&!Hy(Lp(l.typeExpression),n)&&kr(l.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function DT(n){if(t){var r=e.getSourceFileOfNode(n),a=Gt.get(r.path);a||(a=[],Gt.set(r.path,a)),a.push(n)}}function CT(n,t){for(var r=0,a=n;r<a.length;r++){var i=a[r];switch(i.kind){case 256:case 225:kT(i,t),RT(i,t);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:FT(i,t);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:i.body&&FT(i,t),RT(i,t);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:RT(i,t);break;case 189:NT(i,t);break;default:e.Debug.assertNever(i,"Node should not have been registered for unused identifiers check")}}}function AT(n,t,r){var a=e.getNameOfDeclaration(n)||n,i=Sx(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;r(n,0,e.createDiagnosticForNode(a,i,t))}function IT(n){return e.isIdentifier(n)&&95===e.idText(n).charCodeAt(0)}function kT(n,t){for(var r=0,a=n.members;r<a.length;r++){var i=a[r];switch(i.kind){case 168:case 166:case 171:case 172:if(172===i.kind&&32768&i.symbol.flags)break;var o=ni(i);o.isReferenced||!(e.hasEffectiveModifier(i,8)||e.isNamedDeclaration(i)&&e.isPrivateIdentifier(i.name))||8388608&i.flags||t(i,0,e.createDiagnosticForNode(i.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Mi(o)));break;case 170:for(var s=0,c=i.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&t(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function NT(n,t){var r=n.typeParameter;OT(r)&&t(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(r.name)))}function RT(n,t){var r=ni(n).declarations;if(r&&e.last(r)===n)for(var a=e.getEffectiveTypeParameterDeclarations(n),i=new e.Set,o=0,s=a;o<s.length;o++){var c=s[o];if(OT(c)){var l=e.idText(c.name),u=c.parent;if(189!==u.kind&&u.typeParameters.every(OT)){if(e.tryAddToSet(i,u)){var d=e.getSourceFileOfNode(u),p=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(d,u.typeParameters),f=1===u.typeParameters.length,m=f?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,_=f?l:void 0;t(c,1,e.createFileDiagnostic(d,p.pos,p.end-p.pos,m,_))}}else t(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function OT(e){return!(262144&ei(e.symbol).isReferenced)&&!IT(e.name)}function wT(e,n,t,r){var a=String(r(n)),i=e.get(a);i?i[1].push(t):e.set(a,[n,[t]])}function MT(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function PT(n){return e.isBindingElement(n)?e.isObjectBindingPattern(n.parent)?!(!n.propertyName||!IT(n.name)):IT(n.name):e.isAmbientModule(n)||(e.isVariableDeclaration(n)&&e.isForInOrOfStatement(n.parent.parent)||BT(n))&&IT(n.name)}function FT(n,t){var r=new e.Map,a=new e.Map,i=new e.Map;n.locals.forEach((function(n){var o;if(!(262144&n.flags?!(3&n.flags)||3&n.isReferenced:n.isReferenced||n.exportSymbol)&&n.declarations)for(var s=0,c=n.declarations;s<c.length;s++){var l=c[s];if(!PT(l))if(BT(l))wT(r,266===(o=l).kind?o:267===o.kind?o.parent:o.parent.parent,l,X);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent)){l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||wT(a,l.parent,l,X)}else if(e.isVariableDeclaration(l))wT(i,l.parent,l,X);else{var u=n.valueDeclaration&&MT(n.valueDeclaration),d=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);u&&d?e.isParameterPropertyDeclaration(u,u.parent)||e.parameterIsThisKeyword(u)||IT(d)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?wT(a,l.parent,l,X):t(u,1,e.createDiagnosticForNode(d,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(n)))):AT(l,e.symbolName(n),t)}}})),r.forEach((function(n){var r=n[0],a=n[1],i=r.parent;if((r.name?1:0)+(r.namedBindings?267===r.namedBindings.kind?1:r.namedBindings.elements.length:0)===a.length)t(i,0,1===a.length?e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(a).name)):e.createDiagnosticForNode(i,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=a;o<s.length;o++){var c=s[o];AT(c,e.idText(c.name),t)}})),a.forEach((function(n){var r=n[0],a=n[1],o=MT(r.parent)?1:0;if(r.elements.length===a.length)1===a.length&&253===r.parent.kind&&254===r.parent.parent.kind?wT(i,r.parent.parent,r.parent,X):t(r,o,1===a.length?e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,GT(e.first(a).name)):e.createDiagnosticForNode(r,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=a;s<c.length;s++){var l=c[s];t(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,GT(l.name)))}})),i.forEach((function(n){var r=n[0],a=n[1];if(r.declarations.length===a.length)t(r,0,1===a.length?e.createDiagnosticForNode(e.first(a).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,GT(e.first(a).name)):e.createDiagnosticForNode(236===r.parent.kind?r.parent:r,e.Diagnostics.All_variables_are_unused));else for(var i=0,o=a;i<o.length;i++){var s=o[i];t(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,GT(s.name)))}}))}function GT(n){switch(n.kind){case 79:return e.idText(n);case 201:case 200:return GT(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function BT(e){return 266===e.kind||269===e.kind||267===e.kind}function UT(n){if(234===n.kind&&XL(n),e.isFunctionOrModuleBlock(n)){var t=jt;e.forEach(n.statements,mx),jt=t}else e.forEach(n.statements,mx);n.locals&&DT(n)}function VT(n,t,r){if((null===t||void 0===t?void 0:t.escapedText)!==r)return!1;if(166===n.kind||165===n.kind||168===n.kind||167===n.kind||171===n.kind||172===n.kind||294===n.kind)return!1;if(8388608&n.flags)return!1;if((e.isImportClause(n)||e.isImportEqualsDeclaration(n)||e.isImportSpecifier(n))&&e.isTypeOnlyImportOrExportDeclaration(n))return!1;var a=e.getRootDeclaration(n);return!e.isParameter(a)||!e.nodeIsMissing(a.parent.body)}function jT(n){e.findAncestor(n,(function(t){return!!(4&nL(t))&&(79!==n.kind?kr(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):kr(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function KT(n){e.findAncestor(n,(function(t){return!!(8&nL(t))&&(79!==n.kind?kr(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):kr(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function HT(n){67108864&nL(e.getEnclosingBlockScopeContainer(n))&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name)&&"string"===typeof n.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Ar("noEmit",n,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function WT(n){var t=!1;if(e.isClassExpression(n))for(var r=0,a=n.members;r<a.length;r++){if(134217728&nL(a[r])){t=!0;break}}else if(e.isFunctionExpression(n))134217728&nL(n)&&(t=!0);else{var i=e.getEnclosingBlockScopeContainer(n);i&&134217728&nL(i)&&(t=!0)}t&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name),"The target of a Reflect collision check should be an identifier"),Ar("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(n.name),"Reflect"))}function zT(n,t){t&&(function(n,t){if((!(D>=e.ModuleKind.ES2015)||D>=e.ModuleKind.Node12&&e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)&&t&&(VT(n,t,"require")||VT(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=no(n);303===r.kind&&e.isExternalOrCommonJsModule(r)&&Ar("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}(n,t),function(n,t){if(t&&!(L>=4)&&VT(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=no(n);303===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&Ar("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}(n,t),function(e,n){L<=8&&(VT(e,n,"WeakMap")||VT(e,n,"WeakSet"))&&ur.push(e)}(n,t),function(e,n){n&&L>=2&&L<=8&&VT(e,n,"Reflect")&&dr.push(e)}(n,t),e.isClassLike(n)?(GS(t,e.Diagnostics.Class_name_cannot_be_0),8388608&n.flags||function(n){L>=1&&"Object"===n.escapedText&&(D<e.ModuleKind.ES2015||e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)&&kr(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[D])}(t)):e.isEnumDeclaration(n)&&GS(t,e.Diagnostics.Enum_name_cannot_be_0))}function JT(e){return e===ke?Ie:e===Vn?Un:e}function qT(n){var t;if(ST(n),e.isBindingElement(n)||mx(n.type),n.name){if(161===n.name.kind&&(Zy(n.name),n.initializer&&SE(n.initializer)),e.isBindingElement(n)){e.isObjectBindingPattern(n.parent)&&n.dotDotDotToken&&L<5&&hL(n,4),n.propertyName&&161===n.propertyName.kind&&Zy(n.propertyName);var r=n.parent.parent,a=io(r),i=n.propertyName||n.name;if(a&&!e.isBindingPattern(i)){var o=yd(i);if(Os(o)){var s=Qc(a,Gs(o));s&&(cv(s,void 0,!1),Ih(n,!!r.initializer&&106===r.initializer.kind,!1,a,s))}}}if(e.isBindingPattern(n.name)&&(201===n.name.kind&&L<2&&x.downlevelIteration&&hL(n,512),e.forEach(n.name.elements,mx)),n.initializer&&e.isParameterDeclaration(n)&&e.nodeIsMissing(e.getContainingFunction(n).body))kr(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){var c=n.initializer&&242!==n.parent.parent.kind,l=0===n.name.elements.length;if(c||l){var u=Ro(n);if(c){var d=SE(n.initializer);I&&l?Bh(d,n):gf(d,Ro(n),n,n.initializer)}l&&(e.isArrayBindingPattern(n.name)?oS(65,u,Ge,n):I&&Bh(u,n))}}else{var p=ni(n);if(2097152&p.flags&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(n))rx(n);else{var f=JT(Xo(p));if(n===p.valueDeclaration){var m=e.getEffectiveInitializer(n);if(m)e.isInJSFile(n)&&e.isObjectLiteralExpression(m)&&(0===m.properties.length||e.isPrototypeAccess(n.name))&&!!(null===(t=p.exports)||void 0===t?void 0:t.size)||242===n.parent.parent.kind||gf(SE(m),f,n,m,void 0);p.declarations&&p.declarations.length>1&&e.some(p.declarations,(function(t){return t!==n&&e.isVariableLike(t)&&!YT(t,n)}))&&kr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var _=JT(Ro(n));ao(f)||ao(_)||of(f,_)||67108864&p.flags||XT(p.valueDeclaration,f,n,_),n.initializer&&gf(SE(n.initializer),_,n,n.initializer,void 0),p.valueDeclaration&&!YT(n,p.valueDeclaration)&&kr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}166!==n.kind&&165!==n.kind&&(cT(n),253!==n.kind&&202!==n.kind||function(n){if(0===(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(253!==n.kind||n.initializer)){var t=ni(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=Qr(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&Ch(r)){var a=e.getAncestor(r.valueDeclaration,254),i=236===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!i||!(234===i.kind&&e.isFunctionLike(i.parent)||261===i.kind||260===i.kind||303===i.kind)){var o=Mi(r);kr(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),zT(n,n.name))}}}}function XT(n,t,r,a){var i=e.getNameOfDeclaration(r),o=166===r.kind||165===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(i),c=kr(i,o,s,Fi(t),Fi(a));n&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function YT(n,t){if(163===n.kind&&253===t.kind||253===n.kind&&163===t.kind)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;return e.getSelectedEffectiveModifierFlags(n,504)===e.getSelectedEffectiveModifierFlags(t,504)}function QT(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),function(n){if(242!==n.parent.parent.kind&&243!==n.parent.parent.kind)if(8388608&n.flags)BL(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return JL(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return JL(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(236!==n.parent.parent.kind||!n.type||n.initializer||8388608&n.flags)){var t=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return JL(n.exclamationToken,t)}!(D<e.ModuleKind.ES2015||e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)||D===e.ModuleKind.System||8388608&n.parent.parent.flags||!e.hasSyntacticModifier(n.parent.parent,1)||UL(n.name);(e.isLet(n)||e.isVarConst(n))&&VL(n.name)}(n),qT(n),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function ZT(n){return function(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return JL(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(TL(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return JL(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)zL(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}(n),qT(n)}function $T(n){bL(n)||jL(n.declarationList)||function(n){if(!KL(n.parent)){if(e.isLet(n.declarationList))return JL(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(n.declarationList))JL(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(n),e.forEach(n.declarationList.declarations,mx)}function eS(n,t,r){if(I&&!Rm(t)){var a=e.isBinaryExpression(n)?n.right:n;if(!e.isPropertyAccessExpression(a)||!xE(a.expression)){var i=e.isIdentifier(a)?a:e.isPropertyAccessExpression(a)?a.name:e.isBinaryExpression(a)&&e.isIdentifier(a.right)?a.right:void 0,o=$c(t,0),s=!!lT(t);if(0!==o.length||s){var c=i&&kx(i);if(c||s){var l=c&&e.isBinaryExpression(n.parent)&&function(n,t){for(;e.isBinaryExpression(n)&&55===n.operatorToken.kind;){if(e.forEachChild(n.right,(function n(r){if(e.isIdentifier(r)){var a=kx(r);if(a&&a===t)return!0}return e.forEachChild(r,n)})))return!0;n=n.parent}return!1}(n.parent,c)||c&&r&&function(n,t,r,a){return!!e.forEachChild(t,(function t(i){if(e.isIdentifier(i)){var o=kx(i);if(o&&o===a){if(e.isIdentifier(n))return!0;for(var s=r.parent,c=i.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return kx(s)===kx(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(kx(s.name)!==kx(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(i,t)}))}(n,r,i,c);l||(s?Or(a,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Bi(t)):kr(a,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function nS(n,t){return 16384&n.flags&&kr(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function tS(e,n){return nS(VE(e,n),e)}function rS(n){wL(n);var t=wh(VE(n.expression));if(254===n.initializer.kind){var r=n.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&kr(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),aS(n)}else{var a=n.initializer,i=VE(a);203===a.kind||204===a.kind?kr(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):df(function(e){var n=Td(Ed(e));return 131072&n.flags?He:n}(t),i)?iE(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):kr(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==en&&lE(t,126091264)||kr(n.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Fi(t)),mx(n.statement),n.locals&&DT(n)}function aS(e){var n=e.initializer;n.declarations.length>=1&&QT(n.declarations[0])}function iS(e){return oS(e.awaitModifier?15:13,Rh(e.expression),Ge,e.expression)}function oS(e,n,t,r){return ro(n)?n:sS(e,n,t,r,!0)||Ie}function sS(n,t,r,a,i){var o=0!==(2&n);if(t!==en){var s=L>=2,c=!s&&x.downlevelIteration,l=x.noUncheckedIndexedAccess&&!!(128&n);if(s||c||o){var u=fS(t,n,s?a:void 0);if(i&&u){var d=8&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&n?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&_f(r,u.nextType,a,d)}if(u||s)return l?cg(u&&u.yieldType):u&&u.yieldType}var p=t,f=!1,m=!1;if(4&n){if(1048576&p.flags){var _=t.types,g=e.filter(_,(function(e){return!(402653316&e.flags)}));g!==_&&(p=ad(g,2))}else 402653316&p.flags&&(p=en);if((m=p!==t)&&(L<1&&a&&(kr(a,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),f=!0),131072&p.flags))return l?cg(He):He}if(!um(p)){if(a&&!f){var y=function(r,a){var i;if(a)return r?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(cS(n,0,t,void 0))return[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(i=t.symbol)||void 0===i?void 0:i.escapedName))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return r?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&n)&&!m,c),h=y[0];Or(a,y[1]&&!!lT(p),h,Fi(p))}return m?l?cg(He):He:void 0}var v=ol(p,We);return m&&v?402653316&v.flags&&!x.noUncheckedIndexedAccess?He:ad(l?[v,He,Ge]:[v,He],2):128&n?cg(v):v}bS(a,t,o)}function cS(e,n,t,r){if(!ro(t)){var a=fS(t,e,r);return a&&a[ee(n)]}}function lS(e,n,t){if(void 0===e&&(e=en),void 0===n&&(n=en),void 0===t&&(t=Pe),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=Jl([e,n,t]),a=It.get(r);return a||(a={yieldType:e,returnType:n,nextType:t},It.set(r,a)),a}return{yieldType:e,returnType:n,nextType:t}}function uS(n){for(var t,r,a,i=0,o=n;i<o.length;i++){var s=o[i];if(void 0!==s&&s!==kt){if(s===Nt)return Nt;t=e.append(t,s.yieldType),r=e.append(r,s.returnType),a=e.append(a,s.nextType)}}return t||r||a?lS(t&&ad(t),r&&ad(r),a&&pd(a)):kt}function dS(e,n){return e[n]}function pS(e,n,t){return e[n]=t}function fS(n,t,r){if(ro(n))return Nt;if(!(1048576&n.flags)){var a=_S(n,t,r);return a===kt?void(r&&bS(r,n,!!(2&t))):a}var i,o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=dS(n,o);if(s)return s===kt?void 0:s;for(var c=0,l=n.types;c<l.length;c++){var u=_S(l[c],t,r);if(u===kt)return r&&bS(r,n,!!(2&t)),void pS(n,o,kt);i=e.append(i,u)}var d=i?uS(i):kt;return pS(n,o,d),d===kt?void 0:d}function mS(e,n){if(e===kt)return kt;if(e===Nt)return Nt;var t=e.yieldType,r=e.returnType,a=e.nextType;return n&&Ou(!0),lS(_T(t,n)||Ie,_T(r,n)||Ie,a)}function _S(e,n,t){if(ro(e))return Nt;var r;if(2&n&&(r=gS(e,wt)||hS(e,wt)))return 8&n?mS(r,t):r;if(1&n&&(r=gS(e,Mt)||hS(e,Mt))){if(!(2&n))return r;if(r!==kt)return pS(e,"iterationTypesOfAsyncIterable",mS(r,t))}if(2&n&&(r=vS(e,wt,t))!==kt)return r;if(1&n&&(r=vS(e,Mt,t))!==kt)return 2&n?pS(e,"iterationTypesOfAsyncIterable",r?mS(r,t):kt):r;return kt}function gS(e,n){return dS(e,n.iterableCacheKey)}function yS(e,n){var t=gS(e,n)||vS(e,n,void 0);return t===kt?Ot:t}function hS(e,n){var t;if(Qo(e,t=n.getGlobalIterableType(!1))||Qo(e,t=n.getGlobalIterableIteratorType(!1))){var r=$l(e)[0],a=yS(t,n),i=a.returnType,o=a.nextType;return pS(e,n.iterableCacheKey,lS(n.resolveIterationType(r,void 0)||r,n.resolveIterationType(i,void 0)||i,o))}if(Qo(e,n.getGlobalGeneratorType(!1))){var s=$l(e);r=s[0],i=s[1],o=s[2];return pS(e,n.iterableCacheKey,lS(n.resolveIterationType(r,void 0)||r,n.resolveIterationType(i,void 0)||i,o))}}function vS(n,t,r){var a,i=Qc(n,function(n){var t=Du(!1),r=t&&to(Xo(t),e.escapeLeadingUnderscores(n));return r&&Os(r)?Gs(r):"__@".concat(n)}(t.iteratorSymbolName)),o=!i||16777216&i.flags?void 0:Xo(i);if(ro(o))return pS(n,t.iterableCacheKey,Nt);var s=o?$c(o,0):void 0;if(!e.some(s))return pS(n,t.iterableCacheKey,kt);var c=null!==(a=ES(pd(e.map(s,Cl)),t,r))&&void 0!==a?a:kt;return pS(n,t.iterableCacheKey,c)}function bS(n,t,r){var a=r?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Or(n,!!lT(t),a,Fi(t))}function ES(e,n,t){if(ro(e))return Nt;var r=TS(e,n)||function(e,n){var t=n.getGlobalIterableIteratorType(!1);if(Qo(e,t)){var r=$l(e)[0],a=TS(t,n)||AS(t,n,void 0),i=a===kt?Ot:a,o=i.returnType,s=i.nextType;return pS(e,n.iteratorCacheKey,lS(r,o,s))}if(Qo(e,n.getGlobalIteratorType(!1))||Qo(e,n.getGlobalGeneratorType(!1))){var c=$l(e);r=c[0],o=c[1],s=c[2];return pS(e,n.iteratorCacheKey,lS(r,o,s))}}(e,n)||AS(e,n,t);return r===kt?void 0:r}function TS(e,n){return dS(e,n.iteratorCacheKey)}function SS(e,n){var t=to(e,"done")||Je;return df(0===n?Je:Xe,t)}function xS(e){return SS(e,0)}function LS(e){return SS(e,1)}function DS(e){if(ro(e))return Nt;var n,t=dS(e,"iterationTypesOfIteratorResult");if(t)return t;if(Qo(e,(n=!1,tt||(tt=Su("IteratorYieldResult",1,n))||hn)))return pS(e,"iterationTypesOfIteratorResult",lS($l(e)[0],void 0,void 0));if(Qo(e,function(e){return rt||(rt=Su("IteratorReturnResult",1,e))||hn}(!1)))return pS(e,"iterationTypesOfIteratorResult",lS(void 0,$l(e)[0],void 0));var r=xg(e,xS),a=r!==en?to(r,"value"):void 0,i=xg(e,LS),o=i!==en?to(i,"value"):void 0;return pS(e,"iterationTypesOfIteratorResult",a||o?lS(a,o||$e,void 0):kt)}function CS(n,t,r,a){var i,o,s,c,l=Qc(n,r);if(l||"next"===r){var u=!l||"next"===r&&16777216&l.flags?void 0:"next"===r?Xo(l):ag(Xo(l),2097152);if(ro(u))return"next"===r?Nt:Rt;var d,p,f,m,_,g=u?$c(u,0):e.emptyArray;if(0===g.length){if(a)kr(a,"next"===r?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic,r);return"next"===r?Nt:void 0}if((null===u||void 0===u?void 0:u.symbol)&&1===g.length){var y=t.getGlobalGeneratorType(!1),h=t.getGlobalIteratorType(!1),v=(null===(o=null===(i=y.symbol)||void 0===i?void 0:i.members)||void 0===o?void 0:o.get(r))===u.symbol,b=!v&&(null===(c=null===(s=h.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(r))===u.symbol;if(v||b){var E=v?y:h,T=u.mapper;return lS(Rp(E.typeParameters[0],T),Rp(E.typeParameters[1],T),"next"===r?Rp(E.typeParameters[2],T):void 0)}}for(var S=0,x=g;S<x.length;S++){var L=x[S];"throw"!==r&&e.some(L.parameters)&&(d=e.append(d,kb(L,0))),p=e.append(p,Cl(L))}if("throw"!==r){var D=d?ad(d):Pe;if("next"===r)m=D;else if("return"===r){var C=t.resolveIterationType(D,a)||Ie;f=e.append(f,C)}}var A=p?pd(p):en,I=DS(t.resolveIterationType(A,a)||Ie);return I===kt?(a&&kr(a,t.mustHaveAValueDiagnostic,r),_=Ie,f=e.append(f,Ie)):(_=I.yieldType,f=e.append(f,I.returnType)),lS(_,ad(f),m)}}function AS(e,n,t){var r=uS([CS(e,n,"next",t),CS(e,n,"return",t),CS(e,n,"throw",t)]);return pS(e,n.iteratorCacheKey,r)}function IS(e,n,t){if(!ro(n)){var r=kS(n,t);return r&&r[ee(e)]}}function kS(e,n){if(ro(e))return Nt;var t=n?wt:Mt;return fS(e,n?2:1,void 0)||ES(e,t,void 0)}function NS(n){XL(n)||function(n){var t=n;for(;t;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return JL(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 249:if(n.label&&t.label.escapedText===n.label.escapedText)return!!(244===n.kind&&!e.isIterationStatement(t.statement,!0))&&JL(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 248:if(245===n.kind&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1}t=t.parent}n.label?JL(n,245===n.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):JL(n,245===n.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(n)}function RS(e,n){var t=!!(2&n);return!!(1&n)?IS(1,e,t)||Re:t?gT(e)||Re:e}function OS(n,t){var r=RS(t,e.getFunctionFlags(n));return!!r&&cE(r,16387)}function wS(n){XL(n)||e.isIdentifier(n.expression)&&!n.expression.escapedText&&function(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!HL(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return fr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,t,r,a,i)),!0}}(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&VE(n.expression)}function MS(n,t,r){var a=al(n);if(0!==a.length){for(var i=0,o=xc(n);i<o.length;i++){var s=o[i];r&&4194304&s.flags||PS(n,s,hd(s,8576,!0),Yo(s))}var c=t.valueDeclaration;if(c&&e.isClassLike(c))for(var l=0,u=c.members;l<u.length;l++){var d=u[l];if(!e.isStatic(d)&&!Fs(d)){var p=ni(d);PS(n,p,GE(d.name.expression),Yo(p))}}if(a.length>1)for(var f=0,m=a;f<m.length;f++){FS(n,m[f])}}}function PS(n,t,r,a){var i=t.valueDeclaration,o=e.getNameOfDeclaration(i);if(!o||!e.isPrivateIdentifier(o))for(var s=sl(n,r),c=2&e.getObjectFlags(n)?e.getDeclarationOfKind(n.symbol,257):void 0,l=i&&220===i.kind||o&&161===o.kind||ti(t)===n.symbol?i:void 0,u=function(r){var i=r.declaration&&ti(ni(r.declaration))===n.symbol?r.declaration:void 0,o=l||i||(c&&!e.some(ds(n),(function(e){return!!Lc(e,t.escapedName)&&!!ol(e,r.keyType)}))?c:void 0);o&&!df(a,r.type)&&kr(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Mi(t),Fi(a),Fi(r.keyType),Fi(r.type))},d=0,p=s;d<p.length;d++){u(p[d])}}function FS(n,t){for(var r=t.declaration,a=sl(n,t.keyType),i=2&e.getObjectFlags(n)?e.getDeclarationOfKind(n.symbol,257):void 0,o=r&&ti(ni(r))===n.symbol?r:void 0,s=function(r){if(r===t)return"continue";var a=r.declaration&&ti(ni(r.declaration))===n.symbol?r.declaration:void 0,s=o||a||(i&&!e.some(ds(n),(function(e){return!!il(e,t.keyType)&&!!ol(e,r.keyType)}))?i:void 0);s&&!df(t.type,r.type)&&kr(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Fi(t.keyType),Fi(t.type),Fi(r.keyType),Fi(r.type))},c=0,l=a;c<l.length;c++){s(l[c])}}function GS(e,n){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":kr(e,n,e.escapedText)}}function BS(n){if(n)for(var r=!1,a=0;a<n.length;a++){var i=n[a];if(jE(i),t){i.default?(r=!0,US(i.default,n,a)):r&&kr(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<a;o++)n[o].symbol===i.symbol&&kr(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function US(n,t,r){!function n(a){if(177===a.kind){var i=_u(a);if(262144&i.flags)for(var o=r;o<t.length;o++)i.symbol===ni(t[o])&&kr(a,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(a,n)}(n)}function VS(n){if(!n.declarations||1!==n.declarations.length){var t=Wr(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=function(n){return e.filter(n.declarations,(function(e){return 256===e.kind||257===e.kind}))}(n);if(!r||r.length<=1)return;if(!function(n,t){for(var r=e.length(t),a=yl(t),i=0,o=n;i<o.length;i++){var s=o[i],c=e.getEffectiveTypeParameterDeclarations(s),l=c.length;if(l<a||l>r)return!1;for(var u=0;u<l;u++){var d=c[u],p=t[u];if(d.name.escapedText!==p.symbol.escapedName)return!1;var f=e.getEffectiveConstraintOfTypeParameter(d),m=f&&Lp(f),_=Ic(p);if(m&&_&&!of(m,_))return!1;var g=d.default&&Lp(d.default),y=Bc(p);if(g&&y&&!of(g,y))return!1}}return!0}(r,Ss(n).localTypeParameters))for(var a=Mi(n),i=0,o=r;i<o.length;i++){kr(o[i].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,a)}}}}function jS(n){!function(n){var t=e.getSourceFileOfNode(n);(function(n){var t=!1,r=!1;if(!bL(n)&&n.heritageClauses)for(var a=0,i=n.heritageClauses;a<i.length;a++){var o=i[a];if(94===o.token){if(t)return WL(o,e.Diagnostics.extends_clause_already_seen);if(r)return WL(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return WL(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(117===o.token),r)return WL(o,e.Diagnostics.implements_clause_already_seen);r=!0}AL(o)}})(n)||SL(n.typeParameters,t)}(n),ST(n),zT(n,n.name),BS(e.getEffectiveTypeParameterDeclarations(n)),cT(n);var r=ni(n),a=Ss(r),i=Ks(a),o=Xo(r);VS(r),sT(r),function(n){for(var t=new e.Map,r=new e.Map,a=new e.Map,i=0,o=n.members;i<o.length;i++){var s=o[i];if(170===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];e.isParameterPropertyDeclaration(u,s)&&!e.isBindingPattern(u.name)&&y(t,u.name,u.name.escapedText,3)}else{var d=e.isStatic(s),p=s.name;if(!p)continue;var f=e.isPrivateIdentifier(p),m=f&&d?16:0,_=f?a:d?r:t,g=p&&e.getPropertyNameForPropertyNameNode(p);if(g)switch(s.kind){case 171:y(_,p,g,1|m);break;case 172:y(_,p,g,2|m);break;case 166:y(_,p,g,3|m);break;case 168:y(_,p,g,8|m)}}}function y(n,t,r,a){var i=n.get(r);if(i)if((16&i)!==(16&a))kr(t,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(t));else{var o=!!(8&i),s=!!(8&a);o||s?o!==s&&kr(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):i&a&-17?kr(t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(t)):n.set(r,i|a)}else n.set(r,a)}}(n),!!(8388608&n.flags)||function(n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t],i=a.name;if(e.isStatic(a)&&i){var o=e.getPropertyNameForPropertyNameNode(i);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":kr(i,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,qi(ni(n)))}}}}(n);var s=e.getEffectiveBaseTypeNode(n);if(s){e.forEach(s.typeArguments,mx),L<2&&hL(s.parent,1);var c=e.getClassExtendsHeritageElement(n);c&&c!==s&&VE(c.expression);var l=ds(a);if(l.length&&t){var u=l[0],d=ls(a),p=Vc(d);if(function(n,t){var r=$c(n,1);if(r.length){var a=r[0].declaration;if(a&&e.hasEffectiveModifier(a,8))Dx(t,e.getClassLikeDeclarationOfSymbol(n.symbol))||kr(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Pa(n.symbol))}}(p,s),mx(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,mx);for(var f=0,m=ss(p,s.typeArguments,s);f<m.length;f++){if(!$E(s,m[f].typeParameters))break}}if(_f(i,E=Ks(u,a.thisType),void 0)?_f(o,af(p),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):WS(n,i,E,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags)if(as(o))$c(d,1).some((function(e){return 4&e.flags}))&&!e.hasSyntacticModifier(n,128)&&kr(n.name||n,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract);else kr(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(p.symbol&&32&p.symbol.flags)&&!(8650752&d.flags)){var _=cs(p,s.typeArguments,s);e.forEach(_,(function(e){return!ob(e.declaration)&&!of(Cl(e),u)}))&&kr(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(n,t){var r,a,i=Cc(t);e:for(var o=0,s=i;o<s.length;o++){var c=s[o],l=zS(c);if(!(4194304&l.flags)){var u=Lc(n,l.escapedName);if(u){var d=zS(u),p=e.getDeclarationModifierFlagsFromSymbol(l);if(e.Debug.assert(!!d,"derived should point to something, even if it is the base class' declaration."),d===l){var f=e.getClassLikeDeclarationOfSymbol(n.symbol);if(128&p&&(!f||!e.hasSyntacticModifier(f,128))){for(var m=0,_=ds(n);m<_.length;m++){var g=_[m];if(g!==t){var y=Lc(g,l.escapedName),h=y&&zS(y);if(h&&h!==l)continue e}}225===f.kind?kr(f,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Mi(c),Fi(t)):kr(f,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Fi(n),Mi(c),Fi(t))}}else{var v=e.getDeclarationModifierFlagsFromSymbol(d);if(8&p||8&v)continue;var b=void 0,E=98308&l.flags,T=98308&d.flags;if(E&&T){if(128&p&&!(l.valueDeclaration&&e.isPropertyDeclaration(l.valueDeclaration)&&l.valueDeclaration.initializer)||l.valueDeclaration&&257===l.valueDeclaration.parent.kind||d.valueDeclaration&&e.isBinaryExpression(d.valueDeclaration))continue;var S=4!==E&&4===T;if(S||4===E&&4!==T){var x=S?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;kr(e.getNameOfDeclaration(d.valueDeclaration)||d.valueDeclaration,x,Mi(l),Fi(t),Fi(n))}else if(C){var L=null===(r=d.declarations)||void 0===r?void 0:r.find((function(e){return 166===e.kind&&!e.initializer}));if(L&&!(33554432&d.flags)&&!(128&p)&&!(128&v)&&!(null===(a=d.declarations)||void 0===a?void 0:a.some((function(e){return!!(8388608&e.flags)})))){var D=li(e.getClassLikeDeclarationOfSymbol(n.symbol)),A=L.name;if(L.exclamationToken||!D||!e.isIdentifier(A)||!I||!qS(A,n,D)){var k=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;kr(e.getNameOfDeclaration(d.valueDeclaration)||d.valueDeclaration,k,Mi(l),Fi(t))}}}continue}if(Ah(l)){if(Ah(d)||4&d.flags)continue;e.Debug.assert(!!(98304&d.flags)),b=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else b=98304&l.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;kr(e.getNameOfDeclaration(d.valueDeclaration)||d.valueDeclaration,b,Fi(t),Mi(l),Fi(n))}}}}}(a,u)}}!function(n,t,r,a){for(var i=e.getEffectiveBaseTypeNode(n)&&ds(t),o=(null===i||void 0===i?void 0:i.length)?Ks(e.first(i),t.thisType):void 0,s=ls(t),c=function(i){if(e.hasAmbientModifier(i))return"continue";e.isConstructorDeclaration(i)&&e.forEach(i.parameters,(function(c){e.isParameterPropertyDeclaration(c,i)&&KS(n,a,s,o,t,r,c,!0)})),KS(n,a,s,o,t,r,i,!1)},l=0,u=n.members;l<u.length;l++){c(u[l])}}(n,a,i,o);var g=e.getEffectiveImplementsTypeNodes(n);if(g)for(var y=0,h=g;y<h.length;y++){var v=h[y];if(e.isEntityNameExpression(v.expression)&&!e.isOptionalChain(v.expression)||kr(v.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),nT(v),t){var b=zc(Lp(v));if(!ao(b))if(fs(b)){var E,T=b.symbol&&32&b.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;_f(i,E=Ks(b,a.thisType),void 0)||WS(n,i,E,T)}else kr(v,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}t&&(MS(a,r),MS(o,r,!0),JE(n),function(n){if(!I||!R||8388608&n.flags)return;for(var t=li(n),r=0,a=n.members;r<a.length;r++){var i=a[r];if(!(2&e.getEffectiveModifierFlags(i))&&(!e.isStatic(i)&&JS(i))){var o=i.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=Xo(ni(i));3&s.flags||32768&Rm(s)||t&&qS(o,s,t)||kr(i.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(n))}function KS(n,t,r,a,i,o,s,c,l){void 0===l&&(l=!0);var u=s.name&&kx(s.name)||kx(s);return u?HS(n,t,r,a,i,o,e.hasOverrideModifier(s),e.hasAbstractModifier(s),e.isStatic(s),c,e.symbolName(u),l?s:void 0):0}function HS(n,t,r,a,i,o,s,c,l,u,d,p){var f=e.isInJSFile(n),m=!!(8388608&n.flags);if(a&&(s||x.noImplicitOverride)){var _=e.escapeLeadingUnderscores(d),g=l?r:a,y=Qc(l?t:o,_),h=Qc(g,_),v=Fi(a);if(y&&!h&&s){if(p){var b=nv(d,g);b?kr(p,f?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,v,Mi(b)):kr(p,f?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,v)}return 2}if(y&&(null===h||void 0===h?void 0:h.declarations)&&x.noImplicitOverride&&!m){var E=e.some(h.declarations,e.hasAbstractModifier);if(s)return 0;if(!E){if(p)kr(p,u?f?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:f?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,v);return 1}if(c&&E)return p&&kr(p,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,v),1}}else if(s){if(p){var T=Fi(i);kr(p,f?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,T)}return 2}return 0}function WS(n,t,r,a){for(var i=!1,o=function(n){if(e.isStatic(n))return"continue";var a=n.name&&kx(n.name)||kx(n);if(a){var o=Qc(t,a.escapedName),s=Qc(r,a.escapedName);if(o&&s){_f(Xo(o),Xo(s),n.name||n,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Mi(a),Fi(t),Fi(r))}))||(i=!0)}}},s=0,c=n.members;s<c.length;s++){o(c[s])}i||_f(t,r,n.name||n,a)}function zS(n){return 1&e.getCheckFlags(n)?n.target:n}function JS(n){return 166===n.kind&&!e.hasAbstractModifier(n)&&!n.exclamationToken&&!n.initializer}function qS(n,t,r){var a=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);return e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.returnFlowNode,!(32768&Rm(Yg(a,t,Pm(t))))}function XS(n){if(bL(n)||function(n){var t=!1;if(n.heritageClauses)for(var r=0,a=n.heritageClauses;r<a.length;r++){var i=a[r];if(94!==i.token)return e.Debug.assert(117===i.token),WL(i,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return WL(i,e.Diagnostics.extends_clause_already_seen);t=!0,AL(i)}}(n),BS(n.typeParameters),t){GS(n.name,e.Diagnostics.Interface_name_cannot_be_0),cT(n);var r=ni(n);if(VS(r),n===e.getDeclarationOfKind(r,257)){var a=Ss(r),i=Ks(a);if(function(n,t){var r=ds(n);if(r.length<2)return!0;var a=new e.Map;e.forEach(Rs(n).declaredProperties,(function(e){a.set(e.escapedName,{prop:e,containingType:n})}));for(var i=!0,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,u=Cc(Ks(c,n.thisType));l<u.length;l++){var d=u[l],p=a.get(d.escapedName);if(p){if(p.containingType!==n&&!tm(p.prop,d)){i=!1;var f=Fi(p.containingType),m=Fi(c),_=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Mi(d),f,m);_=e.chainDiagnosticMessages(_,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Fi(n),f,m),fr.add(e.createDiagnosticForNodeFromMessageChain(t,_))}}else a.set(d.escapedName,{prop:d,containingType:c})}return i}(a,n.name)){for(var o=0,s=ds(a);o<s.length;o++){_f(i,Ks(s[o],a.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}MS(a,r)}}zE(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),(function(n){e.isEntityNameExpression(n.expression)&&!e.isOptionalChain(n.expression)||kr(n.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),nT(n)})),e.forEach(n.members,mx),t&&(JE(n),DT(n))}function YS(e){var n=zr(e);if(!(16384&n.flags)){n.flags|=16384;for(var t=0,r=0,a=e.members;r<a.length;r++){var i=a[r],o=QS(i,t);zr(i).enumMemberValue=o,t="number"===typeof o?o+1:void 0}}}function QS(n,t){if(e.isComputedNonLiteralName(n.name))kr(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);Qy(r)&&!e.isInfinityOrNaNString(r)&&kr(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return n.initializer?function(n){var t=hs(ni(n.parent)),r=e.isEnumConst(n.parent),a=n.initializer,i=1!==t||ys(n)?s(a):void 0;if(void 0!==i)r&&"number"===typeof i&&!isFinite(i)&&kr(a,isNaN(i)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===t)return kr(a,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(r)kr(a,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&n.parent.flags)kr(a,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=VE(a);lE(o,296)?_f(o,Ss(ni(n.parent)),a,void 0):kr(a,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Fi(o))}}return i;function s(t){switch(t.kind){case 218:var r=s(t.operand);if("number"===typeof r)switch(t.operator){case 39:return r;case 40:return-r;case 54:return~r}break;case 220:var a=s(t.left),i=s(t.right);if("number"===typeof a&&"number"===typeof i)switch(t.operatorToken.kind){case 51:return a|i;case 50:return a&i;case 48:return a>>i;case 49:return a>>>i;case 47:return a<<i;case 52:return a^i;case 41:return a*i;case 43:return a/i;case 39:return a+i;case 40:return a-i;case 44:return a%i;case 42:return Math.pow(a,i)}else if("string"===typeof a&&"string"===typeof i&&39===t.operatorToken.kind)return a+i;break;case 10:case 14:return t.text;case 8:return YL(t),+t.text;case 211:return s(t.expression);case 79:var o=t;return e.isInfinityOrNaNString(o.escapedText)?+o.escapedText:e.nodeIsMissing(t)?0:c(t,ni(n.parent),o.escapedText);case 206:case 205:var l=t;if(ZS(l)){var u=GE(l.expression);if(u.symbol&&384&u.symbol.flags){var d=void 0;return d=205===l.kind?l.name.escapedText:e.escapeLeadingUnderscores(e.cast(l.argumentExpression,e.isLiteralExpression).text),c(t,u.symbol,d)}}}}function c(t,r,a){var i=r.exports.get(a);if(i){var o=i.valueDeclaration;if(o!==n)return o&&Xr(o,n)?tL(o):(kr(t,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);kr(t,e.Diagnostics.Property_0_is_used_before_being_assigned,Mi(i))}}}(n):8388608&n.parent.flags&&!e.isEnumConst(n.parent)&&0===hs(ni(n.parent))?void 0:void 0!==t?t:void kr(n.name,e.Diagnostics.Enum_member_must_have_initializer)}function ZS(n){return 79===n.kind||205===n.kind&&ZS(n.expression)||206===n.kind&&ZS(n.expression)&&e.isStringLiteralLike(n.argumentExpression)}function $S(n){e.isPrivateIdentifier(n.name)&&kr(n,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function ex(n){if(t){var r=e.isGlobalScopeAugmentation(n),a=8388608&n.flags;r&&!a&&kr(n.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(n);if(cx(n,i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;bL(n)||a||10!==n.name.kind||JL(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&zT(n,n.name),cT(n);var o=ni(n);if(512&o.flags&&!a&&o.declarations&&o.declarations.length>1&&Q(n,e.shouldPreserveConstEnums(x))){var s=function(n){var t=n.declarations;if(t)for(var r=0,a=t;r<a.length;r++){var i=a[r];if((256===i.kind||255===i.kind&&e.nodeIsPresent(i.body))&&!(8388608&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(s)?kr(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<s.pos&&kr(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,256);c&&function(n,t){var r=e.getEnclosingBlockScopeContainer(n),a=e.getEnclosingBlockScopeContainer(t);return Jr(r)?Jr(a):!Jr(a)&&r===a}(n,c)&&(zr(n).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(n)){if((r||33554432&ni(n).flags)&&n.body)for(var l=0,u=n.body.statements;l<u.length;l++){nx(u[l],r)}}else Jr(n.parent)?r?kr(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name))&&kr(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):kr(n.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}n.body&&(mx(n.body),e.isGlobalScopeAugmentation(n)||DT(n))}function nx(n,t){var r;switch(n.kind){case 236:for(var a=0,i=n.declarationList.declarations;a<i.length;a++){nx(i[a],t)}break;case 270:case 271:WL(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:WL(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var o=n.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){nx(c[s],t)}break}case 256:case 259:case 255:case 257:case 260:case 258:if(t)return;var l=ni(n);if(l){var u=!(33554432&l.flags);u||(u=!!(null===(r=l.parent)||void 0===r?void 0:r.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function tx(n){var t=e.getExternalModuleName(n);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return kr(t,e.Diagnostics.String_literal_expected),!1;var r=261===n.parent.kind&&e.isAmbientModule(n.parent.parent);return 303===n.parent.kind||r?!(r&&e.isExternalModuleNameRelative(t.text)&&!Wi(n))||(kr(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(kr(t,271===n.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function rx(n){var t,r=ni(n),a=Ia(r);if(a!==Le){var i=(1160127&(r=ei(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);if(a.flags&i)kr(n,274===n.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Mi(r));if(x.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(n)&&!(8388608&n.flags)){var o=Ra(r),s=!(111551&a.flags);if(s||o)switch(n.kind){case 266:case 269:case 264:if(x.preserveValueImports)e.Debug.assertIsDefined(n.name,"An ImportClause with a symbol should have a name"),$r(kr(n,s?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,c=e.idText(269===n.kind&&n.propertyName||n.name)),s?void 0:o,c);break;case 274:var c;if(e.getSourceFileOfNode(o)!==e.getSourceFileOfNode(n))return void $r(kr(n,s?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,c=e.idText(n.propertyName||n.name)),s?void 0:o,c)}}e.isImportSpecifier(n)&&(null===(t=a.declarations)||void 0===t?void 0:t.every((function(n){return!!(134217728&e.getCombinedNodeFlags(n))})))&&Mr(n.name,a.declarations,r.escapedName)}}function ax(n){zT(n,n.name),rx(n),269===n.kind&&"default"===e.idText(n.propertyName||n.name)&&e.getESModuleInterop(x)&&D!==e.ModuleKind.System&&(D<e.ModuleKind.ES2015||e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)&&hL(n,131072)}function ix(n){var t;if(n.assertClause){if(D!==e.ModuleKind.ESNext)return JL(n.assertClause,e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext);if(e.isImportDeclaration(n)?null===(t=n.importClause)||void 0===t?void 0:t.isTypeOnly:n.isTypeOnly)return JL(n.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function ox(n){if(!cx(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){if(!bL(n)&&e.hasEffectiveModifiers(n)&&WL(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),tx(n)){var t=n.importClause;if(t&&!function(n){var t;if(n.isTypeOnly&&n.name&&n.namedBindings)return JL(n,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(n.isTypeOnly&&268===(null===(t=n.namedBindings)||void 0===t?void 0:t.kind))return QL(n.namedBindings);return!1}(t))if(t.name&&ax(t),t.namedBindings)if(267===t.namedBindings.kind)ax(t.namedBindings),D!==e.ModuleKind.System&&(D<e.ModuleKind.ES2015||e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(x)&&hL(n,65536);else Ba(n,n.moduleSpecifier)&&e.forEach(t.namedBindings.elements,ax)}ix(n)}}function sx(n){if(!cx(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){if(!bL(n)&&e.hasEffectiveModifiers(n)&&WL(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&e.isNamedExports(n.exportClause)&&e.length(n.exportClause.elements)&&0===L&&hL(n,4194304),function(n){var t;if(n.isTypeOnly)return 272===(null===(t=n.exportClause)||void 0===t?void 0:t.kind)?QL(n.exportClause):JL(n,e.Diagnostics.Only_named_exports_may_use_export_type)}(n),!n.moduleSpecifier||tx(n))if(n.exportClause&&!e.isNamespaceExport(n.exportClause)){e.forEach(n.exportClause.elements,dx);var t=261===n.parent.kind&&e.isAmbientModule(n.parent.parent),r=!t&&261===n.parent.kind&&!n.moduleSpecifier&&8388608&n.flags;303===n.parent.kind||t||r||kr(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var a=Ba(n,n.moduleSpecifier);a&&za(a)?kr(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Mi(a)):n.exportClause&&rx(n.exportClause),D!==e.ModuleKind.System&&(D<e.ModuleKind.ES2015||e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)&&(n.exportClause?e.getESModuleInterop(x)&&hL(n,65536):hL(n,32768))}ix(n)}}function cx(e,n){var t=303===e.parent.kind||261===e.parent.kind||260===e.parent.kind;return t||WL(e,n),!t}function lx(n){return e.isImportDeclaration(n)&&n.importClause&&!n.importClause.isTypeOnly&&(t=n.importClause,e.forEachImportClauseDeclaration(t,(function(e){return!!ni(e).isReferenced})))&&!Xx(n.importClause,!0)&&!function(n){return e.forEachImportClauseDeclaration(n,(function(e){return!!Wr(ni(e)).constEnumReferenced}))}(n.importClause);var t}function ux(n){return e.isImportEqualsDeclaration(n)&&e.isExternalModuleReference(n.moduleReference)&&!n.isTypeOnly&&ni(n).isReferenced&&!Xx(n,!1)&&!Wr(ni(n)).constEnumReferenced}function dx(n){if(rx(n),e.getEmitDeclarations(x)&&Yi(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)e.getESModuleInterop(x)&&D!==e.ModuleKind.System&&(D<e.ModuleKind.ES2015||e.getSourceFileOfNode(n).impliedNodeFormat===e.ModuleKind.CommonJS)&&"default"===e.idText(n.propertyName||n.name)&&hL(n,131072);else{var t=n.propertyName||n.name,r=Qr(t,t.escapedText,2998271,void 0,void 0,!0);if(r&&(r===ae||r===ie||r.declarations&&Jr(no(r.declarations[0]))))kr(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{Oa(n);var a=r&&(2097152&r.flags?Ia(r):r);(!a||a===Le||111551&a.flags)&&SE(n.propertyName||n.name)}}}function px(n){var t=ni(n),r=Wr(t);if(!r.exportsChecked){var a=t.exports.get("export=");if(a&&function(n){return e.forEachEntry(n.exports,(function(e,n){return"export="!==n}))}(t)){var i=la(a)||a.valueDeclaration;!i||Wi(i)||e.isInJSFile(i)||kr(i,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Qa(t);o&&o.forEach((function(n,t){var r=n.declarations,a=n.flags;if("__export"!==t&&!(1984&a)){var i=e.countWhere(r,K);if(!(524288&a&&i<=2)&&i>1&&!fx(r))for(var o=0,s=r;o<s.length;o++){var c=s[o];Z(c)&&fr.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(t)))}}})),r.exportsChecked=!0}}function fx(n){return n&&n.length>1&&n.every((function(n){return e.isInJSFile(n)&&e.isAccessExpression(n)&&(e.isExportsIdentifier(n.expression)||e.isModuleExportsAccessExpression(n.expression))}))}function mx(n){if(n){var a=o;o=n,v=0,function(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,(function(n){var t=n.tags;return e.forEach(t,mx)}));var a=n.kind;if(r)switch(a){case 260:case 256:case 257:case 255:r.throwIfCancellationRequested()}a>=236&&a<=252&&n.flowNode&&!Wg(n.flowNode)&&Rr(!1===x.allowUnreachableCode,n,e.Diagnostics.Unreachable_code_detected);switch(a){case 162:return jE(n);case 163:return KE(n);case 166:return qE(n);case 165:return function(n){return e.isPrivateIdentifier(n.name)&&kr(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),qE(n)}(n);case 179:case 178:case 173:case 174:case 175:return WE(n);case 168:case 167:return function(n){FL(n)||kL(n.name),LT(n),e.hasSyntacticModifier(n,128)&&168===n.kind&&n.body&&kr(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name)),e.isPrivateIdentifier(n.name)&&!e.getContainingClass(n)&&kr(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),XE(n)}(n);case 169:return function(n){bL(n),e.forEachChild(n,mx)}(n);case 170:return YE(n);case 171:case 172:return QE(n);case 177:return nT(n);case 176:return function(n){var t=function(e){switch(e.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=vl(t),a=Ll(r);if(a){mx(n.type);var i=n.parameterName;if(0===a.kind||2===a.kind)Tp(i);else if(a.parameterIndex>=0)ne(r)&&a.parameterIndex===r.parameters.length-1?kr(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):a.type&&_f(a.type,Xo(r.parameters[a.parameterIndex]),n.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(i){for(var o=!1,s=0,c=t.parameters;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&HE(l,i,a.parameterName)){o=!0;break}}o||kr(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,a.parameterName)}}}else kr(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(n);case 180:return function(e){yu(e)}(n);case 181:return function(n){if(e.forEach(n.members,mx),t){var r=ap(n);MS(r,r.symbol),JE(n),zE(n)}}(n);case 182:return function(e){mx(e.elementType)}(n);case 183:return function(n){for(var t=n.elements,r=!1,a=!1,i=e.some(t,e.isNamedTupleMember),o=0,s=t;o<s.length;o++){var c=s[o];if(196!==c.kind&&i){JL(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=Fu(c);if(8&l){var u=Lp(c.type);if(!um(u)){kr(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(om(u)||Lm(u)&&4&u.target.combinedFlags)&&(a=!0)}else if(4&l){if(a){JL(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}a=!0}else if(2&l){if(a){JL(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}r=!0}else if(r){JL(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elements,mx),Lp(n)}(n);case 186:case 187:return function(n){e.forEach(n.types,mx),Lp(n)}(n);case 190:case 184:case 185:return mx(n.type);case 191:return function(e){Tp(e)}(n);case 192:return aT(n);case 188:return function(n){e.forEachChild(n,mx)}(n);case 189:return function(n){e.findAncestor(n,(function(e){return e.parent&&188===e.parent.kind&&e.parent.extendsType===e}))||JL(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),mx(n.typeParameter),DT(n)}(n);case 197:return function(e){for(var n=0,t=e.templateSpans;n<t.length;n++){var r=t[n];mx(r.type),_f(Lp(r.type),dn,r.type)}Lp(e)}(n);case 199:return function(e){mx(e.argument),Lp(e)}(n);case 196:return function(n){n.dotDotDotToken&&n.questionToken&&JL(n,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),184===n.type.kind&&JL(n.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),185===n.type.kind&&JL(n.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),mx(n.type),Lp(n)}(n);case 326:return function(n){var t=e.getEffectiveJSDocHost(n);if(t&&(e.isClassDeclaration(t)||e.isClassExpression(t))){var r=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(r.length>0),r.length>1&&kr(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=xT(n.class.expression),i=e.getClassExtendsHeritageElement(t);if(i){var o=xT(i.expression);o&&a.escapedText!==o.escapedText&&kr(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(o))}}else kr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 327:return function(n){var t=e.getEffectiveJSDocHost(n);t&&(e.isClassDeclaration(t)||e.isClassExpression(t))||kr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 343:case 336:case 337:return function(n){n.typeExpression||kr(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&GS(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),mx(n.typeExpression),BS(e.getEffectiveTypeParameterDeclarations(n))}(n);case 342:return function(e){mx(e.constraint);for(var n=0,t=e.typeParameters;n<t.length;n++)mx(t[n])}(n);case 341:return function(e){mx(e.typeExpression)}(n);case 338:return function(n){if(mx(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);if(t){var r=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(n);if(r>-1&&r<t.parameters.length&&e.isBindingPattern(t.parameters[r].name))return;El(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!om(Lp(n.typeExpression.type))&&kr(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(160===n.name.kind?n.name.right:n.name)):e.isQualifiedName(n.name)?kr(n.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(n.name),e.entityNameToString(n.name.left)):kr(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}(n);case 345:return function(e){mx(e.typeExpression)}(n);case 315:!function(n){!t||n.type||e.isJSDocConstructSignature(n)||t_(n,Ie),WE(n)}(n);case 313:case 312:case 310:case 311:case 320:return _x(n),void e.forEachChild(n,mx);case 316:return void function(n){_x(n),mx(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent))return void(e.last(t.parent.parameters)!==t&&kr(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list));e.isJSDocTypeExpression(t)||kr(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(!e.isJSDocParameterTag(r))return void kr(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var a=e.getParameterSymbolFromJSDoc(r);if(!a)return;var i=e.getHostSignatureFromJSDoc(r);i&&e.last(i.parameters).symbol===a||kr(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 307:return mx(n.type);case 331:case 333:case 332:return function(n){var t=e.getJSDocHost(n);t&&e.isPrivateIdentifierClassElementDeclaration(t)&&kr(n,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 193:return function(e){mx(e.objectType),mx(e.indexType),tT(Wd(e),e)}(n);case 194:return rT(n);case 255:return function(e){t&&(LT(e),NL(e),zT(e,e.name))}(n);case 234:case 261:return UT(n);case 236:return $T(n);case 237:return function(e){XL(e),VE(e.expression)}(n);case 238:return function(n){XL(n);var t=tS(n.expression);eS(n.expression,t,n.thenStatement),mx(n.thenStatement),235===n.thenStatement.kind&&kr(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),mx(n.elseStatement)}(n);case 239:return function(e){XL(e),mx(e.statement),tS(e.expression)}(n);case 240:return function(e){XL(e),tS(e.expression),mx(e.statement)}(n);case 241:return function(n){XL(n)||n.initializer&&254===n.initializer.kind&&jL(n.initializer),n.initializer&&(254===n.initializer.kind?e.forEach(n.initializer.declarations,QT):VE(n.initializer)),n.condition&&tS(n.condition),n.incrementor&&VE(n.incrementor),mx(n.statement),n.locals&&DT(n)}(n);case 242:return rS(n);case 243:return function(n){wL(n);var t=e.getContainingFunctionOrClassStaticBlock(n);if(n.awaitModifier?t&&e.isClassStaticBlockDeclaration(t)?JL(n.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2===(6&e.getFunctionFlags(t))&&L<99&&hL(n,16384):x.downlevelIteration&&L<2&&hL(n,256),254===n.initializer.kind)aS(n);else{var r=n.initializer,a=iS(n);if(203===r.kind||204===r.kind)_E(r,a||Re);else{var i=VE(r);iE(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),a&&gf(a,i,r,n.expression)}}mx(n.statement),n.locals&&DT(n)}(n);case 244:case 245:return NS(n);case 246:return function(n){var t;if(!XL(n)){var r=e.getContainingFunctionOrClassStaticBlock(n);if(r&&e.isClassStaticBlockDeclaration(r))WL(n,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(r){var a=Cl(vl(r)),i=e.getFunctionFlags(r);if(I||n.expression||131072&a.flags){var o=n.expression?SE(n.expression):Ge;if(172===r.kind)n.expression&&kr(n,e.Diagnostics.Setters_cannot_return_a_value);else if(170===r.kind)n.expression&&!gf(o,a,n,n.expression)&&kr(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Al(r)){var s=null!==(t=RS(a,i))&&void 0!==t?t:a,c=2&i?dT(o,!1,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&gf(c,s,n,n.expression)}}else 170!==r.kind&&x.noImplicitReturns&&!OS(r,a)&&kr(n,e.Diagnostics.Not_all_code_paths_return_a_value)}else WL(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(n);case 247:return function(n){XL(n)||32768&n.flags&&WL(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),VE(n.expression);var t=e.getSourceFileOfNode(n);if(!HL(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start;zL(t,r,n.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(n);case 248:return function(n){var r;XL(n);var a=!1,i=VE(n.expression),o=vm(i);e.forEach(n.caseBlock.clauses,(function(n){if(289!==n.kind||a||(void 0===r?r=n:(JL(n,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),a=!0)),t&&288===n.kind){var s=VE(n.expression),c=vm(s),l=i;c&&o||(s=c?bm(s):s,l=bm(i)),yE(l,s)||Lf(s,l,n.expression,void 0)}e.forEach(n.statements,mx),x.noFallthroughCasesInSwitch&&n.fallthroughFlowNode&&Wg(n.fallthroughFlowNode)&&kr(n,e.Diagnostics.Fallthrough_case_in_switch)})),n.caseBlock.locals&&DT(n.caseBlock)}(n);case 249:return function(n){XL(n)||e.findAncestor(n.parent,(function(t){return e.isFunctionLike(t)?"quit":249===t.kind&&t.label.escapedText===n.label.escapedText&&(JL(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0)})),mx(n.statement)}(n);case 250:return wS(n);case 251:return function(n){XL(n),UT(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration){var r=t.variableDeclaration,a=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(r));if(a){var i=ho(r,!1);!i||3&i.flags||WL(a,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(r.initializer)WL(r.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=t.block.locals;o&&e.forEachKey(t.locals,(function(n){var t=o.get(n);(null===t||void 0===t?void 0:t.valueDeclaration)&&0!==(2&t.flags)&&JL(t.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,n)}))}}UT(t.block)}n.finallyBlock&&UT(n.finallyBlock)}(n);case 253:return QT(n);case 202:return ZT(n);case 256:return function(n){e.some(n.decorators)&&e.some(n.members,(function(n){return e.hasStaticModifier(n)&&e.isPrivateIdentifierClassElementDeclaration(n)}))&&JL(n.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),n.name||e.hasSyntacticModifier(n,512)||WL(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),jS(n),e.forEach(n.members,mx),DT(n)}(n);case 257:return XS(n);case 258:return function(n){bL(n),GS(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),cT(n),BS(n.typeParameters),138===n.type.kind?z.has(n.name.escapedText)&&1===e.length(n.typeParameters)||kr(n.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(mx(n.type),DT(n))}(n);case 259:return function(n){if(t){bL(n),zT(n,n.name),cT(n),n.members.forEach($S),YS(n);var r=ni(n);if(n===e.getDeclarationOfKind(r,n.kind)){if(r.declarations&&r.declarations.length>1){var a=e.isEnumConst(n);e.forEach(r.declarations,(function(n){e.isEnumDeclaration(n)&&e.isEnumConst(n)!==a&&kr(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(n){if(259!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(i?kr(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}}(n);case 260:return ex(n);case 265:return ox(n);case 264:return function(n){if(!cx(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(bL(n),e.isInternalModuleImportEqualsDeclaration(n)||tx(n)))if(ax(n),e.hasSyntacticModifier(n,1)&&Oa(n),276!==n.moduleReference.kind){var t=Ia(ni(n));if(t!==Le){if(111551&t.flags){var r=e.getFirstIdentifier(n.moduleReference);1920&Fa(r,112575).flags||kr(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}788968&t.flags&&GS(n.name,e.Diagnostics.Import_name_cannot_be_0)}n.isTypeOnly&&JL(n,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(D>=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(n).impliedNodeFormat)||n.isTypeOnly||8388608&n.flags||JL(n,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 271:return sx(n);case 270:return function(n){if(!cx(n,n.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var t=303===n.parent.kind?n.parent:n.parent.parent;if(260!==t.kind||e.isAmbientModule(t)){!bL(n)&&e.hasEffectiveModifiers(n)&&WL(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var r=e.getEffectiveTypeAnnotationNode(n);if(r&&_f(SE(n.expression),Lp(r),n.expression),79===n.expression.kind){var a=n.expression,i=Fa(a,67108863,!0,!0,n);if(i){iy(i,a);var o=2097152&i.flags?Ia(i):i;(o===Le||111551&o.flags)&&SE(n.expression)}else SE(n.expression);e.getEmitDeclarations(x)&&Yi(n.expression,!0)}else SE(n.expression);px(t),8388608&n.flags&&!e.isEntityNameExpression(n.expression)&&JL(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!n.isExportEquals||8388608&n.flags||(D>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(n).impliedNodeFormat!==e.ModuleKind.CommonJS?JL(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):D===e.ModuleKind.System&&JL(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?kr(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):kr(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 235:case 252:return void XL(n);case 275:(function(e){ST(e)})(n)}}(n),o=a}}function _x(n){e.isInJSFile(n)||JL(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function gx(n){var t=zr(e.getSourceFileOfNode(n));if(!(1&t.flags)){t.deferredNodes=t.deferredNodes||new e.Map;var r=X(n);t.deferredNodes.set(r,n)}}function yx(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var t=o;switch(o=n,v=0,n.kind){case 207:case 208:case 209:case 164:case 279:yv(n);break;case 212:case 213:case 168:case 167:!function(n){e.Debug.assert(168!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=Al(n);if($b(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Cl(vl(n)),234===n.body.kind)mx(n.body);else{var a=VE(n.body),i=r&&RS(r,t);i&&gf(2===(3&t)?dT(a,!1,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i,n.body,n.body)}}(n);break;case 171:case 172:QE(n);break;case 225:!function(n){e.forEach(n.members,mx),DT(n)}(n);break;case 278:!function(e){Sh(e)}(n);break;case 277:!function(e){Sh(e.openingElement),oh(e.closingElement.tagName)?ph(e.closingElement):VE(e.closingElement.tagName),ch(e)}(n)}o=t,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function hx(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:t.path},!0),e.performance.mark("beforeCheck"),function(t){var r=zr(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,x,n))return;!function(n){!!(8388608&n.flags)&&function(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if((e.isDeclaration(a)||236===a.kind)&&qL(a))return!0}}(n)}(t),e.clear(cr),e.clear(lr),e.clear(ur),e.clear(dr),e.forEach(t.statements,mx),mx(t.endOfFileToken),function(e){var n=zr(e);n.deferredNodes&&n.deferredNodes.forEach(yx)}(t),e.isExternalOrCommonJsModule(t)&&DT(t),t.isDeclarationFile||!x.noUnusedLocals&&!x.noUnusedParameters||CT(bx(t),(function(n,t,r){!e.containsParseError(n)&&vx(t,!!(8388608&n.flags))&&fr.add(r)})),2===x.importsNotUsedAsValues&&!t.isDeclarationFile&&e.isExternalModule(t)&&function(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];(lx(a)||ux(a))&&kr(a,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}(t),e.isExternalOrCommonJsModule(t)&&px(t),cr.length&&(e.forEach(cr,jT),e.clear(cr)),lr.length&&(e.forEach(lr,KT),e.clear(lr)),ur.length&&(e.forEach(ur,HT),e.clear(ur)),dr.length&&(e.forEach(dr,WT),e.clear(dr)),r.flags|=1}}(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function vx(n,t){if(t)return!1;switch(n){case 0:return!!x.noUnusedLocals;case 1:return!!x.noUnusedParameters;default:return e.Debug.assertNever(n)}}function bx(n){return Gt.get(n.path)||e.emptyArray}function Ex(t,a){try{return r=a,function(t){if(Tx(),t){var r=fr.getGlobalDiagnostics(),a=r.length;hx(t);var i=fr.getDiagnostics(t.fileName),o=fr.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,i)}return 0===a&&o.length>0?e.concatenate(o,i):i}return e.forEach(n.getSourceFiles(),hx),fr.getDiagnostics()}(t)}finally{r=void 0}}function Tx(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Sx(e){switch(e.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return e.isTypeOnly;case 269:case 274:return e.parent.parent.isTypeOnly;default:return!1}}function xx(e){for(;160===e.parent.kind;)e=e.parent;return 177===e.parent.kind}function Lx(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function Dx(e,n){return!!Lx(e,(function(e){return e===n}))}function Cx(e){return void 0!==function(e){for(;160===e.parent.kind;)e=e.parent;return 264===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:270===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Ax(n){if(e.isDeclarationName(n))return ni(n.parent);if(e.isInJSFile(n)&&205===n.parent.kind&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)&&!e.isJSDocMemberName(n)){var t=function(n){switch(e.getAssignmentDeclarationKind(n.parent.parent)){case 1:case 3:return ni(n.parent);case 4:case 2:case 5:return ni(n.parent.parent)}}(n);if(t)return t}if(270===n.parent.kind&&e.isEntityNameExpression(n)){var r=Fa(n,2998271,!0);if(r&&r!==Le)return r}else if(e.isEntityName(n)&&Cx(n)){var a=e.getAncestor(n,264);return e.Debug.assert(void 0!==a),Ma(n,!0)}if(e.isEntityName(n)){var i=function(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;if(t&&199===t.kind&&t.qualifier===n)return t}(n);if(i){Lp(i);var o=zr(n).resolvedSymbol;return o===Le?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(n);)n=n.parent;if(function(e){for(;205===e.parent.kind;)e=e.parent;return 227===e.parent.kind}(n)){var s=0;227===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(n)?Fa(n,s):void 0;if(c)return c}if(338===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(162===n.parent.kind&&342===n.parent.parent.kind){e.Debug.assert(!e.isInJSFile(n));var l=e.getTypeParameterFromJsDoc(n.parent);return l&&l.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;var u=e.findAncestor(n,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));s=u?901119:111551;if(79===n.kind){if(e.isJSXTagName(n)&&oh(n))return(m=ph(n.parent))===Le?void 0:m;var d=Fa(n,s,!1,!u,e.getHostSignatureFromJSDoc(n));if(!d&&u){var p=e.findAncestor(n,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return Ix(n,ni(p))}return d}if(e.isPrivateIdentifier(n))return Wh(n);if(205===n.kind||160===n.kind){var f=zr(n);return f.resolvedSymbol?f.resolvedSymbol:(205===n.kind?Uh(n,0):Vh(n,0),!f.resolvedSymbol&&u&&e.isQualifiedName(n)?Ix(n):f.resolvedSymbol)}if(e.isJSDocMemberName(n))return Ix(n)}else if(xx(n)){var m;return(m=Fa(n,s=177===n.parent.kind?788968:1920,!1,!0))&&m!==Le?m:iu(n)}return 176===n.parent.kind?Fa(n,1):void 0}function Ix(n,t){if(e.isEntityName(n)){var r=901119,a=Fa(n,r,!1,!0,e.getHostSignatureFromJSDoc(n));if(!a&&e.isIdentifier(n)&&t&&(a=ei(qr(Ya(t),n.escapedText,r))),a)return a}var i=e.isIdentifier(n)?t:Ix(n.left),o=e.isIdentifier(n)?n.escapedText:n.right.escapedText;if(i){var s=111551&i.flags&&Qc(Xo(i),"prototype");return Qc(s?Xo(s):Ss(i),o)}}function kx(n,t){if(303===n.kind)return e.isExternalModule(n)?ei(n.symbol):void 0;var r=n.parent,a=r.parent;if(!(16777216&n.flags)){if($(n)){var i=ni(r);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?th(i):i}if(e.isLiteralComputedPropertyDeclarationName(n))return ni(r.parent);if(79===n.kind){if(Cx(n))return Ax(n);if(202===r.kind&&200===a.kind&&n===r.propertyName){if(o=Qc(Nx(a),n.escapedText))return o}else if(e.isMetaProperty(r)){var o;if(o=Qc(Nx(r),n.escapedText))return o;if(103===r.keywordToken)return Sb(r).symbol}}switch(n.kind){case 79:case 80:case 205:case 160:return Ax(n);case 108:var s=e.getThisContainer(n,!1);if(e.isFunctionLike(s)){var c=vl(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(n))return VE(n).symbol;case 191:return Tp(n).symbol;case 106:return VE(n).symbol;case 134:var l=n.parent;return l&&170===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(265===n.parent.kind||271===n.parent.kind)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return Ba(n,n,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===n)return ni(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===n?GE(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(a)?Lp(a.objectType):void 0;return u&&Qc(u,e.escapeLeadingUnderscores(n.text));case 88:case 98:case 38:case 84:return ni(n.parent);case 199:return e.isLiteralImportTypeNode(n)?kx(n.argument.literal,t):void 0;case 93:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(n.parent)?Tb(n.parent).symbol:void 0;case 230:return VE(n).symbol;default:return}}}function Nx(n){if(e.isSourceFile(n)&&!e.isExternalModule(n))return Re;if(16777216&n.flags)return Re;var t,r,a=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),i=a&&ms(ni(a.class));if(e.isPartOfTypeNode(n)){var o=Lp(n);return i?Ks(o,i.thisType):o}if(e.isExpressionNode(n))return Ox(n);if(i&&!a.isImplements){var s=e.firstOrUndefined(ds(i));return s?Ks(s,i.thisType):Re}if(Sx(n))return Ss(r=ni(n));if(79===(t=n).kind&&Sx(t.parent)&&e.getNameOfDeclaration(t.parent)===t)return(r=kx(n))?Ss(r):Re;if(e.isDeclaration(n))return Xo(r=ni(n));if($(n))return(r=kx(n))?Xo(r):Re;if(e.isBindingPattern(n))return ho(n.parent,!0)||Re;if(Cx(n)&&(r=kx(n))){var c=Ss(r);return ao(c)?Xo(r):c}return e.isMetaProperty(n.parent)&&n.parent.keywordToken===n.kind?Tb(n.parent):Re}function Rx(n){if(e.Debug.assert(204===n.kind||203===n.kind),243===n.parent.kind)return _E(n,iS(n.parent)||Re);if(220===n.parent.kind)return _E(n,GE(n.parent.right)||Re);if(294===n.parent.kind){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression);return fE(t,Rx(t)||Re,e.indexOfNode(t.properties,n.parent))}var r=e.cast(n.parent,e.isArrayLiteralExpression),a=Rx(r)||Re,i=oS(65,a,Ge,n.parent)||Re;return mE(r,a,r.elements.indexOf(n),i)}function Ox(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),_p(GE(n))}function wx(n){var t=ni(n.parent);return e.isStatic(n)?Xo(t):Ss(t)}function Mx(n){var t=n.name;switch(t.kind){case 79:return yp(e.idText(t));case 8:case 10:return yp(t.text);case 161:var r=Zy(t);return lE(r,12288)?r:He;default:return e.Debug.fail("Unsupported property name.")}}function Px(n){n=Vc(n);var t=e.createSymbolTable(Cc(n)),r=$c(n,0).length?Nn:$c(n,1).length?Rn:void 0;return r&&e.forEach(Cc(r),(function(e){t.has(e.escapedName)||t.set(e.escapedName,e)})),gi(t)}function Fx(n){return e.typeHasCallOrConstructSignatures(n,le)}function Gx(n){if(e.isGeneratedIdentifier(n))return!1;var t=e.getParseTreeNode(n,e.isIdentifier);if(!t)return!1;var r=t.parent;return!!r&&(!((e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===t)&&dL(t)===se)}function Bx(n){var t=Ba(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=za(t),a=Wr(t=Ka(t));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(Qa(t),(function(e){return(e=Aa(e))&&!!(111551&e.flags)}))),a.exportsSomeValue}function Ux(n,t){var r,a=e.getParseTreeNode(n,e.isIdentifier);if(a){var i=dL(a,function(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}(a));if(i){if(1048576&i.flags){var o=ei(i.exportSymbol);if(!t&&944&o.flags&&!(3&o.flags))return;i=o}var s=ti(i);if(s){if(512&s.flags&&303===(null===(r=s.valueDeclaration)||void 0===r?void 0:r.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(a)?void 0:c}return e.findAncestor(a.parent,(function(n){return e.isModuleOrEnumDeclaration(n)&&ni(n)===s}))}}}}function Vx(n){if(n.generatedImportReference)return n.generatedImportReference;var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=dL(t);if(Ca(r,111551)&&!Ra(r))return la(r)}}function jx(n){if(418&n.flags&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)){var t=Wr(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||function(n){return n.valueDeclaration&&e.isBindingElement(n.valueDeclaration)&&291===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}(n)){var a=zr(n.valueDeclaration);if(Qr(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(262144&a.flags){var i=524288&a.flags,o=e.isIterationStatement(r,!1),s=234===r.kind&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(r)&&(!i||!o&&!s)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function Kx(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=dL(t);if(r&&jx(r))return r.valueDeclaration}}}function Hx(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=ni(t);if(r)return jx(r)}return!1}function Wx(n){switch(n.kind){case 264:return Jx(ni(n));case 266:case 267:case 269:case 274:var t=ni(n);return!!t&&Jx(t)&&!Ra(t);case 271:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,Wx));case 270:return!n.expression||79!==n.expression.kind||Jx(ni(n))}return!1}function zx(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);return!(void 0===t||303!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Jx(ni(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Jx(n){if(!n)return!1;var t=Ia(n);return t===Le||!!(111551&t.flags)&&(e.shouldPreserveConstEnums(x)||!qx(t))}function qx(e){return pE(e)||!!e.constEnumOnlyModule}function Xx(n,t){if(ua(n)){var r=ni(n),a=r&&Wr(r);if(null===a||void 0===a?void 0:a.referenced)return!0;var i=Wr(r).target;if(i&&1&e.getEffectiveModifierFlags(n)&&111551&i.flags&&(e.shouldPreserveConstEnums(x)||!qx(i)))return!0}return!!t&&!!e.forEachChild(n,(function(e){return Xx(e,t)}))}function Yx(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Tl(ni(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function Qx(n){return!!I&&!ml(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasSyntacticModifier(n,16476)}function Zx(n){return I&&ml(n)&&!n.initializer&&e.hasSyntacticModifier(n,16476)}function $x(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=ni(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(Ya(r),(function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)}))}function eL(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=ni(t);return r&&Cc(Xo(r))||e.emptyArray}function nL(e){var n,t=e.id||0;return t<0||t>=$t.length?0:(null===(n=$t[t])||void 0===n?void 0:n.flags)||0}function tL(e){return YS(e.parent),zr(e).enumMemberValue}function rL(e){switch(e.kind){case 297:case 205:case 206:return!0}return!1}function aL(n){if(297===n.kind)return tL(n);var t=zr(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return tL(r)}}function iL(e){return!!(524288&e.flags)&&$c(e,0).length>0}function oL(n,t){var r,a,i=e.getParseTreeNode(n,e.isEntityName);if(!i)return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(i)){var s=Fa(e.getFirstIdentifier(i),111551,!0,!0,t);o=!!(null===(r=null===s||void 0===s?void 0:s.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Fa(i,111551,!0,!0,t),l=c&&2097152&c.flags?Ia(c):c;o||(o=!!(null===(a=null===c||void 0===c?void 0:c.declarations)||void 0===a?void 0:a.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Fa(i,788968,!0,!1,t);if(l&&l===u){var d=ku(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=Xo(l);if(p&&is(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var f=Ss(u);return ao(f)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&f.flags?e.TypeReferenceSerializationKind.ObjectType:lE(f,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:lE(f,528)?e.TypeReferenceSerializationKind.BooleanType:lE(f,296)?e.TypeReferenceSerializationKind.NumberLikeType:lE(f,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:lE(f,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Lm(f)?e.TypeReferenceSerializationKind.ArrayLikeType:lE(f,12288)?e.TypeReferenceSerializationKind.ESSymbolType:iL(f)?e.TypeReferenceSerializationKind.TypeWithCallSignature:om(f)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function sL(n,t,r,a,i){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(130);var s=ni(o),c=!s||133120&s.flags?Re:Em(Xo(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),i&&(c=Pm(c)),W.typeToTypeNode(c,t,1024|r,a)}function cL(n,t,r,a){var i=e.getParseTreeNode(n,e.isFunctionLike);if(!i)return e.factory.createToken(130);var o=vl(i);return W.typeToTypeNode(Cl(o),t,1024|r,a)}function lL(n,t,r,a){var i=e.getParseTreeNode(n,e.isExpression);if(!i)return e.factory.createToken(130);var o=$m(Ox(i));return W.typeToTypeNode(o,t,1024|r,a)}function uL(n){return re.has(e.escapeLeadingUnderscores(n))}function dL(n,t){var r=zr(n).resolvedSymbol;if(r)return r;var a=n;if(t){var i=n.parent;e.isDeclaration(i)&&n===i.name&&(a=no(i))}return Qr(a,n.escapedText,3257279,void 0,void 0,!0)}function pL(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=dL(t);if(r)return si(r).valueDeclaration}}}function fL(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&gp(Xo(ni(n)))}function mL(n,t){return function(n,t,r){var a=1024&n.flags?W.symbolToExpression(n.symbol,111551,t,void 0,r):n===Xe?e.factory.createTrue():n===Je&&e.factory.createFalse();if(a)return a;var i=n.value;return"object"===typeof i?e.factory.createBigIntLiteral(i):"number"===typeof i?e.factory.createNumericLiteral(i):e.factory.createStringLiteral(i)}(Xo(ni(n)),n,t)}function _L(n){return n?(Lr(n),e.getSourceFileOfNode(n).localJsxFactory||bt):bt}function gL(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var r=t.pragmas.get("jsxfrag"),a=e.isArray(r)?r[0]:r;if(a)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,L),t.localJsxFragmentFactory}}if(x.jsxFragmentFactory)return e.parseIsolatedEntityName(x.jsxFragmentFactory,L)}function yL(n){var t=260===n.kind?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=Ua(t,t,void 0);if(r)return e.getDeclarationOfKind(r,303)}function hL(n,t){if((a&t)!==t&&x.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,x)&&!(8388608&n.flags)){var o=function(n,t){i||(i=Va(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Le);return i}(r,n);if(o!==Le)for(var s=t&~a,c=1;c<=4194304;c<<=1)if(s&c){var l=vL(c),u=qr(o.exports,e.escapeLeadingUnderscores(l),111551);u?524288&c?e.some(Tl(u),(function(e){return Ob(e)>3}))||kr(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(Tl(u),(function(e){return Ob(e)>4}))||kr(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(Tl(u),(function(e){return Ob(e)>2}))||kr(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):kr(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l)}a|=t}}}function vL(n){switch(n){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function bL(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 168!==n.kind||e.nodeIsPresent(n.body)?WL(n,e.Diagnostics.Decorators_are_not_valid_here):WL(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(171===n.kind||172===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return WL(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(n)||function(n){var t,r,a,i,o,s=function(n){return!!n.modifiers&&(function(n){switch(n.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(261===n.parent.kind||303===n.parent.kind)return!1;switch(n.kind){case 255:return EL(n,131);case 256:case 179:return EL(n,126);case 257:case 236:case 258:case 169:return!0;case 259:return EL(n,85);default:e.Debug.fail()}}}(n)?WL(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(n);if(void 0!==s)return s;for(var c=0,l=0,u=n.modifiers;l<u.length;l++){var d=u[l];if(144!==d.kind){if(165===n.kind||167===n.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(175===n.kind&&(124!==d.kind||!e.isClassLike(n.parent)))return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}switch(d.kind){case 85:if(259!==n.kind)return JL(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(16384&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"override");if(2&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");c|=16384,o=d;break;case 123:case 122:case 121:var p=Hi(e.modifierToFlag(d.kind));if(28&c)return JL(d,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"override");if(32&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"static");if(64&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"readonly");if(256&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"async");if(261===n.parent.kind||303===n.parent.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,p);if(128&c)return 121===d.kind?JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,p,"abstract"):JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(n))return JL(d,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=e.modifierToFlag(d.kind);break;case 124:if(32&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(261===n.parent.kind||303===n.parent.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(163===n.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");c|=32,t=d;break;case 144:if(64&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(166!==n.kind&&165!==n.kind&&175!==n.kind&&163!==n.kind)return JL(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);c|=64,i=d;break;case 93:if(1&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(n.parent))return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(163===n.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");c|=1;break;case 88:var f=303===n.parent.kind?n.parent:n.parent.parent;if(260===f.kind&&!e.isAmbientModule(f))return JL(d,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&c))return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");c|=512;break;case 135:if(2&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(n.parent)&&!e.isPropertyDeclaration(n))return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(163===n.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&n.parent.flags&&261===n.parent.kind)return JL(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(n))return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");c|=2,r=d;break;case 126:if(128&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(256!==n.kind&&179!==n.kind){if(168!==n.kind&&166!==n.kind&&171!==n.kind&&172!==n.kind)return JL(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(256!==n.parent.kind||!e.hasSyntacticModifier(n.parent,128))return JL(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&c&&a)return JL(a,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&c)return JL(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(n)&&80===n.name.kind)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=128;break;case 131:if(256&c)return JL(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&c||8388608&n.parent.flags)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(163===n.kind)return JL(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&c)return JL(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=256,a=d}}if(170===n.kind)return 32&c?JL(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&c?JL(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):16384&c?JL(o,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):256&c?JL(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&c)&&JL(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((265===n.kind||264===n.kind)&&2&c)return JL(r,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(163===n.kind&&16476&c&&e.isBindingPattern(n.name))return JL(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(163===n.kind&&16476&c&&n.dotDotDotToken)return JL(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);if(256&c)return function(n,t){switch(n.kind){case 168:case 255:case 212:case 213:return!1}return JL(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(n,a);return!1}(n)}function EL(e,n){return e.modifiers.length>1||e.modifiers[0].kind!==n}function TL(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&zL(n[0],n.end-",".length,",".length,t)}function SL(n,t){if(n&&0===n.length){var r=n.pos-"<".length;return zL(t,r,e.skipTrivia(t.text,n.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function xL(n){if(L>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=(i=n.parameters,e.filter(i,(function(n){return!!n.initializer||e.isBindingPattern(n.name)||e.isRestParameter(n)})));if(e.length(r)){e.forEach(r,(function(n){e.addRelatedInfo(kr(n,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))}));var a=r.map((function(n,t){return 0===t?e.createDiagnosticForNode(n,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(n,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,pa([kr(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var i;return!1}function LL(n){var t=e.getSourceFileOfNode(n);return bL(n)||SL(n.typeParameters,t)||function(n){for(var t=!1,r=n.length,a=0;a<r;a++){var i=n[a];if(i.dotDotDotToken){if(a!==r-1)return JL(i.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&i.flags||TL(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return JL(i.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return JL(i.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(ml(i)){if(t=!0,i.questionToken&&i.initializer)return JL(i.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return JL(i.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(n.parameters)||function(n,t){if(!e.isArrowFunction(n))return!1;n.typeParameters&&!(e.length(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&t&&e.fileExtensionIsOneOf(t.fileName,[".mts",".cts"])&&JL(n.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var r=n.equalsGreaterThanToken,a=e.getLineAndCharacterOfPosition(t,r.pos).line,i=e.getLineAndCharacterOfPosition(t,r.end).line;return a!==i&&JL(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(n,t)||e.isFunctionLikeDeclaration(n)&&xL(n)}function DL(n,t){return TL(t)||function(n,t){if(t&&0===t.length){var r=e.getSourceFileOfNode(n),a=t.pos-"<".length;return zL(r,a,e.skipTrivia(r.text,t.end)+">".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(n,t)}function CL(n){return function(n){if(n)for(var t=0,r=n;t<r.length;t++){var a=r[t];if(226===a.kind)return zL(a,a.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(n)}function AL(n){var t=n.types;if(TL(t))return!0;if(t&&0===t.length){var r=e.tokenToString(n.token);return zL(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(t,IL)}function IL(e){return DL(e,e.typeArguments)}function kL(n){if(161!==n.kind)return!1;var t=n;return 220===t.expression.kind&&27===t.expression.operatorToken.kind&&JL(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function NL(n){if(n.asteriskToken){if(e.Debug.assert(255===n.kind||212===n.kind||168===n.kind),8388608&n.flags)return JL(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return JL(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function RL(e,n){return!!e&&JL(e,n)}function OL(e,n){return!!e&&JL(e,n)}function wL(n){if(XL(n))return!0;if(243===n.kind&&n.awaitModifier&&!(32768&n.flags)){var t=e.getSourceFileOfNode(n);if(e.isInTopLevelContext(n))HL(t)||(e.isEffectiveExternalModule(t,x)||fr.add(e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),(D!==e.ModuleKind.ES2022&&D!==e.ModuleKind.ESNext&&D!==e.ModuleKind.System&&(D!==e.ModuleKind.NodeNext||e.getSourceFileOfNode(n).impliedNodeFormat!==e.ModuleKind.ESNext)||L<4)&&fr.add(e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!HL(t)){var r=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),a=e.getContainingFunction(n);if(a&&170!==a.kind){e.Debug.assert(0===(2&e.getFunctionFlags(a)),"Enclosing function should never be an async function.");var i=e.createDiagnosticForNode(a,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,i)}return fr.add(r),!0}return!1}if(e.isForOfStatement(n)&&!(32768&n.flags)&&e.isIdentifier(n.initializer)&&"async"===n.initializer.escapedText)return JL(n.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(254===n.initializer.kind){var o=n.initializer;if(!jL(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1){r=242===n.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return WL(o.declarations[1],r)}var c=s[0];if(c.initializer){var r=242===n.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return JL(c.name,r)}if(c.type)return JL(c,r=242===n.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function ML(n){if(n.parameters.length===(171===n.kind?1:2))return e.getThisParameter(n)}function PL(n,t){if(function(n){return e.isDynamicName(n)&&!ws(n)}(n))return JL(n,t)}function FL(n){if(LL(n))return!0;if(168===n.kind){if(204===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||131!==e.first(n.modifiers).kind))return WL(n,e.Diagnostics.Modifiers_cannot_appear_here);if(RL(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(OL(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return zL(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(NL(n))return!0}if(e.isClassLike(n.parent)){if(L<2&&e.isPrivateIdentifier(n.name))return JL(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&n.flags)return PL(n.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(168===n.kind&&!n.body)return PL(n.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(257===n.parent.kind)return PL(n.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(181===n.parent.kind)return PL(n.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function GL(n){return e.isStringOrNumericLiteralLike(n)||218===n.kind&&40===n.operator&&8===n.operand.kind}function BL(n){var t,r=n.initializer;if(r){var a=!(GL(r)||function(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&GL(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&SE(n).flags)}(r)||110===r.kind||95===r.kind||(t=r,9===t.kind||218===t.kind&&40===t.operator&&9===t.operand.kind)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!i||n.type)return JL(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(a)return JL(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!i||a)return JL(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function UL(n){if(79===n.kind){if("__esModule"===e.idText(n))return function(n,t,r,a,i,o){if(!HL(e.getSourceFileOfNode(t)))return Ar(n,t,r,a,i,o),!0;return!1}("noEmit",n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];if(!e.isOmittedExpression(a))return UL(a.name)}return!1}function VL(n){if(79===n.kind){if(119===n.originalKeywordKind)return JL(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];e.isOmittedExpression(a)||VL(a.name)}return!1}function jL(n){var t=n.declarations;return!!TL(n.declarations)||!n.declarations.length&&zL(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function KL(e){switch(e.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return KL(e.parent)}return!0}function HL(e){return e.parseDiagnostics.length>0}function WL(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!HL(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return fr.add(e.createFileDiagnostic(o,s.start,s.length,t,r,a,i)),!0}return!1}function zL(n,t,r,a,i,o,s){var c=e.getSourceFileOfNode(n);return!HL(c)&&(fr.add(e.createFileDiagnostic(c,t,r,a,i,o,s)),!0)}function JL(n,t,r,a,i){return!HL(e.getSourceFileOfNode(n))&&(fr.add(e.createDiagnosticForNode(n,t,r,a,i)),!0)}function qL(n){return 257!==n.kind&&258!==n.kind&&265!==n.kind&&264!==n.kind&&271!==n.kind&&270!==n.kind&&263!==n.kind&&!e.hasSyntacticModifier(n,515)&&WL(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function XL(n){if(8388608&n.flags){if(!zr(n).hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return zr(n).hasReportedStatementInAmbientContext=WL(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(234===n.parent.kind||261===n.parent.kind||303===n.parent.kind){var t=zr(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=WL(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function YL(n){if(32&n.numericLiteralFlags){var t=void 0;if(L>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,195)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,297)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&40===n.parent.operator,a=(r?"-":"")+"0o"+n.text;return JL(r?n.parent:n,t,a)}}return function(n){if(16&n.numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf("."))return;var t=+e.getTextOfNode(n);if(t<=Math.pow(2,53)-1&&t+1>t)return;Nr(!1,e.createDiagnosticForNode(n,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(n),!1}function QL(n){return!!e.forEach(n.elements,(function(n){if(n.isTypeOnly)return WL(n,269===n.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function ZL(n,t,r,a){if(1048576&t.flags&&2621440&n.flags){var i=Q_(t,n);if(i)return i;var o=Cc(n);if(o){var s=q_(o,t);if(s)return jf(t,e.map(s,(function(e){return[function(){return Xo(e)},e.escapedName]})),r,void 0,a)}}}},(W=H||(H={})).JSX="JSX",W.IntrinsicElements="IntrinsicElements",W.ElementClass="ElementClass",W.ElementAttributesPropertyNameContainer="ElementAttributesProperty",W.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",W.Element="Element",W.IntrinsicAttributes="IntrinsicAttributes",W.IntrinsicClassAttributes="IntrinsicClassAttributes",W.LibraryManagedAttributes="LibraryManagedAttributes",e.signatureHasRestParameter=ne,e.signatureHasLiteralTypes=te}(ha||(ha={})),function(e){function n(n,t,r,a){if(void 0===n||void 0===t)return n;var i,o=t(n);return o===n?n:void 0!==o?(i=e.isArray(o)?(a||c)(o):o,e.Debug.assertNode(i,r),i):void 0}function t(n,t,r,a,i){if(void 0===n||void 0===t)return n;var o,s,c=n.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>c-a)&&(i=c-a);var l=-1,u=-1;(a>0||i<c)&&(o=[],s=n.hasTrailingComma&&a+i===c);for(var d=0;d<i;d++){var p=n[d+a],f=void 0!==p?t(p):void 0;if((void 0!==o||void 0===f||f!==p)&&(void 0===o&&(o=n.slice(0,d),s=n.hasTrailingComma,l=n.pos,u=n.end),f))if(e.isArray(f))for(var m=0,_=f;m<_.length;m++){var g=_[m];e.Debug.assertNode(g,r),o.push(g)}else e.Debug.assertNode(f,r),o.push(f)}if(o){var y=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(y,l,u),y}return n}function r(n,r,a,i,o,s){return void 0===s&&(s=t),a.startLexicalEnvironment(),n=s(n,r,e.isStatement,i),o&&(n=a.factory.ensureUseStrict(n)),e.factory.mergeLexicalEnvironment(n,a.endLexicalEnvironment())}function a(n,r,a,o){var s;return void 0===o&&(o=t),a.startLexicalEnvironment(),n&&(a.setLexicalEnvironmentFlags(1,!0),s=o(n,r,e.isParameterDeclaration),2&a.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(a.getCompilerOptions())>=2&&(s=function(n,t){for(var r,a=0;a<n.length;a++){var o=n[a],s=i(o,t);(r||s!==o)&&(r||(r=n.slice(0,a)),r[a]=s)}if(r)return e.setTextRange(t.factory.createNodeArray(r,n.hasTrailingComma),n);return n}(s,a)),a.setLexicalEnvironmentFlags(1,!1)),a.suspendLexicalEnvironment(),s}function i(n,t){return n.dotDotDotToken?n:e.isBindingPattern(n.name)?function(e,n){var t=n.factory;return n.addInitializationStatement(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e.name,void 0,e.type,e.initializer?t.createConditionalExpression(t.createStrictEquality(t.getGeneratedNameForNode(e),t.createVoidZero()),void 0,e.initializer,void 0,t.getGeneratedNameForNode(e)):t.getGeneratedNameForNode(e))]))),t.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,t.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(n,t):n.initializer?function(n,t,r,a){var i=a.factory;return a.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(t),"undefined"),e.setEmitFlags(e.setTextRange(i.createBlock([i.createExpressionStatement(e.setEmitFlags(e.setTextRange(i.createAssignment(e.setEmitFlags(i.cloneNode(t),48),e.setEmitFlags(r,1584|e.getEmitFlags(r))),n),1536))]),n),1953))),i.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,void 0)}(n,n.name,n.initializer,t):n}function o(t,r,a,i){void 0===i&&(i=n),a.resumeLexicalEnvironment();var o=i(t,r,e.isConciseBody),s=a.endLexicalEnvironment();if(e.some(s)){if(!o)return a.factory.createBlock(s);var c=a.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return a.factory.updateBlock(c,l)}return o}function s(t,r,a){a.startBlockScope();var i=n(t,r,e.isStatement,a.factory.liftToBlock),o=a.endBlockScope();return e.some(o)?e.isBlock(i)?(o.push.apply(o,i.statements),a.factory.updateBlock(i,o)):(o.push(i),a.factory.createBlock(o)):i}function c(n){return e.Debug.assert(n.length<=1,"Too many nodes written to output."),e.singleOrUndefined(n)}e.visitNode=n,e.visitNodes=t,e.visitLexicalEnvironment=r,e.visitParameterList=a,e.visitFunctionBody=o,e.visitIterationBody=s,e.visitEachChild=function(i,c,l,u,d,p){if(void 0===u&&(u=t),void 0===p&&(p=n),void 0!==i){var f=i.kind;if(f>0&&f<=159||191===f)return i;var m=l.factory;switch(f){case 79:return e.Debug.type(i),m.updateIdentifier(i,u(i.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(i),m.updateQualifiedName(i,p(i.left,c,e.isEntityName),p(i.right,c,e.isIdentifier));case 161:return e.Debug.type(i),m.updateComputedPropertyName(i,p(i.expression,c,e.isExpression));case 162:return e.Debug.type(i),m.updateTypeParameterDeclaration(i,p(i.name,c,e.isIdentifier),p(i.constraint,c,e.isTypeNode),p(i.default,c,e.isTypeNode));case 163:return e.Debug.type(i),m.updateParameterDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.dotDotDotToken,d,e.isDotDotDotToken),p(i.name,c,e.isBindingName),p(i.questionToken,d,e.isQuestionToken),p(i.type,c,e.isTypeNode),p(i.initializer,c,e.isExpression));case 164:return e.Debug.type(i),m.updateDecorator(i,p(i.expression,c,e.isExpression));case 165:return e.Debug.type(i),m.updatePropertySignature(i,u(i.modifiers,c,e.isModifier),p(i.name,c,e.isPropertyName),p(i.questionToken,d,e.isToken),p(i.type,c,e.isTypeNode));case 166:return e.Debug.type(i),m.updatePropertyDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isPropertyName),p(i.questionToken||i.exclamationToken,d,e.isQuestionOrExclamationToken),p(i.type,c,e.isTypeNode),p(i.initializer,c,e.isExpression));case 167:return e.Debug.type(i),m.updateMethodSignature(i,u(i.modifiers,c,e.isModifier),p(i.name,c,e.isPropertyName),p(i.questionToken,d,e.isQuestionToken),u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.parameters,c,e.isParameterDeclaration),p(i.type,c,e.isTypeNode));case 168:return e.Debug.type(i),m.updateMethodDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.asteriskToken,d,e.isAsteriskToken),p(i.name,c,e.isPropertyName),p(i.questionToken,d,e.isQuestionToken),u(i.typeParameters,c,e.isTypeParameterDeclaration),a(i.parameters,c,l,u),p(i.type,c,e.isTypeNode),o(i.body,c,l,p));case 170:return e.Debug.type(i),m.updateConstructorDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),a(i.parameters,c,l,u),o(i.body,c,l,p));case 171:return e.Debug.type(i),m.updateGetAccessorDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isPropertyName),a(i.parameters,c,l,u),p(i.type,c,e.isTypeNode),o(i.body,c,l,p));case 172:return e.Debug.type(i),m.updateSetAccessorDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isPropertyName),a(i.parameters,c,l,u),o(i.body,c,l,p));case 169:return e.Debug.type(i),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),m.updateClassStaticBlockDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),o(i.body,c,l,p));case 173:return e.Debug.type(i),m.updateCallSignature(i,u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.parameters,c,e.isParameterDeclaration),p(i.type,c,e.isTypeNode));case 174:return e.Debug.type(i),m.updateConstructSignature(i,u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.parameters,c,e.isParameterDeclaration),p(i.type,c,e.isTypeNode));case 175:return e.Debug.type(i),m.updateIndexSignature(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),u(i.parameters,c,e.isParameterDeclaration),p(i.type,c,e.isTypeNode));case 176:return e.Debug.type(i),m.updateTypePredicateNode(i,p(i.assertsModifier,c,e.isAssertsKeyword),p(i.parameterName,c,e.isIdentifierOrThisTypeNode),p(i.type,c,e.isTypeNode));case 177:return e.Debug.type(i),m.updateTypeReferenceNode(i,p(i.typeName,c,e.isEntityName),u(i.typeArguments,c,e.isTypeNode));case 178:return e.Debug.type(i),m.updateFunctionTypeNode(i,u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.parameters,c,e.isParameterDeclaration),p(i.type,c,e.isTypeNode));case 179:return e.Debug.type(i),m.updateConstructorTypeNode(i,u(i.modifiers,c,e.isModifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.parameters,c,e.isParameterDeclaration),p(i.type,c,e.isTypeNode));case 180:return e.Debug.type(i),m.updateTypeQueryNode(i,p(i.exprName,c,e.isEntityName));case 181:return e.Debug.type(i),m.updateTypeLiteralNode(i,u(i.members,c,e.isTypeElement));case 182:return e.Debug.type(i),m.updateArrayTypeNode(i,p(i.elementType,c,e.isTypeNode));case 183:return e.Debug.type(i),m.updateTupleTypeNode(i,u(i.elements,c,e.isTypeNode));case 184:return e.Debug.type(i),m.updateOptionalTypeNode(i,p(i.type,c,e.isTypeNode));case 185:return e.Debug.type(i),m.updateRestTypeNode(i,p(i.type,c,e.isTypeNode));case 186:return e.Debug.type(i),m.updateUnionTypeNode(i,u(i.types,c,e.isTypeNode));case 187:return e.Debug.type(i),m.updateIntersectionTypeNode(i,u(i.types,c,e.isTypeNode));case 188:return e.Debug.type(i),m.updateConditionalTypeNode(i,p(i.checkType,c,e.isTypeNode),p(i.extendsType,c,e.isTypeNode),p(i.trueType,c,e.isTypeNode),p(i.falseType,c,e.isTypeNode));case 189:return e.Debug.type(i),m.updateInferTypeNode(i,p(i.typeParameter,c,e.isTypeParameterDeclaration));case 199:return e.Debug.type(i),m.updateImportTypeNode(i,p(i.argument,c,e.isTypeNode),p(i.qualifier,c,e.isEntityName),t(i.typeArguments,c,e.isTypeNode),i.isTypeOf);case 196:return e.Debug.type(i),m.updateNamedTupleMember(i,n(i.dotDotDotToken,c,e.isDotDotDotToken),n(i.name,c,e.isIdentifier),n(i.questionToken,c,e.isQuestionToken),n(i.type,c,e.isTypeNode));case 190:return e.Debug.type(i),m.updateParenthesizedType(i,p(i.type,c,e.isTypeNode));case 192:return e.Debug.type(i),m.updateTypeOperatorNode(i,p(i.type,c,e.isTypeNode));case 193:return e.Debug.type(i),m.updateIndexedAccessTypeNode(i,p(i.objectType,c,e.isTypeNode),p(i.indexType,c,e.isTypeNode));case 194:return e.Debug.type(i),m.updateMappedTypeNode(i,p(i.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),p(i.typeParameter,c,e.isTypeParameterDeclaration),p(i.nameType,c,e.isTypeNode),p(i.questionToken,d,e.isQuestionOrPlusOrMinusToken),p(i.type,c,e.isTypeNode),u(i.members,c,e.isTypeElement));case 195:return e.Debug.type(i),m.updateLiteralTypeNode(i,p(i.literal,c,e.isExpression));case 197:return e.Debug.type(i),m.updateTemplateLiteralType(i,p(i.head,c,e.isTemplateHead),u(i.templateSpans,c,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(i),m.updateTemplateLiteralTypeSpan(i,p(i.type,c,e.isTypeNode),p(i.literal,c,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(i),m.updateObjectBindingPattern(i,u(i.elements,c,e.isBindingElement));case 201:return e.Debug.type(i),m.updateArrayBindingPattern(i,u(i.elements,c,e.isArrayBindingElement));case 202:return e.Debug.type(i),m.updateBindingElement(i,p(i.dotDotDotToken,d,e.isDotDotDotToken),p(i.propertyName,c,e.isPropertyName),p(i.name,c,e.isBindingName),p(i.initializer,c,e.isExpression));case 203:return e.Debug.type(i),m.updateArrayLiteralExpression(i,u(i.elements,c,e.isExpression));case 204:return e.Debug.type(i),m.updateObjectLiteralExpression(i,u(i.properties,c,e.isObjectLiteralElementLike));case 205:return 32&i.flags?(e.Debug.type(i),m.updatePropertyAccessChain(i,p(i.expression,c,e.isExpression),p(i.questionDotToken,d,e.isQuestionDotToken),p(i.name,c,e.isMemberName))):(e.Debug.type(i),m.updatePropertyAccessExpression(i,p(i.expression,c,e.isExpression),p(i.name,c,e.isMemberName)));case 206:return 32&i.flags?(e.Debug.type(i),m.updateElementAccessChain(i,p(i.expression,c,e.isExpression),p(i.questionDotToken,d,e.isQuestionDotToken),p(i.argumentExpression,c,e.isExpression))):(e.Debug.type(i),m.updateElementAccessExpression(i,p(i.expression,c,e.isExpression),p(i.argumentExpression,c,e.isExpression)));case 207:return 32&i.flags?(e.Debug.type(i),m.updateCallChain(i,p(i.expression,c,e.isExpression),p(i.questionDotToken,d,e.isQuestionDotToken),u(i.typeArguments,c,e.isTypeNode),u(i.arguments,c,e.isExpression))):(e.Debug.type(i),m.updateCallExpression(i,p(i.expression,c,e.isExpression),u(i.typeArguments,c,e.isTypeNode),u(i.arguments,c,e.isExpression)));case 208:return e.Debug.type(i),m.updateNewExpression(i,p(i.expression,c,e.isExpression),u(i.typeArguments,c,e.isTypeNode),u(i.arguments,c,e.isExpression));case 209:return e.Debug.type(i),m.updateTaggedTemplateExpression(i,p(i.tag,c,e.isExpression),t(i.typeArguments,c,e.isTypeNode),p(i.template,c,e.isTemplateLiteral));case 210:return e.Debug.type(i),m.updateTypeAssertion(i,p(i.type,c,e.isTypeNode),p(i.expression,c,e.isExpression));case 211:return e.Debug.type(i),m.updateParenthesizedExpression(i,p(i.expression,c,e.isExpression));case 212:return e.Debug.type(i),m.updateFunctionExpression(i,u(i.modifiers,c,e.isModifier),p(i.asteriskToken,d,e.isAsteriskToken),p(i.name,c,e.isIdentifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),a(i.parameters,c,l,u),p(i.type,c,e.isTypeNode),o(i.body,c,l,p));case 213:return e.Debug.type(i),m.updateArrowFunction(i,u(i.modifiers,c,e.isModifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),a(i.parameters,c,l,u),p(i.type,c,e.isTypeNode),p(i.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),o(i.body,c,l,p));case 214:return e.Debug.type(i),m.updateDeleteExpression(i,p(i.expression,c,e.isExpression));case 215:return e.Debug.type(i),m.updateTypeOfExpression(i,p(i.expression,c,e.isExpression));case 216:return e.Debug.type(i),m.updateVoidExpression(i,p(i.expression,c,e.isExpression));case 217:return e.Debug.type(i),m.updateAwaitExpression(i,p(i.expression,c,e.isExpression));case 218:return e.Debug.type(i),m.updatePrefixUnaryExpression(i,p(i.operand,c,e.isExpression));case 219:return e.Debug.type(i),m.updatePostfixUnaryExpression(i,p(i.operand,c,e.isExpression));case 220:return e.Debug.type(i),m.updateBinaryExpression(i,p(i.left,c,e.isExpression),p(i.operatorToken,d,e.isBinaryOperatorToken),p(i.right,c,e.isExpression));case 221:return e.Debug.type(i),m.updateConditionalExpression(i,p(i.condition,c,e.isExpression),p(i.questionToken,d,e.isQuestionToken),p(i.whenTrue,c,e.isExpression),p(i.colonToken,d,e.isColonToken),p(i.whenFalse,c,e.isExpression));case 222:return e.Debug.type(i),m.updateTemplateExpression(i,p(i.head,c,e.isTemplateHead),u(i.templateSpans,c,e.isTemplateSpan));case 223:return e.Debug.type(i),m.updateYieldExpression(i,p(i.asteriskToken,d,e.isAsteriskToken),p(i.expression,c,e.isExpression));case 224:return e.Debug.type(i),m.updateSpreadElement(i,p(i.expression,c,e.isExpression));case 225:return e.Debug.type(i),m.updateClassExpression(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isIdentifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.heritageClauses,c,e.isHeritageClause),u(i.members,c,e.isClassElement));case 227:return e.Debug.type(i),m.updateExpressionWithTypeArguments(i,p(i.expression,c,e.isExpression),u(i.typeArguments,c,e.isTypeNode));case 228:return e.Debug.type(i),m.updateAsExpression(i,p(i.expression,c,e.isExpression),p(i.type,c,e.isTypeNode));case 229:return 32&i.flags?(e.Debug.type(i),m.updateNonNullChain(i,p(i.expression,c,e.isExpression))):(e.Debug.type(i),m.updateNonNullExpression(i,p(i.expression,c,e.isExpression)));case 230:return e.Debug.type(i),m.updateMetaProperty(i,p(i.name,c,e.isIdentifier));case 232:return e.Debug.type(i),m.updateTemplateSpan(i,p(i.expression,c,e.isExpression),p(i.literal,c,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(i),m.updateBlock(i,u(i.statements,c,e.isStatement));case 236:return e.Debug.type(i),m.updateVariableStatement(i,u(i.modifiers,c,e.isModifier),p(i.declarationList,c,e.isVariableDeclarationList));case 237:return e.Debug.type(i),m.updateExpressionStatement(i,p(i.expression,c,e.isExpression));case 238:return e.Debug.type(i),m.updateIfStatement(i,p(i.expression,c,e.isExpression),p(i.thenStatement,c,e.isStatement,m.liftToBlock),p(i.elseStatement,c,e.isStatement,m.liftToBlock));case 239:return e.Debug.type(i),m.updateDoStatement(i,s(i.statement,c,l),p(i.expression,c,e.isExpression));case 240:return e.Debug.type(i),m.updateWhileStatement(i,p(i.expression,c,e.isExpression),s(i.statement,c,l));case 241:return e.Debug.type(i),m.updateForStatement(i,p(i.initializer,c,e.isForInitializer),p(i.condition,c,e.isExpression),p(i.incrementor,c,e.isExpression),s(i.statement,c,l));case 242:return e.Debug.type(i),m.updateForInStatement(i,p(i.initializer,c,e.isForInitializer),p(i.expression,c,e.isExpression),s(i.statement,c,l));case 243:return e.Debug.type(i),m.updateForOfStatement(i,p(i.awaitModifier,d,e.isAwaitKeyword),p(i.initializer,c,e.isForInitializer),p(i.expression,c,e.isExpression),s(i.statement,c,l));case 244:return e.Debug.type(i),m.updateContinueStatement(i,p(i.label,c,e.isIdentifier));case 245:return e.Debug.type(i),m.updateBreakStatement(i,p(i.label,c,e.isIdentifier));case 246:return e.Debug.type(i),m.updateReturnStatement(i,p(i.expression,c,e.isExpression));case 247:return e.Debug.type(i),m.updateWithStatement(i,p(i.expression,c,e.isExpression),p(i.statement,c,e.isStatement,m.liftToBlock));case 248:return e.Debug.type(i),m.updateSwitchStatement(i,p(i.expression,c,e.isExpression),p(i.caseBlock,c,e.isCaseBlock));case 249:return e.Debug.type(i),m.updateLabeledStatement(i,p(i.label,c,e.isIdentifier),p(i.statement,c,e.isStatement,m.liftToBlock));case 250:return e.Debug.type(i),m.updateThrowStatement(i,p(i.expression,c,e.isExpression));case 251:return e.Debug.type(i),m.updateTryStatement(i,p(i.tryBlock,c,e.isBlock),p(i.catchClause,c,e.isCatchClause),p(i.finallyBlock,c,e.isBlock));case 253:return e.Debug.type(i),m.updateVariableDeclaration(i,p(i.name,c,e.isBindingName),p(i.exclamationToken,d,e.isExclamationToken),p(i.type,c,e.isTypeNode),p(i.initializer,c,e.isExpression));case 254:return e.Debug.type(i),m.updateVariableDeclarationList(i,u(i.declarations,c,e.isVariableDeclaration));case 255:return e.Debug.type(i),m.updateFunctionDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.asteriskToken,d,e.isAsteriskToken),p(i.name,c,e.isIdentifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),a(i.parameters,c,l,u),p(i.type,c,e.isTypeNode),o(i.body,c,l,p));case 256:return e.Debug.type(i),m.updateClassDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isIdentifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.heritageClauses,c,e.isHeritageClause),u(i.members,c,e.isClassElement));case 257:return e.Debug.type(i),m.updateInterfaceDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isIdentifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),u(i.heritageClauses,c,e.isHeritageClause),u(i.members,c,e.isTypeElement));case 258:return e.Debug.type(i),m.updateTypeAliasDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isIdentifier),u(i.typeParameters,c,e.isTypeParameterDeclaration),p(i.type,c,e.isTypeNode));case 259:return e.Debug.type(i),m.updateEnumDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isIdentifier),u(i.members,c,e.isEnumMember));case 260:return e.Debug.type(i),m.updateModuleDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.name,c,e.isModuleName),p(i.body,c,e.isModuleBody));case 261:return e.Debug.type(i),m.updateModuleBlock(i,u(i.statements,c,e.isStatement));case 262:return e.Debug.type(i),m.updateCaseBlock(i,u(i.clauses,c,e.isCaseOrDefaultClause));case 263:return e.Debug.type(i),m.updateNamespaceExportDeclaration(i,p(i.name,c,e.isIdentifier));case 264:return e.Debug.type(i),m.updateImportEqualsDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),i.isTypeOnly,p(i.name,c,e.isIdentifier),p(i.moduleReference,c,e.isModuleReference));case 265:return e.Debug.type(i),m.updateImportDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.importClause,c,e.isImportClause),p(i.moduleSpecifier,c,e.isExpression),p(i.assertClause,c,e.isAssertClause));case 292:return e.Debug.type(i),m.updateAssertClause(i,u(i.elements,c,e.isAssertEntry),i.multiLine);case 293:return e.Debug.type(i),m.updateAssertEntry(i,p(i.name,c,e.isAssertionKey),p(i.value,c,e.isStringLiteral));case 266:return e.Debug.type(i),m.updateImportClause(i,i.isTypeOnly,p(i.name,c,e.isIdentifier),p(i.namedBindings,c,e.isNamedImportBindings));case 267:return e.Debug.type(i),m.updateNamespaceImport(i,p(i.name,c,e.isIdentifier));case 273:return e.Debug.type(i),m.updateNamespaceExport(i,p(i.name,c,e.isIdentifier));case 268:return e.Debug.type(i),m.updateNamedImports(i,u(i.elements,c,e.isImportSpecifier));case 269:return e.Debug.type(i),m.updateImportSpecifier(i,i.isTypeOnly,p(i.propertyName,c,e.isIdentifier),p(i.name,c,e.isIdentifier));case 270:return e.Debug.type(i),m.updateExportAssignment(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),p(i.expression,c,e.isExpression));case 271:return e.Debug.type(i),m.updateExportDeclaration(i,u(i.decorators,c,e.isDecorator),u(i.modifiers,c,e.isModifier),i.isTypeOnly,p(i.exportClause,c,e.isNamedExportBindings),p(i.moduleSpecifier,c,e.isExpression),p(i.assertClause,c,e.isAssertClause));case 272:return e.Debug.type(i),m.updateNamedExports(i,u(i.elements,c,e.isExportSpecifier));case 274:return e.Debug.type(i),m.updateExportSpecifier(i,i.isTypeOnly,p(i.propertyName,c,e.isIdentifier),p(i.name,c,e.isIdentifier));case 276:return e.Debug.type(i),m.updateExternalModuleReference(i,p(i.expression,c,e.isExpression));case 277:return e.Debug.type(i),m.updateJsxElement(i,p(i.openingElement,c,e.isJsxOpeningElement),u(i.children,c,e.isJsxChild),p(i.closingElement,c,e.isJsxClosingElement));case 278:return e.Debug.type(i),m.updateJsxSelfClosingElement(i,p(i.tagName,c,e.isJsxTagNameExpression),u(i.typeArguments,c,e.isTypeNode),p(i.attributes,c,e.isJsxAttributes));case 279:return e.Debug.type(i),m.updateJsxOpeningElement(i,p(i.tagName,c,e.isJsxTagNameExpression),u(i.typeArguments,c,e.isTypeNode),p(i.attributes,c,e.isJsxAttributes));case 280:return e.Debug.type(i),m.updateJsxClosingElement(i,p(i.tagName,c,e.isJsxTagNameExpression));case 281:return e.Debug.type(i),m.updateJsxFragment(i,p(i.openingFragment,c,e.isJsxOpeningFragment),u(i.children,c,e.isJsxChild),p(i.closingFragment,c,e.isJsxClosingFragment));case 284:return e.Debug.type(i),m.updateJsxAttribute(i,p(i.name,c,e.isIdentifier),p(i.initializer,c,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(i),m.updateJsxAttributes(i,u(i.properties,c,e.isJsxAttributeLike));case 286:return e.Debug.type(i),m.updateJsxSpreadAttribute(i,p(i.expression,c,e.isExpression));case 287:return e.Debug.type(i),m.updateJsxExpression(i,p(i.expression,c,e.isExpression));case 288:return e.Debug.type(i),m.updateCaseClause(i,p(i.expression,c,e.isExpression),u(i.statements,c,e.isStatement));case 289:return e.Debug.type(i),m.updateDefaultClause(i,u(i.statements,c,e.isStatement));case 290:return e.Debug.type(i),m.updateHeritageClause(i,u(i.types,c,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(i),m.updateCatchClause(i,p(i.variableDeclaration,c,e.isVariableDeclaration),p(i.block,c,e.isBlock));case 294:return e.Debug.type(i),m.updatePropertyAssignment(i,p(i.name,c,e.isPropertyName),p(i.initializer,c,e.isExpression));case 295:return e.Debug.type(i),m.updateShorthandPropertyAssignment(i,p(i.name,c,e.isIdentifier),p(i.objectAssignmentInitializer,c,e.isExpression));case 296:return e.Debug.type(i),m.updateSpreadAssignment(i,p(i.expression,c,e.isExpression));case 297:return e.Debug.type(i),m.updateEnumMember(i,p(i.name,c,e.isPropertyName),p(i.initializer,c,e.isExpression));case 303:return e.Debug.type(i),m.updateSourceFile(i,r(i.statements,c,l));case 348:return e.Debug.type(i),m.updatePartiallyEmittedExpression(i,p(i.expression,c,e.isExpression));case 349:return e.Debug.type(i),m.updateCommaListExpression(i,u(i.elements,c,e.isExpression));default:return i}}}}(ha||(ha={})),function(e){e.createSourceMapGenerator=function(n,t,r,a,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],f=[],m=new e.Map,_=[],g=[],y="",h=0,v=0,b=0,E=0,T=0,S=0,x=!1,L=0,D=0,C=0,A=0,I=0,k=0,N=!1,R=!1,O=!1;return{getSources:function(){return p},addSource:w,setSourceContent:M,addName:P,addMapping:F,appendSourceMap:function(n,t,r,a,o,s){e.Debug.assert(n>=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=i(r.mappings),f=p.next();!f.done;f=p.next()){var m=f.value;if(s&&(m.generatedLine>s.line||m.generatedLine===s.line&&m.generatedCharacter>s.character))break;if(!o||!(m.generatedLine<o.line||o.line===m.generatedLine&&m.generatedCharacter<o.character)){var _=void 0,g=void 0,y=void 0,h=void 0;if(void 0!==m.sourceIndex){if(void 0===(_=l[m.sourceIndex])){var v=r.sources[m.sourceIndex],b=r.sourceRoot?e.combinePaths(r.sourceRoot,v):v,E=e.combinePaths(e.getDirectoryPath(a),b);l[m.sourceIndex]=_=w(E),r.sourcesContent&&"string"===typeof r.sourcesContent[m.sourceIndex]&&M(_,r.sourcesContent[m.sourceIndex])}g=m.sourceLine,y=m.sourceCharacter,r.names&&void 0!==m.nameIndex&&(c||(c=[]),void 0===(h=c[m.nameIndex])&&(c[m.nameIndex]=h=P(r.names[m.nameIndex])))}var T=m.generatedLine-(o?o.line:0),S=T+n,x=o&&o.line===m.generatedLine?m.generatedCharacter-o.character:m.generatedCharacter;F(S,0===T?x+t:x,_,g,y,h)}}d()},toJSON:V,toString:function(){return JSON.stringify(V())}};function w(t){u();var r=e.getRelativePathToDirectoryOrUrl(a,t,n.getCurrentDirectory(),n.getCanonicalFileName,!0),i=m.get(r);return void 0===i&&(i=f.length,f.push(r),p.push(t),m.set(r,i)),d(),i}function M(e,n){if(u(),null!==n){for(s||(s=[]);s.length<e;)s.push(null);s[e]=n}d()}function P(n){u(),c||(c=new e.Map);var t=c.get(n);return void 0===t&&(t=_.length,_.push(n),c.set(n,t)),d(),t}function F(n,t,r,a,i,o){e.Debug.assert(n>=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),u(),(function(e,n){return!N||L!==e||D!==n}(n,t)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&C===e&&(A>n||A===n&&I>t)}(r,a,i))&&(B(),L=n,D=t,R=!1,O=!1,N=!0),void 0!==r&&void 0!==a&&void 0!==i&&(C=r,A=a,I=i,R=!0,void 0!==o&&(k=o,O=!0)),d()}function G(e){g.push(e),g.length>=1024&&U()}function B(){if(N&&(!x||h!==L||v!==D||b!==C||E!==A||T!==I||S!==k)){if(u(),h<L){do{G(59),h++}while(h<L);v=0}else e.Debug.assertEqual(h,L,"generatedLine cannot backtrack"),x&&G(44);j(D-v),v=D,R&&(j(C-b),b=C,j(A-E),E=A,j(I-T),T=I,O&&(j(k-S),S=k)),x=!0,d()}}function U(){g.length>0&&(y+=String.fromCharCode.apply(void 0,g),g.length=0)}function V(){return B(),U(),{version:3,file:t,sourceRoot:r,sources:f,names:_,mappings:y,sourcesContent:s}}function j(n){n<0?n=1+(-n<<1):n<<=1;do{var t=31&n;(n>>=5)>0&&(t|=32),G((r=t)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail("".concat(r,": not a base64 value")))}while(n>0);var r}};var n=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,t=/^\s*(\/\/[@#] .*)?$/;function r(e){return"string"===typeof e||null===e}function a(n){return null!==n&&"object"===typeof n&&3===n.version&&"string"===typeof n.file&&"string"===typeof n.mappings&&e.isArray(n.sources)&&e.every(n.sources,e.isString)&&(void 0===n.sourceRoot||null===n.sourceRoot||"string"===typeof n.sourceRoot)&&(void 0===n.sourcesContent||null===n.sourcesContent||e.isArray(n.sourcesContent)&&e.every(n.sourcesContent,r))&&(void 0===n.names||null===n.names||e.isArray(n.names)&&e.every(n.names,e.isString))}function i(e){var n,t=!1,r=0,a=0,i=0,o=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return n},get state(){return u(!0,!0)},next:function(){for(;!t&&r<e.length;){var n=e.charCodeAt(r);if(59!==n){if(44!==n){var p=!1,y=!1;if(i+=g(),m())return d();if(i<0)return f("Invalid generatedCharacter found");if(!_()){if(p=!0,o+=g(),m())return d();if(o<0)return f("Invalid sourceIndex found");if(_())return f("Unsupported Format: No entries after sourceIndex");if(s+=g(),m())return d();if(s<0)return f("Invalid sourceLine found");if(_())return f("Unsupported Format: No entries after sourceLine");if(c+=g(),m())return d();if(c<0)return f("Invalid sourceCharacter found");if(!_()){if(y=!0,l+=g(),m())return d();if(l<0)return f("Invalid nameIndex found");if(!_())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:u(p,y),done:t}}r++}else a++,i=0,r++}return d()}};function u(e,n){return{generatedLine:a,generatedCharacter:i,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:n?l:void 0}}function d(){return t=!0,{value:void 0,done:!0}}function p(e){void 0===n&&(n=e)}function f(e){return p(e),d()}function m(){return void 0!==n}function _(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function g(){for(var n,t=!0,a=0,i=0;t;r++){if(r>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(n=e.charCodeAt(r))>=65&&n<=90?n-65:n>=97&&n<=122?n-97+26:n>=48&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;t=0!==(32&o),i|=(31&o)<<a,a+=5}return 0===(1&i)?i>>=1:i=-(i>>=1),i}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function l(n,t){return e.Debug.assert(n.sourceIndex===t.sourceIndex),e.compareValues(n.sourcePosition,t.sourcePosition)}function u(n,t){return e.compareValues(n.generatedPosition,t.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,n){return{getLineCount:function(){return n.length},getLineText:function(t){return e.substring(n[t],n[t+1])}}},e.tryGetSourceMappingURL=function(r){for(var a=r.getLineCount()-1;a>=0;a--){var i=r.getLineText(a),o=n.exec(i);if(o)return e.trimStringEnd(o[1]);if(!i.match(t))break}},e.isRawSourceMap=a,e.tryParseRawSourceMap=function(e){try{var n=JSON.parse(e);if(a(n))return n}catch(X){}},e.decodeMappings=i,e.sameMapping=function(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(n,t,r){var a,f,m,_=e.getDirectoryPath(r),g=t.sourceRoot?e.getNormalizedAbsolutePath(t.sourceRoot,_):_,y=e.getNormalizedAbsolutePath(t.file,_),h=n.getSourceFileLike(y),v=t.sources.map((function(n){return e.getNormalizedAbsolutePath(n,g)})),b=new e.Map(v.map((function(e,t){return[n.getCanonicalFileName(e),t]})));return{getSourcePosition:function(n){var t=function(){if(void 0===f){for(var n=[],t=0,r=T();t<r.length;t++){var a=r[t];n.push(a)}f=e.sortAndDeduplicate(n,u,c)}return f}();if(!e.some(t))return n;var r=e.binarySearchKey(t,n.pos,p,e.compareValues);r<0&&(r=~r);var a=t[r];if(void 0===a||!s(a))return n;return{fileName:v[a.sourceIndex],pos:a.sourcePosition}},getGeneratedPosition:function(t){var r=b.get(n.getCanonicalFileName(t.fileName));if(void 0===r)return t;var a=function(n){if(void 0===m){for(var t=[],r=0,a=T();r<a.length;r++){var i=a[r];if(s(i)){var o=t[i.sourceIndex];o||(t[i.sourceIndex]=o=[]),o.push(i)}}m=t.map((function(n){return e.sortAndDeduplicate(n,l,c)}))}return m[n]}(r);if(!e.some(a))return t;var i=e.binarySearchKey(a,t.pos,d,e.compareValues);i<0&&(i=~i);var o=a[i];if(void 0===o||o.sourceIndex!==r)return t;return{fileName:y,pos:o.generatedPosition}}};function E(r){var a,i,s=void 0!==h?e.getPositionOfLineAndCharacter(h,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var c=n.getSourceFileLike(v[r.sourceIndex]);a=t.sources[r.sourceIndex],i=void 0!==c?e.getPositionOfLineAndCharacter(c,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:a,sourceIndex:r.sourceIndex,sourcePosition:i,nameIndex:r.nameIndex}}function T(){if(void 0===a){var r=i(t.mappings),o=e.arrayFrom(r,E);void 0!==r.error?(n.log&&n.log("Encountered error while decoding sourcemap: ".concat(r.error)),a=e.emptyArray):a=o}return a}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(ha||(ha={})),function(e){function n(n){return(n=e.getOriginalNode(n))?e.getNodeId(n):0}function t(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function r(n){if(e.getNamespaceDeclarationNode(n))return!0;var r=n.importClause&&n.importClause.namedBindings;if(!r)return!1;if(!e.isNamedImports(r))return!1;for(var a=0,i=0,o=r.elements;i<o.length;i++){t(o[i])&&a++}return a>0&&a!==r.elements.length||!!(r.elements.length-a)&&e.isDefaultImport(n)}function a(n){return!r(n)&&(e.isDefaultImport(n)||!!n.importClause&&e.isNamedImports(n.importClause.namedBindings)&&function(n){return!!n&&!!e.isNamedImports(n)&&e.some(n.elements,t)}(n.importClause.namedBindings))}function i(n,t,r){if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(r=i(s,t,r))}else if(!e.isGeneratedIdentifier(n.name)){var c=e.idText(n.name);t.get(c)||(t.set(c,!0),r=e.append(r,n.name))}return r}function o(e,n,t){var r=e[n];return r?r.push(t):e[n]=r=[t],r}function s(n){return e.isStringLiteralLike(n)||8===n.kind||e.isKeyword(n.kind)||e.isIdentifier(n)}function c(n){return t=n,e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)||e.isClassStaticBlockDeclaration(n);var t}e.getOriginalNodeId=n,e.chainBundle=function(n,t){return function(r){return 303===r.kind?t(r):function(r){return n.factory.createBundle(e.map(r.sourceFiles,t),r.prepends)}(r)}},e.getExportNeedsImportStarHelper=function(n){return!!e.getNamespaceDeclarationNode(n)},e.getImportNeedsImportStarHelper=r,e.getImportNeedsImportDefaultHelper=a,e.collectExternalModuleInfo=function(t,s,c,l){for(var u,d,p=[],f=e.createMultiMap(),m=[],_=new e.Map,g=!1,y=!1,h=!1,v=!1,b=0,E=s.statements;b<E.length;b++){var T=E[b];switch(T.kind){case 265:p.push(T),!h&&r(T)&&(h=!0),!v&&a(T)&&(v=!0);break;case 264:276===T.moduleReference.kind&&p.push(T);break;case 271:if(T.moduleSpecifier)if(T.exportClause)if(p.push(T),e.isNamedExports(T.exportClause))A(T);else{var S=T.exportClause.name;_.get(e.idText(S))||(o(m,n(T),S),_.set(e.idText(S),!0),u=e.append(u,S)),h=!0}else p.push(T),y=!0;else A(T);break;case 270:T.isExportEquals&&!d&&(d=T);break;case 236:if(e.hasSyntacticModifier(T,1))for(var x=0,L=T.declarationList.declarations;x<L.length;x++){var D=L[x];u=i(D,_,u)}break;case 255:if(e.hasSyntacticModifier(T,1))if(e.hasSyntacticModifier(T,512))g||(o(m,n(T),t.factory.getDeclarationName(T)),g=!0);else{S=T.name;_.get(e.idText(S))||(o(m,n(T),S),_.set(e.idText(S),!0),u=e.append(u,S))}break;case 256:if(e.hasSyntacticModifier(T,1))if(e.hasSyntacticModifier(T,512))g||(o(m,n(T),t.factory.getDeclarationName(T)),g=!0);else(S=T.name)&&!_.get(e.idText(S))&&(o(m,n(T),S),_.set(e.idText(S),!0),u=e.append(u,S))}}var C=e.createExternalHelpersImportDeclarationIfNeeded(t.factory,t.getEmitHelperFactory(),s,l,y,h,v);return C&&p.unshift(C),{externalImports:p,exportSpecifiers:f,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:m,exportedNames:u,externalHelpersImportDeclaration:C};function A(t){for(var r=0,a=e.cast(t.exportClause,e.isNamedExports).elements;r<a.length;r++){var i=a[r];if(!_.get(e.idText(i.name))){var s=i.propertyName||i.name;t.moduleSpecifier||f.add(e.idText(s),i);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(m,n(l),i.name),_.set(e.idText(i.name),!0),u=e.append(u,i.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(n){return!e.isIdentifier(n)&&s(n)},e.isCompoundAssignment=function(e){return e>=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(n,t,r,a){if(t.body){var i=t.body.statements,o=n.copyPrologue(i,r,!1,a);if(o===i.length)return o;var s=e.findIndex(i,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)r.push(e.visitNode(i[c],a,e.isStatement));return s+1}return o}return 0},e.getProperties=function(n,t,r){return e.filter(n.members,(function(n){return function(n,t,r){return e.isPropertyDeclaration(n)&&(!!n.initializer||!t)&&e.hasStaticModifier(n)===r}(n,t,r)}))},e.getStaticPropertiesAndClassStaticBlock=function(n){return e.filter(n.members,c)},e.isInitializedProperty=function(e){return 166===e.kind&&void 0!==e.initializer},e.isNonStaticMethodOrAccessorWithPrivateName=function(n){return!e.isStatic(n)&&e.isMethodOrAccessor(n)&&e.isPrivateIdentifier(n.name)}}(ha||(ha={})),function(e){var n;function t(n,r){var a=e.getTargetOfBindingOrAssignmentElement(n);return e.isBindingOrAssignmentPattern(a)?function(n,r){for(var a=e.getElementsOfBindingOrAssignmentPattern(n),i=0,o=a;i<o.length;i++){if(t(o[i],r))return!0}return!1}(a,r):!!e.isIdentifier(a)&&a.escapedText===r}function r(n){var t=e.tryGetPropertyNameOfBindingOrAssignmentElement(n);if(t&&e.isComputedPropertyName(t)&&!e.isLiteralExpression(t.expression))return!0;var a,i=e.getTargetOfBindingOrAssignmentElement(n);return!!i&&e.isBindingOrAssignmentPattern(i)&&(a=i,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(a),r))}function a(n,t,r,c,l){var u=e.getTargetOfBindingOrAssignmentElement(t);if(!l){var d=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(t),n.visitor,e.isExpression);d?r?(r=function(e,n,t,r){return n=s(e,n,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(n,"undefined"),void 0,t,void 0,n)}(n,r,d,c),!e.isSimpleInlineableExpression(d)&&e.isBindingOrAssignmentPattern(u)&&(r=s(n,r,!0,c))):r=d:r||(r=n.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(u)?function(n,t,r,i,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(r),p=d.length;if(1!==p){i=s(n,i,!e.isDeclarationBindingElement(t)||0!==p,c)}for(var f=0;f<p;f++){var m=d[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(m)){if(f===p-1){l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),i,c,r),l=void 0);g=n.context.getEmitHelperFactory().createRestHelper(i,d,u,r);a(n,m,g,m)}}else{var _=e.getPropertyNameOfBindingOrAssignmentElement(m);if(!(n.level>=1)||49152&m.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(_)){l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),i,c,r),l=void 0);var g=o(n,i,_);e.isComputedPropertyName(_)&&(u=e.append(u,g.argumentExpression)),a(n,m,g,m)}else l=e.append(l,e.visitNode(m,n.visitor))}}l&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),i,c,r)}(n,t,u,r,c):e.isArrayBindingOrAssignmentPattern(u)?function(n,t,r,o,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(r),p=d.length;if(n.level<1&&n.downlevelIteration)o=s(n,e.setTextRange(n.context.getEmitHelperFactory().createReadHelper(o,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c);else if(1!==p&&(n.level<1||0===p)||e.every(d,e.isOmittedExpression)){o=s(n,o,!e.isDeclarationBindingElement(t)||0!==p,c)}for(var f=0;f<p;f++){var m=d[f];if(n.level>=1)if(32768&m.transformFlags||n.hasTransformedPriorElement&&!i(m)){n.hasTransformedPriorElement=!0;var _=n.context.factory.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(_),u=e.append(u,[_,m]),l=e.append(l,n.createArrayBindingOrAssignmentElement(_))}else l=e.append(l,m);else{if(e.isOmittedExpression(m))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(m)){if(f===p-1){g=n.context.factory.createArraySliceCall(o,f);a(n,m,g,m)}}else{var g=n.context.factory.createElementAccessExpression(o,f);a(n,m,g,m)}}}l&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(l),o,c,r);if(u)for(var y=0,h=u;y<h.length;y++){var v=h[y],b=v[0];a(n,m=v[1],b,m)}}(n,t,u,r,c):n.emitBindingOrAssignment(u,r,c,t)}function i(n){var t=e.getTargetOfBindingOrAssignmentElement(n);if(!t||e.isOmittedExpression(t))return!0;var r=e.tryGetPropertyNameOfBindingOrAssignmentElement(n);if(r&&!e.isPropertyNameLiteral(r))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(n);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(t)?e.every(e.getElementsOfBindingOrAssignmentPattern(t),i):e.isIdentifier(t))}function o(n,t,r){if(e.isComputedPropertyName(r)){var a=s(n,e.visitNode(r.expression,n.visitor),!1,r);return n.context.factory.createElementAccessExpression(t,a)}if(e.isStringOrNumericLiteralLike(r)){a=e.factory.cloneNode(r);return n.context.factory.createElementAccessExpression(t,a)}var i=n.context.factory.createIdentifier(e.idText(r));return n.context.factory.createPropertyAccessExpression(t,i)}function s(n,t,r,a){if(e.isIdentifier(t)&&r)return t;var i=n.context.factory.createTempVariable(void 0);return n.hoistTempVariables?(n.context.hoistVariableDeclaration(i),n.emitExpression(e.setTextRange(n.context.factory.createAssignment(i,t),a))):n.emitBindingOrAssignment(i,t,a,void 0),i}function c(e){return e}(n=e.FlattenLevel||(e.FlattenLevel={}))[n.All=0]="All",n[n.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=function(n,i,o,l,u,d){var p,f,m=n;if(e.isDestructuringAssignment(n))for(p=n.right;e.isEmptyArrayLiteral(n.left)||e.isEmptyObjectLiteral(n.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,i,e.isExpression);m=n=p,p=n.right}var _={context:o,level:l,downlevelIteration:!!o.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment:function(n,t,r,a){e.Debug.assertNode(n,d?e.isIdentifier:e.isExpression);var s=d?d(n,t,r):e.setTextRange(o.factory.createAssignment(e.visitNode(n,i,e.isExpression),t),r);s.original=a,g(s)},createArrayBindingOrAssignmentPattern:function(n){return function(n,t){return n.createArrayLiteralExpression(e.map(t,n.converters.convertToArrayAssignmentElement))}(o.factory,n)},createObjectBindingOrAssignmentPattern:function(n){return function(n,t){return n.createObjectLiteralExpression(e.map(t,n.converters.convertToObjectAssignmentElement))}(o.factory,n)},createArrayBindingOrAssignmentElement:c,visitor:i};if(p&&(p=e.visitNode(p,i,e.isExpression),e.isIdentifier(p)&&t(n,p.escapedText)||r(n)?p=s(_,p,!1,m):u?p=s(_,p,!0,m):e.nodeIsSynthesized(n)&&(m=p)),a(_,n,p,m,e.isDestructuringAssignment(n)),p&&u){if(!e.some(f))return p;f.push(p)}return o.factory.inlineExpressions(f)||o.factory.createOmittedExpression();function g(n){f=e.append(f,n)}},e.flattenDestructuringBinding=function(n,i,o,c,l,u,d){var p;void 0===u&&(u=!1);var f=[],m=[],_={context:o,level:c,downlevelIteration:!!o.getCompilerOptions().downlevelIteration,hoistTempVariables:u,emitExpression:function(n){p=e.append(p,n)},emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:function(n){return function(n,t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),n.createArrayBindingPattern(t)}(o.factory,n)},createObjectBindingOrAssignmentPattern:function(n){return function(n,t){return e.Debug.assertEachNode(t,e.isBindingElement),n.createObjectBindingPattern(t)}(o.factory,n)},createArrayBindingOrAssignmentElement:function(e){return function(e,n){return e.createBindingElement(void 0,void 0,n)}(o.factory,e)},visitor:i};if(e.isVariableDeclaration(n)){var g=e.getInitializerOfBindingOrAssignmentElement(n);g&&(e.isIdentifier(g)&&t(n,g.escapedText)||r(n))&&(g=s(_,e.visitNode(g,_.visitor),!1,g),n=o.factory.updateVariableDeclaration(n,n.name,void 0,void 0,g))}if(a(_,n,l,n,d),p){var y=o.factory.createTempVariable(void 0);if(u){var h=o.factory.inlineExpressions(p);p=void 0,A(y,h,void 0,void 0)}else{o.hoistVariableDeclaration(y);var v=e.last(f);v.pendingExpressions=e.append(v.pendingExpressions,o.factory.createAssignment(y,v.value)),e.addRange(v.pendingExpressions,p),v.value=y}}for(var b=0,E=f;b<E.length;b++){var T=E[b],S=T.pendingExpressions,x=T.name,L=(h=T.value,T.location),D=T.original,C=o.factory.createVariableDeclaration(x,void 0,void 0,S?o.factory.inlineExpressions(e.append(S,h)):h);C.original=D,e.setTextRange(C,L),m.push(C)}return m;function A(n,t,r,a){e.Debug.assertNode(n,e.isBindingName),p&&(t=o.factory.inlineExpressions(e.append(p,t)),p=void 0),f.push({pendingExpressions:p,name:n,value:t,location:r,original:a})}}}(ha||(ha={})),function(e){var n,t;function r(n){return n.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(n.text)}function a(n,t){var r=n.rawText;if(void 0===r){e.Debug.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=e.getSourceTextOfNodeFromSourceFile(t,n);var a=14===n.kind||17===n.kind;r=r.substring(1,r.length-(a?1:2))}return r=r.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(r),n)}(t=n=e.ProcessLevel||(e.ProcessLevel={}))[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",e.processTaggedTemplateExpression=function(t,i,o,s,c,l){var u=e.visitNode(i.tag,o,e.isExpression),d=[void 0],p=[],f=[],m=i.template;if(l===n.LiftRestriction&&!e.hasInvalidEscape(m))return e.visitEachChild(i,o,t);if(e.isNoSubstitutionTemplateLiteral(m))p.push(r(m)),f.push(a(m,s));else{p.push(r(m.head)),f.push(a(m.head,s));for(var _=0,g=m.templateSpans;_<g.length;_++){var y=g[_];p.push(r(y.literal)),f.push(a(y.literal,s)),d.push(e.visitNode(y.expression,o,e.isExpression))}}var h=t.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(f));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),d[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,h))}else d[0]=h;return e.factory.createCallExpression(u,void 0,d)}}(ha||(ha={})),function(e){var n,t,r,a;(t=n||(n={}))[t.ClassAliases=1]="ClassAliases",t[t.NamespaceExports=2]="NamespaceExports",t[t.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers",(a=r||(r={}))[a.None=0]="None",a[a.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",a[a.HasConstructorDecorators=2]="HasConstructorDecorators",a[a.HasMemberDecorators=4]="HasMemberDecorators",a[a.IsExportOfNamespace=8]="IsExportOfNamespace",a[a.IsNamedExternalExport=16]="IsNamedExternalExport",a[a.IsDefaultExternalExport=32]="IsDefaultExternalExport",a[a.IsDerivedClass=64]="IsDerivedClass",a[a.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",a[a.HasAnyDecorators=6]="HasAnyDecorators",a[a.NeedsName=5]="NeedsName",a[a.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",a[a.IsExported=56]="IsExported",e.transformTypeScript=function(n){var t,r,a,i,o,s,c,l,u,d,p=n.factory,f=n.getEmitHelperFactory,m=n.startLexicalEnvironment,_=n.resumeLexicalEnvironment,g=n.endLexicalEnvironment,y=n.hoistVariableDeclaration,h=n.getEmitResolver(),v=n.getCompilerOptions(),b=e.getStrictOptionValue(v,"strictNullChecks"),E=e.getEmitScriptTarget(v),T=e.getEmitModuleKind(v),S=n.onEmitNode,x=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){var i=d,o=t;e.isSourceFile(r)&&(t=r);2&l&&function(n){return 260===e.getOriginalNode(n).kind}(r)&&(d|=2);8&l&&function(n){return 259===e.getOriginalNode(n).kind}(r)&&(d|=8);S(n,r,a),d=i,t=o},n.onSubstituteNode=function(n,t){if(t=x(n,t),1===n)return function(n){switch(n.kind){case 79:return function(n){return function(n){if(1&l&&33554432&h.getNodeCheckFlags(n)){var t=h.getReferencedValueDeclaration(n);if(t){var r=u[t.id];if(r){var a=p.cloneNode(r);return e.setSourceMapRange(a,n),e.setCommentRange(a,n),a}}}return}(n)||Ge(n)||n}(n);case 205:case 206:return function(e){return Be(e)}(n)}return n}(t);if(e.isShorthandPropertyAssignment(t))return function(n){if(2&l){var t=n.name,r=Ge(t);if(r){if(n.objectAssignmentInitializer){var a=p.createAssignment(r,n.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(t,a),n)}return e.setTextRange(p.createPropertyAssignment(t,r),n)}}return n}(t);return t},n.enableSubstitution(205),n.enableSubstitution(206),function(n){if(304===n.kind)return function(n){return p.createBundle(n.sourceFiles.map(L),e.mapDefined(n.prepends,(function(n){return 306===n.kind?e.createUnparsedSourceFile(n,"js"):n})))}(n);return L(n)};function L(r){if(r.isDeclarationFile)return r;t=r;var a=D(r,F);return e.addEmitHelpers(a,n.readEmitHelpers()),t=void 0,a}function D(n,t){var r=i,a=o,l=s,u=c;!function(n){switch(n.kind){case 303:case 262:case 261:case 234:i=n,o=void 0,s=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(n,2))break;n.name?ve(n):e.Debug.assert(256===n.kind||e.hasSyntacticModifier(n,512)),e.isClassDeclaration(n)&&(o=n)}}(n);var d=t(n);return i!==r&&(s=l),i=r,o=a,c=u,d}function C(e){return D(e,A)}function A(e){return 1&e.transformFlags?P(e):e}function I(e){return D(e,k)}function k(t){switch(t.kind){case 265:case 264:case 270:case 271:return function(t){if(e.getParseTreeNode(t)!==t)return 1&t.transformFlags?e.visitEachChild(t,C,n):t;switch(t.kind){case 265:return function(n){if(!n.importClause)return n;if(n.importClause.isTypeOnly)return;var t=e.visitNode(n.importClause,xe,e.isImportClause);return t||1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues?p.updateImportDeclaration(n,void 0,void 0,t,n.moduleSpecifier,n.assertClause):void 0}(t);case 264:return Ae(t);case 270:return function(t){return h.isValueAliasDeclaration(t)?e.visitEachChild(t,C,n):void 0}(t);case 271:return function(n){if(n.isTypeOnly)return;if(!n.exportClause||e.isNamespaceExport(n.exportClause))return n;var t=!!n.moduleSpecifier&&(1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues),r=e.visitNode(n.exportClause,(function(n){return function(n,t){return e.isNamespaceExport(n)?function(n){return p.updateNamespaceExport(n,e.visitNode(n.name,C,e.isIdentifier))}(n):function(n,t){var r=e.visitNodes(n.elements,Ce,e.isExportSpecifier);return t||e.some(r)?p.updateNamedExports(n,r):void 0}(n,t)}(n,t)}),e.isNamedExportBindings);return r?p.updateExportDeclaration(n,void 0,void 0,n.isTypeOnly,r,n.moduleSpecifier,n.assertClause):void 0}(t);default:e.Debug.fail("Unhandled ellided statement")}}(t);default:return A(t)}}function N(e){return D(e,R)}function R(n){if(271!==n.kind&&265!==n.kind&&266!==n.kind&&(264!==n.kind||276!==n.moduleReference.kind))return 1&n.transformFlags||e.hasSyntacticModifier(n,1)?P(n):n}function O(e){return D(e,w)}function w(n){switch(n.kind){case 170:return fe(n);case 166:return pe(n);case 175:case 171:case 172:case 168:case 169:return A(n);case 233:return n;default:return e.Debug.failBadSyntaxKind(n)}}function M(n){if(!(18654&e.modifierToFlag(n.kind))&&(!r||93!==n.kind))return n}function P(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return p.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return r?void 0:o;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:case 263:return;case 258:case 257:return p.createNotEmittedStatement(o);case 166:return pe(o);case 170:return fe(o);case 256:return function(a){if(!B(a)&&(!r||!e.hasSyntacticModifier(a,1)))return e.visitEachChild(a,C,n);var i=e.getProperties(a,!0,!0),o=function(n,t){var r=0;e.some(t)&&(r|=1);var a=e.getEffectiveBaseTypeNode(n);a&&104!==e.skipOuterExpressions(a.expression).kind&&(r|=64);e.classOrConstructorParameterIsDecorated(n)&&(r|=2);e.childIsDecorated(n)&&(r|=4);Ie(n)?r|=8:!function(n){return ke(n)&&e.hasSyntacticModifier(n,512)}(n)?Ne(n)&&(r|=16):r|=32;E<=1&&7&r&&(r|=128);return r}(a,i);128&o&&n.startLexicalEnvironment();var s=a.name||(5&o?p.getGeneratedNameForNode(a):void 0),c=2&o?function(t,r){var a=e.moveRangePastDecorators(t),i=function(t){if(16777216&h.getNodeCheckFlags(t)){0===(1&l)&&(l|=1,n.enableSubstitution(79),u=[]);var r=p.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return u[e.getOriginalNodeId(t)]=r,y(r),r}}(t),o=E<=2?p.getInternalName(t,!1,!0):p.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,C,e.isHeritageClause),c=U(t),d=p.createClassExpression(void 0,void 0,r,void 0,s,c);e.setOriginalNode(d,t),e.setTextRange(d,a);var f=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(o,void 0,void 0,i?p.createAssignment(i,d):d)],1));return e.setOriginalNode(f,t),e.setTextRange(f,a),e.setCommentRange(f,t),f}(a,s):function(n,t,r){var a=128&r?void 0:e.visitNodes(n.modifiers,M,e.isModifier),i=p.createClassDeclaration(void 0,a,t,void 0,e.visitNodes(n.heritageClauses,C,e.isHeritageClause),U(n)),o=e.getEmitFlags(n);1&r&&(o|=32);return e.setTextRange(i,n),e.setOriginalNode(i,n),e.setEmitFlags(i,o),i}(a,s,o),d=[c];if(z(d,a,!1),z(d,a,!0),function(n,t){var r=function(n){var t=function(n){var t=n.decorators,r=K(e.getFirstConstructorWithBody(n));if(!t&&!r)return;return{decorators:t,parameters:r}}(n),r=W(n,n,t);if(!r)return;var a=u&&u[e.getOriginalNodeId(n)],i=E<=2?p.getInternalName(n,!1,!0):p.getLocalName(n,!1,!0),o=f().createDecorateHelper(r,i),s=p.createAssignment(i,a?p.createAssignment(a,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(n)),s}(t);r&&n.push(e.setOriginalNode(p.createExpressionStatement(r),t))}(d,a),128&o){var m=e.createTokenRange(e.skipTrivia(t.text,a.members.end),19),_=p.getInternalName(a),g=p.createPartiallyEmittedExpression(_);e.setTextRangeEnd(g,m.end),e.setEmitFlags(g,1536);var v=p.createReturnStatement(g);e.setTextRangePos(v,m.pos),e.setEmitFlags(v,1920),d.push(v),e.insertStatementsAfterStandardPrologue(d,n.endLexicalEnvironment());var b=p.createImmediatelyInvokedArrowFunction(d);e.setEmitFlags(b,33554432);var T=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(a,!1,!1),void 0,void 0,b)]));e.setOriginalNode(T,a),e.setCommentRange(T,a),e.setSourceMapRange(T,e.moveRangePastDecorators(a)),e.startOnNewLine(T),d=[T]}8&o?Oe(d,a):(128&o||2&o)&&(32&o?d.push(p.createExportDefault(p.getLocalName(a,!1,!0))):16&o&&d.push(p.createExternalModuleExport(p.getLocalName(a,!1,!0))));d.length>1&&(d.push(p.createEndOfDeclarationMarker(a)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(d)}(o);case 225:return function(t){if(!B(t))return e.visitEachChild(t,C,n);var r=p.createClassExpression(void 0,void 0,t.name,void 0,e.visitNodes(t.heritageClauses,C,e.isHeritageClause),U(t));return e.setOriginalNode(r,t),e.setTextRange(r,t),r}(o);case 290:return function(t){if(117===t.token)return;return e.visitEachChild(t,C,n)}(o);case 227:return function(n){return p.updateExpressionWithTypeArguments(n,e.visitNode(n.expression,C,e.isLeftHandSideExpression),void 0)}(o);case 168:return function(t){if(!de(t))return;var r=p.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),t.asteriskToken,ue(t),void 0,void 0,e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 171:return function(t){if(!_e(t))return;var r=p.updateGetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),ue(t),e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n)||p.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 172:return function(t){if(!_e(t))return;var r=p.updateSetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),ue(t),e.visitParameterList(t.parameters,C,n),e.visitFunctionBody(t.body,C,n)||p.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 255:return function(t){if(!de(t))return p.createNotEmittedStatement(t);var r=p.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n)||p.createBlock([]));if(Ie(t)){var a=[r];return Oe(a,t),a}return r}(o);case 212:return function(t){if(!de(t))return p.createOmittedExpression();return p.updateFunctionExpression(t,e.visitNodes(t.modifiers,M,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,C,n),void 0,e.visitFunctionBody(t.body,C,n)||p.createBlock([]))}(o);case 213:return function(t){return p.updateArrowFunction(t,e.visitNodes(t.modifiers,M,e.isModifier),void 0,e.visitParameterList(t.parameters,C,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,C,n))}(o);case 163:return function(n){if(e.parameterIsThisKeyword(n))return;var t=p.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,e.visitNode(n.name,C,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,C,e.isExpression));t!==n&&(e.setCommentRange(t,n),e.setTextRange(t,e.moveRangePastModifiers(n)),e.setSourceMapRange(t,e.moveRangePastModifiers(n)),e.setEmitFlags(t.name,32));return t}(o);case 211:return function(r){var a=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(a)){var i=e.visitNode(r.expression,C,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(i,t))?p.updateParenthesizedExpression(r,i):p.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,C,n)}(o);case 210:case 228:return function(n){var t=e.visitNode(n.expression,C,e.isExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 207:return function(n){return p.updateCallExpression(n,e.visitNode(n.expression,C,e.isExpression),void 0,e.visitNodes(n.arguments,C,e.isExpression))}(o);case 208:return function(n){return p.updateNewExpression(n,e.visitNode(n.expression,C,e.isExpression),void 0,e.visitNodes(n.arguments,C,e.isExpression))}(o);case 209:return function(n){return p.updateTaggedTemplateExpression(n,e.visitNode(n.tag,C,e.isExpression),void 0,e.visitNode(n.template,C,e.isExpression))}(o);case 229:return function(n){var t=e.visitNode(n.expression,C,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 259:return function(n){if(!function(n){return!e.isEnumConst(n)||e.shouldPreserveConstEnums(v)}(n))return p.createNotEmittedStatement(n);var r=[],o=2,s=Ee(r,n);s&&(T===e.ModuleKind.System&&i===t||(o|=512));var c=Pe(n),l=Fe(n),u=e.hasSyntacticModifier(n,1)?p.getExternalModuleOrNamespaceExportName(a,n,!1,!0):p.getLocalName(n,!1,!0),d=p.createLogicalOr(u,p.createAssignment(u,p.createObjectLiteralExpression()));if(he(n)){var f=p.getLocalName(n,!1,!0);d=p.createAssignment(f,d)}var _=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(n,t){var r=a;a=t;var i=[];m();var o=e.map(n.members,ye);return e.insertStatementsAfterStandardPrologue(i,g()),e.addRange(i,o),a=r,p.createBlock(e.setTextRange(p.createNodeArray(i),n.members),!0)}(n,l)),void 0,[d]));e.setOriginalNode(_,n),s&&(e.setSyntheticLeadingComments(_,void 0),e.setSyntheticTrailingComments(_,void 0));return e.setTextRange(_,n),e.addEmitFlags(_,o),r.push(_),r.push(p.createEndOfDeclarationMarker(n)),r}(o);case 236:return function(t){if(Ie(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(r,ge))),t)}return e.visitEachChild(t,C,n)}(o);case 253:return function(n){return p.updateVariableDeclaration(n,e.visitNode(n.name,C,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,C,e.isExpression))}(o);case 260:return Te(o);case 264:return Ae(o);case 278:return function(n){return p.updateJsxSelfClosingElement(n,e.visitNode(n.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,C,e.isJsxAttributes))}(o);case 279:return function(n){return p.updateJsxOpeningElement(n,e.visitNode(n.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,C,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,C,n)}}function F(t){var r=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(t)&&T>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return p.updateSourceFile(t,e.visitLexicalEnvironment(t.statements,I,n,0,r))}function G(e){return!!(4096&e.transformFlags)}function B(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,G)||e.some(n.members,G)}function U(n){var t=[],r=e.getFirstConstructorWithBody(n),a=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];e.isIdentifier(s.name)&&t.push(e.setOriginalNode(p.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(t,e.visitNodes(n.members,O,e.isClassElement)),e.setTextRange(p.createNodeArray(t),n.members)}function V(n,t){return e.filter(n.members,t?function(e){return j(e,!0,n)}:function(e){return j(e,!1,n)})}function j(n,t,r){return e.nodeOrChildIsDecorated(n,r)&&t===e.isStatic(n)}function K(n){var t;if(n)for(var r=n.parameters,a=r.length>0&&e.parameterIsThisKeyword(r[0]),i=a?1:0,o=a?r.length-1:r.length,s=0;s<o;s++){var c=r[s+i];(t||c.decorators)&&(t||(t=new Array(o)),t[s]=c.decorators)}return t}function H(n,t){switch(t.kind){case 171:case 172:return function(n,t){if(!t.body)return;var r=e.getAllAccessorDeclarations(n.members,t),a=r.firstAccessor,i=r.secondAccessor,o=r.setAccessor,s=a.decorators?a:i&&i.decorators?i:void 0;if(!s||t!==s)return;var c=s.decorators,l=K(o);if(!c&&!l)return;return{decorators:c,parameters:l}}(n,t);case 168:return function(e){if(!e.body)return;var n=e.decorators,t=K(e);if(!n&&!t)return;return{decorators:n,parameters:t}}(t);case 166:return function(e){var n=e.decorators;if(!n)return;return{decorators:n}}(t);default:return}}function W(n,t,r){if(r){var a=[];return e.addRange(a,e.map(r.decorators,q)),e.addRange(a,e.flatMap(r.parameters,X)),function(e,n,t){(function(e,n,t){v.emitDecoratorMetadata&&(Y(e)&&t.push(f().createMetadataHelper("design:type",$(e))),Z(e)&&t.push(f().createMetadataHelper("design:paramtypes",ee(e,n))),Q(e)&&t.push(f().createMetadataHelper("design:returntype",ne(e))))})(e,n,t)}(n,t,a),a}}function z(n,t,r){e.addRange(n,e.map(function(e,n){for(var t,r=V(e,n),a=0,i=r;a<i.length;a++){var o=J(e,i[a]);o&&(t?t.push(o):t=[o])}return t}(t,r),Re))}function J(n,t){var r=W(t,n,H(n,t));if(r){var a=function(n,t){return e.isStatic(t)?p.getDeclarationName(n):function(e){return p.createPropertyAccessExpression(p.getDeclarationName(e),"prototype")}(n)}(n,t),i=le(t,!0),o=E>0?166===t.kind?p.createVoidZero():p.createNull():void 0,s=f().createDecorateHelper(r,a,i,o);return e.setTextRange(s,e.moveRangePastDecorators(t)),e.setEmitFlags(s,1536),s}}function q(n){return e.visitNode(n.expression,C,e.isExpression)}function X(n,t){var r;if(n){r=[];for(var a=0,i=n;a<i.length;a++){var o=i[a],s=f().createParamHelper(q(o),t);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),r.push(s)}}return r}function Y(e){var n=e.kind;return 168===n||171===n||172===n||166===n}function Q(e){return 168===e.kind}function Z(n){switch(n.kind){case 256:case 225:return void 0!==e.getFirstConstructorWithBody(n);case 168:case 171:case 172:return!0}return!1}function $(n){switch(n.kind){case 166:case 163:return te(n.type);case 172:case 171:return te(function(n){var t=h.getAllAccessorDeclarations(n);return t.setAccessor&&e.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&e.getEffectiveReturnTypeNode(t.getAccessor)}(n));case 256:case 225:case 168:return p.createIdentifier("Function");default:return p.createVoidZero()}}function ee(n,t){var r=e.isClassLike(n)?e.getFirstConstructorWithBody(n):e.isFunctionLike(n)&&e.nodeIsPresent(n.body)?n:void 0,a=[];if(r)for(var i=function(n,t){if(t&&171===n.kind){var r=e.getAllAccessorDeclarations(t.members,n).setAccessor;if(r)return r.parameters}return n.parameters}(r,t),o=i.length,s=0;s<o;s++){var c=i[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?a.push(te(e.getRestParameterElementType(c.type))):a.push($(c)))}return p.createArrayLiteralExpression(a)}function ne(n){return e.isFunctionLike(n)&&n.type?te(n.type):e.isAsyncFunction(n)?p.createIdentifier("Promise"):p.createVoidZero()}function te(n){if(void 0===n)return p.createIdentifier("Object");switch(n.kind){case 114:case 152:case 143:return p.createVoidZero();case 190:return te(n.type);case 178:case 179:return p.createIdentifier("Function");case 182:case 183:return p.createIdentifier("Array");case 176:case 133:return p.createIdentifier("Boolean");case 149:return p.createIdentifier("String");case 147:return p.createIdentifier("Object");case 195:switch(n.literal.kind){case 10:case 14:return p.createIdentifier("String");case 218:case 8:return p.createIdentifier("Number");case 9:return ce();case 110:case 95:return p.createIdentifier("Boolean");case 104:return p.createVoidZero();default:return e.Debug.failBadSyntaxKind(n.literal)}case 146:return p.createIdentifier("Number");case 157:return ce();case 150:return E<2?se():p.createIdentifier("Symbol");case 177:return function(n){var t=h.getTypeReferenceSerializationKind(n.typeName,o||i);switch(t){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(n,(function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&(n.parent.trueType===n||n.parent.falseType===n)})))return p.createIdentifier("Object");var r=ie(n.typeName),a=p.createTempVariable(y);return p.createConditionalExpression(p.createTypeCheck(p.createAssignment(a,r),"function"),void 0,a,void 0,p.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return oe(n.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return p.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ce();case e.TypeReferenceSerializationKind.BooleanType:return p.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return p.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return p.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return p.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return E<2?se():p.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return p.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return p.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return p.createIdentifier("Object");default:return e.Debug.assertNever(t)}}(n);case 187:case 186:return re(n.types);case 188:return re([n.trueType,n.falseType]);case 192:if(144===n.operator)return te(n.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return te(n.type);default:return e.Debug.failBadSyntaxKind(n)}return p.createIdentifier("Object")}function re(n){for(var t,r=0,a=n;r<a.length;r++){for(var i=a[r];190===i.kind;)i=i.type;if(143!==i.kind&&(b||(195!==i.kind||104!==i.literal.kind)&&152!==i.kind)){var o=te(i);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(o)||t.escapedText!==o.escapedText)return p.createIdentifier("Object")}else t=o}}return t||p.createVoidZero()}function ae(e,n){return p.createLogicalAnd(p.createStrictInequality(p.createTypeOfExpression(e),p.createStringLiteral("undefined")),n)}function ie(e){if(79===e.kind){var n=oe(e);return ae(n,n)}if(79===e.left.kind)return ae(oe(e.left),oe(e));var t=ie(e.left),r=p.createTempVariable(y);return p.createLogicalAnd(p.createLogicalAnd(t.left,p.createStrictInequality(p.createAssignment(r,t.right),p.createVoidZero())),p.createPropertyAccessExpression(r,e.right))}function oe(n){switch(n.kind){case 79:var t=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(n),n),n.parent);return t.original=void 0,e.setParent(t,e.getParseTreeNode(i)),t;case 160:return function(e){return p.createPropertyAccessExpression(oe(e.left),e.right)}(n)}}function se(){return p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("Symbol"),"function"),void 0,p.createIdentifier("Symbol"),void 0,p.createIdentifier("Object"))}function ce(){return E<99?p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("BigInt"),"function"),void 0,p.createIdentifier("BigInt"),void 0,p.createIdentifier("Object")):p.createIdentifier("BigInt")}function le(n,t){var r=n.name;return e.isPrivateIdentifier(r)?p.createIdentifier(""):e.isComputedPropertyName(r)?t&&!e.isSimpleInlineableExpression(r.expression)?p.getGeneratedNameForNode(r):r.expression:e.isIdentifier(r)?p.createStringLiteral(e.idText(r)):p.cloneNode(r)}function ue(n){var t=n.name;if(e.isComputedPropertyName(t)&&(!e.hasStaticModifier(n)&&c||e.some(n.decorators))){var r=e.visitNode(t.expression,C,e.isExpression),a=e.skipPartiallyEmittedExpressions(r);if(!e.isSimpleInlineableExpression(a)){var i=p.getGeneratedNameForNode(t);return y(i),p.updateComputedPropertyName(t,p.createAssignment(i,r))}}return e.visitNode(t,C,e.isPropertyName)}function de(n){return!e.nodeIsMissing(n.body)}function pe(n){if(!(8388608&n.flags||e.hasSyntacticModifier(n,128))){var t=p.updatePropertyDeclaration(n,void 0,e.visitNodes(n.modifiers,C,e.isModifier),ue(n),void 0,void 0,e.visitNode(n.initializer,C));return t!==n&&(e.setCommentRange(t,n),e.setSourceMapRange(t,e.moveRangePastDecorators(n))),t}}function fe(t){if(de(t))return p.updateConstructorDeclaration(t,void 0,void 0,e.visitParameterList(t.parameters,C,n),function(t,r){var a=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(!e.some(a))return e.visitFunctionBody(t,C,n);var i=[],o=0;_(),o=e.addPrologueDirectivesAndInitialSuperCall(p,r,i,C),e.addRange(i,e.map(a,me)),e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,o)),i=p.mergeLexicalEnvironment(i,g());var s=p.createBlock(e.setTextRange(p.createNodeArray(i),t.statements),!0);return e.setTextRange(s,t),e.setOriginalNode(s,t),s}(t.body,t))}function me(n){var t=n.name;if(e.isIdentifier(t)){var r=e.setParent(e.setTextRange(p.cloneNode(t),t),t.parent);e.setEmitFlags(r,1584);var a=e.setParent(e.setTextRange(p.cloneNode(t),t),t.parent);return e.setEmitFlags(a,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(p.createExpressionStatement(p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createThis(),r),n.name),a)),n),e.moveRangePos(n,-1))))}}function _e(n){return!(e.nodeIsMissing(n.body)&&e.hasSyntacticModifier(n,128))}function ge(t){var r=t.name;return e.isBindingPattern(r)?e.flattenDestructuringAssignment(t,C,n,0,!1,we):e.setTextRange(p.createAssignment(Me(r),e.visitNode(t.initializer,C,e.isExpression)),t)}function ye(t){var r=le(t,!1),i=function(t){var r=h.getConstantValue(t);return void 0!==r?"string"===typeof r?p.createStringLiteral(r):p.createNumericLiteral(r):(0===(8&l)&&(l|=8,n.enableSubstitution(79)),t.initializer?e.visitNode(t.initializer,C,e.isExpression):p.createVoidZero())}(t),o=p.createAssignment(p.createElementAccessExpression(a,r),i),s=10===i.kind?o:p.createAssignment(p.createElementAccessExpression(a,o),r);return e.setTextRange(p.createExpressionStatement(e.setTextRange(s,t)),t)}function he(n){return Ie(n)||ke(n)&&T!==e.ModuleKind.ES2015&&T!==e.ModuleKind.ES2020&&T!==e.ModuleKind.ES2022&&T!==e.ModuleKind.ESNext&&T!==e.ModuleKind.System}function ve(n){s||(s=new e.Map);var t=be(n);s.has(t)||s.set(t,n)}function be(n){return e.Debug.assertNode(n.name,e.isIdentifier),n.name.escapedText}function Ee(n,t){var r=p.createVariableStatement(e.visitNodes(t.modifiers,M,e.isModifier),p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(t,!1,!0))],303===i.kind?0:1));if(e.setOriginalNode(r,t),ve(t),function(e){if(s){var n=be(e);return s.get(n)===e}return!0}(t))return 259===t.kind?e.setSourceMapRange(r.declarationList,t):e.setSourceMapRange(r,t),e.setCommentRange(r,t),e.addEmitFlags(r,4195328),n.push(r),!0;var a=p.createMergeDeclarationMarker(r);return e.setEmitFlags(a,4195840),n.push(a),!1}function Te(o){if(!function(n){var t=e.getParseTreeNode(n,e.isModuleDeclaration);return!t||e.isInstantiatedModule(t,e.shouldPreserveConstEnums(v))}(o))return p.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0===(2&l)&&(l|=2,n.enableSubstitution(79),n.enableSubstitution(295),n.enableEmitNotification(260));var c=[],u=2,d=Ee(c,o);d&&(T===e.ModuleKind.System&&i===t||(u|=512));var f=Pe(o),_=Fe(o),y=e.hasSyntacticModifier(o,1)?p.getExternalModuleOrNamespaceExportName(a,o,!1,!0):p.getLocalName(o,!1,!0),h=p.createLogicalOr(y,p.createAssignment(y,p.createObjectLiteralExpression()));if(he(o)){var b=p.getLocalName(o,!1,!0);h=p.createAssignment(b,h)}var E=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,function(n,t){var i=a,o=r,c=s;a=t,r=n,s=void 0;var l,u,d=[];if(m(),n.body)if(261===n.body.kind)D(n.body,(function(n){return e.addRange(d,e.visitNodes(n.statements,N,e.isStatement))})),l=n.body.statements,u=n.body;else{var f=Te(n.body);f&&(e.isArray(f)?e.addRange(d,f):d.push(f));var _=Se(n).body;l=e.moveRangePos(_.statements,-1)}e.insertStatementsAfterStandardPrologue(d,g()),a=i,r=o,s=c;var y=p.createBlock(e.setTextRange(p.createNodeArray(d),l),!0);e.setTextRange(y,u),n.body&&261===n.body.kind||e.setEmitFlags(y,1536|e.getEmitFlags(y));return y}(o,_)),void 0,[h]));return e.setOriginalNode(E,o),d&&(e.setSyntheticLeadingComments(E,void 0),e.setSyntheticTrailingComments(E,void 0)),e.setTextRange(E,o),e.addEmitFlags(E,u),c.push(E),c.push(p.createEndOfDeclarationMarker(o)),c}function Se(e){if(260===e.body.kind)return Se(e.body)||e.body}function xe(n){e.Debug.assert(!n.isTypeOnly);var t=Ue(n)?n.name:void 0,r=e.visitNode(n.namedBindings,Le,e.isNamedImportBindings);return t||r?p.updateImportClause(n,!1,t,r):void 0}function Le(n){if(267===n.kind)return Ue(n)?n:void 0;var t=v.preserveValueImports&&(1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues),r=e.visitNodes(n.elements,De,e.isImportSpecifier);return t||e.some(r)?p.updateNamedImports(n,r):void 0}function De(e){return!e.isTypeOnly&&Ue(e)?e:void 0}function Ce(e){return!e.isTypeOnly&&h.isValueAliasDeclaration(e)?e:void 0}function Ae(r){if(!r.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(r)){var i=Ue(r);return i||1!==v.importsNotUsedAsValues?i?e.visitEachChild(r,C,n):void 0:e.setOriginalNode(e.setTextRange(p.createImportDeclaration(void 0,void 0,void 0,r.moduleReference.expression,void 0),r),r)}if(function(n){return Ue(n)||!e.isExternalModule(t)&&h.isTopLevelValueImportEqualsWithEntityName(n)}(r)){var o,s,c,l=e.createExpressionFromEntityName(p,r.moduleReference);return e.setEmitFlags(l,3584),Ne(r)||!Ie(r)?e.setOriginalNode(e.setTextRange(p.createVariableStatement(e.visitNodes(r.modifiers,M,e.isModifier),p.createVariableDeclarationList([e.setOriginalNode(p.createVariableDeclaration(r.name,void 0,void 0,l),r)])),r),r):e.setOriginalNode((o=r.name,s=l,c=r,e.setTextRange(p.createExpressionStatement(p.createAssignment(p.getNamespaceMemberName(a,o,!1,!0),s)),c)),r)}}}function Ie(n){return void 0!==r&&e.hasSyntacticModifier(n,1)}function ke(n){return void 0===r&&e.hasSyntacticModifier(n,1)}function Ne(n){return ke(n)&&!e.hasSyntacticModifier(n,512)}function Re(e){return p.createExpressionStatement(e)}function Oe(n,t){var r=p.createAssignment(p.getExternalModuleOrNamespaceExportName(a,t,!1,!0),p.getLocalName(t));e.setSourceMapRange(r,e.createRange(t.name?t.name.pos:t.pos,t.end));var i=p.createExpressionStatement(r);e.setSourceMapRange(i,e.createRange(-1,t.end)),n.push(i)}function we(n,t,r){return e.setTextRange(p.createAssignment(Me(n),t),r)}function Me(e){return p.getNamespaceMemberName(a,e,!1,!0)}function Pe(n){var t=p.getGeneratedNameForNode(n);return e.setSourceMapRange(t,n.name),t}function Fe(e){return p.getGeneratedNameForNode(e)}function Ge(n){if(l&d&&!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var t=h.getReferencedExportContainer(n,!1);if(t&&303!==t.kind)if(2&d&&260===t.kind||8&d&&259===t.kind)return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(t),n),n)}}function Be(n){var t=function(n){if(v.isolatedModules)return;return e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)?h.getConstantValue(n):void 0}(n);if(void 0!==t){e.setConstantValue(n,t);var r="string"===typeof t?p.createStringLiteral(t):p.createNumericLiteral(t);if(!v.removeComments){var a=e.getOriginalNode(n,e.isAccessExpression),i=e.isPropertyAccessExpression(a)?e.declarationNameToString(a.name):e.getTextOfNode(a.argumentExpression);e.addSyntheticTrailingComment(r,3," ".concat(i," "))}return r}return n}function Ue(e){return v.preserveValueImports?h.isValueAliasDeclaration(e):h.isReferencedAliasDeclaration(e)}}}(ha||(ha={})),function(e){var n,t,r,a,i;(t=n||(n={}))[t.ClassAliases=1]="ClassAliases",t[t.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference",(r=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",r.Method="m",r.Accessor="a",(i=a||(a={}))[i.None=0]="None",i[i.ClassWasDecorated=1]="ClassWasDecorated",i[i.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",i[i.NeedsClassSuperReference=4]="NeedsClassSuperReference",i[i.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField",e.transformClassFields=function(n){var t=n.factory,r=n.hoistVariableDeclaration,a=n.endLexicalEnvironment,i=n.startLexicalEnvironment,o=n.resumeLexicalEnvironment,s=n.addBlockScopedVariable,c=n.getEmitResolver(),l=n.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=e.getUseDefineForClassFields(l),p=u<99,f=(u<=8||!d)&&u>=2,m=u<=8||!d,_=n.onSubstituteNode;n.onSubstituteNode=function(n,r){if(r=_(n,r),1===n)return function(n){switch(n.kind){case 79:return function(n){return function(n){if(1&g&&33554432&c.getNodeCheckFlags(n)){var r=c.getReferencedValueDeclaration(n);if(r){var a=y[r.id];if(a){var i=t.cloneNode(a);return e.setSourceMapRange(i,n),e.setCommentRange(i,n),i}}}return}(n)||n}(n);case 108:return function(n){if(2&g&&E){var r=E.facts,a=E.classConstructor;if(1&r)return t.createParenthesizedExpression(t.createVoidZero());if(a)return e.setTextRange(e.setOriginalNode(t.cloneNode(a),n),n)}return n}(n)}return n}(r);return r};var g,y,h,v,b=n.onEmitNode;n.onEmitNode=function(n,t,r){var a=e.getOriginalNode(t);if(a.id){var i=L.get(a.id);if(i){var o=E,s=T;return E=i,T=i,b(n,t,r),E=o,void(T=s)}}switch(t.kind){case 212:if(e.isArrowFunction(a)||262144&e.getEmitFlags(t))break;case 255:case 170:o=E,s=T;return E=void 0,T=void 0,b(n,t,r),E=o,void(T=s);case 171:case 172:case 168:case 166:o=E,s=T;return T=E,E=void 0,b(n,t,r),E=o,void(T=s);case 161:o=E,s=T;return E=T,T=void 0,b(n,t,r),E=o,void(T=s)}b(n,t,r)};var E,T,S,x=[],L=new e.Map;return e.chainBundle(n,(function(t){var r=n.getCompilerOptions();if(t.isDeclarationFile||d&&99===e.getEmitScriptTarget(r))return t;var a=e.visitEachChild(t,A,n);return e.addEmitHelpers(a,n.readEmitHelpers()),a}));function D(a,i){if(8388608&a.transformFlags)switch(a.kind){case 225:case 256:return function(a){if(!e.forEach(a.members,G))return e.visitEachChild(a,A,n);var i=h;if(h=void 0,function(){x.push(E),E=void 0}(),p){var o=e.getNameOfDeclaration(a);o&&e.isIdentifier(o)&&(q().className=e.idText(o));var l=B(a);e.some(l)&&(q().weakSetName=Q("instances",l[0].name))}var u=e.isClassDeclaration(a)?function(n){var a=U(n);a&&(J().facts=a);8&a&&W();var i,o=e.getStaticPropertiesAndClassStaticBlock(n);if(2&a){var s=t.createTempVariable(r,!0);J().classConstructor=t.cloneNode(s),i=t.createAssignment(s,t.getInternalName(n))}var c=e.getEffectiveBaseTypeNode(n),l=!(!c||104===e.skipOuterExpressions(c.expression).kind),u=[t.updateClassDeclaration(n,void 0,n.modifiers,n.name,void 0,e.visitNodes(n.heritageClauses,I,e.isHeritageClause),V(n,l))];i&&X().unshift(i);e.some(h)&&u.push(t.createExpressionStatement(t.inlineExpressions(h)));e.some(o)&&K(u,o,t.getInternalName(n));return u}(a):function(a){var i=U(a);i&&(J().facts=i);8&i&&W();var o,l=!!(1&i),u=e.getStaticPropertiesAndClassStaticBlock(a),d=e.getEffectiveBaseTypeNode(a),f=!(!d||104===e.skipOuterExpressions(d.expression).kind),m=16777216&c.getNodeCheckFlags(a);function _(){var e=c.getNodeCheckFlags(a),n=16777216&e,i=524288&e;return t.createTempVariable(i?s:r,!!n)}2&i&&(o=_(),J().classConstructor=t.cloneNode(o));var b=t.updateClassExpression(a,e.visitNodes(a.decorators,A,e.isDecorator),a.modifiers,a.name,void 0,e.visitNodes(a.heritageClauses,I,e.isHeritageClause),V(a,f));if(e.some(u,(function(n){return e.isClassStaticBlockDeclaration(n)||!!n.initializer||p&&e.isPrivateIdentifier(n.name)}))||e.some(h)){if(l)return e.Debug.assertIsDefined(v,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),v&&h&&e.some(h)&&v.push(t.createExpressionStatement(t.inlineExpressions(h))),v&&e.some(u)&&K(v,u,t.getInternalName(a)),o?t.inlineExpressions([t.createAssignment(o,b),o]):b;var E=[];if(o||(o=_()),m){0===(1&g)&&(g|=1,n.enableSubstitution(79),y=[]);var T=t.cloneNode(o);T.autoGenerateFlags&=-9,y[e.getOriginalNodeId(a)]=T}return e.setEmitFlags(b,65536|e.getEmitFlags(b)),E.push(e.startOnNewLine(t.createAssignment(o,b))),e.addRange(E,e.map(h,e.startOnNewLine)),e.addRange(E,function(n,t){for(var r=[],a=0,i=n;a<i.length;a++){var o=i[a],s=e.isClassStaticBlockDeclaration(o)?P(o):H(o,t);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),r.push(s))}return r}(u,o)),E.push(e.startOnNewLine(o)),t.inlineExpressions(E)}return b}(a);return function(){E=x.pop()}(),h=i,u}(a);case 166:return R(a);case 236:return function(t){var r=v;v=[];var a=e.visitEachChild(t,A,n),i=e.some(v)?pa([a],v,!0):a;return v=r,i}(a);case 80:return function(n){if(!p)return n;if(e.isStatement(n.parent))return n;return e.setOriginalNode(t.createIdentifier(""),n)}(a);case 169:return function(t){if(!p)return e.visitEachChild(t,N,n);return}(a)}if(8388608&a.transformFlags||33554432&a.transformFlags&&f&&S&&E)switch(a.kind){case 218:case 219:return function(a,i){if(45===a.operator||46===a.operator)if(p&&e.isPrivateIdentifierPropertyAccessExpression(a.operand)){var o=void 0;if(o=$(a.operand.name)){var s=M(e.visitNode(a.operand.expression,A,e.isExpression)),c=s.readExpression,l=s.initializeExpression,u=O(o,c),d=e.isPrefixUnaryExpression(a)||i?void 0:t.createTempVariable(r);return u=F(o,l||c,u=e.expandPreOrPostfixIncrementOrDecrementExpression(t,a,u,r,d),63),e.setOriginalNode(u,a),e.setTextRange(u,a),d&&(u=t.createComma(u,d),e.setTextRange(u,a)),u}}else if(f&&e.isSuperProperty(a.operand)&&S&&E){var m=E.classConstructor,_=E.superClassReference;if(1&E.facts){var g=z(a.operand);return e.isPrefixUnaryExpression(a)?t.updatePrefixUnaryExpression(a,g):t.updatePostfixUnaryExpression(a,g)}if(m&&_){var y=void 0,h=void 0;if(e.isPropertyAccessExpression(a.operand)?e.isIdentifier(a.operand.name)&&(h=y=t.createStringLiteralFromNode(a.operand.name)):e.isSimpleInlineableExpression(a.operand.argumentExpression)?h=y=a.operand.argumentExpression:(h=t.createTempVariable(r),y=t.createAssignment(h,e.visitNode(a.operand.argumentExpression,A,e.isExpression))),y&&h){u=t.createReflectGetCall(_,h,m);e.setTextRange(u,a.operand);d=i?void 0:t.createTempVariable(r);return u=e.expandPreOrPostfixIncrementOrDecrementExpression(t,a,u,r,d),u=t.createReflectSetCall(_,y,u,m),e.setOriginalNode(u,a),e.setTextRange(u,a),d&&(u=t.createComma(u,d),e.setTextRange(u,a)),u}}}return e.visitEachChild(a,A,n)}(a,i);case 220:return function(a,i){if(e.isDestructuringAssignment(a)){var o=h;h=void 0,a=t.updateBinaryExpression(a,e.visitNode(a.left,k),a.operatorToken,e.visitNode(a.right,A));var s=e.some(h)?t.inlineExpressions(e.compact(pa(pa([],h,!0),[a],!1))):a;return h=o,s}if(e.isAssignmentExpression(a))if(p&&e.isPrivateIdentifierPropertyAccessExpression(a.left)){var c=$(a.left.name);if(c)return e.setTextRange(e.setOriginalNode(F(c,a.left.expression,a.right,a.operatorToken.kind),a),a)}else if(f&&e.isSuperProperty(a.left)&&S&&E){var l=E.classConstructor,u=E.superClassReference;if(1&E.facts)return t.updateBinaryExpression(a,z(a.left),a.operatorToken,e.visitNode(a.right,A,e.isExpression));if(l&&u){var d=e.isElementAccessExpression(a.left)?e.visitNode(a.left.argumentExpression,A,e.isExpression):e.isIdentifier(a.left.name)?t.createStringLiteralFromNode(a.left.name):void 0;if(d){var m=e.visitNode(a.right,A,e.isExpression);if(e.isCompoundAssignment(a.operatorToken.kind)){var _=d;e.isSimpleInlineableExpression(d)||(_=t.createTempVariable(r),d=t.createAssignment(_,d));var g=t.createReflectGetCall(u,_,l);e.setOriginalNode(g,a.left),e.setTextRange(g,a.left),m=t.createBinaryExpression(g,e.getNonAssignmentOperatorForCompoundAssignment(a.operatorToken.kind),m),e.setTextRange(m,a)}var y=i?void 0:t.createTempVariable(r);return y&&(m=t.createAssignment(y,m),e.setTextRange(y,a)),m=t.createReflectSetCall(u,d,m,l),e.setOriginalNode(m,a),e.setTextRange(m,a),y&&(m=t.createComma(m,y),e.setTextRange(m,a)),m}}}if(101===a.operatorToken.kind&&e.isPrivateIdentifier(a.left))return function(t){if(!p)return t;var r=t.left;e.Debug.assertNode(r,e.isPrivateIdentifier),e.Debug.assert(101===t.operatorToken.kind);var a=$(r);if(a){var i=e.visitNode(t.right,A,e.isExpression);return e.setOriginalNode(n.getEmitHelperFactory().createClassPrivateFieldInHelper(a.brandCheckIdentifier,i),t)}return e.visitEachChild(t,A,n)}(a);return e.visitEachChild(a,A,n)}(a,i);case 207:return function(a){if(p&&e.isPrivateIdentifierPropertyAccessExpression(a.expression)){var i=t.createCallBinding(a.expression,r,u),o=i.thisArg,s=i.target;return e.isCallChain(a)?t.updateCallChain(a,t.createPropertyAccessChain(e.visitNode(s,A),a.questionDotToken,"call"),void 0,void 0,pa([e.visitNode(o,A,e.isExpression)],e.visitNodes(a.arguments,A,e.isExpression),!0)):t.updateCallExpression(a,t.createPropertyAccessExpression(e.visitNode(s,A),"call"),void 0,pa([e.visitNode(o,A,e.isExpression)],e.visitNodes(a.arguments,A,e.isExpression),!0))}if(f&&e.isSuperProperty(a.expression)&&S&&(null===E||void 0===E?void 0:E.classConstructor)){var c=t.createFunctionCallCall(e.visitNode(a.expression,A,e.isExpression),E.classConstructor,e.visitNodes(a.arguments,A,e.isExpression));return e.setOriginalNode(c,a),e.setTextRange(c,a),c}return e.visitEachChild(a,A,n)}(a);case 209:return function(a){if(p&&e.isPrivateIdentifierPropertyAccessExpression(a.tag)){var i=t.createCallBinding(a.tag,r,u),o=i.thisArg,s=i.target;return t.updateTaggedTemplateExpression(a,t.createCallExpression(t.createPropertyAccessExpression(e.visitNode(s,A),"bind"),void 0,[e.visitNode(o,A,e.isExpression)]),void 0,e.visitNode(a.template,A,e.isTemplateLiteral))}if(f&&e.isSuperProperty(a.tag)&&S&&(null===E||void 0===E?void 0:E.classConstructor)){var c=t.createFunctionBindCall(e.visitNode(a.tag,A,e.isExpression),E.classConstructor,[]);return e.setOriginalNode(c,a),e.setTextRange(c,a),t.updateTaggedTemplateExpression(a,c,void 0,e.visitNode(a.template,A,e.isTemplateLiteral))}return e.visitEachChild(a,A,n)}(a);case 205:return function(r){if(p&&e.isPrivateIdentifier(r.name)){var a=$(r.name);if(a)return e.setTextRange(e.setOriginalNode(O(a,r.expression),r),r)}if(f&&e.isSuperProperty(r)&&e.isIdentifier(r.name)&&S&&E){var i=E.classConstructor,o=E.superClassReference;if(1&E.facts)return z(r);if(i&&o){var s=t.createReflectGetCall(o,t.createStringLiteralFromNode(r.name),i);return e.setOriginalNode(s,r.expression),e.setTextRange(s,r.expression),s}}return e.visitEachChild(r,A,n)}(a);case 206:return function(r){if(f&&e.isSuperProperty(r)&&S&&E){var a=E.classConstructor,i=E.superClassReference;if(1&E.facts)return z(r);if(a&&i){var o=t.createReflectGetCall(i,e.visitNode(r.argumentExpression,A,e.isExpression),a);return e.setOriginalNode(o,r.expression),e.setTextRange(o,r.expression),o}}return e.visitEachChild(r,A,n)}(a);case 237:return function(n){return t.updateExpressionStatement(n,e.visitNode(n.expression,C,e.isExpression))}(a);case 241:return function(r){return t.updateForStatement(r,e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.condition,A,e.isExpression),e.visitNode(r.incrementor,C,e.isExpression),e.visitIterationBody(r.statement,A,n))}(a);case 255:case 212:case 170:case 168:case 171:case 172:var o=S;S=void 0;var l=e.visitEachChild(a,A,n);return S=o,l}return e.visitEachChild(a,A,n)}function C(e){return D(e,!0)}function A(e){return D(e,!1)}function I(a){switch(a.kind){case 290:return e.visitEachChild(a,I,n);case 227:return function(a){if(4&((null===E||void 0===E?void 0:E.facts)||0)){var i=t.createTempVariable(r,!0);return J().superClassReference=i,t.updateExpressionWithTypeArguments(a,t.createAssignment(i,e.visitNode(a.expression,A,e.isExpression)),void 0)}return e.visitEachChild(a,A,n)}(a)}return A(a)}function k(n){switch(n.kind){case 204:case 203:return function(n){return e.isArrayLiteralExpression(n)?t.updateArrayLiteralExpression(n,e.visitNodes(n.elements,ne,e.isExpression)):t.updateObjectLiteralExpression(n,e.visitNodes(n.properties,te,e.isObjectLiteralElementLike))}(n);default:return A(n)}}function N(r){switch(r.kind){case 170:return;case 171:case 172:case 168:return function(r){if(e.Debug.assert(!e.some(r.decorators)),!p||!e.isPrivateIdentifier(r.name))return e.visitEachChild(r,N,n);var a=$(r.name);if(e.Debug.assert(a,"Undeclared private name for property declaration."),!a.isValid)return r;var i=function(n){e.Debug.assert(e.isPrivateIdentifier(n.name));var t=$(n.name);if(e.Debug.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(e.isGetAccessor(n))return t.getterName;if(e.isSetAccessor(n))return t.setterName}}(r);i&&X().push(t.createAssignment(i,t.createFunctionExpression(e.filter(r.modifiers,(function(n){return!e.isStaticModifier(n)})),r.asteriskToken,i,void 0,e.visitParameterList(r.parameters,N,n),void 0,e.visitFunctionBody(r.body,N,n))));return}(r);case 166:return R(r);case 161:return function(r){var a=e.visitEachChild(r,A,n);if(e.some(h)){var i=h;i.push(a.expression),h=[],a=t.updateComputedPropertyName(a,t.inlineExpressions(i))}return a}(r);case 233:return r;default:return A(r)}}function R(n){if(e.Debug.assert(!e.some(n.decorators)),e.isPrivateIdentifier(n.name)){if(!p)return t.updatePropertyDeclaration(n,void 0,e.visitNodes(n.modifiers,A,e.isModifier),n.name,void 0,void 0,void 0);var a=$(n.name);if(e.Debug.assert(a,"Undeclared private name for property declaration."),!a.isValid)return n}var i=function(n,a){if(e.isComputedPropertyName(n)){var i=e.visitNode(n.expression,A,e.isExpression),o=e.skipPartiallyEmittedExpressions(i),l=e.isSimpleInlineableExpression(o);if(!(e.isAssignmentExpression(o)&&e.isGeneratedIdentifier(o.left))&&!l&&a){var u=t.getGeneratedNameForNode(n);return 524288&c.getNodeCheckFlags(n)?s(u):r(u),t.createAssignment(u,i)}return l||e.isIdentifier(o)?void 0:i}}(n.name,!!n.initializer||d);i&&!e.isSimpleInlineableExpression(i)&&X().push(i)}function O(n,t){return w(n,e.visitNode(t,A,e.isExpression))}function w(t,r){switch(e.setCommentRange(r,e.moveRangePos(r,-1)),t.kind){case"a":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.getterName);case"m":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.methodName);case"f":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.variableName);default:e.Debug.assertNever(t,"Unknown private element type")}}function M(n){var a=e.nodeIsSynthesized(n)?n:t.cloneNode(n);if(e.isSimpleInlineableExpression(n))return{readExpression:a,initializeExpression:void 0};var i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,a)}}function P(n){if(p){E&&L.set(e.getOriginalNodeId(n),E),i();var r=S;S=n;var o=e.visitNodes(n.body.statements,A,e.isStatement);o=t.mergeLexicalEnvironment(o,a()),S=r;var s=t.createImmediatelyInvokedArrowFunction(o);return e.setOriginalNode(s,n),e.setTextRange(s,n),e.addEmitFlags(s,2),s}}function F(r,a,i,o){if(a=e.visitNode(a,A,e.isExpression),i=e.visitNode(i,A,e.isExpression),e.isCompoundAssignment(o)){var s=M(a),c=s.readExpression;a=s.initializeExpression||c,i=t.createBinaryExpression(w(r,c),e.getNonAssignmentOperatorForCompoundAssignment(o),i)}switch(e.setCommentRange(a,e.moveRangePos(a,-1)),r.kind){case"a":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(a,r.brandCheckIdentifier,i,r.kind,r.setterName);case"m":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(a,r.brandCheckIdentifier,i,r.kind,void 0);case"f":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(a,r.brandCheckIdentifier,i,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function G(n){return e.isPropertyDeclaration(n)||e.isClassStaticBlockDeclaration(n)||p&&n.name&&e.isPrivateIdentifier(n.name)}function B(n){return e.filter(n.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function U(n){var t=0,r=e.getOriginalNode(n);e.isClassDeclaration(r)&&e.classOrConstructorParameterIsDecorated(r)&&(t|=1);for(var a=0,i=n.members;a<i.length;a++){var o=i[a];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&p&&(t|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(m&&8192&o.transformFlags&&(1&(t|=8)||(t|=2)),f&&33554432&o.transformFlags&&(1&t||(t|=6))))}return t}function V(r,i){if(p){for(var s=0,c=r.members;s<c.length;s++){var l=c[s];e.isPrivateIdentifierClassElementDeclaration(l)&&Y(l)}e.some(B(r))&&function(){var n=q().weakSetName;e.Debug.assert(n,"weakSetName should be set in private identifier environment"),X().push(t.createAssignment(n,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}()}var u=[],f=function(r,i){var s=e.visitNode(e.getFirstConstructorWithBody(r),A,e.isConstructorDeclaration),c=r.members.filter(j);if(!e.some(c))return s;var l=e.visitParameterList(s?s.parameters:void 0,A,n),u=function(r,i,s){var c=e.getProperties(r,!1,!1);d||(c=e.filter(c,(function(n){return!!n.initializer||e.isPrivateIdentifier(n.name)})));var l=B(r),u=e.some(c)||e.some(l);if(!i&&!u)return e.visitFunctionBody(void 0,A,n);o();var f=0,m=[];!i&&s&&m.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));i&&(f=e.addPrologueDirectivesAndInitialSuperCall(t,i,m,A));if(null===i||void 0===i?void 0:i.body){var _=e.findIndex(i.body.statements,(function(n){return!e.isParameterPropertyDeclaration(e.getOriginalNode(n),i)}),f);-1===_&&(_=i.body.statements.length),_>f&&(d||e.addRange(m,e.visitNodes(i.body.statements,A,e.isStatement,f,_-f)),f=_)}var g=t.createThis();(function(n,r,a){if(!p||!e.some(r))return;var i=q().weakSetName;e.Debug.assert(i,"weakSetName should be set in private identifier environment"),n.push(t.createExpressionStatement(function(n,t){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(t,"add"),void 0,[n])}(a,i)))})(m,l,g),K(m,c,g),i&&e.addRange(m,e.visitNodes(i.body.statements,A,e.isStatement,f));return m=t.mergeLexicalEnvironment(m,a()),e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(m),i?i.body.statements:r.members),!0),i?i.body:void 0)}(r,s,i);if(!u)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(t.createConstructorDeclaration(void 0,void 0,null!==l&&void 0!==l?l:[],u),s||r),s))}(r,i);return f&&u.push(f),e.addRange(u,e.visitNodes(r.members,N,e.isClassElement)),e.setTextRange(t.createNodeArray(u),r.members)}function j(n){return!e.isStatic(n)&&!e.hasSyntacticModifier(e.getOriginalNode(n),128)&&(d?u<99:e.isInitializedProperty(n)||p&&e.isPrivateIdentifierClassElementDeclaration(n))}function K(n,r,a){for(var i=0,o=r;i<o.length;i++){var s=o[i],c=e.isClassStaticBlockDeclaration(s)?P(s):H(s,a);if(c){var l=t.createExpressionStatement(c);e.setSourceMapRange(l,e.moveRangePastModifiers(s)),e.setCommentRange(l,s),e.setOriginalNode(l,s),n.push(l)}}}function H(n,r){var a=S,i=function(n,r){var a,i=!d,o=e.isComputedPropertyName(n.name)&&!e.isSimpleInlineableExpression(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;e.hasStaticModifier(n)&&(S=n);if(p&&e.isPrivateIdentifier(o)){var s=$(o);if(s)return"f"===s.kind?s.isStatic?function(n,t){return e.factory.createAssignment(n,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",t||e.factory.createVoidZero())]))}(s.variableName,e.visitNode(n.initializer,A,e.isExpression)):function(n,t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"set"),void 0,[n,t||e.factory.createVoidZero()])}(r,e.visitNode(n.initializer,A,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if((e.isPrivateIdentifier(o)||e.hasStaticModifier(n))&&!n.initializer)return;var c=e.getOriginalNode(n);if(e.hasSyntacticModifier(c,128))return;var l=n.initializer||i?null!==(a=e.visitNode(n.initializer,A,e.isExpression))&&void 0!==a?a:t.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:t.createVoidZero();if(i||e.isPrivateIdentifier(o)){var u=e.createMemberAccessForPropertyName(t,r,o,o);return t.createAssignment(u,l)}var f=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?t.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,m=t.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,f,m)}(n,r);return i&&e.hasStaticModifier(n)&&(null===E||void 0===E?void 0:E.facts)&&(e.setOriginalNode(i,n),e.addEmitFlags(i,2),L.set(e.getOriginalNodeId(i),E)),S=a,i}function W(){0===(2&g)&&(g|=2,n.enableSubstitution(108),n.enableEmitNotification(255),n.enableEmitNotification(212),n.enableEmitNotification(170),n.enableEmitNotification(171),n.enableEmitNotification(172),n.enableEmitNotification(168),n.enableEmitNotification(166),n.enableEmitNotification(161))}function z(n){return e.isPropertyAccessExpression(n)?t.updatePropertyAccessExpression(n,t.createVoidZero(),n.name):t.updateElementAccessExpression(n,t.createVoidZero(),e.visitNode(n.argumentExpression,A,e.isExpression))}function J(){return E||(E={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function q(){var n=J();return n.privateIdentifierEnvironment||(n.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),n.privateIdentifierEnvironment}function X(){return h||(h=[])}function Y(n){var r,a=e.getTextOfPropertyName(n.name),i=J().classConstructor,o=q(),s=o.weakSetName,c=[],l=n.name.escapedText,u=o.identifiers.get(l),d=!function(e){return"#constructor"===e.escapedText}(n.name)&&void 0===u;if(e.hasStaticModifier(n))if(e.Debug.assert(i,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(n)){var p=Z(a,n);o.identifiers.set(l,{kind:"f",variableName:p,brandCheckIdentifier:i,isStatic:!0,isValid:d})}else if(e.isMethodDeclaration(n)){var f=Z(a,n);o.identifiers.set(l,{kind:"m",methodName:f,brandCheckIdentifier:i,isStatic:!0,isValid:d})}else if(e.isGetAccessorDeclaration(n)){var m=Z(a+"_get",n);"a"===(null===u||void 0===u?void 0:u.kind)&&u.isStatic&&!u.getterName?u.getterName=m:o.identifiers.set(l,{kind:"a",getterName:m,setterName:void 0,brandCheckIdentifier:i,isStatic:!0,isValid:d})}else if(e.isSetAccessorDeclaration(n)){var _=Z(a+"_set",n);"a"===(null===u||void 0===u?void 0:u.kind)&&u.isStatic&&!u.setterName?u.setterName=_:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:_,brandCheckIdentifier:i,isStatic:!0,isValid:d})}else e.Debug.assertNever(n,"Unknown class element type.");else if(e.isPropertyDeclaration(n)){var g=Z(a,n);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:g,isStatic:!1,variableName:void 0,isValid:d}),c.push(t.createAssignment(g,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(n))e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:Z(a,n),brandCheckIdentifier:s,isStatic:!1,isValid:d});else if(e.isAccessor(n))if(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(n)){m=Z(a+"_get",n);"a"!==(null===u||void 0===u?void 0:u.kind)||u.isStatic||u.getterName?o.identifiers.set(l,{kind:"a",getterName:m,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.getterName=m}else{_=Z(a+"_set",n);"a"!==(null===u||void 0===u?void 0:u.kind)||u.isStatic||u.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:_,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.setterName=_}else e.Debug.assertNever(n,"Unknown class element type.");(r=X()).push.apply(r,c)}function Q(e,n){var a=q().className,i=a?"_".concat(a):"",o=t.createUniqueName("".concat(i,"_").concat(e),16);return 524288&c.getNodeCheckFlags(n)?s(o):r(o),o}function Z(e,n){return Q(e.substring(1),n.name)}function $(e){var n;if((null===E||void 0===E?void 0:E.privateIdentifierEnvironment)&&(r=E.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return r;for(var t=x.length-1;t>=0;--t){var r,a=x[t];if(a)if(r=null===(n=a.privateIdentifierEnvironment)||void 0===n?void 0:n.identifiers.get(e.escapedText))return r}}function ee(a){var i=t.getGeneratedNameForNode(a),o=$(a.name);if(!o)return e.visitEachChild(a,A,n);var s=a.expression;return(e.isThisProperty(a)||e.isSuperProperty(a)||!e.isSimpleCopiableExpression(a.expression))&&(s=t.createTempVariable(r,!0),X().push(t.createBinaryExpression(s,63,e.visitNode(a.expression,A,e.isExpression)))),t.createAssignmentTargetWrapper(i,F(o,s,i,63))}function ne(n){var r=e.getTargetOfBindingOrAssignmentElement(n);if(r){var a=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(r))a=ee(r);else if(f&&e.isSuperProperty(r)&&S&&E){var i=E.classConstructor,o=E.superClassReference;if(1&E.facts)a=z(r);else if(i&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,A,e.isExpression):e.isIdentifier(r.name)?t.createStringLiteralFromNode(r.name):void 0;if(s){var c=t.createTempVariable(void 0);a=t.createAssignmentTargetWrapper(c,t.createReflectSetCall(o,s,c,i))}}}if(a)return e.isAssignmentExpression(n)?t.updateBinaryExpression(n,a,n.operatorToken,e.visitNode(n.right,A,e.isExpression)):e.isSpreadElement(n)?t.updateSpreadElement(n,a):a}return e.visitNode(n,k)}function te(n){if(e.isObjectBindingOrAssignmentElement(n)&&!e.isShorthandPropertyAssignment(n)){var r=e.getTargetOfBindingOrAssignmentElement(n),a=void 0;if(r)if(e.isPrivateIdentifierPropertyAccessExpression(r))a=ee(r);else if(f&&e.isSuperProperty(r)&&S&&E){var i=E.classConstructor,o=E.superClassReference;if(1&E.facts)a=z(r);else if(i&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,A,e.isExpression):e.isIdentifier(r.name)?t.createStringLiteralFromNode(r.name):void 0;if(s){var c=t.createTempVariable(void 0);a=t.createAssignmentTargetWrapper(c,t.createReflectSetCall(o,s,c,i))}}}if(e.isPropertyAssignment(n)){var l=e.getInitializerOfBindingOrAssignmentElement(n);return t.updatePropertyAssignment(n,e.visitNode(n.name,A,e.isPropertyName),a?l?t.createAssignment(a,e.visitNode(l,A)):a:e.visitNode(n.initializer,k,e.isExpression))}if(e.isSpreadAssignment(n))return t.updateSpreadAssignment(n,a||e.visitNode(n.expression,k,e.isExpression));e.Debug.assert(void 0===a,"Should not have generated a wrapped target")}return e.visitNode(n,A)}}}(ha||(ha={})),function(e){var n,t,r,a;function i(n,t,r,a){var i=0!==(4096&t.getNodeCheckFlags(r)),o=[];return a.forEach((function(t,r){var a=e.unescapeLeadingUnderscores(r),s=[];s.push(n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),a),4)))),i&&s.push(n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,n.createAssignment(e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),a),4),n.createIdentifier("v"))))),o.push(n.createPropertyAssignment(a,n.createObjectLiteralExpression(s)))})),n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super",48),void 0,void 0,n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[n.createNull(),n.createObjectLiteralExpression(o,!0)]))],2))}(t=n||(n={}))[t.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",(a=r||(r={}))[a.NonTopLevel=1]="NonTopLevel",a[a.HasLexicalThis=2]="HasLexicalThis",e.transformES2017=function(n){var t,r,a,o,s=n.factory,c=n.getEmitHelperFactory,l=n.resumeLexicalEnvironment,u=n.endLexicalEnvironment,d=n.hoistVariableDeclaration,p=n.getEmitResolver(),f=n.getCompilerOptions(),m=e.getEmitScriptTarget(f),_=0,g=[],y=0,h=n.onEmitNode,v=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){if(1&t&&function(e){var n=e.kind;return 256===n||170===n||168===n||171===n||172===n}(r)){var i=6144&p.getNodeCheckFlags(r);if(i!==_){var o=_;return _=i,h(n,r,a),void(_=o)}}else if(t&&g[e.getNodeId(r)]){o=_;return _=0,h(n,r,a),void(_=o)}h(n,r,a)},n.onSubstituteNode=function(n,t){if(t=v(n,t),1===n&&_)return function(n){switch(n.kind){case 205:return B(n);case 206:return U(n);case 207:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?B(t):U(t);return s.createCallExpression(s.createPropertyAccessExpression(r,"call"),void 0,pa([s.createThis()],n.arguments,!0))}return n}(n)}return n}(t);return t},e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(t,f));var r=e.visitEachChild(t,L,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function b(e,n){y=n?y|e:y&~e}function E(e){return 0!==(y&e)}function T(){return E(2)}function S(e,n,t){var r=e&~y;if(r){b(r,!0);var a=n(t);return b(r,!1),a}return n(t)}function x(t){return e.visitEachChild(t,L,n)}function L(t){if(0===(128&t.transformFlags))return t;switch(t.kind){case 131:return;case 217:return function(t){if(!E(1))return e.visitEachChild(t,L,n);return e.setOriginalNode(e.setTextRange(s.createYieldExpression(void 0,e.visitNode(t.expression,L,e.isExpression)),t),t)}(t);case 168:return S(3,C,t);case 255:return S(3,A,t);case 212:return S(3,I,t);case 213:return S(1,k,t);case 205:return a&&e.isPropertyAccessExpression(t)&&106===t.expression.kind&&a.add(t.name.escapedText),e.visitEachChild(t,L,n);case 206:return a&&106===t.expression.kind&&(o=!0),e.visitEachChild(t,L,n);case 171:case 172:case 170:case 256:case 225:return S(3,x,t);default:return e.visitEachChild(t,L,n)}}function D(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 236:return function(t){if(R(t.declarationList)){var r=O(t.declarationList,!1);return r?s.createExpressionStatement(r):void 0}return e.visitEachChild(t,L,n)}(t);case 241:return function(t){var r=t.initializer;return s.updateForStatement(t,R(r)?O(r,!1):e.visitNode(t.initializer,L,e.isForInitializer),e.visitNode(t.condition,L,e.isExpression),e.visitNode(t.incrementor,L,e.isExpression),e.visitIterationBody(t.statement,D,n))}(t);case 242:return function(t){return s.updateForInStatement(t,R(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,L,e.isForInitializer),e.visitNode(t.expression,L,e.isExpression),e.visitIterationBody(t.statement,D,n))}(t);case 243:return function(t){return s.updateForOfStatement(t,e.visitNode(t.awaitModifier,L,e.isToken),R(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,L,e.isForInitializer),e.visitNode(t.expression,L,e.isExpression),e.visitIterationBody(t.statement,D,n))}(t);case 291:return function(t){var a,i=new e.Set;if(N(t.variableDeclaration,i),i.forEach((function(n,t){r.has(t)&&(a||(a=new e.Set(r)),a.delete(t))})),a){var o=r;r=a;var s=e.visitEachChild(t,D,n);return r=o,s}return e.visitEachChild(t,D,n)}(t);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(t,D,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return L(t)}function C(t){return s.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,L,n),void 0,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function A(t){return s.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,L,n),void 0,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function I(t){return s.updateFunctionExpression(t,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,L,n),void 0,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function k(t){return s.updateArrowFunction(t,e.visitNodes(t.modifiers,L,e.isModifier),void 0,e.visitParameterList(t.parameters,L,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function N(n,t){var r=n.name;if(e.isIdentifier(r))t.add(r.escapedText);else for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||N(o,t)}}function R(n){return!!n&&e.isVariableDeclarationList(n)&&!(3&n.flags)&&n.declarations.some(P)}function O(n,t){!function(n){e.forEach(n.declarations,w)}(n);var r=e.getInitializedVariables(n);return 0===r.length?t?e.visitNode(s.converters.convertToAssignmentElementTarget(n.declarations[0].name),L,e.isExpression):void 0:s.inlineExpressions(e.map(r,M))}function w(n){var t=n.name;if(e.isIdentifier(t))d(t);else for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||w(i)}}function M(n){var t=e.setSourceMapRange(s.createAssignment(s.converters.convertToAssignmentElementTarget(n.name),n.initializer),n);return e.visitNode(t,L,e.isExpression)}function P(n){var t=n.name;if(e.isIdentifier(t))return r.has(t.escapedText);for(var a=0,i=t.elements;a<i.length;a++){var o=i[a];if(!e.isOmittedExpression(o)&&P(o))return!0}return!1}function F(d){l();var f=e.getOriginalNode(d,e.isFunctionLike).type,_=m<2?function(n){var t=n&&e.getEntityNameFromTypeNode(n);if(t&&e.isEntityName(t)){var r=p.getTypeReferenceSerializationKind(t);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return t}return}(f):void 0,y=213===d.kind,h=0!==(8192&p.getNodeCheckFlags(d)),v=r;r=new e.Set;for(var b=0,E=d.parameters;b<E.length;b++){N(E[b],r)}var S,x=a,D=o;if(y||(a=new e.Set,o=!1),y){var C=c().createAwaiterHelper(T(),h,_,G(d.body)),A=u();if(e.some(A)){w=s.converters.convertToFunctionBlock(C);S=s.updateBlock(w,e.setTextRange(s.createNodeArray(e.concatenate(A,w.statements)),w.statements))}else S=C}else{var I=[],k=s.copyPrologue(d.body.statements,I,!1,L);I.push(s.createReturnStatement(c().createAwaiterHelper(T(),h,_,G(d.body,k)))),e.insertStatementsAfterStandardPrologue(I,u());var R=m>=2&&6144&p.getNodeCheckFlags(d);if(R&&(0===(1&t)&&(t|=1,n.enableSubstitution(207),n.enableSubstitution(205),n.enableSubstitution(206),n.enableEmitNotification(256),n.enableEmitNotification(168),n.enableEmitNotification(171),n.enableEmitNotification(172),n.enableEmitNotification(170),n.enableEmitNotification(236)),a.size)){var O=i(s,p,d,a);g[e.getNodeId(O)]=!0,e.insertStatementsAfterStandardPrologue(I,[O])}var w=s.createBlock(I,!0);e.setTextRange(w,d.body),R&&o&&(4096&p.getNodeCheckFlags(d)?e.addEmitHelper(w,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(d)&&e.addEmitHelper(w,e.asyncSuperHelper)),S=w}return r=v,y||(a=x,o=D),S}function G(n,t){return e.isBlock(n)?s.updateBlock(n,e.visitNodes(n.statements,D,e.isStatement,t)):s.converters.convertToFunctionBlock(e.visitNode(n,D,e.isConciseBody))}function B(n){return 106===n.expression.kind?e.setTextRange(s.createPropertyAccessExpression(s.createUniqueName("_super",48),n.name),n):n}function U(n){return 106===n.expression.kind?(t=n.argumentExpression,r=n,4096&_?e.setTextRange(s.createPropertyAccessExpression(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[t]),"value"),r):e.setTextRange(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[t]),r)):n;var t,r}},e.createSuperAccessVariableStatement=i}(ha||(ha={})),function(e){var n,t,r,a;(t=n||(n={}))[t.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",(a=r||(r={}))[a.None=0]="None",a[a.HasLexicalThis=1]="HasLexicalThis",a[a.IterationContainer=2]="IterationContainer",a[a.AncestorFactsMask=3]="AncestorFactsMask",a[a.SourceFileIncludes=1]="SourceFileIncludes",a[a.SourceFileExcludes=2]="SourceFileExcludes",a[a.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",a[a.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",a[a.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",a[a.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",a[a.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",a[a.IterationStatementIncludes=2]="IterationStatementIncludes",a[a.IterationStatementExcludes=0]="IterationStatementExcludes",e.transformES2018=function(n){var t=n.factory,r=n.getEmitHelperFactory,a=n.resumeLexicalEnvironment,i=n.endLexicalEnvironment,o=n.hoistVariableDeclaration,s=n.getEmitResolver(),c=n.getCompilerOptions(),l=e.getEmitScriptTarget(c),u=n.onEmitNode;n.onEmitNode=function(n,t,r){if(1&p&&function(e){var n=e.kind;return 256===n||170===n||168===n||171===n||172===n}(t)){var a=6144&s.getNodeCheckFlags(t);if(a!==v){var i=v;return v=a,u(n,t,r),void(v=i)}}else if(p&&E[e.getNodeId(t)]){i=v;return v=0,u(n,t,r),void(v=i)}u(n,t,r)};var d=n.onSubstituteNode;n.onSubstituteNode=function(n,r){if(r=d(n,r),1===n&&v)return function(n){switch(n.kind){case 205:return W(n);case 206:return z(n);case 207:return function(n){var r=n.expression;if(e.isSuperProperty(r)){var a=e.isPropertyAccessExpression(r)?W(r):z(r);return t.createCallExpression(t.createPropertyAccessExpression(a,"call"),void 0,pa([t.createThis()],n.arguments,!0))}return n}(n)}return n}(r);return r};var p,f,m,_,g,y,h=!1,v=0,b=0,E=[];return e.chainBundle(n,(function(r){if(r.isDeclarationFile)return r;m=r;var a=function(r){var a=T(2,e.isEffectiveStrictModeSourceFile(r,c)?0:1);h=!1;var i=e.visitEachChild(r,L,n),o=e.concatenate(i.statements,_&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(_))]),s=t.updateSourceFile(i,e.setTextRange(t.createNodeArray(o),r.statements));return S(a),s}(r);return e.addEmitHelpers(a,n.readEmitHelpers()),m=void 0,_=void 0,a}));function T(e,n){var t=b;return b=3&(b&~e|n),t}function S(e){b=e}function x(n){_=e.append(_,t.createVariableDeclaration(n))}function L(e){return k(e,!1)}function D(e){return k(e,!0)}function C(e){if(131!==e.kind)return e}function A(e,n,t,r){if(function(e,n){return b!==(b&~e|n)}(t,r)){var a=T(t,r),i=e(n);return S(a),i}return e(n)}function I(t){return e.visitEachChild(t,L,n)}function k(a,i){if(0===(64&a.transformFlags))return a;switch(a.kind){case 217:return function(a){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(e.visitNode(a.expression,L,e.isExpression))),a),a);return e.visitEachChild(a,L,n)}(a);case 223:return function(a){if(2&f&&1&f){if(a.asteriskToken){var i=e.visitNode(e.Debug.assertDefined(a.expression),L,e.isExpression);return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(a,a.asteriskToken,e.setTextRange(r().createAsyncDelegatorHelper(e.setTextRange(r().createAsyncValuesHelper(i),i)),i)))),a),a)}return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,w(a.expression?e.visitNode(a.expression,L,e.isExpression):t.createVoidZero())),a),a)}return e.visitEachChild(a,L,n)}(a);case 246:return function(r){if(2&f&&1&f)return t.updateReturnStatement(r,w(r.expression?e.visitNode(r.expression,L,e.isExpression):t.createVoidZero()));return e.visitEachChild(r,L,n)}(a);case 249:return function(r){if(2&f){var a=e.unwrapInnermostStatementOfLabel(r);return 243===a.kind&&a.awaitModifier?O(a,r):t.restoreEnclosingLabel(e.visitNode(a,L,e.isStatement,t.liftToBlock),r)}return e.visitEachChild(r,L,n)}(a);case 204:return function(a){if(32768&a.transformFlags){var i=function(n){for(var r,a=[],i=0,o=n;i<o.length;i++){var s=o[i];if(296===s.kind){r&&(a.push(t.createObjectLiteralExpression(r)),r=void 0);var c=s.expression;a.push(e.visitNode(c,L,e.isExpression))}else r=e.append(r,294===s.kind?t.createPropertyAssignment(s.name,e.visitNode(s.initializer,L,e.isExpression)):e.visitNode(s,L,e.isObjectLiteralElementLike))}r&&a.push(t.createObjectLiteralExpression(r));return a}(a.properties);i.length&&204!==i[0].kind&&i.unshift(t.createObjectLiteralExpression());var o=i[0];if(i.length>1){for(var s=1;s<i.length;s++)o=r().createAssignHelper([o,i[s]]);return o}return r().createAssignHelper(i)}return e.visitEachChild(a,L,n)}(a);case 220:return function(r,a){if(e.isDestructuringAssignment(r)&&32768&r.left.transformFlags)return e.flattenDestructuringAssignment(r,L,n,1,!a);if(27===r.operatorToken.kind)return t.updateBinaryExpression(r,e.visitNode(r.left,D,e.isExpression),r.operatorToken,e.visitNode(r.right,a?D:L,e.isExpression));return e.visitEachChild(r,L,n)}(a,i);case 349:return function(r,a){if(a)return e.visitEachChild(r,D,n);for(var i,o=0;o<r.elements.length;o++){var s=r.elements[o],c=e.visitNode(s,o<r.elements.length-1?D:L,e.isExpression);(i||c!==s)&&(i||(i=r.elements.slice(0,o)),i.push(c))}var l=i?e.setTextRange(t.createNodeArray(i),r.elements):r.elements;return t.updateCommaListExpression(r,l)}(a,i);case 291:return function(r){if(r.variableDeclaration&&e.isBindingPattern(r.variableDeclaration.name)&&32768&r.variableDeclaration.name.transformFlags){var a=t.getGeneratedNameForNode(r.variableDeclaration.name),i=t.updateVariableDeclaration(r.variableDeclaration,r.variableDeclaration.name,void 0,void 0,a),o=e.flattenDestructuringBinding(i,L,n,1),s=e.visitNode(r.block,L,e.isBlock);return e.some(o)&&(s=t.updateBlock(s,pa([t.createVariableStatement(void 0,o)],s.statements,!0))),t.updateCatchClause(r,t.updateVariableDeclaration(r.variableDeclaration,a,void 0,void 0,void 0),s)}return e.visitEachChild(r,L,n)}(a);case 236:return function(t){if(e.hasSyntacticModifier(t,1)){var r=h;h=!0;var a=e.visitEachChild(t,L,n);return h=r,a}return e.visitEachChild(t,L,n)}(a);case 253:return function(e){if(h){var n=h;h=!1;var t=N(e,!0);return h=n,t}return N(e,!1)}(a);case 239:case 240:case 242:return A(I,a,0,2);case 243:return O(a,void 0);case 241:return A(R,a,0,2);case 216:case 237:return function(t){return e.visitEachChild(t,D,n)}(a);case 170:return A(M,a,2,1);case 168:return A(G,a,2,1);case 171:return A(P,a,2,1);case 172:return A(F,a,2,1);case 255:return A(B,a,2,1);case 212:return A(V,a,2,1);case 213:return A(U,a,2,0);case 163:return function(r){if(32768&r.transformFlags)return t.updateParameterDeclaration(r,void 0,void 0,r.dotDotDotToken,t.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,L,e.isExpression));return e.visitEachChild(r,L,n)}(a);case 211:return function(t,r){return e.visitEachChild(t,r?D:L,n)}(a,i);case 209:return function(t){return e.processTaggedTemplateExpression(n,t,L,m,x,e.ProcessLevel.LiftRestriction)}(a);case 205:return g&&e.isPropertyAccessExpression(a)&&106===a.expression.kind&&g.add(a.name.escapedText),e.visitEachChild(a,L,n);case 206:return g&&106===a.expression.kind&&(y=!0),e.visitEachChild(a,L,n);case 256:case 225:return A(I,a,2,1);default:return e.visitEachChild(a,L,n)}}function N(t,r){return e.isBindingPattern(t.name)&&32768&t.name.transformFlags?e.flattenDestructuringBinding(t,L,n,1,void 0,r):e.visitEachChild(t,L,n)}function R(r){return t.updateForStatement(r,e.visitNode(r.initializer,D,e.isForInitializer),e.visitNode(r.condition,L,e.isExpression),e.visitNode(r.incrementor,D,e.isExpression),e.visitIterationBody(r.statement,L,n))}function O(a,i){var s=T(0,2);32768&a.initializer.transformFlags&&(a=function(n){var r=e.skipParentheses(n.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var a=void 0,i=void 0,o=t.createTempVariable(void 0),s=[e.createForOfBindingStatement(t,r,o)];return e.isBlock(n.statement)?(e.addRange(s,n.statement.statements),a=n.statement,i=n.statement.statements):n.statement&&(e.append(s,n.statement),a=n.statement,i=n.statement),t.updateForOfStatement(n,n.awaitModifier,e.setTextRange(t.createVariableDeclarationList([e.setTextRange(t.createVariableDeclaration(o),n.initializer)],1),n.initializer),n.expression,e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(s),i),!0),a))}return n}(a));var c=a.awaitModifier?function(a,i,s){var c=e.visitNode(a.expression,L,e.isExpression),l=e.isIdentifier(c)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),u=e.isIdentifier(c)?t.getGeneratedNameForNode(l):t.createTempVariable(void 0),d=t.createUniqueName("e"),p=t.getGeneratedNameForNode(d),f=t.createTempVariable(void 0),m=e.setTextRange(r().createAsyncValuesHelper(c),a.expression),_=t.createCallExpression(t.createPropertyAccessExpression(l,"next"),void 0,[]),g=t.createPropertyAccessExpression(u,"done"),y=t.createPropertyAccessExpression(u,"value"),h=t.createFunctionCallCall(f,l,[]);o(d),o(f);var v=2&s?t.inlineExpressions([t.createAssignment(d,t.createVoidZero()),m]):m,b=e.setEmitFlags(e.setTextRange(t.createForStatement(e.setEmitFlags(e.setTextRange(t.createVariableDeclarationList([e.setTextRange(t.createVariableDeclaration(l,void 0,void 0,v),a.expression),t.createVariableDeclaration(u)]),a.expression),2097152),t.createComma(t.createAssignment(u,w(_)),t.createLogicalNot(g)),void 0,function(r,a){var i,o,s=e.createForOfBindingStatement(t,r.initializer,a),c=[e.visitNode(s,L,e.isStatement)],l=e.visitIterationBody(r.statement,L,n);e.isBlock(l)?(e.addRange(c,l.statements),i=l,o=l.statements):c.push(l);return e.setEmitFlags(e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(c),o),!0),i),432)}(a,y)),a),256);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(b,i)]),t.createCatchClause(t.createVariableDeclaration(p),e.setEmitFlags(t.createBlock([t.createExpressionStatement(t.createAssignment(d,t.createObjectLiteralExpression([t.createPropertyAssignment("error",p)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([e.setEmitFlags(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(u,t.createLogicalNot(g)),t.createAssignment(f,t.createPropertyAccessExpression(l,"return"))),t.createExpressionStatement(w(h))),1)]),void 0,e.setEmitFlags(t.createBlock([e.setEmitFlags(t.createIfStatement(d,t.createThrowStatement(t.createPropertyAccessExpression(d,"error"))),1)]),1))]))}(a,i,s):t.restoreEnclosingLabel(e.visitEachChild(a,L,n),i);return S(s),c}function w(e){return 1&f?t.createYieldExpression(void 0,r().createAwaitHelper(e)):t.createAwaitExpression(e)}function M(r){var a=f;f=0;var i=t.updateConstructorDeclaration(r,void 0,r.modifiers,e.visitParameterList(r.parameters,L,n),K(r));return f=a,i}function P(r){var a=f;f=0;var i=t.updateGetAccessorDeclaration(r,void 0,r.modifiers,e.visitNode(r.name,L,e.isPropertyName),e.visitParameterList(r.parameters,L,n),void 0,K(r));return f=a,i}function F(r){var a=f;f=0;var i=t.updateSetAccessorDeclaration(r,void 0,r.modifiers,e.visitNode(r.name,L,e.isPropertyName),e.visitParameterList(r.parameters,L,n),K(r));return f=a,i}function G(r){var a=f;f=e.getFunctionFlags(r);var i=t.updateMethodDeclaration(r,void 0,1&f?e.visitNodes(r.modifiers,C,e.isModifier):r.modifiers,2&f?void 0:r.asteriskToken,e.visitNode(r.name,L,e.isPropertyName),e.visitNode(void 0,L,e.isToken),void 0,e.visitParameterList(r.parameters,L,n),void 0,2&f&&1&f?j(r):K(r));return f=a,i}function B(r){var a=f;f=e.getFunctionFlags(r);var i=t.updateFunctionDeclaration(r,void 0,1&f?e.visitNodes(r.modifiers,C,e.isModifier):r.modifiers,2&f?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,L,n),void 0,2&f&&1&f?j(r):K(r));return f=a,i}function U(r){var a=f;f=e.getFunctionFlags(r);var i=t.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,L,n),void 0,r.equalsGreaterThanToken,K(r));return f=a,i}function V(r){var a=f;f=e.getFunctionFlags(r);var i=t.updateFunctionExpression(r,1&f?e.visitNodes(r.modifiers,C,e.isModifier):r.modifiers,2&f?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,L,n),void 0,2&f&&1&f?j(r):K(r));return f=a,i}function j(o){a();var c=[],u=t.copyPrologue(o.body.statements,c,!1,L);H(c,o);var d=g,f=y;g=new e.Set,y=!1;var m=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),o.name&&t.getGeneratedNameForNode(o.name),void 0,[],void 0,t.updateBlock(o.body,e.visitLexicalEnvironment(o.body.statements,L,n,u))),!!(1&b))),_=l>=2&&6144&s.getNodeCheckFlags(o);if(_){0===(1&p)&&(p|=1,n.enableSubstitution(207),n.enableSubstitution(205),n.enableSubstitution(206),n.enableEmitNotification(256),n.enableEmitNotification(168),n.enableEmitNotification(171),n.enableEmitNotification(172),n.enableEmitNotification(170),n.enableEmitNotification(236));var h=e.createSuperAccessVariableStatement(t,s,o,g);E[e.getNodeId(h)]=!0,e.insertStatementsAfterStandardPrologue(c,[h])}c.push(m),e.insertStatementsAfterStandardPrologue(c,i());var v=t.updateBlock(o.body,c);return _&&y&&(4096&s.getNodeCheckFlags(o)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&s.getNodeCheckFlags(o)&&e.addEmitHelper(v,e.asyncSuperHelper)),g=d,y=f,v}function K(n){var r;a();var o=0,s=[],c=null!==(r=e.visitNode(n.body,L,e.isConciseBody))&&void 0!==r?r:t.createBlock([]);e.isBlock(c)&&(o=t.copyPrologue(c.statements,s,!1,L)),e.addRange(s,H(void 0,n));var l=i();if(o>0||e.some(s)||e.some(l)){var u=t.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(o)),t.updateBlock(u,e.setTextRange(t.createNodeArray(s),u.statements))}return c}function H(r,a){for(var i=0,o=a.parameters;i<o.length;i++){var s=o[i];if(32768&s.transformFlags){var c=t.getGeneratedNameForNode(s),l=e.flattenDestructuringBinding(s,L,n,1,c,!1,!0);if(e.some(l)){var u=t.createVariableStatement(void 0,t.createVariableDeclarationList(l));e.setEmitFlags(u,1048576),r=e.append(r,u)}}}return r}function W(n){return 106===n.expression.kind?e.setTextRange(t.createPropertyAccessExpression(t.createUniqueName("_super",48),n.name),n):n}function z(n){return 106===n.expression.kind?(r=n.argumentExpression,a=n,4096&v?e.setTextRange(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[r]),"value"),a):e.setTextRange(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[r]),a)):n;var r,a}}}(ha||(ha={})),function(e){e.transformES2019=function(n){var t=n.factory;return e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;return e.visitEachChild(t,r,n)}));function r(a){return 0===(32&a.transformFlags)?a:291===a.kind?function(a){if(!a.variableDeclaration)return t.updateCatchClause(a,t.createVariableDeclaration(t.createTempVariable(void 0)),e.visitNode(a.block,r,e.isBlock));return e.visitEachChild(a,r,n)}(a):e.visitEachChild(a,r,n)}}}(ha||(ha={})),function(e){e.transformES2020=function(n){var t=n.factory,r=n.hoistVariableDeclaration;return e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;return e.visitEachChild(t,a,n)}));function a(i){if(0===(16&i.transformFlags))return i;switch(i.kind){case 207:var u=o(i,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 205:case 206:if(e.isOptionalChain(i)){u=c(i,!1,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u}return e.visitEachChild(i,a,n);case 220:return 60===i.operatorToken.kind?function(n){var i=e.visitNode(n.left,a,e.isExpression),o=i;e.isSimpleCopiableExpression(i)||(o=t.createTempVariable(r),i=t.createAssignment(o,i));return e.setTextRange(t.createConditionalExpression(l(i,o),void 0,o,void 0,e.visitNode(n.right,a,e.isExpression)),n)}(i):e.visitEachChild(i,a,n);case 214:return function(n){return e.isOptionalChain(e.skipParentheses(n.expression))?e.setOriginalNode(s(n.expression,!1,!0),n):t.updateDeleteExpression(n,e.visitNode(n.expression,a,e.isExpression))}(i);default:return e.visitEachChild(i,a,n)}}function i(n,r,a){var i=s(n.expression,r,a);return e.isSyntheticReference(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(n,i.expression),i.thisArg):t.updateParenthesizedExpression(n,i)}function o(r,o){if(e.isOptionalChain(r))return c(r,o,!1);if(e.isParenthesizedExpression(r.expression)&&e.isOptionalChain(e.skipParentheses(r.expression))){var s=i(r.expression,!0,!1),l=e.visitNodes(r.arguments,a,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(t.createFunctionCallCall(s.expression,s.thisArg,l),r):t.updateCallExpression(r,s,void 0,l)}return e.visitEachChild(r,a,n)}function s(n,s,l){switch(n.kind){case 211:return i(n,s,l);case 205:case 206:return function(n,i,o){if(e.isOptionalChain(n))return c(n,i,o);var s,l=e.visitNode(n.expression,a,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),i&&(e.isSimpleCopiableExpression(l)?s=l:(s=t.createTempVariable(r),l=t.createAssignment(s,l))),l=205===n.kind?t.updatePropertyAccessExpression(n,l,e.visitNode(n.name,a,e.isIdentifier)):t.updateElementAccessExpression(n,l,e.visitNode(n.argumentExpression,a,e.isExpression)),s?t.createSyntheticReferenceExpression(l,s):l}(n,s,l);case 207:return o(n,s);default:return e.visitNode(n,a,e.isExpression)}}function c(n,i,o){var c=function(n){e.Debug.assertNotNode(n,e.isNonNullChain);for(var t=[n];!n.questionDotToken&&!e.isTaggedTemplateExpression(n);)n=e.cast(e.skipPartiallyEmittedExpressions(n.expression),e.isOptionalChain),e.Debug.assertNotNode(n,e.isNonNullChain),t.unshift(n);return{expression:n.expression,chain:t}}(n),u=c.expression,d=c.chain,p=s(u,e.isCallChain(d[0]),!1),f=e.isSyntheticReference(p)?p.thisArg:void 0,m=e.isSyntheticReference(p)?p.expression:p,_=m;e.isSimpleCopiableExpression(m)||(_=t.createTempVariable(r),m=t.createAssignment(_,m));for(var g,y=_,h=0;h<d.length;h++){var v=d[h];switch(v.kind){case 205:case 206:h===d.length-1&&i&&(e.isSimpleCopiableExpression(y)?g=y:(g=t.createTempVariable(r),y=t.createAssignment(g,y))),y=205===v.kind?t.createPropertyAccessExpression(y,e.visitNode(v.name,a,e.isIdentifier)):t.createElementAccessExpression(y,e.visitNode(v.argumentExpression,a,e.isExpression));break;case 207:y=0===h&&f?t.createFunctionCallCall(y,106===f.kind?t.createThis():f,e.visitNodes(v.arguments,a,e.isExpression)):t.createCallExpression(y,void 0,e.visitNodes(v.arguments,a,e.isExpression))}e.setOriginalNode(y,v)}var b=o?t.createConditionalExpression(l(m,_,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(y)):t.createConditionalExpression(l(m,_,!0),void 0,t.createVoidZero(),void 0,y);return e.setTextRange(b,n),g?t.createSyntheticReferenceExpression(b,g):b}function l(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?36:37),t.createNull()),t.createToken(r?56:55),t.createBinaryExpression(n,t.createToken(r?36:37),t.createVoidZero()))}}}(ha||(ha={})),function(e){e.transformES2021=function(n){var t=n.hoistVariableDeclaration,r=n.factory;return e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;return e.visitEachChild(t,a,n)}));function a(i){if(0===(8&i.transformFlags))return i;if(220===i.kind){var o=i;if(e.isLogicalOrCoalescingAssignmentExpression(o))return function(n){var i=n.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(i.kind),s=e.skipParentheses(e.visitNode(n.left,a,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(n.right,a,e.isExpression));if(e.isAccessExpression(s)){var u=e.isSimpleCopiableExpression(s.expression),d=u?s.expression:r.createTempVariable(t),p=u?s.expression:r.createAssignment(d,s.expression);if(e.isPropertyAccessExpression(s))c=r.createPropertyAccessExpression(d,s.name),s=r.createPropertyAccessExpression(p,s.name);else{var f=e.isSimpleCopiableExpression(s.argumentExpression),m=f?s.argumentExpression:r.createTempVariable(t);c=r.createElementAccessExpression(d,m),s=r.createElementAccessExpression(p,f?s.argumentExpression:r.createAssignment(m,s.argumentExpression))}}return r.createBinaryExpression(s,o,r.createParenthesizedExpression(r.createAssignment(c,l)))}(o)}return e.visitEachChild(i,a,n)}}}(ha||(ha={})),function(e){e.transformESNext=function(n){return e.chainBundle(n,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,t,n)}));function t(r){return 0===(4&r.transformFlags)?r:(r.kind,e.visitEachChild(r,t,n))}}}(ha||(ha={})),function(e){e.transformJsx=function(t){var r,a,i=t.factory,o=t.getEmitHelperFactory,s=t.getCompilerOptions();return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;r=n,(a={}).importSpecifier=e.getJSXImplicitImportBase(s,n);var o=e.visitEachChild(n,d,t);e.addEmitHelpers(o,t.readEmitHelpers());var c=o.statements;a.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),i.createVariableStatement(void 0,i.createVariableDeclarationList([a.filenameDeclaration],2))));if(a.utilizedImplicitRuntimeImports)for(var l=0,u=e.arrayFrom(a.utilizedImplicitRuntimeImports.entries());l<u.length;l++){var p=u[l],f=p[0],m=p[1];if(e.isExternalModule(n)){var _=i.createImportDeclaration(void 0,void 0,i.createImportClause(!1,void 0,i.createNamedImports(e.arrayFrom(m.values()))),i.createStringLiteral(f),void 0);e.setParentRecursive(_,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),_)}else if(e.isExternalOrCommonJsModule(n)){var g=i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.createObjectBindingPattern(e.map(e.arrayFrom(m.values()),(function(e){return i.createBindingElement(void 0,e.propertyName,e.name)}))),void 0,void 0,i.createCallExpression(i.createIdentifier("require"),void 0,[i.createStringLiteral(f)]))],2));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}}c!==o.statements&&(o=i.updateSourceFile(o,c));return a=void 0,o}));function c(){if(a.filenameDeclaration)return a.filenameDeclaration.name;var e=i.createVariableDeclaration(i.createUniqueName("_jsxFileName",48),void 0,void 0,i.createStringLiteral(r.fileName));return a.filenameDeclaration=e,a.filenameDeclaration.name}function l(e){var n=function(e){return 5===s.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return u(n)}function u(n){var t,r,o="createElement"===n?a.importSpecifier:e.getJSXRuntimeImport(a.importSpecifier,s),c=null===(r=null===(t=a.utilizedImplicitRuntimeImports)||void 0===t?void 0:t.get(o))||void 0===r?void 0:r.get(n);if(c)return c.name;a.utilizedImplicitRuntimeImports||(a.utilizedImplicitRuntimeImports=e.createMap());var l=a.utilizedImplicitRuntimeImports.get(o);l||(l=e.createMap(),a.utilizedImplicitRuntimeImports.set(o,l));var u=i.createUniqueName("_".concat(n),112),d=i.createImportSpecifier(!1,i.createIdentifier(n),u);return u.generatedImportReference=d,l.set(n,d),u}function d(n){return 2&n.transformFlags?function(n){switch(n.kind){case 277:return m(n,!1);case 278:return _(n,!1);case 281:return g(n,!1);case 287:return k(n);default:return e.visitEachChild(n,d,t)}}(n):n}function p(n){switch(n.kind){case 11:return function(n){var t=function(n){for(var t,r=0,a=-1,i=0;i<n.length;i++){var o=n.charCodeAt(i);e.isLineBreak(o)?(-1!==r&&-1!==a&&(t=C(t,n.substr(r,a-r+1))),r=-1):e.isWhiteSpaceSingleLine(o)||(a=i,-1===r&&(r=i))}return-1!==r?C(t,n.substr(r)):t}(n.text);return void 0===t?void 0:i.createStringLiteral(t)}(n);case 287:return k(n);case 277:return m(n,!0);case 278:return _(n,!0);case 281:return g(n,!0);default:return e.Debug.failBadSyntaxKind(n)}}function f(n){return void 0===a.importSpecifier||function(n){for(var t=!1,r=0,a=n.attributes.properties;r<a.length;r++){var i=a[r];if(e.isJsxSpreadAttribute(i))t=!0;else if(t&&e.isJsxAttribute(i)&&"key"===i.name.escapedText)return!0}return!1}(n)}function m(e,n){return(f(e.openingElement)?b:h)(e.openingElement,e.children,n,e)}function _(e,n){return(f(e)?b:h)(e,void 0,n,e)}function g(e,n){return(void 0===a.importSpecifier?T:E)(e.openingFragment,e.children,n,e)}function y(n){var t=e.getSemanticJsxChildren(n);if(1===e.length(t)&&!t[0].dotDotDotToken){var r=p(t[0]);return r&&i.createPropertyAssignment("children",r)}var a=e.mapDefined(n,p);return e.length(a)?i.createPropertyAssignment("children",i.createArrayLiteralExpression(a)):void 0}function h(n,t,r,a){var o=I(n),s=t&&t.length?y(t):void 0,c=e.find(n.attributes.properties,(function(n){return!!n.name&&e.isIdentifier(n.name)&&"key"===n.name.escapedText})),l=c?e.filter(n.attributes.properties,(function(e){return e!==c})):n.attributes.properties;return v(o,e.length(l)?S(l,s):i.createObjectLiteralExpression(s?[s]:e.emptyArray),c,t||e.emptyArray,r,a)}function v(n,t,a,o,u,d){var p,f=e.getSemanticJsxChildren(o),m=e.length(f)>1||!!(null===(p=f[0])||void 0===p?void 0:p.dotDotDotToken),_=[n,t,a?D(a.initializer):i.createVoidZero()];if(5===s.jsx){var g=e.getOriginalNode(r);if(g&&e.isSourceFile(g)){_.push(m?i.createTrue():i.createFalse());var y=e.getLineAndCharacterOfPosition(g,d.pos);_.push(i.createObjectLiteralExpression([i.createPropertyAssignment("fileName",c()),i.createPropertyAssignment("lineNumber",i.createNumericLiteral(y.line+1)),i.createPropertyAssignment("columnNumber",i.createNumericLiteral(y.character+1))])),_.push(i.createThis())}}var h=e.setTextRange(i.createCallExpression(l(m),void 0,_),d);return u&&e.startOnNewLine(h),h}function b(n,o,c,l){var d=I(n),f=n.attributes.properties,m=e.length(f)?S(f):i.createNull(),_=void 0===a.importSpecifier?e.createJsxFactoryExpression(i,t.getEmitResolver().getJsxFactoryEntity(r),s.reactNamespace,n):u("createElement"),g=e.createExpressionForJsxElement(i,_,d,m,e.mapDefined(o,p),l);return c&&e.startOnNewLine(g),g}function E(e,n,t,r){var a;if(n&&n.length){var o=function(e){var n=y(e);return n&&i.createObjectLiteralExpression([n])}(n);o&&(a=o)}return v(u("Fragment"),a||i.createObjectLiteralExpression([]),void 0,n,t,r)}function T(n,a,o,c){var l=e.createExpressionForJsxFragment(i,t.getEmitResolver().getJsxFactoryEntity(r),t.getEmitResolver().getJsxFragmentFactoryEntity(r),s.reactNamespace,e.mapDefined(a,p),n,c);return o&&e.startOnNewLine(l),l}function S(n,t){var r=e.getEmitScriptTarget(s);return r&&r>=5?i.createObjectLiteralExpression(function(n,t){var r=e.flatten(e.spanMap(n,e.isJsxSpreadAttribute,(function(n,t){return e.map(n,(function(n){return t?(r=n,i.createSpreadAssignment(e.visitNode(r.expression,d,e.isExpression))):L(n);var r}))})));t&&r.push(t);return r}(n,t)):function(n,t){var r=e.flatten(e.spanMap(n,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,x):i.createObjectLiteralExpression(e.map(n,L))})));e.isJsxSpreadAttribute(n[0])&&r.unshift(i.createObjectLiteralExpression());t&&r.push(i.createObjectLiteralExpression([t]));return e.singleOrUndefined(r)||o().createAssignHelper(r)}(n,t)}function x(n){return e.visitNode(n.expression,d,e.isExpression)}function L(n){var t=function(n){var t=n.name,r=e.idText(t);return/^[A-Za-z_]\w*$/.test(r)?t:i.createStringLiteral(r)}(n),r=D(n.initializer);return i.createPropertyAssignment(t,r)}function D(n){if(void 0===n)return i.createTrue();if(10===n.kind){var t=void 0!==n.singleQuote?n.singleQuote:!e.isStringDoubleQuoted(n,r),a=i.createStringLiteral(function(e){var n=A(e);return n===e?void 0:n}(n.text)||n.text,t);return e.setTextRange(a,n)}return 287===n.kind?void 0===n.expression?i.createTrue():e.visitNode(n.expression,d,e.isExpression):e.Debug.failBadSyntaxKind(n)}function C(e,n){var t=A(n);return void 0===e?t:e+" "+t}function A(t){return t.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(t,r,a,i,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=n.get(c);return l?e.utf16EncodeAsString(l):t}))}function I(n){if(277===n.kind)return I(n.openingElement);var t=n.tagName;return e.isIdentifier(t)&&e.isIntrinsicJsxName(t.escapedText)?i.createStringLiteral(e.idText(t)):e.createExpressionFromEntityName(i,t)}function k(n){var t=e.visitNode(n.expression,d,e.isExpression);return n.dotDotDotToken?i.createSpreadElement(t):t}};var n=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(ha||(ha={})),function(e){e.transformES2016=function(n){var t=n.factory,r=n.hoistVariableDeclaration;return e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;return e.visitEachChild(t,a,n)}));function a(i){return 0===(256&i.transformFlags)?i:220===i.kind?function(i){switch(i.operatorToken.kind){case 67:return function(n){var i,o,s=e.visitNode(n.left,a,e.isExpression),c=e.visitNode(n.right,a,e.isExpression);if(e.isElementAccessExpression(s)){var l=t.createTempVariable(r),u=t.createTempVariable(r);i=e.setTextRange(t.createElementAccessExpression(e.setTextRange(t.createAssignment(l,s.expression),s.expression),e.setTextRange(t.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(t.createElementAccessExpression(l,u),s)}else if(e.isPropertyAccessExpression(s)){l=t.createTempVariable(r);i=e.setTextRange(t.createPropertyAccessExpression(e.setTextRange(t.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(t.createPropertyAccessExpression(l,s.name),s)}else i=s,o=s;return e.setTextRange(t.createAssignment(i,e.setTextRange(t.createGlobalMethodCall("Math","pow",[o,c]),n)),n)}(i);case 42:return function(n){var r=e.visitNode(n.left,a,e.isExpression),i=e.visitNode(n.right,a,e.isExpression);return e.setTextRange(t.createGlobalMethodCall("Math","pow",[r,i]),n)}(i);default:return e.visitEachChild(i,a,n)}}(i):e.visitEachChild(i,a,n)}}}(ha||(ha={})),function(e){var n,t,r,a,i,o,s,c,l,u,d,p;function f(e,n){return{kind:e,expression:n}}(t=n||(n={}))[t.CapturedThis=1]="CapturedThis",t[t.BlockScopedBindings=2]="BlockScopedBindings",(a=r||(r={}))[a.Body=1]="Body",a[a.Initializer=2]="Initializer",(o=i||(i={}))[o.ToOriginal=0]="ToOriginal",o[o.ToOutParameter=1]="ToOutParameter",(c=s||(s={}))[c.Break=2]="Break",c[c.Continue=4]="Continue",c[c.Return=8]="Return",(u=l||(l={}))[u.None=0]="None",u[u.Function=1]="Function",u[u.ArrowFunction=2]="ArrowFunction",u[u.AsyncFunctionBody=4]="AsyncFunctionBody",u[u.NonStaticClassElement=8]="NonStaticClassElement",u[u.CapturesThis=16]="CapturesThis",u[u.ExportedVariableStatement=32]="ExportedVariableStatement",u[u.TopLevel=64]="TopLevel",u[u.Block=128]="Block",u[u.IterationStatement=256]="IterationStatement",u[u.IterationStatementBlock=512]="IterationStatementBlock",u[u.IterationContainer=1024]="IterationContainer",u[u.ForStatement=2048]="ForStatement",u[u.ForInOrForOfStatement=4096]="ForInOrForOfStatement",u[u.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",u[u.StaticInitializer=16384]="StaticInitializer",u[u.AncestorFactsMask=32767]="AncestorFactsMask",u[u.BlockScopeIncludes=0]="BlockScopeIncludes",u[u.BlockScopeExcludes=7104]="BlockScopeExcludes",u[u.SourceFileIncludes=64]="SourceFileIncludes",u[u.SourceFileExcludes=8064]="SourceFileExcludes",u[u.FunctionIncludes=65]="FunctionIncludes",u[u.FunctionExcludes=32670]="FunctionExcludes",u[u.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",u[u.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",u[u.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",u[u.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",u[u.ConstructorIncludes=73]="ConstructorIncludes",u[u.ConstructorExcludes=32662]="ConstructorExcludes",u[u.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",u[u.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",u[u.ForStatementIncludes=3328]="ForStatementIncludes",u[u.ForStatementExcludes=5056]="ForStatementExcludes",u[u.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",u[u.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",u[u.BlockIncludes=128]="BlockIncludes",u[u.BlockExcludes=6976]="BlockExcludes",u[u.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",u[u.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",u[u.StaticInitializerIncludes=16449]="StaticInitializerIncludes",u[u.StaticInitializerExcludes=32670]="StaticInitializerExcludes",u[u.NewTarget=32768]="NewTarget",u[u.CapturedLexicalThis=65536]="CapturedLexicalThis",u[u.SubtreeFactsMask=-32768]="SubtreeFactsMask",u[u.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",u[u.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes",(p=d||(d={}))[p.None=0]="None",p[p.UnpackedSpread=1]="UnpackedSpread",p[p.PackedSpread=2]="PackedSpread",e.transformES2015=function(n){var t,r,a,i,o,s,c=n.factory,l=n.getEmitHelperFactory,u=n.startLexicalEnvironment,d=n.resumeLexicalEnvironment,p=n.endLexicalEnvironment,m=n.hoistVariableDeclaration,_=n.getCompilerOptions(),g=n.getEmitResolver(),y=n.onSubstituteNode,h=n.onEmitNode;function v(n){i=e.append(i,c.createVariableDeclaration(n))}return n.onEmitNode=function(n,t,r){if(1&s&&e.isFunctionLike(t)){var a=b(32670,8&e.getEmitFlags(t)?81:65);return h(n,t,r),void E(a,0,0)}h(n,t,r)},n.onSubstituteNode=function(n,t){if(t=y(n,t),1===n)return function(n){switch(n.kind){case 79:return function(n){if(2&s&&!e.isInternalName(n)){var t=g.getReferencedDeclarationWithCollidingName(n);if(t&&(!e.isClassLike(t)||!function(n,t){var r=e.getParseTreeNode(t);if(!r||r===n||r.end<=n.pos||r.pos>=n.end)return!1;var a=e.getEnclosingBlockScopeContainer(n);for(;r;){if(r===a||r===n)return!1;if(e.isClassElement(r)&&r.parent===n)return!0;r=r.parent}return!1}(t,n)))return e.setTextRange(c.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 108:return function(n){if(1&s&&16&a)return e.setTextRange(c.createUniqueName("_this",48),n);return n}(n)}return n}(t);if(e.isIdentifier(t))return function(n){if(2&s&&!e.isInternalName(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 202:case 256:case 259:case 253:return e.parent.name===e&&g.isDeclarationWithCollidingName(e.parent)}return!1}(t))return e.setTextRange(c.getGeneratedNameForNode(t),n)}return n}(t);return t},e.chainBundle(n,(function(o){if(o.isDeclarationFile)return o;t=o,r=o.text;var s=function(n){var t=b(8064,64),r=[],a=[];u();var o=c.copyPrologue(n.statements,r,!1,x);e.addRange(a,e.visitNodes(n.statements,x,e.isStatement,o)),i&&a.push(c.createVariableStatement(void 0,c.createVariableDeclarationList(i)));return c.mergeLexicalEnvironment(r,p()),U(r,n),E(t,0,0),c.updateSourceFile(n,e.setTextRange(c.createNodeArray(e.concatenate(r,a)),n.statements))}(o);return e.addEmitHelpers(s,n.readEmitHelpers()),t=void 0,r=void 0,i=void 0,a=0,s}));function b(e,n){var t=a;return a=32767&(a&~e|n),t}function E(e,n,t){a=-32768&(a&~n|t)|e}function T(e){return 0!==(8192&a)&&246===e.kind&&!e.expression}function S(n){return 0!==(512&n.transformFlags)||void 0!==o||8192&a&&function(n){return 2097152&n.transformFlags&&(e.isReturnStatement(n)||e.isIfStatement(n)||e.isWithStatement(n)||e.isSwitchStatement(n)||e.isCaseBlock(n)||e.isCaseClause(n)||e.isDefaultClause(n)||e.isTryStatement(n)||e.isCatchClause(n)||e.isLabeledStatement(n)||e.isIterationStatement(n,!1)||e.isBlock(n))}(n)||e.isIterationStatement(n,!1)&&pe(n)||0!==(33554432&e.getEmitFlags(n))}function x(e){return S(e)?A(e,!1):e}function L(e){return S(e)?A(e,!0):e}function D(n){if(S(n)){var t=e.getOriginalNode(n);if(e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)){var r=b(32670,16449),a=A(n,!1);return E(r,98304,0),a}return A(n,!1)}return n}function C(e){return 106===e.kind?Ne(!0):x(e)}function A(r,i){switch(r.kind){case 124:return;case 256:return function(n){var t=c.createVariableDeclaration(c.getLocalName(n,!0),void 0,void 0,N(n));e.setOriginalNode(t,n);var r=[],a=c.createVariableStatement(void 0,c.createVariableDeclarationList([t]));if(e.setOriginalNode(a,n),e.setTextRange(a,n),e.startOnNewLine(a),r.push(a),e.hasSyntacticModifier(n,1)){var i=e.hasSyntacticModifier(n,512)?c.createExportDefault(c.getLocalName(n)):c.createExternalModuleExport(c.getLocalName(n));e.setOriginalNode(i,a),r.push(i)}var o=e.getEmitFlags(n);0===(4194304&o)&&(r.push(c.createEndOfDeclarationMarker(n)),e.setEmitFlags(a,4194304|o));return e.singleOrMany(r)}(r);case 225:return function(e){return N(e)}(r);case 163:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(c.createParameterDeclaration(void 0,void 0,void 0,c.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(c.createParameterDeclaration(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 255:return function(t){var r=o;o=void 0;var i=b(32670,65),s=e.visitParameterList(t.parameters,x,n),l=q(t),u=32768&a?c.getLocalName(t):t.name;return E(i,98304,0),o=r,c.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,x,e.isModifier),t.asteriskToken,u,void 0,s,void 0,l)}(r);case 213:return function(t){8192&t.transformFlags&&!(16384&a)&&(a|=65536);var r=o;o=void 0;var i=b(15232,66),s=c.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,x,n),void 0,q(t));return e.setTextRange(s,t),e.setOriginalNode(s,t),e.setEmitFlags(s,8),E(i,0,0),o=r,s}(r);case 212:return function(t){var r=262144&e.getEmitFlags(t)?b(32662,69):b(32670,65),i=o;o=void 0;var s=e.visitParameterList(t.parameters,x,n),l=q(t),u=32768&a?c.getLocalName(t):t.name;return E(r,98304,0),o=i,c.updateFunctionExpression(t,void 0,t.asteriskToken,u,void 0,s,void 0,l)}(r);case 253:return Q(r);case 79:return k(r);case 254:return function(t){if(3&t.flags||262144&t.transformFlags){3&t.flags&&Re();var r=e.flatMap(t.declarations,1&t.flags?Y:Q),a=c.createVariableDeclarationList(r);return e.setOriginalNode(a,t),e.setTextRange(a,t),e.setCommentRange(a,t),262144&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.declarations).name))&&e.setSourceMapRange(a,function(n){for(var t=-1,r=-1,a=0,i=n;a<i.length;a++){var o=i[a];t=-1===t?o.pos:-1===o.pos?t:Math.min(t,o.pos),r=Math.max(r,o.end)}return e.createRange(t,r)}(r)),a}return e.visitEachChild(t,x,n)}(r);case 248:return function(t){if(void 0!==o){var r=o.allowedNonLabeledJumps;o.allowedNonLabeledJumps|=2;var a=e.visitEachChild(t,x,n);return o.allowedNonLabeledJumps=r,a}return e.visitEachChild(t,x,n)}(r);case 262:return function(t){var r=b(7104,0),a=e.visitEachChild(t,x,n);return E(r,0,0),a}(r);case 234:return function(t,r){if(r)return e.visitEachChild(t,x,n);var i=256&a?b(7104,512):b(6976,128),o=e.visitEachChild(t,x,n);return E(i,0,0),o}(r,!1);case 245:case 244:return function(t){if(o){var r=245===t.kind?2:4;if(!(t.label&&o.labels&&o.labels.get(e.idText(t.label))||!t.label&&o.allowedNonLabeledJumps&r)){var a=void 0,i=t.label;i?245===t.kind?(a="break-".concat(i.escapedText),ve(o,!0,e.idText(i),a)):(a="continue-".concat(i.escapedText),ve(o,!1,e.idText(i),a)):245===t.kind?(o.nonLocalJumps|=2,a="break"):(o.nonLocalJumps|=4,a="continue");var s=c.createStringLiteral(a);if(o.loopOutParameters.length){for(var l=o.loopOutParameters,u=void 0,d=0;d<l.length;d++){var p=ye(l[d],1);u=0===d?p:c.createBinaryExpression(u,27,p)}s=c.createBinaryExpression(u,27,s)}return c.createReturnStatement(s)}}return e.visitEachChild(t,x,n)}(r);case 249:return function(n){o&&!o.labels&&(o.labels=new e.Map);var t=e.unwrapInnermostStatementOfLabel(n,o&&Z);return e.isIterationStatement(t,!1)?function(e,n){switch(e.kind){case 239:case 240:return ne(e,n);case 241:return te(e,n);case 242:return re(e,n);case 243:return ae(e,n)}}(t,n):c.restoreEnclosingLabel(e.visitNode(t,x,e.isStatement,c.liftToBlock),n,o&&$)}(r);case 239:case 240:return ne(r,void 0);case 241:return te(r,void 0);case 242:return re(r,void 0);case 243:return ae(r,void 0);case 237:case 216:return function(t){return e.visitEachChild(t,L,n)}(r);case 204:return function(t){for(var r=t.properties,i=-1,o=!1,s=0;s<r.length;s++){var l=r[s];if(524288&l.transformFlags&&4&a||(o=161===e.Debug.checkDefined(l.name).kind)){i=s;break}}if(i<0)return e.visitEachChild(t,x,n);var u=c.createTempVariable(m),d=[],p=c.createAssignment(u,e.setEmitFlags(c.createObjectLiteralExpression(e.visitNodes(r,x,e.isObjectLiteralElementLike,0,i),t.multiLine),o?65536:0));t.multiLine&&e.startOnNewLine(p);return d.push(p),function(n,t,r,a){for(var i=t.properties,o=i.length,s=a;s<o;s++){var c=i[s];switch(c.kind){case 171:case 172:var l=e.getAllAccessorDeclarations(t.properties,c);c===l.firstAccessor&&n.push(z(r,l,t,!!t.multiLine));break;case 168:n.push(xe(c,r,t,t.multiLine));break;case 294:n.push(Te(c,r,t.multiLine));break;case 295:n.push(Se(c,r,t.multiLine));break;default:e.Debug.failBadSyntaxKind(t)}}}(d,t,u,i),d.push(t.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(c.cloneNode(u),u),u.parent)):u),c.inlineExpressions(d)}(r);case 291:return function(t){var r,a=b(7104,0);if(e.Debug.assert(!!t.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(t.variableDeclaration.name)){var i=c.createTempVariable(void 0),o=c.createVariableDeclaration(i);e.setTextRange(o,t.variableDeclaration);var s=e.flattenDestructuringBinding(t.variableDeclaration,x,n,0,i),l=c.createVariableDeclarationList(s);e.setTextRange(l,t.variableDeclaration);var u=c.createVariableStatement(void 0,l);r=c.updateCatchClause(t,o,function(n,t){var r=e.visitNodes(n.statements,x,e.isStatement);return c.updateBlock(n,pa([t],r,!0))}(t.block,u))}else r=e.visitEachChild(t,x,n);return E(a,0,0),r}(r);case 295:return function(n){return e.setTextRange(c.createPropertyAssignment(n.name,k(c.cloneNode(n.name))),n)}(r);case 161:case 223:return function(t){return e.visitEachChild(t,x,n)}(r);case 203:return function(t){if(e.some(t.elements,e.isSpreadElement))return De(t.elements,!1,!!t.multiLine,!!t.elements.hasTrailingComma);return e.visitEachChild(t,x,n)}(r);case 207:return function(n){if(33554432&e.getEmitFlags(n))return function(n){var t=e.cast(e.cast(e.skipOuterExpressions(n.expression),e.isArrowFunction).body,e.isBlock),r=function(n){return e.isVariableStatement(n)&&!!e.first(n.declarationList.declarations).initializer},a=o;o=void 0;var i=e.visitNodes(t.statements,D,e.isStatement);o=a;var s=e.filter(i,r),l=e.filter(i,(function(e){return!r(e)})),u=e.cast(e.first(s),e.isVariableStatement).declarationList.declarations[0],d=e.skipOuterExpressions(u.initializer),p=e.tryCast(d,e.isAssignmentExpression);!p&&e.isBinaryExpression(d)&&27===d.operatorToken.kind&&(p=e.tryCast(d.left,e.isAssignmentExpression));var f=e.cast(p?e.skipOuterExpressions(p.right):d,e.isCallExpression),m=e.cast(e.skipOuterExpressions(f.expression),e.isFunctionExpression),_=m.body.statements,g=0,y=-1,h=[];if(p){var v=e.tryCast(_[g],e.isExpressionStatement);v&&(h.push(v),g++),h.push(_[g]),g++,h.push(c.createExpressionStatement(c.createAssignment(p.left,e.cast(u.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(_,y));)y--;e.addRange(h,_,g,y),y<-1&&e.addRange(h,_,y+1);return e.addRange(h,l),e.addRange(h,s,1),c.restoreOuterExpressions(n.expression,c.restoreOuterExpressions(u.initializer,c.restoreOuterExpressions(p&&p.right,c.updateCallExpression(f,c.restoreOuterExpressions(f.expression,c.updateFunctionExpression(m,void 0,void 0,void 0,void 0,m.parameters,void 0,c.updateBlock(m.body,h))),void 0,f.arguments))))}(n);var t=e.skipOuterExpressions(n.expression);if(106===t.kind||e.isSuperProperty(t)||e.some(n.arguments,e.isSpreadElement))return Le(n,!0);return c.updateCallExpression(n,e.visitNode(n.expression,C,e.isExpression),void 0,e.visitNodes(n.arguments,x,e.isExpression))}(r);case 208:return function(t){if(e.some(t.arguments,e.isSpreadElement)){var r=c.createCallBinding(c.createPropertyAccessExpression(t.expression,"bind"),m),a=r.target,i=r.thisArg;return c.createNewExpression(c.createFunctionApplyCall(e.visitNode(a,x,e.isExpression),i,De(c.createNodeArray(pa([c.createVoidZero()],t.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(t,x,n)}(r);case 211:return function(t,r){return e.visitEachChild(t,r?L:x,n)}(r,i);case 220:return X(r,i);case 349:return function(t,r){if(r)return e.visitEachChild(t,L,n);for(var a,i=0;i<t.elements.length;i++){var o=t.elements[i],s=e.visitNode(o,i<t.elements.length-1?L:x,e.isExpression);(a||s!==o)&&(a||(a=t.elements.slice(0,i)),a.push(s))}var l=a?e.setTextRange(c.createNodeArray(a),t.elements):t.elements;return c.updateCommaListExpression(t,l)}(r,i);case 14:case 15:case 16:case 17:return function(n){return e.setTextRange(c.createStringLiteral(n.text),n)}(r);case 10:return function(n){if(n.hasExtendedUnicodeEscape)return e.setTextRange(c.createStringLiteral(n.text),n);return n}(r);case 8:return function(n){if(384&n.numericLiteralFlags)return e.setTextRange(c.createNumericLiteral(n.text),n);return n}(r);case 209:return function(r){return e.processTaggedTemplateExpression(n,r,x,t,v,e.ProcessLevel.All)}(r);case 222:return function(n){for(var t=c.createStringLiteral(n.head.text),r=0,a=n.templateSpans;r<a.length;r++){var i=a[r],o=[e.visitNode(i.expression,x,e.isExpression)];i.literal.text.length>0&&o.push(c.createStringLiteral(i.literal.text)),t=c.createCallExpression(c.createPropertyAccessExpression(t,"concat"),void 0,o)}return e.setTextRange(t,n)}(r);case 224:return function(n){return e.visitNode(n.expression,x,e.isExpression)}(r);case 106:return Ne(!1);case 108:return function(e){2&a&&!(16384&a)&&(a|=65536);if(o)return 2&a?(o.containsLexicalThis=!0,e):o.thisName||(o.thisName=c.createUniqueName("this"));return e}(r);case 230:return function(e){if(103===e.keywordToken&&"target"===e.name.escapedText)return a|=32768,c.createUniqueName("_newTarget",48);return e}(r);case 168:return function(n){e.Debug.assert(!e.isComputedPropertyName(n.name));var t=J(n,e.moveRangePos(n,-1),void 0,void 0);return e.setEmitFlags(t,512|e.getEmitFlags(t)),e.setTextRange(c.createPropertyAssignment(n.name,t),n)}(r);case 171:case 172:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=o;o=void 0;var a,i=b(32670,65),s=e.visitParameterList(t.parameters,x,n),l=q(t);a=171===t.kind?c.updateGetAccessorDeclaration(t,t.decorators,t.modifiers,t.name,s,t.type,l):c.updateSetAccessorDeclaration(t,t.decorators,t.modifiers,t.name,s,l);return E(i,98304,0),o=r,a}(r);case 236:return function(t){var r,a=b(0,e.hasSyntacticModifier(t,1)?32:0);if(o&&0===(3&t.declarationList.flags)&&!function(n){return 1===n.declarationList.declarations.length&&!!n.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(n.declarationList.declarations[0].initializer))}(t)){for(var i=void 0,s=0,l=t.declarationList.declarations;s<l.length;s++){var u=l[s];if(me(o,u),u.initializer){var d=void 0;e.isBindingPattern(u.name)?d=e.flattenDestructuringAssignment(u,x,n,0):(d=c.createBinaryExpression(u.name,63,e.visitNode(u.initializer,x,e.isExpression)),e.setTextRange(d,u)),i=e.append(i,d)}}r=i?e.setTextRange(c.createExpressionStatement(c.inlineExpressions(i)),t):void 0}else r=e.visitEachChild(t,x,n);return E(a,0,0),r}(r);case 246:return function(t){if(o)return o.nonLocalJumps|=8,T(t)&&(t=I(t)),c.createReturnStatement(c.createObjectLiteralExpression([c.createPropertyAssignment(c.createIdentifier("value"),t.expression?e.visitNode(t.expression,x,e.isExpression):c.createVoidZero())]));if(T(t))return I(t);return e.visitEachChild(t,x,n)}(r);default:return e.visitEachChild(r,x,n)}}function I(n){return e.setOriginalNode(c.createReturnStatement(c.createUniqueName("_this",48)),n)}function k(e){return o&&g.isArgumentsLocalBinding(e)?o.argumentsName||(o.argumentsName=c.createUniqueName("arguments")):e}function N(i){i.name&&Re();var s=e.getClassExtendsHeritageElement(i),f=c.createFunctionExpression(void 0,void 0,void 0,void 0,s?[c.createParameterDeclaration(void 0,void 0,void 0,c.createUniqueName("_super",48))]:[],void 0,function(i,s){var f=[],m=c.getInternalName(i),_=e.isIdentifierANonContextualKeyword(m)?c.getGeneratedNameForNode(m):m;u(),function(n,t,r){r&&n.push(e.setTextRange(c.createExpressionStatement(l().createExtendsHelper(c.getInternalName(t))),r))}(f,i,s),function(t,r,i,s){var l=o;o=void 0;var u=b(32662,73),f=e.getFirstConstructorWithBody(r),m=function(n,t){if(!n||!t)return!1;if(e.some(n.parameters))return!1;var r=e.firstOrUndefined(n.body.statements);if(!r||!e.nodeIsSynthesized(r)||237!==r.kind)return!1;var a=r.expression;if(!e.nodeIsSynthesized(a)||207!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||106!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||224!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(f,void 0!==s),_=c.createFunctionDeclaration(void 0,void 0,void 0,i,void 0,function(t,r){return e.visitParameterList(t&&!r?t.parameters:void 0,x,n)||[]}(f,m),void 0,function(n,t,r,i){var o=!!r&&104!==e.skipOuterExpressions(r.expression).kind;if(!n)return function(n,t){var r=[];d(),c.mergeLexicalEnvironment(r,p()),t&&r.push(c.createReturnStatement(w()));var a=c.createNodeArray(r);e.setTextRange(a,n.members);var i=c.createBlock(a,!0);return e.setTextRange(i,n),e.setEmitFlags(i,1536),i}(t,o);var s=[],l=[];d();var u,f=0;i||(f=c.copyStandardPrologue(n.body.statements,s,!1));P(l,n),B(l,n,i),i||(f=c.copyCustomPrologue(n.body.statements,l,f,x));if(i)u=w();else if(o&&f<n.body.statements.length){var m=n.body.statements[f];e.isExpressionStatement(m)&&e.isSuperCall(m.expression)&&(u=function(e){return Le(e,!1)}(m.expression))}u&&(a|=8192,f++);if(e.addRange(l,e.visitNodes(n.body.statements,x,e.isStatement,f)),c.mergeLexicalEnvironment(s,p()),j(s,n,!1),o)if(!u||f!==n.body.statements.length||8192&n.body.transformFlags)V(l,n,u||O()),R(n.body)||l.push(c.createReturnStatement(c.createUniqueName("_this",48)));else{var _=e.cast(e.cast(u,e.isBinaryExpression).left,e.isCallExpression),g=c.createReturnStatement(u);e.setCommentRange(g,e.getCommentRange(_)),e.setEmitFlags(_,1536),l.push(g)}else U(s,n);var y=c.createBlock(e.setTextRange(c.createNodeArray(e.concatenate(s,l)),n.body.statements),!0);return e.setTextRange(y,n.body),y}(f,r,s,m));e.setTextRange(_,f||r),s&&e.setEmitFlags(_,8);t.push(_),E(u,98304,0),o=l}(f,i,_,s),function(n,r){for(var a=0,i=r.members;a<i.length;a++){var o=i[a];switch(o.kind){case 233:n.push(K(o));break;case 168:n.push(H(Oe(r,o),o,r));break;case 171:case 172:var s=e.getAllAccessorDeclarations(r.members,o);o===s.firstAccessor&&n.push(W(Oe(r,o),s,r));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(o,t&&t.fileName)}}}(f,i);var g=e.createTokenRange(e.skipTrivia(r,i.members.end),19),y=c.createPartiallyEmittedExpression(_);e.setTextRangeEnd(y,g.end),e.setEmitFlags(y,1536);var h=c.createReturnStatement(y);e.setTextRangePos(h,g.pos),e.setEmitFlags(h,1920),f.push(h),e.insertStatementsAfterStandardPrologue(f,p());var v=c.createBlock(e.setTextRange(c.createNodeArray(f),i.members),!0);return e.setEmitFlags(v,1536),v}(i,s));e.setEmitFlags(f,65536&e.getEmitFlags(i)|524288);var m=c.createPartiallyEmittedExpression(f);e.setTextRangeEnd(m,i.end),e.setEmitFlags(m,1536);var _=c.createPartiallyEmittedExpression(m);e.setTextRangeEnd(_,e.skipTrivia(r,i.pos)),e.setEmitFlags(_,1536);var g=c.createParenthesizedExpression(c.createCallExpression(_,void 0,s?[e.visitNode(s.expression,x,e.isExpression)]:[]));return e.addSyntheticLeadingComment(g,3,"* @class "),g}function R(n){if(246===n.kind)return!0;if(238===n.kind){var t=n;if(t.elseStatement)return R(t.thenStatement)&&R(t.elseStatement)}else if(234===n.kind){var r=e.lastOrUndefined(n.statements);if(r&&R(r))return!0}return!1}function O(){return e.setEmitFlags(c.createThis(),4)}function w(){return c.createLogicalOr(c.createLogicalAnd(c.createStrictInequality(c.createUniqueName("_super",48),c.createNull()),c.createFunctionApplyCall(c.createUniqueName("_super",48),O(),c.createIdentifier("arguments"))),O())}function M(n){return void 0!==n.initializer||e.isBindingPattern(n.name)}function P(n,t){if(!e.some(t.parameters,M))return!1;for(var r=!1,a=0,i=t.parameters;a<i.length;a++){var o=i[a],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?r=F(n,o,s,c)||r:c&&(G(n,o,s,c),r=!0))}return r}function F(t,r,a,i){return a.elements.length>0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(r,x,n,0,c.getGeneratedNameForNode(r)))),1048576)),!0):!!i&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(c.createExpressionStatement(c.createAssignment(c.getGeneratedNameForNode(r),e.visitNode(i,x,e.isExpression))),1048576)),!0)}function G(n,t,r,a){a=e.visitNode(a,x,e.isExpression);var i=c.createIfStatement(c.createTypeCheck(c.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(c.createBlock([c.createExpressionStatement(e.setEmitFlags(e.setTextRange(c.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(c.cloneNode(r),r),r.parent),48),e.setEmitFlags(a,1584|e.getEmitFlags(a))),t),1536))]),t),1953));e.startOnNewLine(i),e.setTextRange(i,t),e.setEmitFlags(i,1050528),e.insertStatementAfterCustomPrologue(n,i)}function B(t,r,a){var i=[],o=e.lastOrUndefined(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(o,a))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(c.cloneNode(o.name),o.name),o.name.parent):c.createTempVariable(void 0);e.setEmitFlags(s,48);var l=79===o.name.kind?c.cloneNode(o.name):s,u=r.parameters.length-1,d=c.createLoopVariable();i.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(s,void 0,void 0,c.createArrayLiteralExpression([]))])),o),1048576));var p=c.createForStatement(e.setTextRange(c.createVariableDeclarationList([c.createVariableDeclaration(d,void 0,void 0,c.createNumericLiteral(u))]),o),e.setTextRange(c.createLessThan(d,c.createPropertyAccessExpression(c.createIdentifier("arguments"),"length")),o),e.setTextRange(c.createPostfixIncrement(d),o),c.createBlock([e.startOnNewLine(e.setTextRange(c.createExpressionStatement(c.createAssignment(c.createElementAccessExpression(l,0===u?d:c.createSubtract(d,c.createNumericLiteral(u))),c.createElementAccessExpression(c.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),i.push(p),79!==o.name.kind&&i.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(o,x,n,0,l))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,i),!0}function U(e,n){return!!(65536&a&&213!==n.kind)&&(V(e,n,c.createThis()),!0)}function V(t,r,a){0===(1&s)&&(s|=1,n.enableSubstitution(108),n.enableEmitNotification(170),n.enableEmitNotification(168),n.enableEmitNotification(171),n.enableEmitNotification(172),n.enableEmitNotification(213),n.enableEmitNotification(212),n.enableEmitNotification(255));var i=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_this",48),void 0,void 0,a)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function j(n,t,r){if(32768&a){var i=void 0;switch(t.kind){case 213:return n;case 168:case 171:case 172:i=c.createVoidZero();break;case 170:i=c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor");break;case 255:case 212:i=c.createConditionalExpression(c.createLogicalAnd(e.setEmitFlags(c.createThis(),4),c.createBinaryExpression(e.setEmitFlags(c.createThis(),4),102,c.getLocalName(t))),void 0,c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor"),void 0,c.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function K(n){return e.setTextRange(c.createEmptyStatement(),n)}function H(t,r,a){var i,o=e.getCommentRange(r),s=e.getSourceMapRange(r),l=J(r,r,void 0,a),u=e.visitNode(r.name,x,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&e.getUseDefineForClassFields(n.getCompilerOptions())){var d=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?c.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;i=c.createObjectDefinePropertyCall(t,d,c.createPropertyDescriptor({value:l,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(c,t,u,r.name);i=c.createAssignment(p,l)}e.setEmitFlags(l,1536),e.setSourceMapRange(l,s);var f=e.setTextRange(c.createExpressionStatement(i),r);return e.setOriginalNode(f,r),e.setCommentRange(f,o),e.setEmitFlags(f,48),f}function W(n,t,r){var a=c.createExpressionStatement(z(n,t,r,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(t.firstAccessor)),a}function z(n,t,r,a){var i=t.firstAccessor,o=t.getAccessor,s=t.setAccessor,l=e.setParent(e.setTextRange(c.cloneNode(n),n),n.parent);e.setEmitFlags(l,1568),e.setSourceMapRange(l,i.name);var u=e.visitNode(i.name,x,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(c,u);e.setEmitFlags(d,1552),e.setSourceMapRange(d,i.name);var p=[];if(o){var f=J(o,void 0,void 0,r);e.setSourceMapRange(f,e.getSourceMapRange(o)),e.setEmitFlags(f,512);var m=c.createPropertyAssignment("get",f);e.setCommentRange(m,e.getCommentRange(o)),p.push(m)}if(s){var _=J(s,void 0,void 0,r);e.setSourceMapRange(_,e.getSourceMapRange(s)),e.setEmitFlags(_,512);var g=c.createPropertyAssignment("set",_);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(c.createPropertyAssignment("enumerable",o||s?c.createFalse():c.createTrue()),c.createPropertyAssignment("configurable",c.createTrue()));var y=c.createCallExpression(c.createPropertyAccessExpression(c.createIdentifier("Object"),"defineProperty"),void 0,[l,d,c.createObjectLiteralExpression(p,!0)]);return a&&e.startOnNewLine(y),y}function J(t,r,i,s){var l=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.isStatic(t)?b(32670,73):b(32670,65),d=e.visitParameterList(t.parameters,x,n),p=q(t);return 32768&a&&!i&&(255===t.kind||212===t.kind)&&(i=c.getGeneratedNameForNode(t)),E(u,98304,0),o=l,e.setOriginalNode(e.setTextRange(c.createFunctionExpression(void 0,t.asteriskToken,i,void 0,d,void 0,p),r),t)}function q(n){var r,a,i,o=!1,s=!1,l=[],u=[],f=n.body;if(d(),e.isBlock(f)&&(i=c.copyStandardPrologue(f.statements,l,!1),i=c.copyCustomPrologue(f.statements,u,i,x,e.isHoistedFunction),i=c.copyCustomPrologue(f.statements,u,i,x,e.isHoistedVariableStatement)),o=P(u,n)||o,o=B(u,n,!1)||o,e.isBlock(f))i=c.copyCustomPrologue(f.statements,u,i,x),r=f.statements,e.addRange(u,e.visitNodes(f.statements,x,e.isStatement,i)),!o&&f.multiLine&&(o=!0);else{e.Debug.assert(213===n.kind),r=e.moveRangeEnd(f,-1);var m=n.equalsGreaterThanToken;e.nodeIsSynthesized(m)||e.nodeIsSynthesized(f)||(e.rangeEndIsOnSameLineAsRangeStart(m,f,t)?s=!0:o=!0);var _=e.visitNode(f,x,e.isExpression),g=c.createReturnStatement(_);e.setTextRange(g,f),e.moveSyntheticComments(g,f),e.setEmitFlags(g,1440),u.push(g),a=f}if(c.mergeLexicalEnvironment(l,p()),j(l,n,!1),U(l,n),e.some(l)&&(o=!0),u.unshift.apply(u,l),e.isBlock(f)&&e.arrayIsEqualTo(u,f.statements))return f;var y=c.createBlock(e.setTextRange(c.createNodeArray(u),r),o);return e.setTextRange(y,n.body),!o&&s&&e.setEmitFlags(y,1),a&&e.setTokenSourceMapRange(y,19,a),e.setOriginalNode(y,n.body),y}function X(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,x,n,0,!r):27===t.operatorToken.kind?c.updateBinaryExpression(t,e.visitNode(t.left,L,e.isExpression),t.operatorToken,e.visitNode(t.right,r?L:x,e.isExpression)):e.visitEachChild(t,x,n)}function Y(t){var r=t.name;return e.isBindingPattern(r)?Q(t):!t.initializer&&function(e){var n=g.getNodeCheckFlags(e),t=262144&n,r=524288&n;return!(0!==(64&a)||t&&r&&0!==(512&a))&&0===(4096&a)&&(!g.isDeclarationWithCollidingName(e)||r&&!t&&0===(6144&a))}(t)?c.updateVariableDeclaration(t,t.name,void 0,void 0,c.createVoidZero()):e.visitEachChild(t,x,n)}function Q(t){var r,a=b(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,x,n,0,void 0,0!==(32&a)):e.visitEachChild(t,x,n),E(a,0,0),r}function Z(n){o.labels.set(e.idText(n.label),!0)}function $(n){o.labels.set(e.idText(n.label),!1)}function ee(t,r,i,s,l){var d=b(t,r),f=function(t,r,i,s){if(!pe(t)){var l=void 0;o&&(l=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var d=s?s(t,r,void 0,i):c.restoreEnclosingLabel(e.isForStatement(t)?function(n){return c.updateForStatement(n,e.visitNode(n.initializer,L,e.isForInitializer),e.visitNode(n.condition,x,e.isExpression),e.visitNode(n.incrementor,L,e.isExpression),e.visitNode(n.statement,x,e.isStatement,c.liftToBlock))}(t):e.visitEachChild(t,x,n),r,o&&$);return o&&(o.allowedNonLabeledJumps=l),d}var f=function(n){var t;switch(n.kind){case 241:case 242:case 243:var r=n.initializer;r&&254===r.kind&&(t=r)}var a=[],i=[];if(t&&3&e.getCombinedNodeFlags(t))for(var s=ue(n),c=0,l=t.declarations;c<l.length;c++){Ee(n,l[c],a,i,s)}var u={loopParameters:a,loopOutParameters:i};o&&(o.argumentsName&&(u.argumentsName=o.argumentsName),o.thisName&&(u.thisName=o.thisName),o.hoistedLocalVariables&&(u.hoistedLocalVariables=o.hoistedLocalVariables));return u}(t),m=[],_=o;o=f;var g,y=ue(t)?function(n,t){var r=c.createUniqueName("_loop_init"),i=0!==(524288&n.initializer.transformFlags),o=0;t.containsLexicalThis&&(o|=8);i&&4&a&&(o|=262144);var s=[];s.push(c.createVariableStatement(void 0,n.initializer)),he(t.loopOutParameters,2,1,s);var l=c.createVariableStatement(void 0,e.setEmitFlags(c.createVariableDeclarationList([c.createVariableDeclaration(r,void 0,void 0,e.setEmitFlags(c.createFunctionExpression(void 0,i?c.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(c.createBlock(s,!0),x,e.isBlock)),o))]),2097152)),u=c.createVariableDeclarationList(e.map(t.loopOutParameters,ge));return{functionName:r,containsYield:i,functionDeclaration:l,part:u}}(t,f):void 0,h=fe(t)?function(n,t,r){var i=c.createUniqueName("_loop");u();var o=e.visitNode(n.statement,x,e.isStatement,c.liftToBlock),s=p(),l=[];(de(n)||function(n){return e.isForStatement(n)&&!!n.incrementor&&le(n.incrementor)}(n))&&(t.conditionVariable=c.createUniqueName("inc"),n.incrementor?l.push(c.createIfStatement(t.conditionVariable,c.createExpressionStatement(e.visitNode(n.incrementor,x,e.isExpression)),c.createExpressionStatement(c.createAssignment(t.conditionVariable,c.createTrue())))):l.push(c.createIfStatement(c.createLogicalNot(t.conditionVariable),c.createExpressionStatement(c.createAssignment(t.conditionVariable,c.createTrue())))),de(n)&&l.push(c.createIfStatement(c.createPrefixUnaryExpression(53,e.visitNode(n.condition,x,e.isExpression)),e.visitNode(c.createBreakStatement(),x,e.isStatement))));e.isBlock(o)?e.addRange(l,o.statements):l.push(o);he(t.loopOutParameters,1,1,l),e.insertStatementsAfterStandardPrologue(l,s);var d=c.createBlock(l,!0);e.isBlock(o)&&e.setOriginalNode(d,o);var f=0!==(524288&n.statement.transformFlags),m=524288;t.containsLexicalThis&&(m|=8);f&&0!==(4&a)&&(m|=262144);var _=c.createVariableStatement(void 0,e.setEmitFlags(c.createVariableDeclarationList([c.createVariableDeclaration(i,void 0,void 0,e.setEmitFlags(c.createFunctionExpression(void 0,f?c.createToken(41):void 0,void 0,void 0,t.loopParameters,void 0,d),m))]),2097152)),g=function(n,t,r,a){var i=[],o=!(-5&t.nonLocalJumps)&&!t.labeledNonLocalBreaks&&!t.labeledNonLocalContinues,s=c.createCallExpression(n,void 0,e.map(t.loopParameters,(function(e){return e.name}))),l=a?c.createYieldExpression(c.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)i.push(c.createExpressionStatement(l)),he(t.loopOutParameters,1,0,i);else{var u=c.createUniqueName("state"),d=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(u,void 0,void 0,l)]));if(i.push(d),he(t.loopOutParameters,1,0,i),8&t.nonLocalJumps){var p=void 0;r?(r.nonLocalJumps|=8,p=c.createReturnStatement(u)):p=c.createReturnStatement(c.createPropertyAccessExpression(u,"value")),i.push(c.createIfStatement(c.createTypeCheck(u,"object"),p))}if(2&t.nonLocalJumps&&i.push(c.createIfStatement(c.createStrictEquality(u,c.createStringLiteral("break")),c.createBreakStatement())),t.labeledNonLocalBreaks||t.labeledNonLocalContinues){var f=[];be(t.labeledNonLocalBreaks,!0,u,r,f),be(t.labeledNonLocalContinues,!1,u,r,f),i.push(c.createSwitchStatement(u,c.createCaseBlock(f)))}}return i}(i,t,r,f);return{functionName:i,containsYield:f,functionDeclaration:_,part:g}}(t,f,_):void 0;o=_,y&&m.push(y.functionDeclaration);h&&m.push(h.functionDeclaration);(function(e,n,t){var r;n.argumentsName&&(t?t.argumentsName=n.argumentsName:(r||(r=[])).push(c.createVariableDeclaration(n.argumentsName,void 0,void 0,c.createIdentifier("arguments"))));n.thisName&&(t?t.thisName=n.thisName:(r||(r=[])).push(c.createVariableDeclaration(n.thisName,void 0,void 0,c.createIdentifier("this"))));if(n.hoistedLocalVariables)if(t)t.hoistedLocalVariables=n.hoistedLocalVariables;else{r||(r=[]);for(var a=0,i=n.hoistedLocalVariables;a<i.length;a++){var o=i[a];r.push(c.createVariableDeclaration(o))}}if(n.loopOutParameters.length){r||(r=[]);for(var s=0,l=n.loopOutParameters;s<l.length;s++){var u=l[s];r.push(c.createVariableDeclaration(u.outParamName))}}n.conditionVariable&&(r||(r=[]),r.push(c.createVariableDeclaration(n.conditionVariable,void 0,void 0,c.createFalse())));r&&e.push(c.createVariableStatement(void 0,c.createVariableDeclarationList(r)))})(m,f,_),y&&m.push(function(n,t){var r=c.createCallExpression(n,void 0,[]),a=t?c.createYieldExpression(c.createToken(41),e.setEmitFlags(r,8388608)):r;return c.createExpressionStatement(a)}(y.functionName,y.containsYield));if(h)if(s)g=s(t,r,h.part,i);else{var v=_e(t,y,c.createBlock(h.part,!0));g=c.restoreEnclosingLabel(v,r,o&&$)}else{var b=_e(t,y,e.visitNode(t.statement,x,e.isStatement,c.liftToBlock));g=c.restoreEnclosingLabel(b,r,o&&$)}return m.push(g),m}(i,s,d,l);return E(d,0,0),f}function ne(e,n){return ee(0,1280,e,n)}function te(e,n){return ee(5056,3328,e,n)}function re(e,n){return ee(3008,5376,e,n)}function ae(e,n){return ee(3008,5376,e,n,_.downlevelIteration?ce:se)}function ie(t,r,a){var i=[],o=t.initializer;if(e.isVariableDeclarationList(o)){3&t.initializer.flags&&Re();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var l=e.flattenDestructuringBinding(s,x,n,0,r),u=e.setTextRange(c.createVariableDeclarationList(l),t.initializer);e.setOriginalNode(u,t.initializer),e.setSourceMapRange(u,e.createRange(l[0].pos,e.last(l).end)),i.push(c.createVariableStatement(void 0,u))}else i.push(e.setTextRange(c.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(c.createVariableDeclarationList([c.createVariableDeclaration(s?s.name:c.createTempVariable(void 0),void 0,void 0,r)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=c.createAssignment(o,r);e.isDestructuringAssignment(d)?i.push(c.createExpressionStatement(X(d,!0))):(e.setTextRangeEnd(d,o.end),i.push(e.setTextRange(c.createExpressionStatement(e.visitNode(d,x,e.isExpression)),e.moveRangeEnd(o,-1))))}if(a)return oe(e.addRange(i,a));var p=e.visitNode(t.statement,x,e.isStatement,c.liftToBlock);return e.isBlock(p)?c.updateBlock(p,e.setTextRange(c.createNodeArray(e.concatenate(i,p.statements)),p.statements)):(i.push(p),oe(i))}function oe(n){return e.setEmitFlags(c.createBlock(c.createNodeArray(n),!0),432)}function se(n,t,r){var a=e.visitNode(n.expression,x,e.isExpression),i=c.createLoopVariable(),s=e.isIdentifier(a)?c.getGeneratedNameForNode(a):c.createTempVariable(void 0);e.setEmitFlags(a,48|e.getEmitFlags(a));var l=e.setTextRange(c.createForStatement(e.setEmitFlags(e.setTextRange(c.createVariableDeclarationList([e.setTextRange(c.createVariableDeclaration(i,void 0,void 0,c.createNumericLiteral(0)),e.moveRangePos(n.expression,-1)),e.setTextRange(c.createVariableDeclaration(s,void 0,void 0,a),n.expression)]),n.expression),2097152),e.setTextRange(c.createLessThan(i,c.createPropertyAccessExpression(s,"length")),n.expression),e.setTextRange(c.createPostfixIncrement(i),n.expression),ie(n,c.createElementAccessExpression(s,i),r)),n);return e.setEmitFlags(l,256),e.setTextRange(l,n),c.restoreEnclosingLabel(l,t,o&&$)}function ce(n,t,r,a){var i=e.visitNode(n.expression,x,e.isExpression),s=e.isIdentifier(i)?c.getGeneratedNameForNode(i):c.createTempVariable(void 0),u=e.isIdentifier(i)?c.getGeneratedNameForNode(s):c.createTempVariable(void 0),d=c.createUniqueName("e"),p=c.getGeneratedNameForNode(d),f=c.createTempVariable(void 0),_=e.setTextRange(l().createValuesHelper(i),n.expression),g=c.createCallExpression(c.createPropertyAccessExpression(s,"next"),void 0,[]);m(d),m(f);var y=1024&a?c.inlineExpressions([c.createAssignment(d,c.createVoidZero()),_]):_,h=e.setEmitFlags(e.setTextRange(c.createForStatement(e.setEmitFlags(e.setTextRange(c.createVariableDeclarationList([e.setTextRange(c.createVariableDeclaration(s,void 0,void 0,y),n.expression),c.createVariableDeclaration(u,void 0,void 0,g)]),n.expression),2097152),c.createLogicalNot(c.createPropertyAccessExpression(u,"done")),c.createAssignment(u,g),ie(n,c.createPropertyAccessExpression(u,"value"),r)),n),256);return c.createTryStatement(c.createBlock([c.restoreEnclosingLabel(h,t,o&&$)]),c.createCatchClause(c.createVariableDeclaration(p),e.setEmitFlags(c.createBlock([c.createExpressionStatement(c.createAssignment(d,c.createObjectLiteralExpression([c.createPropertyAssignment("error",p)])))]),1)),c.createBlock([c.createTryStatement(c.createBlock([e.setEmitFlags(c.createIfStatement(c.createLogicalAnd(c.createLogicalAnd(u,c.createLogicalNot(c.createPropertyAccessExpression(u,"done"))),c.createAssignment(f,c.createPropertyAccessExpression(s,"return"))),c.createExpressionStatement(c.createFunctionCallCall(f,s,[]))),1)]),void 0,e.setEmitFlags(c.createBlock([e.setEmitFlags(c.createIfStatement(d,c.createThrowStatement(c.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function le(e){return 0!==(131072&g.getNodeCheckFlags(e))}function ue(n){return e.isForStatement(n)&&!!n.initializer&&le(n.initializer)}function de(n){return e.isForStatement(n)&&!!n.condition&&le(n.condition)}function pe(e){return fe(e)||ue(e)}function fe(e){return 0!==(65536&g.getNodeCheckFlags(e))}function me(n,t){n.hoistedLocalVariables||(n.hoistedLocalVariables=[]),function t(r){if(79===r.kind)n.hoistedLocalVariables.push(r);else for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||t(o.name)}}(t.name)}function _e(n,t,r){switch(n.kind){case 241:return function(n,t,r){var a=n.condition&&le(n.condition),i=a||n.incrementor&&le(n.incrementor);return c.updateForStatement(n,e.visitNode(t?t.part:n.initializer,L,e.isForInitializer),e.visitNode(a?void 0:n.condition,x,e.isExpression),e.visitNode(i?void 0:n.incrementor,L,e.isExpression),r)}(n,t,r);case 242:return function(n,t){return c.updateForInStatement(n,e.visitNode(n.initializer,x,e.isForInitializer),e.visitNode(n.expression,x,e.isExpression),t)}(n,r);case 243:return function(n,t){return c.updateForOfStatement(n,void 0,e.visitNode(n.initializer,x,e.isForInitializer),e.visitNode(n.expression,x,e.isExpression),t)}(n,r);case 239:return function(n,t){return c.updateDoStatement(n,t,e.visitNode(n.expression,x,e.isExpression))}(n,r);case 240:return function(n,t){return c.updateWhileStatement(n,e.visitNode(n.expression,x,e.isExpression),t)}(n,r);default:return e.Debug.failBadSyntaxKind(n,"IterationStatement expected")}}function ge(e){return c.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function ye(e,n){var t=0===n?e.outParamName:e.originalName,r=0===n?e.originalName:e.outParamName;return c.createBinaryExpression(r,63,t)}function he(e,n,t,r){for(var a=0,i=e;a<i.length;a++){var o=i[a];o.flags&n&&r.push(c.createExpressionStatement(ye(o,t)))}}function ve(n,t,r,a){t?(n.labeledNonLocalBreaks||(n.labeledNonLocalBreaks=new e.Map),n.labeledNonLocalBreaks.set(r,a)):(n.labeledNonLocalContinues||(n.labeledNonLocalContinues=new e.Map),n.labeledNonLocalContinues.set(r,a))}function be(e,n,t,r,a){e&&e.forEach((function(e,i){var o=[];if(!r||r.labels&&r.labels.get(i)){var s=c.createIdentifier(i);o.push(n?c.createBreakStatement(s):c.createContinueStatement(s))}else ve(r,n,i,e),o.push(c.createReturnStatement(t));a.push(c.createCaseClause(c.createStringLiteral(e),o))}))}function Ee(n,t,r,a,i){var o=t.name;if(e.isBindingPattern(o))for(var s=0,l=o.elements;s<l.length;s++){var u=l[s];e.isOmittedExpression(u)||Ee(n,u,r,a,i)}else{r.push(c.createParameterDeclaration(void 0,void 0,void 0,o));var d=g.getNodeCheckFlags(t);if(4194304&d||i){var p=c.createUniqueName("out_"+e.idText(o)),f=0;4194304&d&&(f|=1),e.isForStatement(n)&&n.initializer&&g.isBindingCapturedByNode(n.initializer,t)&&(f|=2),a.push({flags:f,originalName:o,outParamName:p})}}}function Te(n,t,r){var a=c.createAssignment(e.createMemberAccessForPropertyName(c,t,e.visitNode(n.name,x,e.isPropertyName)),e.visitNode(n.initializer,x,e.isExpression));return e.setTextRange(a,n),r&&e.startOnNewLine(a),a}function Se(n,t,r){var a=c.createAssignment(e.createMemberAccessForPropertyName(c,t,e.visitNode(n.name,x,e.isPropertyName)),c.cloneNode(n.name));return e.setTextRange(a,n),r&&e.startOnNewLine(a),a}function xe(n,t,r,a){var i=c.createAssignment(e.createMemberAccessForPropertyName(c,t,e.visitNode(n.name,x,e.isPropertyName)),J(n,n,void 0,r));return e.setTextRange(i,n),a&&e.startOnNewLine(i),i}function Le(t,r){if(16384&t.transformFlags||106===t.expression.kind||e.isSuperProperty(e.skipOuterExpressions(t.expression))){var a=c.createCallBinding(t.expression,m),i=a.target,o=a.thisArg;106===t.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=16384&t.transformFlags?c.createFunctionApplyCall(e.visitNode(i,C,e.isExpression),106===t.expression.kind?o:e.visitNode(o,x,e.isExpression),De(t.arguments,!0,!1,!1)):e.setTextRange(c.createFunctionCallCall(e.visitNode(i,C,e.isExpression),106===t.expression.kind?o:e.visitNode(o,x,e.isExpression),e.visitNodes(t.arguments,x,e.isExpression)),t),106===t.expression.kind){var l=c.createLogicalOr(s,O());s=r?c.createAssignment(c.createUniqueName("_this",48),l):l}return e.setOriginalNode(s,t)}return e.visitEachChild(t,x,n)}function De(n,t,r,a){var i=n.length,o=e.flatten(e.spanMap(n,Ce,(function(e,n,t,o){return n(e,r,a&&o===i)})));if(1===o.length){var s=o[0];if(t&&!_.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var u=l(),d=0!==o[0].kind,p=d?c.createArrayLiteralExpression():o[0].expression,f=d?0:1;f<o.length;f++){var m=o[f];p=u.createSpreadArrayHelper(p,m.expression,1===m.kind&&!t)}return p}function Ce(n){return e.isSpreadElement(n)?Ae:ke}function Ae(n){return e.map(n,Ie)}function Ie(n){var t=e.visitNode(n.expression,x,e.isExpression),r=e.isCallToHelper(t,"___read"),a=r||e.isPackedArrayLiteral(t)?2:1;return!_.downlevelIteration||1!==a||e.isArrayLiteralExpression(t)||r||(t=l().createReadHelper(t,void 0),a=2),f(a,t)}function ke(n,t,r){return f(0,c.createArrayLiteralExpression(e.visitNodes(c.createNodeArray(n,r),x,e.isExpression),t))}function Ne(e){return 8&a&&!e?c.createPropertyAccessExpression(c.createUniqueName("_super",48),"prototype"):c.createUniqueName("_super",48)}function Re(){0===(2&s)&&(s|=2,n.enableSubstitution(79))}function Oe(n,t){return e.isStatic(t)?c.getInternalName(n):c.createPropertyAccessExpression(c.getInternalName(n),"prototype")}}}(ha||(ha={})),function(e){e.transformES5=function(n){var t,r,a=n.factory,i=n.getCompilerOptions();1!==i.jsx&&3!==i.jsx||(t=n.onEmitNode,n.onEmitNode=function(n,a,i){switch(a.kind){case 279:case 280:case 278:var o=a.tagName;r[e.getOriginalNodeId(o)]=!0}t(n,a,i)},n.enableEmitNotification(279),n.enableEmitNotification(280),n.enableEmitNotification(278),r=[]);var o=n.onSubstituteNode;return n.onSubstituteNode=function(n,t){if(t.id&&r&&r[t.id])return o(n,t);if(t=o(n,t),e.isPropertyAccessExpression(t))return function(n){if(e.isPrivateIdentifier(n.name))return n;var t=s(n.name);if(t)return e.setTextRange(a.createElementAccessExpression(n.expression,t),n);return n}(t);if(e.isPropertyAssignment(t))return function(n){var t=e.isIdentifier(n.name)&&s(n.name);if(t)return a.updatePropertyAssignment(n,t,n.initializer);return n}(t);return t},n.enableSubstitution(205),n.enableSubstitution(294),e.chainBundle(n,(function(e){return e}));function s(n){var t=n.originalKeywordKind||(e.nodeIsSynthesized(n)?e.stringToToken(e.idText(n)):void 0);if(void 0!==t&&t>=81&&t<=116)return e.setTextRange(a.createStringLiteralFromNode(n),n)}}}(ha||(ha={})),function(e){var n,t,r,a,i,o,s,c,l,u;(t=n||(n={}))[t.Nop=0]="Nop",t[t.Statement=1]="Statement",t[t.Assign=2]="Assign",t[t.Break=3]="Break",t[t.BreakWhenTrue=4]="BreakWhenTrue",t[t.BreakWhenFalse=5]="BreakWhenFalse",t[t.Yield=6]="Yield",t[t.YieldStar=7]="YieldStar",t[t.Return=8]="Return",t[t.Throw=9]="Throw",t[t.Endfinally=10]="Endfinally",(a=r||(r={}))[a.Open=0]="Open",a[a.Close=1]="Close",(o=i||(i={}))[o.Exception=0]="Exception",o[o.With=1]="With",o[o.Switch=2]="Switch",o[o.Loop=3]="Loop",o[o.Labeled=4]="Labeled",(c=s||(s={}))[c.Try=0]="Try",c[c.Catch=1]="Catch",c[c.Finally=2]="Finally",c[c.Done=3]="Done",(u=l||(l={}))[u.Next=0]="Next",u[u.Throw=1]="Throw",u[u.Return=2]="Return",u[u.Break=3]="Break",u[u.Yield=4]="Yield",u[u.YieldStar=5]="YieldStar",u[u.Catch=6]="Catch",u[u.Endfinally=7]="Endfinally",e.transformGenerators=function(n){var t,r,a,i,o,s,c,l,u,d,p=n.factory,f=n.getEmitHelperFactory,m=n.resumeLexicalEnvironment,_=n.endLexicalEnvironment,g=n.hoistFunctionDeclaration,y=n.hoistVariableDeclaration,h=n.getCompilerOptions(),v=e.getEmitScriptTarget(h),b=n.getEmitResolver(),E=n.onSubstituteNode;n.onSubstituteNode=function(n,a){if(a=E(n,a),1===n)return function(n){if(e.isIdentifier(n))return function(n){if(!e.isGeneratedIdentifier(n)&&t&&t.has(e.idText(n))){var a=e.getOriginalNode(n);if(e.isIdentifier(a)&&a.parent){var i=b.getReferencedValueDeclaration(a);if(i){var o=r[e.getOriginalNodeId(i)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n);return n}(a);return a};var T,S,x,L,D,C,A,I,k,N,R,O,w=1,M=0,P=0;return e.chainBundle(n,(function(t){if(t.isDeclarationFile||0===(1024&t.transformFlags))return t;var r=e.visitEachChild(t,F,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function F(t){var r=t.transformFlags;return i?function(t){switch(t.kind){case 239:case 240:return function(t){return i?(ie(),t=e.visitEachChild(t,F,n),se(),t):e.visitEachChild(t,F,n)}(t);case 248:return function(t){i&&ne({kind:2,isScript:!0,breakLabel:-1});t=e.visitEachChild(t,F,n),i&&ce();return t}(t);case 249:return function(t){i&&ne({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1});t=e.visitEachChild(t,F,n),i&&le();return t}(t);default:return G(t)}}(t):a?G(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(n){switch(n.kind){case 255:return B(n);case 212:return U(n);default:return e.Debug.failBadSyntaxKind(n)}}(t):1024&r?e.visitEachChild(t,F,n):t}function G(t){switch(t.kind){case 255:return B(t);case 212:return U(t);case 171:case 172:return function(t){var r=a,o=i;return a=!1,i=!1,t=e.visitEachChild(t,F,n),a=r,i=o,t}(t);case 236:return function(n){if(524288&n.transformFlags)return void J(n.declarationList);if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t<r.length;t++){var a=r[t];y(a.name)}var i=e.getInitializedVariables(n.declarationList);if(0===i.length)return;return e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(i,q))),n)}(t);case 241:return function(t){i&&ie();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];y(s.name)}var c=e.getInitializedVariables(r);t=p.updateForStatement(t,c.length>0?p.inlineExpressions(e.map(c,q)):void 0,e.visitNode(t.condition,F,e.isExpression),e.visitNode(t.incrementor,F,e.isExpression),e.visitIterationBody(t.statement,F,n))}else t=e.visitEachChild(t,F,n);i&&se();return t}(t);case 242:return function(t){i&&ie();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];y(s.name)}t=p.updateForInStatement(t,r.declarations[0].name,e.visitNode(t.expression,F,e.isExpression),e.visitNode(t.statement,F,e.isStatement,p.liftToBlock))}else t=e.visitEachChild(t,F,n);i&&se();return t}(t);case 245:return function(t){if(i){var r=me(t.label&&e.idText(t.label));if(r>0)return he(r,t)}return e.visitEachChild(t,F,n)}(t);case 244:return function(t){if(i){var r=_e(t.label&&e.idText(t.label));if(r>0)return he(r,t)}return e.visitEachChild(t,F,n)}(t);case 246:return function(n){return t=e.visitNode(n.expression,F,e.isExpression),r=n,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r);var t,r}(t);default:return 524288&t.transformFlags?function(t){switch(t.kind){case 220:return function(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return function(t){if(X(t.right))return e.isLogicalOperator(t.operatorToken.kind)?function(n){var t=$(),r=Z();Ee(r,e.visitNode(n.left,F,e.isExpression),n.left),55===n.operatorToken.kind?xe(t,r,n.left):Se(t,r,n.left);return Ee(r,e.visitNode(n.right,F,e.isExpression),n.right),ee(t),r}(t):27===t.operatorToken.kind?j(t):p.updateBinaryExpression(t,Q(e.visitNode(t.left,F,e.isExpression)),t.operatorToken,e.visitNode(t.right,F,e.isExpression));return e.visitEachChild(t,F,n)}(t);case 1:return function(t){var r=t.left,a=t.right;if(X(a)){var i=void 0;switch(r.kind){case 205:i=p.updatePropertyAccessExpression(r,Q(e.visitNode(r.expression,F,e.isLeftHandSideExpression)),r.name);break;case 206:i=p.updateElementAccessExpression(r,Q(e.visitNode(r.expression,F,e.isLeftHandSideExpression)),Q(e.visitNode(r.argumentExpression,F,e.isExpression)));break;default:i=e.visitNode(r,F,e.isExpression)}var o=t.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(i,e.setTextRange(p.createBinaryExpression(Q(i),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(a,F,e.isExpression)),t)),t):p.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(a,F,e.isExpression))}return e.visitEachChild(t,F,n)}(t);default:return e.Debug.assertNever(r)}}(t);case 349:return function(n){for(var t=[],r=0,a=n.elements;r<a.length;r++){var i=a[r];e.isBinaryExpression(i)&&27===i.operatorToken.kind?t.push(j(i)):(X(i)&&t.length>0&&(Le(1,[p.createExpressionStatement(p.inlineExpressions(t))]),t=[]),t.push(e.visitNode(i,F,e.isExpression)))}return p.inlineExpressions(t)}(t);case 221:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){var r=$(),a=$(),i=Z();return xe(r,e.visitNode(t.condition,F,e.isExpression),t.condition),Ee(i,e.visitNode(t.whenTrue,F,e.isExpression),t.whenTrue),Te(a),ee(r),Ee(i,e.visitNode(t.whenFalse,F,e.isExpression),t.whenFalse),ee(a),i}return e.visitEachChild(t,F,n)}(t);case 223:return function(n){var t=$(),r=e.visitNode(n.expression,F,e.isExpression);if(n.asteriskToken){!function(e,n){Le(7,[e],n)}(0===(8388608&e.getEmitFlags(n.expression))?e.setTextRange(f().createValuesHelper(r),n):r,n)}else!function(e,n){Le(6,[e],n)}(r,n);return ee(t),function(n){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(L,"sent"),void 0,[]),n)}(n)}(t);case 203:return function(e){return K(e.elements,void 0,void 0,e.multiLine)}(t);case 204:return function(n){var t=n.properties,r=n.multiLine,a=Y(t),i=Z();Ee(i,p.createObjectLiteralExpression(e.visitNodes(t,F,e.isObjectLiteralElementLike,0,a),r));var o=e.reduceLeft(t,s,[],a);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(i),i),i.parent)):i),p.inlineExpressions(o);function s(t,a){X(a)&&t.length>0&&(be(p.createExpressionStatement(p.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(p,n,a,i),s=e.visitNode(o,F,e.isExpression);return s&&(r&&e.startOnNewLine(s),t.push(s)),t}}(t);case 206:return function(t){if(X(t.argumentExpression))return p.updateElementAccessExpression(t,Q(e.visitNode(t.expression,F,e.isLeftHandSideExpression)),e.visitNode(t.argumentExpression,F,e.isExpression));return e.visitEachChild(t,F,n)}(t);case 207:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,X)){var r=p.createCallBinding(t.expression,y,v,!0),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Q(e.visitNode(a,F,e.isLeftHandSideExpression)),i,K(t.arguments)),t),t)}return e.visitEachChild(t,F,n)}(t);case 208:return function(t){if(e.forEach(t.arguments,X)){var r=p.createCallBinding(p.createPropertyAccessExpression(t.expression,"bind"),y),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Q(e.visitNode(a,F,e.isExpression)),i,K(t.arguments,p.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,F,n)}(t);default:return e.visitEachChild(t,F,n)}}(t):2098176&t.transformFlags?e.visitEachChild(t,F,n):t}}function B(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,F,n),void 0,V(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,F,n),a=r,i=o}return a?void g(t):t}function U(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,F,n),void 0,V(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,F,n),a=r,i=o}return t}function V(n){var t=[],r=a,g=i,y=o,h=s,v=c,b=l,E=u,G=d,B=w,U=T,V=S,j=x,K=L;a=!0,i=!1,o=void 0,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,w=1,T=void 0,S=void 0,x=void 0,L=p.createTempVariable(void 0),m();var W=p.copyPrologue(n.statements,t,!1,F);H(n.statements,W);var z=function(){M=0,P=0,D=void 0,C=!1,A=!1,I=void 0,k=void 0,N=void 0,R=void 0,O=void 0;var n=function(){if(T){for(var n=0;n<T.length;n++)Ie(n);De(T.length)}else De(0);if(I){var t=p.createPropertyAccessExpression(L,"label"),r=p.createSwitchStatement(t,p.createCaseBlock(I));return[e.startOnNewLine(r)]}if(k)return k;return[]}();return f().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,L)],void 0,p.createBlock(n,n.length>0)),524288))}();return e.insertStatementsAfterStandardPrologue(t,_()),t.push(p.createReturnStatement(z)),a=r,i=g,o=y,s=h,c=v,l=b,u=E,d=G,w=B,T=U,S=V,x=j,L=K,e.setTextRange(p.createBlock(t,n.multiLine),n)}function j(n){var t=[];return r(n.left),r(n.right),p.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&27===n.operatorToken.kind?(r(n.left),r(n.right)):(X(n)&&t.length>0&&(Le(1,[p.createExpressionStatement(p.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,F,e.isExpression)))}}function K(n,t,r,a){var i,o=Y(n);if(o>0){i=Z();var s=e.visitNodes(n,F,e.isExpression,0,o);Ee(i,p.createArrayLiteralExpression(t?pa([t],s,!0):s)),t=void 0}var c=e.reduceLeft(n,(function(n,r){if(X(r)&&n.length>0){var o=void 0!==i;i||(i=Z()),Ee(i,o?p.createArrayConcatCall(i,[p.createArrayLiteralExpression(n,a)]):p.createArrayLiteralExpression(t?pa([t],n,!0):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,F,e.isExpression)),n}),[],o);return i?p.createArrayConcatCall(i,[p.createArrayLiteralExpression(c,a)]):e.setTextRange(p.createArrayLiteralExpression(t?pa([t],c,!0):c,a),r)}function H(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r<t;r++)z(e[r])}function W(n){e.isBlock(n)?H(n.statements):z(n)}function z(a){var o=i;i||(i=X(a)),function(a){switch(a.kind){case 234:return function(n){X(n)?H(n.statements):be(e.visitNode(n,F,e.isStatement))}(a);case 237:return function(n){be(e.visitNode(n,F,e.isStatement))}(a);case 238:return function(n){if(X(n))if(X(n.thenStatement)||X(n.elseStatement)){var t=$(),r=n.elseStatement?$():void 0;xe(n.elseStatement?r:t,e.visitNode(n.expression,F,e.isExpression),n.expression),W(n.thenStatement),n.elseStatement&&(Te(t),ee(r),W(n.elseStatement)),ee(t)}else be(e.visitNode(n,F,e.isStatement));else be(e.visitNode(n,F,e.isStatement))}(a);case 239:return function(n){if(X(n)){var t=$(),r=$();oe(t),ee(r),W(n.statement),ee(t),Se(r,e.visitNode(n.expression,F,e.isExpression)),se()}else be(e.visitNode(n,F,e.isStatement))}(a);case 240:return function(n){if(X(n)){var t=$(),r=oe(t);ee(t),xe(r,e.visitNode(n.expression,F,e.isExpression)),W(n.statement),Te(t),se()}else be(e.visitNode(n,F,e.isStatement))}(a);case 241:return function(n){if(X(n)){var t=$(),r=$(),a=oe(r);if(n.initializer){var i=n.initializer;e.isVariableDeclarationList(i)?J(i):be(e.setTextRange(p.createExpressionStatement(e.visitNode(i,F,e.isExpression)),i))}ee(t),n.condition&&xe(a,e.visitNode(n.condition,F,e.isExpression)),W(n.statement),ee(r),n.incrementor&&be(e.setTextRange(p.createExpressionStatement(e.visitNode(n.incrementor,F,e.isExpression)),n.incrementor)),Te(t),se()}else be(e.visitNode(n,F,e.isStatement))}(a);case 242:return function(n){if(X(n)){var t=Z(),r=Z(),a=p.createLoopVariable(),i=n.initializer;y(a),Ee(t,p.createArrayLiteralExpression()),be(p.createForInStatement(r,e.visitNode(n.expression,F,e.isExpression),p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(t,"push"),void 0,[r])))),Ee(a,p.createNumericLiteral(0));var o=$(),s=$(),c=oe(s);ee(o),xe(c,p.createLessThan(a,p.createPropertyAccessExpression(t,"length")));var l=void 0;if(e.isVariableDeclarationList(i)){for(var u=0,d=i.declarations;u<d.length;u++){var f=d[u];y(f.name)}l=p.cloneNode(i.declarations[0].name)}else l=e.visitNode(i,F,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));Ee(l,p.createElementAccessExpression(t,a)),W(n.statement),ee(s),be(p.createExpressionStatement(p.createPostfixIncrement(a))),Te(o),se()}else be(e.visitNode(n,F,e.isStatement))}(a);case 244:return function(n){var t=_e(n.label?e.idText(n.label):void 0);t>0?Te(t,n):be(n)}(a);case 245:return function(n){var t=me(n.label?e.idText(n.label):void 0);t>0?Te(t,n):be(n)}(a);case 246:return function(n){t=e.visitNode(n.expression,F,e.isExpression),r=n,Le(8,[t],r);var t,r}(a);case 247:return function(n){X(n)?(!function(e){var n=$(),t=$();ee(n),ne({kind:1,expression:e,startLabel:n,endLabel:t})}(Q(e.visitNode(n.expression,F,e.isExpression))),W(n.statement),e.Debug.assert(1===ae()),ee(te().endLabel)):be(e.visitNode(n,F,e.isStatement))}(a);case 248:return function(n){if(X(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,a=function(){var e=$();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),i=Q(e.visitNode(n.expression,F,e.isExpression)),o=[],s=-1,c=0;c<r;c++){var l=t.clauses[c];o.push($()),289===l.kind&&-1===s&&(s=c)}for(var u=0,d=[];u<r;){var f=0;for(c=u;c<r;c++){if(288===(l=t.clauses[c]).kind){if(X(l.expression)&&d.length>0)break;d.push(p.createCaseClause(e.visitNode(l.expression,F,e.isExpression),[he(o[c],l.expression)]))}else f++}d.length&&(be(p.createSwitchStatement(i,p.createCaseBlock(d))),u+=d.length,d=[]),f>0&&(u+=f,f=0)}Te(s>=0?o[s]:a);for(c=0;c<r;c++)ee(o[c]),H(t.clauses[c].statements);ce()}else be(e.visitNode(n,F,e.isStatement))}(a);case 249:return function(n){X(n)?(!function(e){var n=$();ne({kind:4,isScript:!1,labelText:e,breakLabel:n})}(e.idText(n.label)),W(n.statement),le()):be(e.visitNode(n,F,e.isStatement))}(a);case 250:return function(n){var t;r=e.visitNode(null!==(t=n.expression)&&void 0!==t?t:p.createVoidZero(),F,e.isExpression),a=n,Le(9,[r],a);var r,a}(a);case 251:return function(a){X(a)?(function(){var e=$(),n=$();ee(e),ne({kind:0,state:0,startLabel:e,endLabel:n}),ve()}(),W(a.tryBlock),a.catchClause&&(!function(a){var i;if(e.Debug.assert(0===ae()),e.isGeneratedIdentifier(a.name))i=a.name,y(a.name);else{var o=e.idText(a.name);i=Z(o),t||(t=new e.Map,r=[],n.enableSubstitution(79)),t.set(o,!0),r[e.getOriginalNodeId(a)]=i}var s=re();e.Debug.assert(s.state<1),Te(s.endLabel);var c=$();ee(c),s.state=1,s.catchVariable=i,s.catchLabel=c,Ee(i,p.createCallExpression(p.createPropertyAccessExpression(L,"sent"),void 0,[])),ve()}(a.catchClause.variableDeclaration),W(a.catchClause.block)),a.finallyBlock&&(!function(){e.Debug.assert(0===ae());var n=re();e.Debug.assert(n.state<2),Te(n.endLabel);var t=$();ee(t),n.state=2,n.finallyLabel=t}(),W(a.finallyBlock)),function(){e.Debug.assert(0===ae());var n=te();n.state<2?Te(n.endLabel):Le(10);ee(n.endLabel),ve(),n.state=3}()):be(e.visitEachChild(a,F,n))}(a);default:be(e.visitNode(a,F,e.isStatement))}}(a),i=o}function J(n){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t],i=p.cloneNode(a.name);e.setCommentRange(i,a.name),y(i)}for(var o=e.getInitializedVariables(n),s=o.length,c=0,l=[];c<s;){for(var u=c;u<s;u++){if(X((a=o[u]).initializer)&&l.length>0)break;l.push(q(a))}l.length&&(be(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}function q(n){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(n.name),n.name),e.visitNode(n.initializer,F,e.isExpression)),n)}function X(e){return!!e&&0!==(524288&e.transformFlags)}function Y(e){for(var n=e.length,t=0;t<n;t++)if(X(e[t]))return t;return-1}function Q(n){if(e.isGeneratedIdentifier(n)||4096&e.getEmitFlags(n))return n;var t=p.createTempVariable(y);return Ee(t,n,n),t}function Z(e){var n=e?p.createUniqueName(e):p.createTempVariable(void 0);return y(n),n}function $(){u||(u=[]);var e=w;return w++,u[e]=-1,e}function ee(n){e.Debug.assert(void 0!==u,"No labels were defined."),u[n]=T?T.length:0}function ne(e){o||(o=[],c=[],s=[],l=[]);var n=c.length;return c[n]=0,s[n]=T?T.length:0,o[n]=e,l.push(e),n}function te(){var n=re();if(void 0===n)return e.Debug.fail("beginBlock was never called.");var t=c.length;return c[t]=1,s[t]=T?T.length:0,o[t]=n,l.pop(),n}function re(){return e.lastOrUndefined(l)}function ae(){var e=re();return e&&e.kind}function ie(){ne({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function oe(e){var n=$();return ne({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function se(){e.Debug.assert(3===ae());var n=te(),t=n.breakLabel;n.isScript||ee(t)}function ce(){e.Debug.assert(2===ae());var n=te(),t=n.breakLabel;n.isScript||ee(t)}function le(){e.Debug.assert(4===ae());var n=te();n.isScript||ee(n.breakLabel)}function ue(e){return 2===e.kind||3===e.kind}function de(e){return 4===e.kind}function pe(e){return 3===e.kind}function fe(e,n){for(var t=n;t>=0;t--){var r=l[t];if(!de(r))break;if(r.labelText===e)return!0}return!1}function me(e){if(l)if(e)for(var n=l.length-1;n>=0;n--){if(de(t=l[n])&&t.labelText===e)return t.breakLabel;if(ue(t)&&fe(e,n-1))return t.breakLabel}else for(n=l.length-1;n>=0;n--){var t;if(ue(t=l[n]))return t.breakLabel}return 0}function _e(e){if(l)if(e)for(var n=l.length-1;n>=0;n--){if(pe(t=l[n])&&fe(e,n-1))return t.continueLabel}else for(n=l.length-1;n>=0;n--){var t;if(pe(t=l[n]))return t.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var n=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[n]:d[e].push(n),n}return p.createOmittedExpression()}function ye(n){var t=p.createNumericLiteral(n);return e.addSyntheticTrailingComment(t,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(n)),t}function he(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),ge(n)])),t)}function ve(){Le(0)}function be(e){e?Le(1,[e]):ve()}function Ee(e,n,t){Le(2,[e,n],t)}function Te(e,n){Le(3,[e],n)}function Se(e,n,t){Le(4,[e,n],t)}function xe(e,n,t){Le(5,[e,n],t)}function Le(e,n,t){void 0===T&&(T=[],S=[],x=[]),void 0===u&&ee($());var r=T.length;T[r]=e,S[r]=n,x[r]=t}function De(e){(function(e){if(!A)return!0;if(!u||!d)return!1;for(var n=0;n<u.length;n++)if(u[n]===e&&d[n])return!0;return!1})(e)&&(Ae(e),O=void 0,Ne(void 0,void 0)),k&&I&&Ce(!1),function(){if(void 0!==d&&void 0!==D)for(var e=0;e<D.length;e++){var n=D[e];if(void 0!==n)for(var t=0,r=n;t<r.length;t++){var a=r[t],i=d[a];if(void 0!==i)for(var o=0,s=i;o<s.length;o++){s[o].text=String(e)}}}}()}function Ce(e){if(I||(I=[]),k){if(O)for(var n=O.length-1;n>=0;n--){var t=O[n];k=[p.createWithStatement(t.expression,p.createBlock(k))]}if(R){var r=R.startLabel,a=R.catchLabel,i=R.finallyLabel,o=R.endLabel;k.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(L,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ge(r),ge(a),ge(i),ge(o)])]))),R=void 0}e&&k.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(L,"label"),p.createNumericLiteral(P+1))))}I.push(p.createCaseClause(p.createNumericLiteral(P),k||[])),k=void 0}function Ae(e){if(u)for(var n=0;n<u.length;n++)u[n]===e&&(k&&(Ce(!C),C=!1,A=!1,P++),void 0===D&&(D=[]),void 0===D[P]?D[P]=[n]:D[P].push(n))}function Ie(n){if(Ae(n),function(e){if(o)for(;M<c.length&&s[M]<=e;M++){var n=o[M],t=c[M];switch(n.kind){case 0:0===t?(N||(N=[]),k||(k=[]),N.push(R),R=n):1===t&&(R=N.pop());break;case 1:0===t?(O||(O=[]),O.push(n)):1===t&&O.pop()}}}(n),!C){C=!1,A=!1;var t=T[n];if(0!==t){if(10===t)return C=!0,void ke(p.createReturnStatement(p.createArrayLiteralExpression([ye(7)])));var r=S[n];if(1===t)return ke(r[0]);var a,i,l,u=x[n];switch(t){case 2:return a=r[0],i=r[1],l=u,void ke(e.setTextRange(p.createExpressionStatement(p.createAssignment(a,i)),l));case 3:return function(n,t){C=!0,ke(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),ge(n)])),t),384))}(r[0],u);case 4:return function(n,t,r){ke(e.setEmitFlags(p.createIfStatement(t,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),ge(n)])),r),384)),1))}(r[0],r[1],u);case 5:return function(n,t,r){ke(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(t),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),ge(n)])),r),384)),1))}(r[0],r[1],u);case 6:return function(n,t){C=!0,ke(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(n?[ye(4),n]:[ye(4)])),t),384))}(r[0],u);case 7:return function(n,t){C=!0,ke(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(5),n])),t),384))}(r[0],u);case 8:return Ne(r[0],u);case 9:return function(n,t){C=!0,A=!0,ke(e.setTextRange(p.createThrowStatement(n),t))}(r[0],u)}}}}function ke(e){e&&(k?k.push(e):k=[e])}function Ne(n,t){C=!0,A=!0,ke(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(n?[ye(2),n]:[ye(2)])),t),384))}}}(ha||(ha={})),function(e){e.transformModule=function(t){var r=t.factory,a=t.getEmitHelperFactory,i=t.startLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getCompilerOptions(),l=t.getEmitResolver(),u=t.getEmitHost(),d=e.getEmitScriptTarget(c),p=e.getEmitModuleKind(c),f=t.onSubstituteNode,m=t.onEmitNode;t.onSubstituteNode=function(n,t){if((t=f(n,t)).id&&b[t.id])return t;if(1===n)return function(n){switch(n.kind){case 79:return Q(n);case 207:return function(n){if(e.isIdentifier(n.expression)){var t=Q(n.expression);if(b[e.getNodeId(t)]=!0,!e.isIdentifier(t))return e.addEmitFlags(r.updateCallExpression(n,t,void 0,n.arguments),536870912)}return n}(n);case 209:return function(n){if(e.isIdentifier(n.tag)){var t=Q(n.tag);if(b[e.getNodeId(t)]=!0,!e.isIdentifier(t))return e.addEmitFlags(r.updateTaggedTemplateExpression(n,t,void 0,n.template),536870912)}return n}(n);case 220:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=Z(n.left);if(t){for(var r=n,a=0,i=t;a<i.length;a++){var o=i[a];b[e.getNodeId(r)]=!0,r=X(o,r,n)}return r}}return n}(n)}return n}(t);if(e.isShorthandPropertyAssignment(t))return function(n){var t=n.name,a=Q(t);if(a!==t){if(n.objectAssignmentInitializer){var i=r.createAssignment(a,n.objectAssignmentInitializer);return e.setTextRange(r.createPropertyAssignment(t,i),n)}return e.setTextRange(r.createPropertyAssignment(t,a),n)}return n}(t);return t},t.onEmitNode=function(n,t,r){303===t.kind?(_=t,g=h[e.getOriginalNodeId(_)],m(n,t,r),_=void 0,g=void 0):m(n,t,r)},t.enableSubstitution(207),t.enableSubstitution(209),t.enableSubstitution(79),t.enableSubstitution(220),t.enableSubstitution(295),t.enableEmitNotification(303);var _,g,y,h=[],v=[],b=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile||!(e.isEffectiveExternalModule(n,c)||4194304&n.transformFlags||e.isJsonSourceFile(n)&&e.hasJsonModuleEmitEnabled(c)&&e.outFile(c)))return n;_=n,g=e.collectExternalModuleInfo(t,n,l,c),h[e.getOriginalNodeId(n)]=g;var r=function(n){switch(n){case e.ModuleKind.AMD:return S;case e.ModuleKind.UMD:return x;default:return T}}(p)(n);return _=void 0,g=void 0,y=!1,r}));function E(){return!(g.exportEquals||!e.isExternalModule(_))}function T(n){i();var a=[],s=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(_),l=r.copyPrologue(n.statements,a,s&&!e.isJsonSourceFile(n),I);if(E()&&e.append(a,q()),e.length(g.exportedNames))for(var u=0;u<g.exportedNames.length;u+=50)e.append(a,r.createExpressionStatement(e.reduceLeft(g.exportedNames.slice(u,u+50),(function(n,t){return r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(e.idText(t))),n)}),r.createVoidZero())));e.append(a,e.visitNode(g.externalHelpersImportDeclaration,I,e.isStatement)),e.addRange(a,e.visitNodes(n.statements,I,e.isStatement,l)),A(a,!1),e.insertStatementsAfterStandardPrologue(a,o());var d=r.updateSourceFile(n,e.setTextRange(r.createNodeArray(a),n.statements));return e.addEmitHelpers(d,t.readEmitHelpers()),d}function S(n){var a=r.createIdentifier("define"),i=e.tryGetModuleNameFromFile(r,n,u,c),o=e.isJsonSourceFile(n)&&n,s=L(n,!0),l=s.aliasedModuleNames,d=s.unaliasedModuleNames,p=s.importAliasNames,f=r.updateSourceFile(n,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(a,void 0,pa(pa([],i?[i]:[],!0),[r.createArrayLiteralExpression(o?e.emptyArray:pa(pa([r.createStringLiteral("require"),r.createStringLiteral("exports")],l,!0),d,!0)),o?o.statements.length?o.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,pa([r.createParameterDeclaration(void 0,void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,void 0,"exports")],p,!0),void 0,C(n))],!1)))]),n.statements));return e.addEmitHelpers(f,t.readEmitHelpers()),f}function x(n){var a=L(n,!1),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,s=a.importAliasNames,l=e.tryGetModuleNameFromFile(r,n,u,c),d=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(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")]))]),e.setEmitFlags(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,pa(pa([],l?[l]:[],!0),[r.createArrayLiteralExpression(pa(pa([r.createStringLiteral("require"),r.createStringLiteral("exports")],i,!0),o,!0)),r.createIdentifier("factory")],!1)))])))],!0),void 0)),p=r.updateSourceFile(n,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(d,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,pa([r.createParameterDeclaration(void 0,void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,void 0,"exports")],s,!0),void 0,C(n))]))]),n.statements));return e.addEmitHelpers(p,t.readEmitHelpers()),p}function L(n,t){for(var a=[],i=[],o=[],s=0,d=n.amdDependencies;s<d.length;s++){var p=d[s];p.name?(a.push(r.createStringLiteral(p.path)),o.push(r.createParameterDeclaration(void 0,void 0,void 0,p.name))):i.push(r.createStringLiteral(p.path))}for(var f=0,m=g.externalImports;f<m.length;f++){var y=m[f],h=e.getExternalModuleNameLiteral(r,y,_,u,l,c),v=e.getLocalNameForExternalImport(r,y,_);h&&(t&&v?(e.setEmitFlags(v,4),a.push(h),o.push(r.createParameterDeclaration(void 0,void 0,void 0,v))):i.push(h))}return{aliasedModuleNames:a,unaliasedModuleNames:i,importAliasNames:o}}function D(n){if(!e.isImportEqualsDeclaration(n)&&!e.isExportDeclaration(n)&&e.getExternalModuleNameLiteral(r,n,_,u,l,c)){var t=e.getLocalNameForExternalImport(r,n,_),a=P(n,t);if(a!==t)return r.createExpressionStatement(r.createAssignment(t,a))}}function C(t){i();var a=[],s=r.copyPrologue(t.statements,a,!c.noImplicitUseStrict,I);E()&&e.append(a,q()),e.length(g.exportedNames)&&e.append(a,r.createExpressionStatement(e.reduceLeft(g.exportedNames,(function(n,t){return r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(e.idText(t))),n)}),r.createVoidZero()))),e.append(a,e.visitNode(g.externalHelpersImportDeclaration,I,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(a,e.mapDefined(g.externalImports,D)),e.addRange(a,e.visitNodes(t.statements,I,e.isStatement,s)),A(a,!0),e.insertStatementsAfterStandardPrologue(a,o());var l=r.createBlock(a,!0);return y&&e.addEmitHelper(l,n),l}function A(n,t){if(g.exportEquals){var a=e.visitNode(g.exportEquals.expression,N);if(a)if(t){var i=r.createReturnStatement(a);e.setTextRange(i,g.exportEquals),e.setEmitFlags(i,1920),n.push(i)}else{i=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),a));e.setTextRange(i,g.exportEquals),e.setEmitFlags(i,1536),n.push(i)}}}function I(n){switch(n.kind){case 265:return function(n){var t,a=e.getNamespaceDeclarationNode(n);if(p!==e.ModuleKind.AMD){if(!n.importClause)return e.setOriginalNode(e.setTextRange(r.createExpressionStatement(F(n)),n),n);var i=[];a&&!e.isDefaultImport(n)?i.push(r.createVariableDeclaration(r.cloneNode(a.name),void 0,void 0,P(n,F(n)))):(i.push(r.createVariableDeclaration(r.getGeneratedNameForNode(n),void 0,void 0,P(n,F(n)))),a&&e.isDefaultImport(n)&&i.push(r.createVariableDeclaration(r.cloneNode(a.name),void 0,void 0,r.getGeneratedNameForNode(n)))),t=e.append(t,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList(i,d>=2?2:0)),n),n))}else a&&e.isDefaultImport(n)&&(t=e.append(t,r.createVariableStatement(void 0,r.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(r.createVariableDeclaration(r.cloneNode(a.name),void 0,void 0,r.getGeneratedNameForNode(n)),n),n)],d>=2?2:0))));if(U(n)){var o=e.getOriginalNodeId(n);v[o]=V(v[o],n)}else t=V(t,n);return e.singleOrMany(t)}(n);case 264:return function(n){var t;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?t=e.hasSyntacticModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(X(n.name,F(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(n.name),void 0,void 0,F(n))],d>=2?2:0)),n),n)):e.hasSyntacticModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(X(r.getExportName(n),r.getLocalName(n))),n),n)));if(U(n)){var a=e.getOriginalNodeId(n);v[a]=j(v[a],n)}else t=j(t,n);return e.singleOrMany(t)}(n);case 271:return function(n){if(!n.moduleSpecifier)return;var t=r.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var i=[];p!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(t,void 0,void 0,F(n))])),n),n));for(var o=0,s=n.exportClause.elements;o<s.length;o++){var l=s[o];if(0===d)i.push(e.setOriginalNode(e.setTextRange(r.createExpressionStatement(a().createCreateBindingHelper(t,r.createStringLiteralFromNode(l.propertyName||l.name),l.propertyName?r.createStringLiteralFromNode(l.name):void 0)),l),l));else{var u=!!e.getESModuleInterop(c)&&!(67108864&e.getEmitFlags(n))&&"default"===e.idText(l.propertyName||l.name),f=r.createPropertyAccessExpression(u?a().createImportDefaultHelper(t):t,l.propertyName||l.name);i.push(e.setOriginalNode(e.setTextRange(r.createExpressionStatement(X(r.getExportName(l),f,void 0,!0)),l),l))}}return e.singleOrMany(i)}return n.exportClause?((i=[]).push(e.setOriginalNode(e.setTextRange(r.createExpressionStatement(X(r.cloneNode(n.exportClause.name),function(n,t){if(!e.getESModuleInterop(c)||67108864&e.getEmitFlags(n))return t;if(e.getExportNeedsImportStarHelper(n))return a().createImportStarHelper(t);return t}(n,p!==e.ModuleKind.AMD?F(n):e.isExportNamespaceAsDefaultDeclaration(n)?t:r.createIdentifier(e.idText(n.exportClause.name))))),n),n)),e.singleOrMany(i)):e.setOriginalNode(e.setTextRange(r.createExpressionStatement(a().createExportStarHelper(p!==e.ModuleKind.AMD?F(n):t)),n),n)}(n);case 270:return function(n){if(n.isExportEquals)return;var t,a=n.original;if(a&&U(a)){var i=e.getOriginalNodeId(n);v[i]=J(v[i],r.createIdentifier("default"),e.visitNode(n.expression,N),n,!0)}else t=J(t,r.createIdentifier("default"),e.visitNode(n.expression,N),n,!0);return e.singleOrMany(t)}(n);case 236:return function(n){var a,i,o;if(e.hasSyntacticModifier(n,1)){for(var s=void 0,c=!1,l=0,u=n.declarationList.declarations;l<u.length;l++){var d=u[l];if(e.isIdentifier(d.name)&&e.isLocalName(d.name))s||(s=e.visitNodes(n.modifiers,Y,e.isModifier)),i=e.append(i,d);else if(d.initializer)if(!e.isBindingPattern(d.name)&&(e.isArrowFunction(d.initializer)||e.isFunctionExpression(d.initializer)||e.isClassExpression(d.initializer))){var p=r.createAssignment(e.setTextRange(r.createPropertyAccessExpression(r.createIdentifier("exports"),d.name),d.name),r.createIdentifier(e.getTextOfIdentifierOrLiteral(d.name))),f=r.createVariableDeclaration(d.name,d.exclamationToken,d.type,e.visitNode(d.initializer,N));i=e.append(i,f),o=e.append(o,p),c=!0}else o=e.append(o,B(d))}if(i&&(a=e.append(a,r.updateVariableStatement(n,s,r.updateVariableDeclarationList(n.declarationList,i)))),o){var m=e.setOriginalNode(e.setTextRange(r.createExpressionStatement(r.inlineExpressions(o)),n),n);c&&e.removeAllComments(m),a=e.append(a,m)}}else a=e.append(a,e.visitEachChild(n,N,t));if(U(n)){var _=e.getOriginalNodeId(n);v[_]=K(v[_],n)}else a=K(a,n);return e.singleOrMany(a)}(n);case 255:return function(n){var a;a=e.hasSyntacticModifier(n,1)?e.append(a,e.setOriginalNode(e.setTextRange(r.createFunctionDeclaration(void 0,e.visitNodes(n.modifiers,Y,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,N),void 0,e.visitEachChild(n.body,N,t)),n),n)):e.append(a,e.visitEachChild(n,N,t));if(U(n)){var i=e.getOriginalNodeId(n);v[i]=W(v[i],n)}else a=W(a,n);return e.singleOrMany(a)}(n);case 256:return function(n){var a;a=e.hasSyntacticModifier(n,1)?e.append(a,e.setOriginalNode(e.setTextRange(r.createClassDeclaration(void 0,e.visitNodes(n.modifiers,Y,e.isModifier),r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.heritageClauses,N),e.visitNodes(n.members,N)),n),n)):e.append(a,e.visitEachChild(n,N,t));if(U(n)){var i=e.getOriginalNodeId(n);v[i]=W(v[i],n)}else a=W(a,n);return e.singleOrMany(a)}(n);case 350:return function(n){if(U(n)&&236===n.original.kind){var t=e.getOriginalNodeId(n);v[t]=K(v[t],n.original)}return n}(n);case 351:return function(n){var t=e.getOriginalNodeId(n),r=v[t];if(r)return delete v[t],e.append(r,n);return n}(n);default:return N(n)}}function k(n,a){if(!(71305216&n.transformFlags))return n;switch(n.kind){case 241:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,R,e.isForInitializer),e.visitNode(n.condition,N,e.isExpression),e.visitNode(n.incrementor,R,e.isExpression),e.visitIterationBody(n.statement,N,t))}(n);case 237:return function(n){return r.updateExpressionStatement(n,e.visitNode(n.expression,R,e.isExpression))}(n);case 211:return function(n,t){return r.updateParenthesizedExpression(n,e.visitNode(n.expression,t?R:N,e.isExpression))}(n,a);case 348:return function(n,t){return r.updatePartiallyEmittedExpression(n,e.visitNode(n.expression,t?R:N,e.isExpression))}(n,a);case 207:if(e.isImportCall(n)&&void 0===_.impliedNodeFormat)return function(n){var t=e.getExternalModuleNameLiteral(r,n,_,u,l,c),a=e.visitNode(e.firstOrUndefined(n.arguments),N),i=!t||a&&e.isStringLiteral(a)&&a.text===t.text?a:t,o=!!(8192&n.transformFlags);switch(c.module){case e.ModuleKind.AMD:return w(i,o);case e.ModuleKind.UMD:return function(n,t){if(y=!0,e.isSimpleCopiableExpression(n)){var a=e.isGeneratedIdentifier(n)?n:e.isStringLiteral(n)?r.createStringLiteralFromNode(n):e.setEmitFlags(e.setTextRange(r.cloneNode(n),n),1536);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,M(n,t),void 0,w(a,t))}var i=r.createTempVariable(s);return r.createComma(r.createAssignment(i,n),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,M(i,t),void 0,w(i,t)))}(null!==i&&void 0!==i?i:r.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return M(i,o)}}(n);break;case 220:if(e.isDestructuringAssignment(n))return function(n,r){if(O(n.left))return e.flattenDestructuringAssignment(n,N,t,0,!r,G);return e.visitEachChild(n,N,t)}(n,a);break;case 218:case 219:return function(n,a){if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var i=Z(n.operand);if(i){var o=void 0,c=e.visitNode(n.operand,N,e.isExpression);e.isPrefixUnaryExpression(n)?c=r.updatePrefixUnaryExpression(n,c):(c=r.updatePostfixUnaryExpression(n,c),a||(o=r.createTempVariable(s),c=r.createAssignment(o,c),e.setTextRange(c,n)),c=r.createComma(c,r.cloneNode(n.operand)),e.setTextRange(c,n));for(var l=0,u=i;l<u.length;l++){var d=u[l];b[e.getNodeId(c)]=!0,c=X(d,c),e.setTextRange(c,n)}return o&&(b[e.getNodeId(c)]=!0,c=r.createComma(c,o),e.setTextRange(c,n)),c}}return e.visitEachChild(n,N,t)}(n,a)}return e.visitEachChild(n,N,t)}function N(e){return k(e,!1)}function R(e){return k(e,!0)}function O(n){if(e.isObjectLiteralExpression(n))for(var t=0,r=n.properties;t<r.length;t++){switch((o=r[t]).kind){case 294:if(O(o.initializer))return!0;break;case 295:if(O(o.name))return!0;break;case 296:if(O(o.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(n))for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];if(e.isSpreadElement(o)){if(O(o.expression))return!0}else if(O(o))return!0}else if(e.isIdentifier(n))return e.length(Z(n))>(e.isExportName(n)?1:0);return!1}function w(n,t){var i,o=r.createUniqueName("resolve"),s=r.createUniqueName("reject"),l=[r.createParameterDeclaration(void 0,void 0,void 0,o),r.createParameterDeclaration(void 0,void 0,void 0,s)],u=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([n||r.createOmittedExpression()]),o,s]))]);d>=2?i=r.createArrowFunction(void 0,void 0,l,void 0,void 0,u):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,u),t&&e.setEmitFlags(i,8));var p=r.createNewExpression(r.createIdentifier("Promise"),void 0,[i]);return e.getESModuleInterop(c)?r.createCallExpression(r.createPropertyAccessExpression(p,r.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):p}function M(n,t){var i,o=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,[]),s=r.createCallExpression(r.createIdentifier("require"),void 0,n?[n]:[]);return e.getESModuleInterop(c)&&(s=a().createImportStarHelper(s)),d>=2?i=r.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(s)])),t&&e.setEmitFlags(i,8)),r.createCallExpression(r.createPropertyAccessExpression(o,"then"),void 0,[i])}function P(n,t){return!e.getESModuleInterop(c)||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?a().createImportStarHelper(t):e.getImportNeedsImportDefaultHelper(n)?a().createImportDefaultHelper(t):t}function F(n){var t=e.getExternalModuleNameLiteral(r,n,_,u,l,c),a=[];return t&&a.push(t),r.createCallExpression(r.createIdentifier("require"),void 0,a)}function G(n,t,a){var i=Z(n);if(i){for(var o=e.isExportName(n)?t:r.createAssignment(n,t),s=0,c=i;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=X(l,o,a)}return o}return r.createAssignment(n,t)}function B(n){return e.isBindingPattern(n.name)?e.flattenDestructuringAssignment(e.visitNode(n,N),void 0,t,0,!1,G):r.createAssignment(e.setTextRange(r.createPropertyAccessExpression(r.createIdentifier("exports"),n.name),n.name),n.initializer?e.visitNode(n.initializer,N):r.createVoidZero())}function U(n){return 0!==(4194304&e.getEmitFlags(n))}function V(e,n){if(g.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=z(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 267:e=z(e,r);break;case 268:for(var a=0,i=r.elements;a<i.length;a++){e=z(e,i[a],!0)}}return e}function j(e,n){return g.exportEquals?e:z(e,n)}function K(e,n){if(g.exportEquals)return e;for(var t=0,r=n.declarationList.declarations;t<r.length;t++){e=H(e,r[t])}return e}function H(n,t){if(g.exportEquals)return n;if(e.isBindingPattern(t.name))for(var r=0,a=t.name.elements;r<a.length;r++){var i=a[r];e.isOmittedExpression(i)||(n=H(n,i))}else e.isGeneratedIdentifier(t.name)||(n=z(n,t));return n}function W(n,t){if(g.exportEquals)return n;e.hasSyntacticModifier(t,1)&&(n=J(n,e.hasSyntacticModifier(t,512)?r.createIdentifier("default"):r.getDeclarationName(t),r.getLocalName(t),t));return t.name&&(n=z(n,t)),n}function z(n,t,a){var i=r.getDeclarationName(t),o=g.exportSpecifiers.get(e.idText(i));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];n=J(n,l.name,i,l.name,void 0,a)}return n}function J(n,t,a,i,o,s){return n=e.append(n,function(n,t,a,i,o){var s=e.setTextRange(r.createExpressionStatement(X(n,t,void 0,o)),a);e.startOnNewLine(s),i||e.setEmitFlags(s,1536);return s}(t,a,i,o,s)),n}function q(){var n;return n=0===d?r.createExpressionStatement(X(r.createIdentifier("__esModule"),r.createTrue())):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())])])),e.setEmitFlags(n,1048576),n}function X(n,t,a,i){return e.setTextRange(i&&0!==d?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(n),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(t)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(n)),t),a)}function Y(e){switch(e.kind){case 93:case 88:return}return e}function Q(n){var t,a;if(4096&e.getEmitFlags(n)){var i=e.getExternalHelpersModuleName(_);return i?r.createPropertyAccessExpression(i,n):n}if((!e.isGeneratedIdentifier(n)||64&n.autoGenerateFlags)&&!e.isLocalName(n)){var o=l.getReferencedExportContainer(n,e.isExportName(n));if(o&&303===o.kind)return e.setTextRange(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(n)),n);var s=l.getReferencedImportDeclaration(n);if(s){if(e.isImportClause(s))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(s.parent),r.createIdentifier("default")),n);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(a=null===(t=s.parent)||void 0===t?void 0:t.parent)||void 0===a?void 0:a.parent)||s),r.cloneNode(c)),n)}}}return n}function Z(n){if(!e.isGeneratedIdentifier(n)){var t=l.getReferencedImportDeclaration(n)||l.getReferencedValueDeclaration(n);if(t)return g&&g.exportedBindings[e.getOriginalNodeId(t)]}}};var n={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(ha||(ha={})),function(e){e.transformSystemModule=function(n){var t=n.factory,r=n.startLexicalEnvironment,a=n.endLexicalEnvironment,i=n.hoistVariableDeclaration,o=n.getCompilerOptions(),s=n.getEmitResolver(),c=n.getEmitHost(),l=n.onSubstituteNode,u=n.onEmitNode;n.onSubstituteNode=function(n,r){if(function(e){return y&&e.id&&y[e.id]}(r=l(n,r)))return r;if(1===n)return function(n){switch(n.kind){case 79:return function(n){var r,a;if(4096&e.getEmitFlags(n)){var i=e.getExternalHelpersModuleName(d);return i?t.createPropertyAccessExpression(i,n):n}if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var o=s.getReferencedImportDeclaration(n);if(o){if(e.isImportClause(o))return e.setTextRange(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),n);if(e.isImportSpecifier(o))return e.setTextRange(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null===(a=null===(r=o.parent)||void 0===r?void 0:r.parent)||void 0===a?void 0:a.parent)||o),t.cloneNode(o.propertyName||o.name)),n)}}return n}(n);case 220:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=Y(n.left);if(t){for(var r=n,a=0,i=t;a<i.length;a++){r=V(i[a],Q(r))}return r}}return n}(n);case 230:return function(n){if(e.isImportMeta(n))return t.createPropertyAccessExpression(m,t.createIdentifier("meta"));return n}(n)}return n}(r);if(4===n)return function(n){if(295===n.kind)return function(n){var r,a,i=n.name;if(!e.isGeneratedIdentifier(i)&&!e.isLocalName(i)){var o=s.getReferencedImportDeclaration(i);if(o){if(e.isImportClause(o))return e.setTextRange(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),n);if(e.isImportSpecifier(o))return e.setTextRange(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null===(a=null===(r=o.parent)||void 0===r?void 0:r.parent)||void 0===a?void 0:a.parent)||o),t.cloneNode(o.propertyName||o.name))),n)}}return n}(n);return n}(r);return r},n.onEmitNode=function(n,t,r){if(303===t.kind){var a=e.getOriginalNodeId(t);d=t,p=h[a],f=b[a],y=E[a],m=T[a],y&&delete E[a],u(n,t,r),d=void 0,p=void 0,f=void 0,m=void 0,y=void 0}else u(n,t,r)},n.enableSubstitution(79),n.enableSubstitution(295),n.enableSubstitution(220),n.enableSubstitution(230),n.enableEmitNotification(303);var d,p,f,m,_,g,y,h=[],v=[],b=[],E=[],T=[];return e.chainBundle(n,(function(i){if(i.isDeclarationFile||!(e.isEffectiveExternalModule(i,o)||4194304&i.transformFlags))return i;var l=e.getOriginalNodeId(i);d=i,g=i,p=h[l]=e.collectExternalModuleInfo(n,i,s,o),f=t.createUniqueName("exports"),b[l]=f,m=T[l]=t.createUniqueName("context");var u=function(n){for(var r=new e.Map,a=[],i=0,l=n;i<l.length;i++){var u=l[i],p=e.getExternalModuleNameLiteral(t,u,d,c,s,o);if(p){var f=p.text,m=r.get(f);void 0!==m?a[m].externalImports.push(u):(r.set(f,a.length),a.push({name:p,externalImports:[u]}))}}return a}(p.externalImports),v=function(n,i){var s=[];r();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(d),l=t.copyPrologue(n.statements,s,c,L);s.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(m,t.createPropertyAccessExpression(m,"id")))]))),e.visitNode(p.externalHelpersImportDeclaration,L,e.isStatement);var u=e.visitNodes(n.statements,L,e.isStatement,l);e.addRange(s,_),e.insertStatementsAfterStandardPrologue(s,a());var f=function(e){if(!p.hasExportStarsToExportValues)return;if(!p.exportedNames&&0===p.exportSpecifiers.size){for(var n=!1,r=0,a=p.externalImports;r<a.length;r++){var i=a[r];if(271===i.kind&&i.exportClause){n=!0;break}}if(!n){var o=S(void 0);return e.push(o),o.name}}var s=[];if(p.exportedNames)for(var c=0,l=p.exportedNames;c<l.length;c++){var u=l[c];"default"!==u.escapedText&&s.push(t.createPropertyAssignment(t.createStringLiteralFromNode(u),t.createTrue()))}var d=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(d,void 0,void 0,t.createObjectLiteralExpression(s,!0))])));var f=S(d);return e.push(f),f.name}(s),g=1048576&n.transformFlags?t.createModifiersFromModifierFlags(256):void 0,y=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",x(f,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,t.createBlock(u,!0)))],!0);return s.push(t.createReturnStatement(y)),t.createBlock(s,!0)}(i,u),D=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,f),t.createParameterDeclaration(void 0,void 0,void 0,m)],void 0,v),C=e.tryGetModuleNameFromFile(t,i,c,o),A=t.createArrayLiteralExpression(e.map(u,(function(e){return e.name}))),I=e.setEmitFlags(t.updateSourceFile(i,e.setTextRange(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,C?[C,A,D]:[A,D]))]),i.statements)),1024);e.outFile(o)||e.moveEmitHelpers(I,v,(function(e){return!e.scoped}));y&&(E[l]=y,y=void 0);return d=void 0,p=void 0,f=void 0,m=void 0,_=void 0,g=void 0,I}));function S(n){var r=t.createUniqueName("exportStar"),a=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports"),s=t.createStrictInequality(i,t.createStringLiteral("default"));return n&&(s=t.createLogicalAnd(s,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(n,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,a)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),a,t.createBlock([e.setEmitFlags(t.createIfStatement(s,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(a,i)))),1)])),t.createExpressionStatement(t.createCallExpression(f,void 0,[o]))],!0))}function x(n,r){for(var a=[],i=0,o=r;i<o.length;i++){for(var s=o[i],c=e.forEach(s.externalImports,(function(n){return e.getLocalNameForExternalImport(t,n,d)})),l=c?t.getGeneratedNameForNode(c):t.createUniqueName(""),u=[],p=0,m=s.externalImports;p<m.length;p++){var _=m[p],g=e.getLocalNameForExternalImport(t,_,d);switch(_.kind){case 265:if(!_.importClause)break;case 264:e.Debug.assert(void 0!==g),u.push(t.createExpressionStatement(t.createAssignment(g,l)));break;case 271:if(e.Debug.assert(void 0!==g),_.exportClause)if(e.isNamedExports(_.exportClause)){for(var y=[],h=0,v=_.exportClause.elements;h<v.length;h++){var b=v[h];y.push(t.createPropertyAssignment(t.createStringLiteral(e.idText(b.name)),t.createElementAccessExpression(l,t.createStringLiteral(e.idText(b.propertyName||b.name)))))}u.push(t.createExpressionStatement(t.createCallExpression(f,void 0,[t.createObjectLiteralExpression(y,!0)])))}else u.push(t.createExpressionStatement(t.createCallExpression(f,void 0,[t.createStringLiteral(e.idText(_.exportClause.name)),l])));else u.push(t.createExpressionStatement(t.createCallExpression(n,void 0,[l])))}}a.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,l)],void 0,t.createBlock(u,!0)))}return t.createArrayLiteralExpression(a,!0)}function L(n){switch(n.kind){case 265:return function(n){var r;n.importClause&&i(e.getLocalNameForExternalImport(t,n,d));if(R(n)){var a=e.getOriginalNodeId(n);v[a]=O(v[a],n)}else r=O(r,n);return e.singleOrMany(r)}(n);case 264:return function(n){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),i(e.getLocalNameForExternalImport(t,n,d)),R(n)){var a=e.getOriginalNodeId(n);v[a]=w(v[a],n)}else r=w(r,n);return e.singleOrMany(r)}(n);case 271:return function(n){return void e.Debug.assertIsDefined(n)}(n);case 270:return function(n){if(n.isExportEquals)return;var r=e.visitNode(n.expression,z,e.isExpression),a=n.original;if(!a||!R(a))return U(t.createIdentifier("default"),r,!0);var i=e.getOriginalNodeId(n);v[i]=B(v[i],t.createIdentifier("default"),r,!0)}(n);default:return j(n)}}function D(n){if(e.isBindingPattern(n.name))for(var r=0,a=n.name.elements;r<a.length;r++){var o=a[r];e.isOmittedExpression(o)||D(o)}else i(t.cloneNode(n.name))}function C(n){return 0===(2097152&e.getEmitFlags(n))&&(303===g.kind||0===(3&e.getOriginalNode(n).flags))}function A(t,r){var a=r?I:k;return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(t,z,n,0,!1,a):t.initializer?a(t.name,e.visitNode(t.initializer,z,e.isExpression)):t.name}function I(e,n,t){return N(e,n,t,!0)}function k(e,n,t){return N(e,n,t,!1)}function N(n,r,a,o){return i(t.cloneNode(n)),o?V(n,Q(e.setTextRange(t.createAssignment(n,r),a))):Q(e.setTextRange(t.createAssignment(n,r),a))}function R(n){return 0!==(4194304&e.getEmitFlags(n))}function O(e,n){if(p.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=G(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 267:e=G(e,r);break;case 268:for(var a=0,i=r.elements;a<i.length;a++){e=G(e,i[a])}}return e}function w(e,n){return p.exportEquals?e:G(e,n)}function M(e,n,t){if(p.exportEquals)return e;for(var r=0,a=n.declarationList.declarations;r<a.length;r++){var i=a[r];(i.initializer||t)&&(e=P(e,i,t))}return e}function P(n,r,a){if(p.exportEquals)return n;if(e.isBindingPattern(r.name))for(var i=0,o=r.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=P(n,s,a))}else if(!e.isGeneratedIdentifier(r.name)){var c=void 0;a&&(n=B(n,r.name,t.getLocalName(r)),c=e.idText(r.name)),n=G(n,r,c)}return n}function F(n,r){if(p.exportEquals)return n;var a;if(e.hasSyntacticModifier(r,1)){var i=e.hasSyntacticModifier(r,512)?t.createStringLiteral("default"):r.name;n=B(n,i,t.getLocalName(r)),a=e.getTextOfIdentifierOrLiteral(i)}return r.name&&(n=G(n,r,a)),n}function G(n,r,a){if(p.exportEquals)return n;var i=t.getDeclarationName(r),o=p.exportSpecifiers.get(e.idText(i));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==a&&(n=B(n,l.name,i))}return n}function B(n,t,r,a){return n=e.append(n,U(t,r,a))}function U(n,r,a){var i=t.createExpressionStatement(V(n,r));return e.startOnNewLine(i),a||e.setEmitFlags(i,1536),i}function V(n,r){var a=e.isIdentifier(n)?t.createStringLiteralFromNode(n):n;return e.setEmitFlags(r,1536|e.getEmitFlags(r)),e.setCommentRange(t.createCallExpression(f,void 0,[a,r]),r)}function j(r){switch(r.kind){case 236:return function(n){if(!C(n.declarationList))return e.visitNode(n,z,e.isStatement);for(var r,a,i=e.hasSyntacticModifier(n,1),o=R(n),s=0,c=n.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?r=e.append(r,A(l,i&&!o)):D(l)}if(r&&(a=e.append(a,e.setTextRange(t.createExpressionStatement(t.inlineExpressions(r)),n))),o){var u=e.getOriginalNodeId(n);v[u]=M(v[u],n,i)}else a=M(a,n,!1);return e.singleOrMany(a)}(r);case 255:return function(r){if(_=e.hasSyntacticModifier(r,1)?e.append(_,t.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,X,e.isModifier),r.asteriskToken,t.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,z,e.isParameterDeclaration),void 0,e.visitNode(r.body,z,e.isBlock))):e.append(_,e.visitEachChild(r,z,n)),R(r)){var a=e.getOriginalNodeId(r);v[a]=F(v[a],r)}else _=F(_,r)}(r);case 256:return function(n){var r,a=t.getLocalName(n);if(i(a),r=e.append(r,e.setTextRange(t.createExpressionStatement(t.createAssignment(a,e.setTextRange(t.createClassExpression(e.visitNodes(n.decorators,z,e.isDecorator),void 0,n.name,void 0,e.visitNodes(n.heritageClauses,z,e.isHeritageClause),e.visitNodes(n.members,z,e.isClassElement)),n))),n)),R(n)){var o=e.getOriginalNodeId(n);v[o]=F(v[o],n)}else r=F(r,n);return e.singleOrMany(r)}(r);case 241:return K(r,!0);case 242:return function(r){var a=g;return g=r,r=t.updateForInStatement(r,H(r.initializer),e.visitNode(r.expression,z,e.isExpression),e.visitIterationBody(r.statement,j,n)),g=a,r}(r);case 243:return function(r){var a=g;return g=r,r=t.updateForOfStatement(r,r.awaitModifier,H(r.initializer),e.visitNode(r.expression,z,e.isExpression),e.visitIterationBody(r.statement,j,n)),g=a,r}(r);case 239:return function(r){return t.updateDoStatement(r,e.visitIterationBody(r.statement,j,n),e.visitNode(r.expression,z,e.isExpression))}(r);case 240:return function(r){return t.updateWhileStatement(r,e.visitNode(r.expression,z,e.isExpression),e.visitIterationBody(r.statement,j,n))}(r);case 249:return function(n){return t.updateLabeledStatement(n,n.label,e.visitNode(n.statement,j,e.isStatement,t.liftToBlock))}(r);case 247:return function(n){return t.updateWithStatement(n,e.visitNode(n.expression,z,e.isExpression),e.visitNode(n.statement,j,e.isStatement,t.liftToBlock))}(r);case 248:return function(n){return t.updateSwitchStatement(n,e.visitNode(n.expression,z,e.isExpression),e.visitNode(n.caseBlock,j,e.isCaseBlock))}(r);case 262:return function(n){var r=g;return g=n,n=t.updateCaseBlock(n,e.visitNodes(n.clauses,j,e.isCaseOrDefaultClause)),g=r,n}(r);case 288:return function(n){return t.updateCaseClause(n,e.visitNode(n.expression,z,e.isExpression),e.visitNodes(n.statements,j,e.isStatement))}(r);case 289:case 251:return function(t){return e.visitEachChild(t,j,n)}(r);case 291:return function(n){var r=g;return g=n,n=t.updateCatchClause(n,n.variableDeclaration,e.visitNode(n.block,j,e.isBlock)),g=r,n}(r);case 234:return function(t){var r=g;return g=t,t=e.visitEachChild(t,j,n),g=r,t}(r);case 350:return function(n){if(R(n)&&236===n.original.kind){var t=e.getOriginalNodeId(n),r=e.hasSyntacticModifier(n.original,1);v[t]=M(v[t],n.original,r)}return n}(r);case 351:return function(n){var t=e.getOriginalNodeId(n),r=v[t];if(r)return delete v[t],e.append(r,n);var a=e.getOriginalNode(n);return e.isModuleOrEnumDeclaration(a)?e.append(G(r,a),n):n}(r);default:return z(r)}}function K(r,a){var i=g;return g=r,r=t.updateForStatement(r,e.visitNode(r.initializer,a?H:J,e.isForInitializer),e.visitNode(r.condition,z,e.isExpression),e.visitNode(r.incrementor,J,e.isExpression),e.visitIterationBody(r.statement,a?j:z,n)),g=i,r}function H(n){if(function(n){return e.isVariableDeclarationList(n)&&C(n)}(n)){for(var r=void 0,a=0,i=n.declarations;a<i.length;a++){var o=i[a];r=e.append(r,A(o,!1)),o.initializer||D(o)}return r?t.inlineExpressions(r):t.createOmittedExpression()}return e.visitNode(n,J,e.isExpression)}function W(r,a){if(!(71305216&r.transformFlags))return r;switch(r.kind){case 241:return K(r,!1);case 237:return function(n){return t.updateExpressionStatement(n,e.visitNode(n.expression,J,e.isExpression))}(r);case 211:return function(n,r){return t.updateParenthesizedExpression(n,e.visitNode(n.expression,r?J:z,e.isExpression))}(r,a);case 348:return function(n,r){return t.updatePartiallyEmittedExpression(n,e.visitNode(n.expression,r?J:z,e.isExpression))}(r,a);case 220:if(e.isDestructuringAssignment(r))return function(t,r){if(q(t.left))return e.flattenDestructuringAssignment(t,z,n,0,!r);return e.visitEachChild(t,z,n)}(r,a);break;case 207:if(e.isImportCall(r))return function(n){var r=e.getExternalModuleNameLiteral(t,n,d,c,s,o),a=e.visitNode(e.firstOrUndefined(n.arguments),z),i=!r||a&&e.isStringLiteral(a)&&a.text===r.text?a:r;return t.createCallExpression(t.createPropertyAccessExpression(m,t.createIdentifier("import")),void 0,i?[i]:[])}(r);break;case 218:case 219:return function(r,a){if((45===r.operator||46===r.operator)&&e.isIdentifier(r.operand)&&!e.isGeneratedIdentifier(r.operand)&&!e.isLocalName(r.operand)&&!e.isDeclarationNameOfEnumOrNamespace(r.operand)){var o=Y(r.operand);if(o){var s=void 0,c=e.visitNode(r.operand,z,e.isExpression);e.isPrefixUnaryExpression(r)?c=t.updatePrefixUnaryExpression(r,c):(c=t.updatePostfixUnaryExpression(r,c),a||(s=t.createTempVariable(i),c=t.createAssignment(s,c),e.setTextRange(c,r)),c=t.createComma(c,t.cloneNode(r.operand)),e.setTextRange(c,r));for(var l=0,u=o;l<u.length;l++){c=V(u[l],Q(c))}return s&&(c=t.createComma(c,s),e.setTextRange(c,r)),c}}return e.visitEachChild(r,z,n)}(r,a)}return e.visitEachChild(r,z,n)}function z(e){return W(e,!1)}function J(e){return W(e,!0)}function q(n){if(e.isAssignmentExpression(n,!0))return q(n.left);if(e.isSpreadElement(n))return q(n.expression);if(e.isObjectLiteralExpression(n))return e.some(n.properties,q);if(e.isArrayLiteralExpression(n))return e.some(n.elements,q);if(e.isShorthandPropertyAssignment(n))return q(n.name);if(e.isPropertyAssignment(n))return q(n.initializer);if(e.isIdentifier(n)){var t=s.getReferencedExportContainer(n);return void 0!==t&&303===t.kind}return!1}function X(e){switch(e.kind){case 93:case 88:return}return e}function Y(n){var r;if(!e.isGeneratedIdentifier(n)){var a=s.getReferencedImportDeclaration(n)||s.getReferencedValueDeclaration(n);if(a){var i=s.getReferencedExportContainer(n,!1);i&&303===i.kind&&(r=e.append(r,t.getDeclarationName(a))),r=e.addRange(r,p&&p.exportedBindings[e.getOriginalNodeId(a)])}}return r}function Q(n){return void 0===y&&(y=[]),y[e.getNodeId(n)]=!0,n}}}(ha||(ha={})),function(e){e.transformECMAScriptModule=function(n){var t,r,a,i=n.factory,o=n.getEmitHelperFactory,s=n.getEmitHost(),c=n.getEmitResolver(),l=n.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=n.onEmitNode,p=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){e.isSourceFile(r)?((e.isExternalModule(r)||l.isolatedModules)&&l.importHelpers&&(t=new e.Map),d(n,r,a),t=void 0):d(n,r,a)},n.onSubstituteNode=function(n,r){if(r=p(n,r),t&&e.isIdentifier(r)&&4096&e.getEmitFlags(r))return function(n){var r=e.idText(n),a=t.get(r);a||t.set(r,a=i.createUniqueName(r,48));return a}(r);return r},n.enableEmitNotification(303),n.enableSubstitution(79),e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;if(e.isExternalModule(t)||l.isolatedModules){r=t,a=void 0;var s=function(t){var r=e.createExternalHelpersImportDeclarationIfNeeded(i,o(),t,l);if(r){var a=[],s=i.copyPrologue(t.statements,a);return e.append(a,r),e.addRange(a,e.visitNodes(t.statements,f,e.isStatement,s)),i.updateSourceFile(t,e.setTextRange(i.createNodeArray(a),t.statements))}return e.visitEachChild(t,f,n)}(t);return r=void 0,a&&(s=i.updateSourceFile(s,e.setTextRange(i.createNodeArray(e.insertStatementsAfterCustomPrologue(s.statements.slice(),a)),s.statements))),!e.isExternalModule(t)||e.some(s.statements,e.isExternalModuleIndicator)?s:i.updateSourceFile(s,e.setTextRange(i.createNodeArray(pa(pa([],s.statements,!0),[e.createEmptyExports(i)],!1)),s.statements))}return t}));function f(n){switch(n.kind){case 264:return e.getEmitScriptTarget(l)>=e.ModuleKind.ES2020?function(n){var t;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),t=function(n,t){e.hasSyntacticModifier(t,1)&&(n=e.append(n,i.createExportDeclaration(void 0,void 0,t.isTypeOnly,i.createNamedExports([i.createExportSpecifier(!1,void 0,e.idText(t.name))]))));return n}(t=e.append(t,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,m(n))],u>=2?2:0)),n),n)),n),e.singleOrMany(t)}(n):void 0;case 270:return function(e){return e.isExportEquals?void 0:e}(n);case 271:return function(n){if(void 0!==l.module&&l.module>e.ModuleKind.ES2015)return n;if(!n.exportClause||!e.isNamespaceExport(n.exportClause)||!n.moduleSpecifier)return n;var t=n.exportClause.name,r=i.getGeneratedNameForNode(t),a=i.createImportDeclaration(void 0,void 0,i.createImportClause(!1,void 0,i.createNamespaceImport(r)),n.moduleSpecifier,n.assertClause);e.setOriginalNode(a,n.exportClause);var o=e.isExportNamespaceAsDefaultDeclaration(n)?i.createExportDefault(r):i.createExportDeclaration(void 0,void 0,!1,i.createNamedExports([i.createExportSpecifier(!1,r,t)]));return e.setOriginalNode(o,n),[a,o]}(n)}return n}function m(n){var t=e.getExternalModuleNameLiteral(i,n,e.Debug.checkDefined(r),s,c,l),o=[];if(t&&o.push(t),!a){var d=i.createUniqueName("_createRequire",48),p=i.createImportDeclaration(void 0,void 0,i.createImportClause(!1,void 0,i.createNamedImports([i.createImportSpecifier(!1,i.createIdentifier("createRequire"),d)])),i.createStringLiteral("module")),f=i.createUniqueName("__require",48),m=i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(f,void 0,void 0,i.createCallExpression(i.cloneNode(d),void 0,[i.createPropertyAccessExpression(i.createMetaProperty(100,i.createIdentifier("meta")),i.createIdentifier("url"))]))],u>=2?2:0));a=[p,m]}var _=a[1].declarationList.declarations[0].name;return e.Debug.assertNode(_,e.isIdentifier),i.createCallExpression(i.cloneNode(_),void 0,o)}}}(ha||(ha={})),function(e){e.transformNodeModule=function(n){var t=n.onSubstituteNode,r=n.onEmitNode,a=e.transformECMAScriptModule(n),i=n.onSubstituteNode,o=n.onEmitNode;n.onSubstituteNode=t,n.onEmitNode=r;var s,c=e.transformModule(n),l=n.onSubstituteNode,u=n.onEmitNode;return n.onSubstituteNode=function(n,r){return e.isSourceFile(r)?(s=r,t(n,r)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?i(n,r):l(n,r):t(n,r)},n.onEmitNode=function(n,t,a){e.isSourceFile(t)&&(s=t);if(!s)return r(n,t,a);if(s.impliedNodeFormat===e.ModuleKind.ESNext)return o(n,t,a);return u(n,t,a)},n.enableSubstitution(303),n.enableEmitNotification(303),function(t){return 303===t.kind?d(t):function(t){return n.factory.createBundle(e.map(t.sourceFiles,d),t.prepends)}(t)};function d(n){if(n.isDeclarationFile)return n;s=n;var t=(n.impliedNodeFormat===e.ModuleKind.ESNext?a:c)(n);return s=void 0,e.Debug.assert(e.isSourceFile(t)),t}}}(ha||(ha={})),function(e){function n(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isPropertyAccessExpression(n)||e.isBindingElement(n)||e.isConstructorDeclaration(n)?t:e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){var r;r=172===n.kind?e.isStatic(n)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(n)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:n.name,typeName:n.name}}:e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isIndexSignatureDeclaration(n)?function(t){var r;switch(n.kind){case 174:r=t.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 173:r=t.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:r=t.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:case 167:r=e.isStatic(n)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:256===n.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 255:r=t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+n.kind)}return{diagnosticMessage:r,errorNode:n.name||n}}:e.isParameter(n)?e.isParameterPropertyDeclaration(n,n.parent)&&e.hasSyntacticModifier(n.parent,8)?t:function(t){var r=function(t){switch(n.parent.kind){case 170:return t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 174:case 179:return t.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 173:return t.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:return t.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:case 167:return e.isStatic(n.parent)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:256===n.parent.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 255:case 178:return t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 172:case 171:return t.errorModuleName?2===t.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[n.parent.kind]))}}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isTypeParameterDeclaration(n)?function(){var t;switch(n.parent.kind){case 256:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:t=e.isStatic(n.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:256===n.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:t=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+n.parent.kind)}return{diagnosticMessage:t,errorNode:n,typeName:n.name}}:e.isExpressionWithTypeArguments(n)?function(){var t;t=e.isClassDeclaration(n.parent.parent)?e.isHeritageClause(n.parent)&&117===n.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}:e.isImportEqualsDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}:e.isTypeAliasDeclaration(n)||e.isJSDocTypeAlias(n)?function(t){return{diagnosticMessage:t.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(n)?e.Debug.checkDefined(n.typeExpression):n.type,typeName:e.isJSDocTypeAlias(n)?e.getNameOfDeclaration(n):n.name}}:e.Debug.assertNever(n,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[n.kind]));function t(t){var r=function(t){return 253===n.kind||202===n.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:166===n.kind||205===n.kind||165===n.kind||163===n.kind&&e.hasSyntacticModifier(n.parent,8)?e.isStatic(n)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:256===n.parent.kind||163===n.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}}e.canProduceDiagnostics=function(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isBindingElement(n)||e.isSetAccessor(n)||e.isGetAccessor(n)||e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isParameter(n)||e.isTypeParameterDeclaration(n)||e.isExpressionWithTypeArguments(n)||e.isImportEqualsDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isConstructorDeclaration(n)||e.isIndexSignatureDeclaration(n)||e.isPropertyAccessExpression(n)||e.isJSDocTypeAlias(n)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){var r=function(n){return e.isStatic(t)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:256===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isMethodSignature(t)||e.isMethodDeclaration(t)?function(n){var r=function(n){return e.isStatic(t)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:256===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:n(t)},e.createGetSymbolAccessibilityDiagnosticForNode=n}(ha||(ha={})),function(e){function n(n,t){var r=t.text.substring(n.pos,n.end);return e.stringContains(r,"@internal")}function t(t,r){var a=e.getParseTreeNode(t);if(a&&163===a.kind){var i=a.parent.parameters.indexOf(a),o=i>0?a.parent.parameters[i-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return c&&c.length&&n(e.last(c),r)}var l=a&&e.getLeadingCommentRangesOfNode(a,r);return!!e.forEach(l,(function(e){return n(e,r)}))}e.getDeclarationDiagnostics=function(n,t,r){var i=n.getCompilerOptions();return e.transformNodes(t,n,e.factory,i,r?[r]:e.filter(n.getSourceFiles(),e.isSourceFileNotJson),[a],!1).diagnostics},e.isInternalDeclaration=t;var r=531469;function a(n){var a,s,c,l,u,d,p,f,m,_,g,y,h=function(){return e.Debug.fail("Diagnostic emitted without context")},v=h,b=!0,E=!1,T=!1,S=!1,x=!1,L=n.factory,D=n.getEmitHost(),C={trackSymbol:function(e,n,t){if(262144&e.flags)return!1;var r=O(A.isSymbolAccessible(e,n,t,!0));return R(A.getTypeReferenceDirectivesForSymbol(e,t)),r},reportInaccessibleThisError:function(){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,w(),"this"))},reportInaccessibleUniqueSymbolError:function(){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,w(),"unique symbol"))},reportCyclicStructureError:function(){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,w()))},reportPrivateInBaseOfClassExpression:function(t){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,w(),t))},reportTruncationError:function(){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:D,trackReferencedAmbientModule:function(n,t){var r=A.getTypeReferenceDirectivesForSymbol(t,67108863);if(e.length(r))return R(r);var a=e.getSourceFileOfNode(n);_.set(e.getOriginalNodeId(a),a)},trackExternalModuleSymbolOfImportTypeNode:function(e){E||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(t,r,a){var i,o=null===(i=r.declarations)||void 0===i?void 0:i.find((function(n){return e.getSourceFileOfNode(n)===t})),s=e.filter(a.declarations,(function(n){return e.getSourceFileOfNode(n)!==t}));if(s)for(var c=0,l=s;c<l.length;c++){var u=l[c];n.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty:function(t){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))}},A=n.getEmitResolver(),I=n.getCompilerOptions(),k=I.noResolve,N=I.stripInternal;return function(t){if(303===t.kind&&t.isDeclarationFile)return t;if(304===t.kind){E=!0,_=new e.Map,g=new e.Map;var r=!1,i=L.createBundle(e.map(t.sourceFiles,(function(t){if(!t.isDeclarationFile){if(r=r||t.hasNoDefaultLib,m=t,a=t,c=void 0,u=!1,l=new e.Map,v=h,S=!1,x=!1,P(t,_),F(t,g),e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t)){T=!1,b=!1;var i=e.isSourceFileJS(t)?L.createNodeArray(M(t,!0)):e.visitNodes(t.statements,ee);return L.updateSourceFile(t,[L.createModuleDeclaration([],[L.createModifier(135)],L.createStringLiteral(e.getResolvedExternalModuleName(n.getEmitHost(),t)),L.createModuleBlock(e.setTextRange(L.createNodeArray(Z(i)),t.statements)))],!0,[],[],!1,[])}b=!0;var o=e.isSourceFileJS(t)?L.createNodeArray(M(t)):e.visitNodes(t.statements,ee);return L.updateSourceFile(t,Z(o),!0,[],[],!1,[])}})),e.mapDefined(t.prepends,(function(n){if(306===n.kind){var t=e.createUnparsedSourceFile(n,"dts",N);return r=r||!!t.hasNoDefaultLib,P(t,_),R(t.typeReferenceDirectives),F(t,g),t}return n})));i.syntheticFileReferences=[],i.syntheticTypeReferences=B(),i.syntheticLibReferences=G(),i.hasNoDefaultLib=r;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,D,!0).declarationFilePath)),p=V(i.syntheticFileReferences,o);return _.forEach(p),i}b=!0,S=!1,x=!1,a=t,m=t,v=h,E=!1,T=!1,u=!1,c=void 0,l=new e.Map,s=void 0,_=P(m,new e.Map),g=F(m,new e.Map);var f,C=[],A=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,D,!0).declarationFilePath)),k=V(C,A);if(e.isSourceFileJS(m))f=L.createNodeArray(M(t)),_.forEach(k),y=e.filter(f,e.isAnyImportSyntax);else{var O=e.visitNodes(t.statements,ee);f=e.setTextRange(L.createNodeArray(Z(O)),t.statements),_.forEach(k),y=e.filter(f,e.isAnyImportSyntax),e.isExternalModule(t)&&(!T||S&&!x)&&(f=e.setTextRange(L.createNodeArray(pa(pa([],f,!0),[e.createEmptyExports(L)],!1)),f))}var w=L.updateSourceFile(t,f,!0,C,B(),t.hasNoDefaultLib,G());return w.exportedModulesFromDeclarationEmit=d,w;function G(){return e.map(e.arrayFrom(g.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function B(){return s?e.mapDefined(e.arrayFrom(s.keys()),U):[]}function U(n){if(y)for(var t=0,r=y;t<r.length;t++){var a=r[t];if(e.isImportEqualsDeclaration(a)&&e.isExternalModuleReference(a.moduleReference)){var i=a.moduleReference.expression;if(e.isStringLiteralLike(i)&&i.text===n)return}else if(e.isImportDeclaration(a)&&e.isStringLiteral(a.moduleSpecifier)&&a.moduleSpecifier.text===n)return}return{fileName:n,pos:-1,end:-1}}function V(n,r){return function(a){var i;if(a.isDeclarationFile)i=a.fileName;else{if(E&&e.contains(t.sourceFiles,a))return;var o=e.getOutputPathsFor(a,D,!0);i=o.declarationFilePath||o.jsFilePath||a.fileName}if(i){var s=e.moduleSpecifiers.getModuleSpecifier(I,m,e.toPath(r,D.getCurrentDirectory(),D.getCanonicalFileName),e.toPath(i,D.getCurrentDirectory(),D.getCanonicalFileName),D);if(!e.pathIsRelative(s))return void R([s]);var c=e.getRelativePathToDirectoryOrUrl(r,i,D.getCurrentDirectory(),D.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;n.push({pos:-1,end:-1,fileName:c})}}}};function R(n){if(n){s=s||new e.Set;for(var t=0,r=n;t<r.length;t++){var a=r[t];s.add(a)}}}function O(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(c)for(var r=0,a=t.aliasesToMakeVisible;r<a.length;r++){var i=a[r];e.pushIfUnique(c,i)}else c=t.aliasesToMakeVisible}else{var o=v(t);if(o)return o.typeName?n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),t.errorSymbolName,t.errorModuleName)):n.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function w(){return p?e.declarationNameToString(p):f&&e.getNameOfDeclaration(f)?e.declarationNameToString(e.getNameOfDeclaration(f)):f&&e.isExportAssignment(f)?f.isExportEquals?"export=":"default":"(Missing)"}function M(n,t){var a=v;v=function(t){return t.errorNode&&e.canProduceDiagnostics(t.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||n}};var i=A.getDeclarationStatementsForSourceFile(n,r,C,t);return v=a,i}function P(n,t){return k||!e.isUnparsedSource(n)&&e.isSourceFileJS(n)||e.forEach(n.referencedFiles,(function(r){var a=D.getSourceFileFromReference(n,r);a&&t.set(e.getOriginalNodeId(a),a)})),t}function F(n,t){return e.forEach(n.libReferenceDirectives,(function(n){D.getLibFileFromReference(n)&&t.set(e.toFileNameLowerCase(n.fileName),!0)})),t}function G(n){return 79===n.kind?n:201===n.kind?L.updateArrayBindingPattern(n,e.visitNodes(n.elements,t)):L.updateObjectBindingPattern(n,e.visitNodes(n.elements,t));function t(e){return 226===e.kind?e:L.updateBindingElement(e,e.dotDotDotToken,e.propertyName,G(e.name),U(e)?e.initializer:void 0)}}function B(n,t,r){var a;u||(a=v,v=e.createGetSymbolAccessibilityDiagnosticForNode(n));var o=L.updateParameterDeclaration(n,void 0,function(n,t,r){return e.factory.createModifiersFromModifierFlags(i(n,t,r))}(n,t),n.dotDotDotToken,G(n.name),A.isOptionalParameter(n)?n.questionToken||L.createToken(57):void 0,j(n,r||n.type,!0),V(n));return u||(v=a),o}function U(n){return function(n){switch(n.kind){case 166:case 165:return!e.hasEffectiveModifier(n,8);case 163:case 253:return!0}return!1}(n)&&A.isLiteralConstDeclaration(e.getParseTreeNode(n))}function V(n){if(U(n))return A.createLiteralConstValue(e.getParseTreeNode(n),C)}function j(n,t,i){if((i||!e.hasEffectiveModifier(n,8))&&!U(n)){var o,s=163===n.kind&&(A.isRequiredInitializedParameter(n)||A.isOptionalUninitializedParameterProperty(n));return t&&!s?e.visitNode(t,$):e.getParseTreeNode(n)?172===n.kind?L.createKeywordTypeNode(130):(p=n.name,u||(o=v,v=e.createGetSymbolAccessibilityDiagnosticForNode(n)),253===n.kind||202===n.kind?c(A.createTypeOfDeclaration(n,a,r,C)):163===n.kind||166===n.kind||165===n.kind?n.initializer?c(A.createTypeOfDeclaration(n,a,r,C,s)||A.createTypeOfExpression(n.initializer,a,r,C)):c(A.createTypeOfDeclaration(n,a,r,C,s)):c(A.createReturnTypeOfSignatureDeclaration(n,a,r,C))):t?e.visitNode(t,$):L.createKeywordTypeNode(130)}function c(e){return p=void 0,u||(v=o),e||L.createKeywordTypeNode(130)}}function K(n){switch((n=e.getParseTreeNode(n)).kind){case 255:case 260:case 257:case 256:case 258:case 259:return!A.isDeclarationVisible(n);case 253:return!H(n);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function H(n){return!e.isOmittedExpression(n)&&(e.isBindingPattern(n.name)?e.some(n.name.elements,H):A.isDeclarationVisible(n))}function W(n,t,r){if(!e.hasEffectiveModifier(n,8)){var a=e.map(t,(function(e){return B(e,r)}));if(a)return L.createNodeArray(a,t.hasTrailingComma)}}function z(n,t){var r;if(!t){var a=e.getThisParameter(n);a&&(r=[B(a)])}if(e.isSetAccessorDeclaration(n)){var i=void 0;if(!t){var o=e.getSetAccessorValueParameter(n);if(o)i=B(o,void 0,se(n,A.getAllAccessorDeclarations(n)))}i||(i=L.createParameterDeclaration(void 0,void 0,void 0,"value")),r=e.append(r,i)}return L.createNodeArray(r||e.emptyArray)}function J(n,t){return e.hasEffectiveModifier(n,8)?void 0:e.visitNodes(t,$)}function q(n){return e.isSourceFile(n)||e.isTypeAliasDeclaration(n)||e.isModuleDeclaration(n)||e.isClassDeclaration(n)||e.isInterfaceDeclaration(n)||e.isFunctionLike(n)||e.isIndexSignatureDeclaration(n)||e.isMappedTypeNode(n)}function X(e,n){O(A.isEntityNameVisible(e,n)),R(A.getTypeReferenceDirectivesForEntityName(e))}function Y(n,t){return e.hasJSDocNodes(n)&&e.hasJSDocNodes(t)&&(n.jsDoc=t.jsDoc),e.setCommentRange(n,e.getCommentRange(t))}function Q(t,r){if(r){if(T=T||260!==t.kind&&199!==t.kind,e.isStringLiteralLike(r))if(E){var a=e.getExternalModuleNameFromDeclaration(n.getEmitHost(),A,t);if(a)return L.createStringLiteral(a)}else{var i=A.getSymbolOfExternalModuleSpecifier(r);i&&(d||(d=[])).push(i)}return r}}function Z(n){for(;e.length(c);){var t=c.shift();if(!e.isLateVisibilityPaintedStatement(t))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[t.kind]:t.kind));var r=b;b=t.parent&&e.isSourceFile(t.parent)&&!(e.isExternalModule(t.parent)&&E);var a=te(t);b=r,l.set(e.getOriginalNodeId(t),a)}return e.visitNodes(n,(function(n){if(e.isLateVisibilityPaintedStatement(n)){var t=e.getOriginalNodeId(n);if(l.has(t)){var r=l.get(t);return l.delete(t),r&&((e.isArray(r)?e.some(r,e.needsScopeMarker):e.needsScopeMarker(r))&&(S=!0),e.isSourceFile(n.parent)&&(e.isArray(r)?e.some(r,e.isExternalModuleIndicator):e.isExternalModuleIndicator(r))&&(T=!0)),r}}return n}))}function $(t){if(!ae(t)){if(e.isDeclaration(t)){if(K(t))return;if(e.hasDynamicName(t)&&!A.isLateBound(e.getParseTreeNode(t)))return}if((!e.isFunctionLike(t)||!A.isImplementationOfOverload(t))&&!e.isSemicolonClassElement(t)){var r;q(t)&&(r=a,a=t);var i=v,o=e.canProduceDiagnostics(t),s=u,c=(181===t.kind||194===t.kind)&&258!==t.parent.kind;if((e.isMethodDeclaration(t)||e.isMethodSignature(t))&&e.hasEffectiveModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return b(L.createPropertyDeclaration(void 0,oe(t),t.name,void 0,void 0,void 0))}if(o&&!u&&(v=e.createGetSymbolAccessibilityDiagnosticForNode(t)),e.isTypeQueryNode(t)&&X(t.exprName,a),c&&(u=!0),function(e){switch(e.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1}(t))switch(t.kind){case 227:(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression))&&X(t.expression,a);var l=e.visitEachChild(t,$,n);return b(L.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 177:X(t.typeName,a);l=e.visitEachChild(t,$,n);return b(L.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 174:return b(L.updateConstructSignature(t,J(t,t.typeParameters),W(t,t.parameters),j(t,t.type)));case 170:return b(L.createConstructorDeclaration(void 0,oe(t),W(t,t.parameters,0),void 0));case 168:return e.isPrivateIdentifier(t.name)?b(void 0):b(L.createMethodDeclaration(void 0,oe(t),void 0,t.name,t.questionToken,J(t,t.typeParameters),W(t,t.parameters),j(t,t.type),void 0));case 171:if(e.isPrivateIdentifier(t.name))return b(void 0);var d=se(t,A.getAllAccessorDeclarations(t));return b(L.updateGetAccessorDeclaration(t,void 0,oe(t),t.name,z(t,e.hasEffectiveModifier(t,8)),j(t,d),void 0));case 172:return e.isPrivateIdentifier(t.name)?b(void 0):b(L.updateSetAccessorDeclaration(t,void 0,oe(t),t.name,z(t,e.hasEffectiveModifier(t,8)),void 0));case 166:return e.isPrivateIdentifier(t.name)?b(void 0):b(L.updatePropertyDeclaration(t,void 0,oe(t),t.name,t.questionToken,j(t,t.type),V(t)));case 165:return e.isPrivateIdentifier(t.name)?b(void 0):b(L.updatePropertySignature(t,oe(t),t.name,t.questionToken,j(t,t.type)));case 167:return e.isPrivateIdentifier(t.name)?b(void 0):b(L.updateMethodSignature(t,oe(t),t.name,t.questionToken,J(t,t.typeParameters),W(t,t.parameters),j(t,t.type)));case 173:return b(L.updateCallSignature(t,J(t,t.typeParameters),W(t,t.parameters),j(t,t.type)));case 175:return b(L.updateIndexSignature(t,void 0,oe(t),W(t,t.parameters),e.visitNode(t.type,$)||L.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(t.name)?re(t.name):(c=!0,u=!0,b(L.updateVariableDeclaration(t,t.name,void 0,j(t,t.type),V(t))));case 162:return function(n){return 168===n.parent.kind&&e.hasEffectiveModifier(n.parent,8)}(t)&&(t.default||t.constraint)?b(L.updateTypeParameterDeclaration(t,t.name,void 0,void 0)):b(e.visitEachChild(t,$,n));case 188:var f=e.visitNode(t.checkType,$),_=e.visitNode(t.extendsType,$),g=a;a=t.trueType;var y=e.visitNode(t.trueType,$);a=g;var h=e.visitNode(t.falseType,$);return b(L.updateConditionalTypeNode(t,f,_,y,h));case 178:return b(L.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,$),W(t,t.parameters),e.visitNode(t.type,$)));case 179:return b(L.updateConstructorTypeNode(t,oe(t),e.visitNodes(t.typeParameters,$),W(t,t.parameters),e.visitNode(t.type,$)));case 199:return e.isLiteralImportTypeNode(t)?b(L.updateImportTypeNode(t,L.updateLiteralTypeNode(t.argument,Q(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,$,e.isTypeNode),t.isTypeOf)):b(t);default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[t.kind]))}return e.isTupleTypeNode(t)&&e.getLineAndCharacterOfPosition(m,t.pos).line===e.getLineAndCharacterOfPosition(m,t.end).line&&e.setEmitFlags(t,1),b(e.visitEachChild(t,$,n))}}function b(n){return n&&o&&e.hasDynamicName(t)&&function(n){var t;u||(t=v,v=e.createGetSymbolAccessibilityDiagnosticForNodeName(n));p=n.name,e.Debug.assert(A.isLateBound(e.getParseTreeNode(n))),X(n.name.expression,a),u||(v=t);p=void 0}(t),q(t)&&(a=r),o&&!u&&(v=i),c&&(u=s),n===t?n:n&&e.setOriginalNode(Y(n,t),t)}}function ee(n){if(function(e){switch(e.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1}(n)&&!ae(n)){switch(n.kind){case 271:return e.isSourceFile(n.parent)&&(T=!0),x=!0,L.updateExportDeclaration(n,void 0,n.modifiers,n.isTypeOnly,n.exportClause,Q(n,n.moduleSpecifier),void 0);case 270:if(e.isSourceFile(n.parent)&&(T=!0),x=!0,79===n.expression.kind)return n;var t=L.createUniqueName("_default",16);v=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:n}},f=n;var a=L.createVariableDeclaration(t,void 0,A.createTypeOfExpression(n.expression,n,r,C),void 0);return f=void 0,[L.createVariableStatement(b?[L.createModifier(135)]:[],L.createVariableDeclarationList([a],2)),L.updateExportAssignment(n,n.decorators,n.modifiers,t)]}var i=te(n);return l.set(e.getOriginalNodeId(n),i),n}}function ne(n){if(e.isImportEqualsDeclaration(n)||e.hasEffectiveModifier(n,512)||!e.canHaveModifiers(n))return n;var t=L.createModifiersFromModifierFlags(27646&e.getEffectiveModifierFlags(n));return L.updateModifiers(n,t)}function te(n){if(!ae(n)){switch(n.kind){case 264:return function(n){if(A.isDeclarationVisible(n)){if(276===n.moduleReference.kind){var t=e.getExternalModuleImportEqualsDeclarationExpression(n);return L.updateImportEqualsDeclaration(n,void 0,n.modifiers,n.isTypeOnly,n.name,L.updateExternalModuleReference(n.moduleReference,Q(n,t)))}var r=v;return v=e.createGetSymbolAccessibilityDiagnosticForNode(n),X(n.moduleReference,a),v=r,n}}(n);case 265:return function(n){if(!n.importClause)return L.updateImportDeclaration(n,void 0,n.modifiers,n.importClause,Q(n,n.moduleSpecifier),void 0);var t=n.importClause&&n.importClause.name&&A.isDeclarationVisible(n.importClause)?n.importClause.name:void 0;if(!n.importClause.namedBindings)return t&&L.updateImportDeclaration(n,void 0,n.modifiers,L.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,void 0),Q(n,n.moduleSpecifier),void 0);if(267===n.importClause.namedBindings.kind){var r=A.isDeclarationVisible(n.importClause.namedBindings)?n.importClause.namedBindings:void 0;return t||r?L.updateImportDeclaration(n,void 0,n.modifiers,L.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,r),Q(n,n.moduleSpecifier),void 0):void 0}var a=e.mapDefined(n.importClause.namedBindings.elements,(function(e){return A.isDeclarationVisible(e)?e:void 0}));return a&&a.length||t?L.updateImportDeclaration(n,void 0,n.modifiers,L.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,a&&a.length?L.updateNamedImports(n.importClause.namedBindings,a):void 0),Q(n,n.moduleSpecifier),void 0):A.isImportRequiredByAugmentation(n)?L.updateImportDeclaration(n,void 0,n.modifiers,void 0,Q(n,n.moduleSpecifier),void 0):void 0}(n)}if((!e.isDeclaration(n)||!K(n))&&(!e.isFunctionLike(n)||!A.isImplementationOfOverload(n))){var t;q(n)&&(t=a,a=n);var i=e.canProduceDiagnostics(n),o=v;i&&(v=e.createGetSymbolAccessibilityDiagnosticForNode(n));var s=b;switch(n.kind){case 258:return fe(L.updateTypeAliasDeclaration(n,void 0,oe(n),n.name,e.visitNodes(n.typeParameters,$,e.isTypeParameterDeclaration),e.visitNode(n.type,$,e.isTypeNode)));case 257:return fe(L.updateInterfaceDeclaration(n,void 0,oe(n),n.name,J(n,n.typeParameters),ce(n.heritageClauses),e.visitNodes(n.members,$)));case 255:var c=fe(L.updateFunctionDeclaration(n,void 0,oe(n),void 0,n.name,J(n,n.typeParameters),W(n,n.parameters),j(n,n.type),void 0));if(c&&A.isExpandoFunctionDeclaration(n)&&function(n){var t;if(n.body)return!0;var r=null===(t=n.symbol.declarations)||void 0===t?void 0:t.filter((function(n){return e.isFunctionDeclaration(n)&&!n.body}));return!r||r.indexOf(n)===r.length-1}(n)){var u=A.getPropertiesOfContainerFunction(n),d=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,c.name||L.createIdentifier("_default"),L.createModuleBlock([]),16);e.setParent(d,a),d.locals=e.createSymbolTable(u),d.symbol=u[0].parent;var m=[],_=e.mapDefined(u,(function(n){if(n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)){v=e.createGetSymbolAccessibilityDiagnosticForNode(n.valueDeclaration);var t=A.createTypeOfDeclaration(n.valueDeclaration,d,r,C);v=o;var a=e.unescapeLeadingUnderscores(n.escapedName),i=e.isStringANonContextualKeyword(a),s=i?L.getGeneratedNameForNode(n.valueDeclaration):L.createIdentifier(a);i&&m.push([s,a]);var c=L.createVariableDeclaration(s,void 0,t,void 0);return L.createVariableStatement(i?void 0:[L.createToken(93)],L.createVariableDeclarationList([c]))}}));m.length?_.push(L.createExportDeclaration(void 0,void 0,!1,L.createNamedExports(e.map(m,(function(e){var n=e[0],t=e[1];return L.createExportSpecifier(!1,n,t)}))))):_=e.mapDefined(_,(function(e){return L.updateModifiers(e,0)}));var g=L.createModuleDeclaration(void 0,oe(n),n.name,L.createModuleBlock(_),16);if(!e.hasEffectiveModifier(c,512))return[c,g];var y=L.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(c)|2),h=L.updateFunctionDeclaration(c,void 0,y,void 0,c.name,c.typeParameters,c.parameters,c.type,void 0),E=L.updateModuleDeclaration(g,void 0,y,g.name,g.body),D=L.createExportAssignment(void 0,void 0,!1,g.name);return e.isSourceFile(n.parent)&&(T=!0),x=!0,[h,E,D]}return c;case 260:b=!1;var I=n.body;if(I&&261===I.kind){var k=S,N=x;x=!1,S=!1;var R=Z(e.visitNodes(I.statements,ee));8388608&n.flags&&(S=!1),e.isGlobalScopeAugmentation(n)||function(n){return e.some(n,ie)}(R)||x||(R=S?L.createNodeArray(pa(pa([],R,!0),[e.createEmptyExports(L)],!1)):e.visitNodes(R,ne));var O=L.updateModuleBlock(I,R);b=s,S=k,x=N;var w=oe(n);return fe(L.updateModuleDeclaration(n,void 0,w,e.isExternalModuleAugmentation(n)?Q(n,n.name):n.name,O))}b=s;w=oe(n);b=!1,e.visitNode(I,ee);var M=e.getOriginalNodeId(I);O=l.get(M);return l.delete(M),fe(L.updateModuleDeclaration(n,void 0,w,n.name,O));case 256:p=n.name,f=n;y=L.createNodeArray(oe(n));var P=J(n,n.typeParameters),F=e.getFirstConstructorWithBody(n),G=void 0;if(F){var B=v;G=e.compact(e.flatMap(F.parameters,(function(n){if(e.hasSyntacticModifier(n,16476)&&!ae(n))return v=e.createGetSymbolAccessibilityDiagnosticForNode(n),79===n.name.kind?Y(L.createPropertyDeclaration(void 0,oe(n),n.name,n.questionToken,j(n,n.type),V(n)),n):function t(r){for(var a,i=0,o=r.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(a=e.concatenate(a,t(s.name))),(a=a||[]).push(L.createPropertyDeclaration(void 0,oe(n),s.name,void 0,j(s,void 0),void 0)))}return a}(n.name)}))),v=B}var U=e.some(n.members,(function(n){return!!n.name&&e.isPrivateIdentifier(n.name)}))?[L.createPropertyDeclaration(void 0,void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,z=e.concatenate(e.concatenate(U,G),e.visitNodes(n.members,$)),te=L.createNodeArray(z),re=e.getEffectiveBaseTypeNode(n);if(re&&!e.isEntityNameExpression(re.expression)&&104!==re.expression.kind){var se=n.name?e.unescapeLeadingUnderscores(n.name.escapedText):"default",le=L.createUniqueName("".concat(se,"_base"),16);v=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:re,typeName:n.name}};var ue=L.createVariableDeclaration(le,void 0,A.createTypeOfExpression(re.expression,n,r,C),void 0),de=L.createVariableStatement(b?[L.createModifier(135)]:[],L.createVariableDeclarationList([ue],2)),pe=L.createNodeArray(e.map(n.heritageClauses,(function(n){if(94===n.token){var t=v;v=e.createGetSymbolAccessibilityDiagnosticForNode(n.types[0]);var r=L.updateHeritageClause(n,e.map(n.types,(function(n){return L.updateExpressionWithTypeArguments(n,le,e.visitNodes(n.typeArguments,$))})));return v=t,r}return L.updateHeritageClause(n,e.visitNodes(L.createNodeArray(e.filter(n.types,(function(n){return e.isEntityNameExpression(n.expression)||104===n.expression.kind}))),$))})));return[de,fe(L.updateClassDeclaration(n,void 0,y,n.name,P,pe,te))]}pe=ce(n.heritageClauses);return fe(L.updateClassDeclaration(n,void 0,y,n.name,P,pe,te));case 236:return fe(function(n){if(!e.forEach(n.declarationList.declarations,H))return;var t=e.visitNodes(n.declarationList.declarations,$);if(!e.length(t))return;return L.updateVariableStatement(n,L.createNodeArray(oe(n)),L.updateVariableDeclarationList(n.declarationList,t))}(n));case 259:return fe(L.updateEnumDeclaration(n,void 0,L.createNodeArray(oe(n)),n.name,L.createNodeArray(e.mapDefined(n.members,(function(e){if(!ae(e)){var n=A.getConstantValue(e);return Y(L.updateEnumMember(e,e.name,void 0!==n?"string"===typeof n?L.createStringLiteral(n):L.createNumericLiteral(n):void 0),e)}})))))}return e.Debug.assertNever(n,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[n.kind]))}}function fe(r){return q(n)&&(a=t),i&&(v=o),260===n.kind&&(b=s),r===n?r:(f=void 0,p=void 0,r&&e.setOriginalNode(Y(r,n),n))}}function re(n){return e.flatten(e.mapDefined(n.elements,(function(n){return function(n){if(226===n.kind)return;if(n.name){if(!H(n))return;return e.isBindingPattern(n.name)?re(n.name):L.createVariableDeclaration(n.name,void 0,j(n,void 0),void 0)}}(n)})))}function ae(e){return!!N&&!!e&&t(e,m)}function ie(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function oe(n){var t=e.getEffectiveModifierFlags(n),r=function(n){var t=11003,r=b&&!function(e){if(257===e.kind)return!0;return!1}(n)?2:0,a=303===n.parent.kind;(!a||E&&a&&e.isExternalModule(n.parent))&&(t^=2,r=0);return i(n,t,r)}(n);return t===r?n.modifiers:L.createModifiersFromModifierFlags(r)}function se(n,t){var r=o(n);return r||n===t.firstAccessor||(r=o(t.firstAccessor),v=e.createGetSymbolAccessibilityDiagnosticForNode(t.firstAccessor)),!r&&t.secondAccessor&&n!==t.secondAccessor&&(r=o(t.secondAccessor),v=e.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor)),r}function ce(n){return L.createNodeArray(e.filter(e.map(n,(function(n){return L.updateHeritageClause(n,e.visitNodes(L.createNodeArray(e.filter(n.types,(function(t){return e.isEntityNameExpression(t.expression)||94===n.token&&104===t.expression.kind}))),$))})),(function(e){return e.types&&!!e.types.length})))}}function i(n,t,r){void 0===t&&(t=27643),void 0===r&&(r=0);var a=e.getEffectiveModifierFlags(n)&t|r;return 512&a&&!(1&a)&&(a^=1),512&a&&2&a&&(a^=2),a}function o(e){if(e)return 171===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=a}(ha||(ha={})),function(e){var n,t,r,a;function i(n,t,r){if(r)return e.emptyArray;var a=e.getEmitScriptTarget(n),i=e.getEmitModuleKind(n),o=[];return e.addRange(o,t&&e.map(t.before,c)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(n)&&o.push(e.transformJsx),a<99&&o.push(e.transformESNext),a<8&&o.push(e.transformES2021),a<7&&o.push(e.transformES2020),a<6&&o.push(e.transformES2019),a<5&&o.push(e.transformES2018),a<4&&o.push(e.transformES2017),a<3&&o.push(e.transformES2016),a<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(n){switch(n){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}(i)),a<1&&o.push(e.transformES5),e.addRange(o,t&&e.map(t.after,c)),o}function o(n){var t=[];return t.push(e.transformDeclarations),e.addRange(t,n&&e.map(n.afterDeclarations,l)),t}function s(n,t){return function(r){var a=n(r);return"function"===typeof a?t(r,a):function(n){return function(t){return e.isBundle(t)?n.transformBundle(t):n.transformSourceFile(t)}}(a)}}function c(n){return s(n,e.chainBundle)}function l(e){return s(e,(function(e,n){return n}))}function u(e,n){return n}function d(e,n,t){t(e,n)}(t=n||(n={}))[t.Uninitialized=0]="Uninitialized",t[t.Initialized=1]="Initialized",t[t.Completed=2]="Completed",t[t.Disposed=3]="Disposed",(a=r||(r={}))[a.Substitution=1]="Substitution",a[a.EmitNotifications=2]="EmitNotifications",e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,n,t){return{scriptTransformers:i(e,n,t),declarationTransformers:o(n)}},e.noEmitSubstitution=u,e.noEmitNotification=d,e.transformNodes=function(n,t,r,a,i,o,s){for(var c,l,p,f,m,_=new Array(353),g=0,y=[],h=[],v=[],b=[],E=0,T=!1,S=[],x=0,L=u,D=d,C=0,A=[],I={factory:r,getCompilerOptions:function(){return a},getEmitResolver:function(){return n},getEmitHost:function(){return t},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(I)})),startLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!T,"Lexical environment is suspended."),y[E]=c,h[E]=l,v[E]=p,b[E]=g,E++,c=void 0,l=void 0,p=void 0,g=0},suspendLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!T,"Lexical environment is already suspended."),T=!0},resumeLexicalEnvironment:function(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(T,"Lexical environment is not suspended."),T=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!T,"Lexical environment is suspended."),c||l||p){if(l&&(n=pa([],l,!0)),c){var t=r.createVariableStatement(void 0,r.createVariableDeclarationList(c));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}p&&(n=pa(n?pa([],n,!0):[],p,!0))}E--,c=y[E],l=h[E],p=v[E],g=b[E],0===E&&(y=[],h=[],v=[],b=[]);return n},setLexicalEnvironmentFlags:function(e,n){g=n?g|e:g&~e},getLexicalEnvironmentFlags:function(){return g},hoistVariableDeclaration:function(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(r.createVariableDeclaration(n),64);c?c.push(t):c=[t];1&g&&(g|=2)},hoistFunctionDeclaration:function(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),l?l.push(n):l=[n]},addInitializationStatement:function(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),p?p.push(n):p=[n]},startBlockScope:function(){e.Debug.assert(C>0,"Cannot start a block scope during initialization."),e.Debug.assert(C<2,"Cannot start a block scope after transformation has completed."),S[x]=f,x++,f=void 0},endBlockScope:function(){e.Debug.assert(C>0,"Cannot end a block scope during initialization."),e.Debug.assert(C<2,"Cannot end a block scope after transformation has completed.");var n=e.some(f)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(f.map((function(e){return r.createVariableDeclaration(e)})),1))]:void 0;x--,f=S[x],0===x&&(S=[]);return n},addBlockScopedVariable:function(n){e.Debug.assert(x>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(n)},requestEmitHelper:function n(t){if(e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(var r=0,a=t.dependencies;r<a.length;r++){var i=a[r];n(i)}m=e.append(m,t)},readEmitHelpers:function(){e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var n=m;return m=void 0,n},enableSubstitution:function(n){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),_[n]|=1},enableEmitNotification:function(n){e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),_[n]|=2},isSubstitutionEnabled:B,isEmitNotificationEnabled:U,get onSubstituteNode(){return L},set onSubstituteNode(n){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),L=n},get onEmitNode(){return D},set onEmitNode(n){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),D=n},addDiagnostic:function(e){A.push(e)}},k=0,N=i;k<N.length;k++){var R=N[k];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(R)))}e.performance.mark("beforeTransform");var O=o.map((function(e){return e(I)})),w=function(e){for(var n=0,t=O;n<t.length;n++){e=(0,t[n])(e)}return e};C=1;for(var M=[],P=0,F=i;P<F.length;P++){R=F[P];null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",303===R.kind?{path:R.path}:{kind:R.kind,pos:R.pos,end:R.end}),M.push((s?w:G)(R)),null===e.tracing||void 0===e.tracing||e.tracing.pop()}return C=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:M,substituteNode:function(n,t){return e.Debug.assert(C<3,"Cannot substitute a node after the result is disposed."),t&&B(t)&&L(n,t)||t},emitNodeWithNotification:function(n,t,r){e.Debug.assert(C<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(U(t)?D(n,t,r):r(n,t))},isEmitNotificationEnabled:U,dispose:function(){if(C<3){for(var n=0,t=i;n<t.length;n++){var r=t[n];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(r)))}c=void 0,y=void 0,l=void 0,h=void 0,L=void 0,D=void 0,m=void 0,C=3}},diagnostics:A};function G(n){return!n||e.isSourceFile(n)&&n.isDeclarationFile?n:w(n)}function B(n){return 0!==(1&_[n.kind])&&0===(4&e.getEmitFlags(n))}function U(n){return 0!==(2&_[n.kind])||0!==(2&e.getEmitFlags(n))}},e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:u,onEmitNode:d,addDiagnostic:e.noop}}(ha||(ha={})),function(e){var n,t,r,a,i=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function o(n,t,r,a,i,o){void 0===a&&(a=!1);var c=e.isArray(r)?r:e.getSourceFilesToEmit(n,r,a),u=n.getCompilerOptions();if(e.outFile(u)){var d=n.getPrependNodes();if(c.length||d.length){var p=e.factory.createBundle(c,d);if(_=t(l(p,n,a),p))return _}}else{if(!i)for(var f=0,m=c;f<m.length;f++){var _,g=m[f];if(_=t(l(g,n,a),g))return _}if(o){var y=s(u);if(y)return t({buildInfoPath:y},void 0)}}}function s(n){var t=n.configFilePath;if(e.isIncrementalCompilation(n)){if(n.tsBuildInfoFile)return n.tsBuildInfoFile;var r,a=e.outFile(n);if(a)r=e.removeFileExtension(a);else{if(!t)return;var i=e.removeFileExtension(t);r=n.outDir?n.rootDir?e.resolvePath(n.outDir,e.getRelativePathFromDirectory(n.rootDir,i,!0)):e.combinePaths(n.outDir,e.getBaseFileName(i)):i}return r+".tsbuildinfo"}}function c(n,t){var r=e.outFile(n),a=n.emitDeclarationOnly?void 0:r,i=a&&u(a,n),o=t||e.getEmitDeclarations(n)?e.removeFileExtension(r)+".d.ts":void 0;return{jsFilePath:a,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&e.getAreDeclarationMapsEnabled(n)?o+".map":void 0,buildInfoPath:s(n)}}function l(n,t,r){var a=t.getCompilerOptions();if(304===n.kind)return c(a,r);var i=e.getOwnEmitOutputFilePath(n.fileName,t,d(n.fileName,a)),o=e.isJsonSourceFile(n),s=o&&0===e.comparePaths(n.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),l=a.emitDeclarationOnly||s?void 0:i,p=!l||e.isJsonSourceFile(n)?void 0:u(l,a),f=r||e.getEmitDeclarations(a)&&!o?e.getDeclarationEmitOutputFilePath(n.fileName,t):void 0;return{jsFilePath:l,sourceMapFilePath:p,declarationFilePath:f,declarationMapPath:f&&e.getAreDeclarationMapsEnabled(a)?f+".map":void 0,buildInfoPath:void 0}}function u(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function d(n,t){return e.fileExtensionIs(n,".json")?".json":1===t.jsx&&e.fileExtensionIsOneOf(n,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(n,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(n,[".cts",".cjs"])?".cjs":".js"}function p(n,t,r,a,i){return a?e.resolvePath(a,e.getRelativePathFromDirectory(i?i():v(t,r),n,r)):n}function f(n,t,r,a){return e.changeExtension(p(n,t,r,t.options.declarationDir||t.options.outDir,a),e.getDeclarationEmitExtensionForPath(n))}function m(n,t,r,a){if(!t.options.emitDeclarationOnly){var i=e.fileExtensionIs(n,".json"),o=e.changeExtension(p(n,t,r,t.options.outDir,a),d(n,t.options));return i&&0===e.comparePaths(n,o,e.Debug.checkDefined(t.options.configFilePath),r)?void 0:o}}function _(){var n;return{addOutput:function(e){e&&(n||(n=[])).push(e)},getOutputs:function(){return n||e.emptyArray}}}function g(e,n){var t=c(e.options,!1),r=t.jsFilePath,a=t.sourceMapFilePath,i=t.declarationFilePath,o=t.declarationMapPath,s=t.buildInfoPath;n(r),n(a),n(i),n(o),n(s)}function y(n,t,r,a,i){if(!e.fileExtensionIs(t,".d.ts")){var o=m(t,n,r,i);if(a(o),!e.fileExtensionIs(t,".json")&&(o&&n.options.sourceMap&&a("".concat(o,".map")),e.getEmitDeclarations(n.options))){var s=f(t,n,r,i);a(s),n.options.declarationMap&&a("".concat(s,".map"))}}}function h(n,t,r,a,i){var o;return n.rootDir?(o=e.getNormalizedAbsolutePath(n.rootDir,r),null===i||void 0===i||i(n.rootDir)):n.composite&&n.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(n.configFilePath)),null===i||void 0===i||i(o)):o=e.computeCommonSourceDirectoryOfFilenames(t(),r,a),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function v(n,t){var r=n.options,a=n.fileNames;return h(r,(function(){return e.filter(a,(function(n){return!(r.noEmitForJsFiles&&e.fileExtensionIsOneOf(n,e.supportedJSExtensionsFlat))&&!e.fileExtensionIs(n,".d.ts")}))}),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(r.configFilePath))),e.createGetCanonicalFileName(!t))}function b(n,t,r,a,i,s,c){var l,u,d=a.scriptTransformers,p=a.declarationTransformers,f=t.getCompilerOptions(),m=f.sourceMap||f.inlineSourceMap||e.getAreDeclarationMapsEnabled(f)?[]:void 0,_=f.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),y=e.getNewLineCharacter(f,(function(){return t.getNewLine()})),h=e.createTextWriter(y),v=e.performance.createTimer("printTime","beforePrint","afterPrint"),b=v.enter,T=v.exit,x=!1;return b(),o(t,(function(a,o){var s,m=a.jsFilePath,y=a.sourceMapFilePath,h=a.declarationFilePath,v=a.declarationMapPath,b=a.buildInfoPath;b&&o&&e.isBundle(o)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(b,t.getCurrentDirectory())),l={commonSourceDirectory:T(t.getCommonSourceDirectory()),sourceFiles:o.sourceFiles.map((function(n){return T(e.getNormalizedAbsolutePath(n.fileName,t.getCurrentDirectory()))}))});null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:m}),function(r,a,o,s){if(!r||i||!a)return;if(a&&t.isEmitBlocked(a)||f.noEmit)return void(x=!0);var c=e.transformNodes(n,t,e.factory,f,[r],d,!1),u=S({removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:n.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),D(a,o,c.transformed[0],u,f),c.dispose(),l&&(l.js=u.bundleFileInfo)}(o,m,y,T),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:h}),function(r,a,o,s){if(!r)return;if(!a)return void((i||f.emitDeclarationOnly)&&(x=!0));var d=e.isSourceFile(r)?[r]:r.sourceFiles,m=c?d:e.filter(d,e.isSourceFileNotJson),_=e.outFile(f)?[e.factory.createBundle(m,e.isSourceFile(r)?void 0:r.prepends)]:m;i&&!e.getEmitDeclarations(f)&&m.forEach(L);var y=e.transformNodes(n,t,e.factory,f,_,p,!1);if(e.length(y.diagnostics))for(var h=0,v=y.diagnostics;h<v.length;h++){var b=v[h];g.add(b)}var E=S({removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:n.hasGlobalName,onEmitNode:y.emitNodeWithNotification,isEmitNotificationEnabled:y.isEmitNotificationEnabled,substituteNode:y.substituteNode}),T=!!y.diagnostics&&!!y.diagnostics.length||!!t.isEmitBlocked(a)||!!f.noEmit;if(x=x||T,(!T||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),D(a,o,y.transformed[0],E,{sourceMap:!c&&f.declarationMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics}),c&&303===y.transformed[0].kind)){var C=y.transformed[0];u=C.exportedModulesFromDeclarationEmit}y.dispose(),l&&(l.dts=E.bundleFileInfo)}(o,h,v,T),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:b}),function(n,a){if(!a||r||x)return;var i=t.getProgramBuildInfo();if(t.isEmitBlocked(a))return void(x=!0);var o=e.version;e.writeFile(t,g,a,E({bundle:n,program:i,version:o}),!1)}(l,b),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!x&&_&&(i||(m&&_.push(m),y&&_.push(y),b&&_.push(b)),h&&_.push(h),v&&_.push(v));function T(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,n,t.getCanonicalFileName))}}),e.getSourceFilesToEmit(t,r,c),c,s,!r),T(),{emitSkipped:x,diagnostics:g.getDiagnostics(),emittedFiles:_,sourceMaps:m,exportedModulesFromDeclarationEmit:u};function L(t){e.isExportAssignment(t)?79===t.expression.kind&&n.collectLinkedAliases(t.expression,!0):e.isExportSpecifier(t)?n.collectLinkedAliases(t.propertyName||t.name,!0):e.forEachChild(t,L)}function D(n,r,a,i,o){var s,c=304===a.kind?a:void 0,l=303===a.kind?a:void 0,u=c?c.sourceFiles:[l];if(function(n,t){return(n.sourceMap||n.inlineSourceMap)&&(303!==t.kind||!e.fileExtensionIs(t.fileName,".json"))}(o,a)&&(s=e.createSourceMapGenerator(t,e.getBaseFileName(e.normalizeSlashes(n)),function(n){var t=e.normalizeSlashes(n.sourceRoot||"");return t?e.ensureTrailingDirectorySeparator(t):t}(o),function(n,r,a){if(n.sourceRoot)return t.getCommonSourceDirectory();if(n.mapRoot){var i=e.normalizeSlashes(n.mapRoot);return a&&(i=e.getDirectoryPath(e.getSourceFilePathInNewDir(a.fileName,t,i))),0===e.getRootLength(i)&&(i=e.combinePaths(t.getCommonSourceDirectory(),i)),i}return e.getDirectoryPath(e.normalizePath(r))}(o,n,l),o)),c?i.writeBundle(c,h,s):i.writeFile(l,h,s),s){m&&m.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var d=function(n,r,a,i,o){if(n.inlineSourceMap){var s=r.toString(),c=e.base64encode(e.sys,s);return"data:application/json;base64,".concat(c)}var l=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(i)));if(n.mapRoot){var u=e.normalizeSlashes(n.mapRoot);return o&&(u=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,t,u))),0===e.getRootLength(u)?(u=e.combinePaths(t.getCommonSourceDirectory(),u),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(a)),e.combinePaths(u,l),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(e.combinePaths(u,l))}return encodeURI(l)}(o,s,n,r,l);if(d&&(h.isAtStartOfLine()||h.rawWrite(y),h.writeComment("//# ".concat("sourceMappingURL","=").concat(d))),r){var p=s.toString();e.writeFile(t,g,r,p,!1,u)}}else h.writeLine();e.writeFile(t,g,n,h.getText(),!!f.emitBOM,u),h.clear()}}function E(e){return JSON.stringify(e)}function T(e){return JSON.parse(e)}function S(n,t){void 0===n&&(n={}),void 0===t&&(t={});var r,a,o,s,c,l,u,d,p,f,m,_,g,y,h,v,b,E,T,S=t.hasGlobalName,x=t.onEmitNode,L=void 0===x?e.noEmitNotification:x,D=t.isEmitNotificationEnabled,C=t.substituteNode,A=void 0===C?e.noEmitSubstitution:C,I=t.onBeforeEmitNode,k=t.onAfterEmitNode,N=t.onBeforeEmitNodeArray,R=t.onAfterEmitNodeArray,O=t.onBeforeEmitToken,w=t.onAfterEmitToken,M=!!n.extendedDiagnostics,P=e.getNewLineCharacter(n),F=e.getEmitModuleKind(n),G=new e.Map,B=n.preserveSourceNewlines,U=function(e){f.write(e)},V=n.writeBundleFileInfo?{sections:[]}:void 0,j=V?e.Debug.checkDefined(n.relativeToBuildInfo):void 0,K=n.recordInternalSection,H=0,W="text",z=!0,J=-1,q=-1,X=-1,Y=-1,Q=-1,Z=!1,$=!!n.removeComments,ee=e.performance.createTimerIf(M,"commentTime","beforeComment","afterComment"),ne=ee.enter,te=ee.exit,re=e.factory.parenthesizer,ae=function(){return e.createBinaryExpressionTrampoline((function(e,n){if(n){n.stackIndex++,n.preserveSourceNewlinesStack[n.stackIndex]=B,n.containerPosStack[n.stackIndex]=X,n.containerEndStack[n.stackIndex]=Y,n.declarationListContainerEndStack[n.stackIndex]=Q;var t=n.shouldEmitCommentsStack[n.stackIndex]=ke(e),r=n.shouldEmitSourceMapsStack[n.stackIndex]=Ne(e);null===I||void 0===I||I(e),t&&It(e),r&&Yt(e),Ce(e)}else n={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return n}),(function(e,t,r){return n(e,r,"left")}),(function(e,n,t){var r=27!==e.kind,a=ut(t,t.left,e),i=ut(t,e,t.right);nt(a,r),Ut(e.pos),Qn(e,101===e.kind?Un:Vn),jt(e.end,!0),nt(i,!0)}),(function(e,t,r){return n(e,r,"right")}),(function(e,n){var t=ut(e,e.left,e.operatorToken),r=ut(e,e.operatorToken,e.right);if(tt(t,r),n.stackIndex>0){var a=n.preserveSourceNewlinesStack[n.stackIndex],i=n.containerPosStack[n.stackIndex],o=n.containerEndStack[n.stackIndex],s=n.declarationListContainerEndStack[n.stackIndex],c=n.shouldEmitCommentsStack[n.stackIndex],l=n.shouldEmitSourceMapsStack[n.stackIndex];Ae(a),l&&Qt(e),c&&kt(e,i,o,s),null===k||void 0===k||k(e),n.stackIndex--}}),void 0);function n(n,t,r){var a="left"===r?re.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):re.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind),i=Re(0,1,n);if(i===Fe&&(e.Debug.assertIsDefined(E),i=Oe(1,1,n=a(e.cast(E,e.isExpression))),E=void 0),(i===At||i===Xt||i===Me)&&e.isBinaryExpression(n))return n;T=a,i(1,n)}}();return Ee(),{printNode:function(n,t,r){switch(n){case 0:e.Debug.assert(e.isSourceFile(t),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(t),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 303:return oe(t);case 304:return ie(t);case 305:return function(e,n){var t=f;be(n,void 0),he(4,e,void 0),Ee(),f=t}(t,ge()),ye()}return se(n,t,r,ge()),ye()},printList:function(e,n,t){return ce(e,n,t,ge()),ye()},printFile:oe,printBundle:ie,writeNode:se,writeList:ce,writeFile:_e,writeBundle:me,bundleFileInfo:V};function ie(e){return me(e,ge(),void 0),ye()}function oe(e){return _e(e,ge(),void 0),ye()}function se(e,n,t,r){var a=f;be(r,void 0),he(e,n,t),Ee(),f=a}function ce(e,n,t,r){var a=f;be(r,void 0),t&&ve(t),On(void 0,n,e),Ee(),f=a}function le(){return f.getTextPosWithWriteLine?f.getTextPosWithWriteLine():f.getTextPos()}function ue(n,t,r){var a=e.lastOrUndefined(V.sections);a&&a.kind===r?a.end=t:V.sections.push({pos:n,end:t,kind:r})}function de(n){if(K&&V&&r&&(e.isDeclaration(n)||e.isVariableStatement(n))&&e.isInternalDeclaration(n,r)&&"internal"!==W){var t=W;return fe(f.getTextPos()),H=le(),W="internal",t}}function pe(e){e&&(fe(f.getTextPos()),H=le(),W=e)}function fe(e){return H<e&&(ue(H,e,W),!0)}function me(t,r,a){var i;_=!1;var o=f;be(r,a),vn(t),hn(t),Ge(t),function(n){mn(!!n.hasNoDefaultLib,n.syntheticFileReferences||[],n.syntheticTypeReferences||[],n.syntheticLibReferences||[]);for(var t=0,r=n.prepends;t<r.length;t++){var a=r[t];if(e.isUnparsedSource(a)&&a.syntheticReferences)for(var i=0,o=a.syntheticReferences;i<o.length;i++){Se(o[i]),Jn()}}}(t);for(var s=0,c=t.prepends;s<c.length;s++){var l=c[s];Jn();var u=f.getTextPos(),d=V&&V.sections;if(d&&(V.sections=[]),he(4,l,void 0),V){var p=V.sections;V.sections=d,l.oldFileOfCurrentEmit?(i=V.sections).push.apply(i,p):(p.forEach((function(n){return e.Debug.assert(e.isBundleFileTextLike(n))})),V.sections.push({pos:u,end:f.getTextPos(),kind:"prepend",data:j(l.fileName),texts:p}))}}H=le();for(var m=0,g=t.sourceFiles;m<g.length;m++){var y=g[m];he(0,y,y)}if(V&&t.sourceFiles.length&&fe(f.getTextPos())){var h=function(n){for(var t,r=new e.Set,a=0;a<n.sourceFiles.length;a++){for(var i=n.sourceFiles[a],o=void 0,s=0,c=0,l=i.statements;c<l.length;c++){var u=l[c];if(!e.isPrologueDirective(u))break;r.has(u.expression.text)||(r.add(u.expression.text),(o||(o=[])).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),s=s<u.end?u.end:s)}o&&(t||(t=[])).push({file:a,text:i.text.substring(0,s),directives:o})}return t}(t);h&&(V.sources||(V.sources={}),V.sources.prologues=h);var v=function(t){var r;if(F===e.ModuleKind.None||n.noEmitHelpers)return;for(var a=new e.Map,i=0,o=t.sourceFiles;i<o.length;i++){var s=o[i],c=void 0!==e.getExternalHelpersModuleName(s),l=Be(s);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];p.scoped||c||a.get(p.name)||(a.set(p.name,!0),(r||(r=[])).push(p.name))}}return r}(t);v&&(V.sources||(V.sources={}),V.sources.helpers=v)}Ee(),f=o}function _e(e,n,t){_=!0;var r=f;be(n,t),vn(e),hn(e),he(0,e,e),Ee(),f=r}function ge(){return m||(m=e.createTextWriter(P))}function ye(){var e=m.getText();return m.clear(),e}function he(e,n,t){t&&ve(t),Ie(e,n,void 0)}function ve(e){r=e,v=void 0,b=void 0,e&&nr(e)}function be(t,r){t&&n.omitTrailingSemicolon&&(t=e.getTrailingSemicolonDeferringWriter(t)),g=r,z=!(f=t)||!g}function Ee(){a=[],o=[],s=new e.Set,c=[],l=0,u=[],r=void 0,v=void 0,b=void 0,be(void 0,void 0)}function Te(){return v||(v=e.getLineStarts(r))}function Se(e,n){if(void 0!==e){var t=de(e);Ie(4,e,n),pe(t)}}function xe(e){void 0!==e&&Ie(2,e,void 0)}function Le(e,n){void 0!==e&&Ie(1,e,n)}function De(n){Ie(e.isStringLiteral(n)?6:4,n)}function Ce(n){B&&134217728&e.getEmitFlags(n)&&(B=!1)}function Ae(e){B=e}function Ie(e,n,t){T=t,Re(0,e,n)(e,n),T=void 0}function ke(n){return!$&&!e.isSourceFile(n)}function Ne(n){return!z&&!e.isSourceFile(n)&&!e.isInJsonFile(n)&&!e.isUnparsedSource(n)&&!e.isUnparsedPrepend(n)}function Re(n,t,r){switch(n){case 0:if(L!==e.noEmitNotification&&(!D||D(r)))return we;case 1:if(A!==e.noEmitSubstitution&&(E=A(t,r)||r)!==r)return T&&(E=T(E)),Fe;case 2:if(ke(r))return At;case 3:if(Ne(r))return Xt;case 4:return Me;default:return e.Debug.assertNever(n)}}function Oe(e,n,t){return Re(e+1,n,t)}function we(e,n){var t=Oe(0,e,n);L(e,n,t)}function Me(e,n){if(null===I||void 0===I||I(n),B){var t=B;Ce(n),Pe(e,n),Ae(t)}else Pe(e,n);null===k||void 0===k||k(n),T=void 0}function Pe(n,t,a){if(void 0===a&&(a=!0),a){var i=e.getSnippetElement(t);if(i)return function(e,n,t){switch(t.kind){case 1:!function(e,n,t){zn("${".concat(t.order,":")),Pe(e,n,!1),zn("}")}(e,n,t);break;case 0:!function(e){zn("$".concat(e.order))}(t)}}(n,t,i)}if(0===n)return fn(e.cast(t,e.isSourceFile));if(2===n)return je(e.cast(t,e.isIdentifier));if(6===n)return Ue(e.cast(t,e.isStringLiteral),!0);if(3===n)return function(e){Se(e.name),Hn(),Un("in"),Hn(),Se(e.constraint)}(e.cast(t,e.isTypeParameterDeclaration));if(5===n)return e.Debug.assertNode(t,e.isEmptyStatement),ze(!0);if(4===n){switch(t.kind){case 15:case 16:case 17:return Ue(t,!1);case 79:return je(t);case 80:return Ke(t);case 160:return function(e){(function(e){79===e.kind?Le(e):Se(e)})(e.left),Gn("."),Se(e.right)}(t);case 161:return function(e){Gn("["),Le(e.expression,re.parenthesizeExpressionOfComputedPropertyName),Gn("]")}(t);case 162:return function(e){Se(e.name),e.constraint&&(Hn(),Un("extends"),Hn(),Se(e.constraint));e.default&&(Hn(),Vn("="),Hn(),Se(e.default))}(t);case 163:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Se(e.dotDotDotToken),bn(e.name,jn),Se(e.questionToken),e.parent&&315===e.parent.kind&&!e.name?Se(e.type):Tn(e.type);Sn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 164:return c=t,Gn("@"),void Le(c.expression,re.parenthesizeLeftSideOfAccess);case 165:return function(e){Cn(e,e.decorators),En(e,e.modifiers),bn(e.name,Wn),Se(e.questionToken),Tn(e.type),Bn()}(t);case 166:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Se(e.name),Se(e.questionToken),Se(e.exclamationToken),Tn(e.type),Sn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Bn()}(t);case 167:return function(e){_t(e),Cn(e,e.decorators),En(e,e.modifiers),Se(e.name),Se(e.questionToken),In(e,e.typeParameters),kn(e,e.parameters),Tn(e.type),Bn(),gt(e)}(t);case 168:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Se(e.asteriskToken),Se(e.name),Se(e.questionToken),Qe(e,Ze)}(t);case 169:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Un("static"),$e(e.body)}(t);case 170:return function(e){En(e,e.modifiers),Un("constructor"),Qe(e,Ze)}(t);case 171:case 172:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Un(171===e.kind?"get":"set"),Hn(),Se(e.name),Qe(e,Ze)}(t);case 173:return function(e){_t(e),Cn(e,e.decorators),En(e,e.modifiers),In(e,e.typeParameters),kn(e,e.parameters),Tn(e.type),Bn(),gt(e)}(t);case 174:return function(e){_t(e),Cn(e,e.decorators),En(e,e.modifiers),Un("new"),Hn(),In(e,e.typeParameters),kn(e,e.parameters),Tn(e.type),Bn(),gt(e)}(t);case 175:return function(e){Cn(e,e.decorators),En(e,e.modifiers),n=e,t=e.parameters,On(n,t,8848),Tn(e.type),Bn();var n,t}(t);case 176:return function(e){e.assertsModifier&&(Se(e.assertsModifier),Hn());Se(e.parameterName),e.type&&(Hn(),Un("is"),Hn(),Se(e.type))}(t);case 177:return function(e){Se(e.typeName),An(e,e.typeArguments)}(t);case 178:return function(e){_t(e),In(e,e.typeParameters),Nn(e,e.parameters),Hn(),Gn("=>"),Hn(),Se(e.type),gt(e)}(t);case 179:return function(e){_t(e),En(e,e.modifiers),Un("new"),Hn(),In(e,e.typeParameters),kn(e,e.parameters),Hn(),Gn("=>"),Hn(),Se(e.type),gt(e)}(t);case 180:return function(e){Un("typeof"),Hn(),Se(e.exprName)}(t);case 181:return function(n){Gn("{");var t=1&e.getEmitFlags(n)?768:32897;On(n,n.members,524288|t),Gn("}")}(t);case 182:return function(e){Se(e.elementType,re.parenthesizeElementTypeOfArrayType),Gn("["),Gn("]")}(t);case 183:return function(n){Xe(22,n.pos,Gn,n);var t=1&e.getEmitFlags(n)?528:657;On(n,n.elements,524288|t),Xe(23,n.elements.end,Gn,n)}(t);case 184:return function(e){Se(e.type,re.parenthesizeElementTypeOfArrayType),Gn("?")}(t);case 186:return function(e){On(e,e.types,516,re.parenthesizeMemberOfElementType)}(t);case 187:return function(e){On(e,e.types,520,re.parenthesizeMemberOfElementType)}(t);case 188:return function(e){Se(e.checkType,re.parenthesizeMemberOfConditionalType),Hn(),Un("extends"),Hn(),Se(e.extendsType,re.parenthesizeMemberOfConditionalType),Hn(),Gn("?"),Hn(),Se(e.trueType),Hn(),Gn(":"),Hn(),Se(e.falseType)}(t);case 189:return function(e){Un("infer"),Hn(),Se(e.typeParameter)}(t);case 190:return function(e){Gn("("),Se(e.type),Gn(")")}(t);case 227:return function(e){Le(e.expression,re.parenthesizeLeftSideOfAccess),An(e,e.typeArguments)}(t);case 191:return void Un("this");case 192:return function(e){Zn(e.operator,Un),Hn(),Se(e.type,re.parenthesizeMemberOfElementType)}(t);case 193:return function(e){Se(e.objectType,re.parenthesizeMemberOfElementType),Gn("["),Se(e.indexType),Gn("]")}(t);case 194:return function(n){var t=e.getEmitFlags(n);Gn("{"),1&t?Hn():(Jn(),qn());n.readonlyToken&&(Se(n.readonlyToken),144!==n.readonlyToken.kind&&Un("readonly"),Hn());Gn("["),Ie(3,n.typeParameter),n.nameType&&(Hn(),Un("as"),Hn(),Se(n.nameType));Gn("]"),n.questionToken&&(Se(n.questionToken),57!==n.questionToken.kind&&Gn("?"));Gn(":"),Hn(),Se(n.type),Bn(),1&t?Hn():(Jn(),Xn());Gn("}")}(t);case 195:return function(e){Le(e.literal)}(t);case 196:return function(e){Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),Xe(58,e.name.end,Gn,e),Hn(),Se(e.type)}(t);case 197:return function(e){Se(e.head),On(e,e.templateSpans,262144)}(t);case 198:return function(e){Se(e.type),Se(e.literal)}(t);case 199:return function(e){e.isTypeOf&&(Un("typeof"),Hn());Un("import"),Gn("("),Se(e.argument),Gn(")"),e.qualifier&&(Gn("."),Se(e.qualifier));An(e,e.typeArguments)}(t);case 200:return function(e){Gn("{"),On(e,e.elements,525136),Gn("}")}(t);case 201:return function(e){Gn("["),On(e,e.elements,524880),Gn("]")}(t);case 202:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),Gn(":"),Hn());Se(e.name),Sn(e.initializer,e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 232:return function(e){Le(e.expression),Se(e.literal)}(t);case 233:return void Bn();case 234:return function(e){We(e,!e.multiLine&&dt(e))}(t);case 236:return function(e){En(e,e.modifiers),Se(e.declarationList),Bn()}(t);case 235:return ze(!1);case 237:return function(n){Le(n.expression,re.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(r)||e.nodeIsSynthesized(n.expression))&&Bn()}(t);case 238:return function(e){var n=Xe(99,e.pos,Un,e);Hn(),Xe(20,n,Gn,e),Le(e.expression),Xe(21,e.expression.end,Gn,e),Dn(e,e.thenStatement),e.elseStatement&&($n(e,e.thenStatement,e.elseStatement),Xe(91,e.thenStatement.end,Un,e),238===e.elseStatement.kind?(Hn(),Se(e.elseStatement)):Dn(e,e.elseStatement))}(t);case 239:return function(n){Xe(90,n.pos,Un,n),Dn(n,n.statement),e.isBlock(n.statement)&&!B?Hn():$n(n,n.statement,n.expression);Je(n,n.statement.end),Bn()}(t);case 240:return function(e){Je(e,e.pos),Dn(e,e.statement)}(t);case 241:return function(e){var n=Xe(97,e.pos,Un,e);Hn();var t=Xe(20,n,Gn,e);qe(e.initializer),t=Xe(26,e.initializer?e.initializer.end:t,Gn,e),Ln(e.condition),t=Xe(26,e.condition?e.condition.end:t,Gn,e),Ln(e.incrementor),Xe(21,e.incrementor?e.incrementor.end:t,Gn,e),Dn(e,e.statement)}(t);case 242:return function(e){var n=Xe(97,e.pos,Un,e);Hn(),Xe(20,n,Gn,e),qe(e.initializer),Hn(),Xe(101,e.initializer.end,Un,e),Hn(),Le(e.expression),Xe(21,e.expression.end,Gn,e),Dn(e,e.statement)}(t);case 243:return function(e){var n=Xe(97,e.pos,Un,e);Hn(),function(e){e&&(Se(e),Hn())}(e.awaitModifier),Xe(20,n,Gn,e),qe(e.initializer),Hn(),Xe(159,e.initializer.end,Un,e),Hn(),Le(e.expression),Xe(21,e.expression.end,Gn,e),Dn(e,e.statement)}(t);case 244:return function(e){Xe(86,e.pos,Un,e),xn(e.label),Bn()}(t);case 245:return function(e){Xe(81,e.pos,Un,e),xn(e.label),Bn()}(t);case 246:return function(e){Xe(105,e.pos,Un,e),Ln(e.expression),Bn()}(t);case 247:return function(e){var n=Xe(116,e.pos,Un,e);Hn(),Xe(20,n,Gn,e),Le(e.expression),Xe(21,e.expression.end,Gn,e),Dn(e,e.statement)}(t);case 248:return function(e){var n=Xe(107,e.pos,Un,e);Hn(),Xe(20,n,Gn,e),Le(e.expression),Xe(21,e.expression.end,Gn,e),Hn(),Se(e.caseBlock)}(t);case 249:return function(e){Se(e.label),Xe(58,e.label.end,Gn,e),Hn(),Se(e.statement)}(t);case 250:return function(e){Xe(109,e.pos,Un,e),Ln(e.expression),Bn()}(t);case 251:return function(e){Xe(111,e.pos,Un,e),Hn(),Se(e.tryBlock),e.catchClause&&($n(e,e.tryBlock,e.catchClause),Se(e.catchClause));e.finallyBlock&&($n(e,e.catchClause||e.tryBlock,e.finallyBlock),Xe(96,(e.catchClause||e.tryBlock).end,Un,e),Hn(),Se(e.finallyBlock))}(t);case 252:return function(e){Yn(87,e.pos,Un),Bn()}(t);case 253:return function(e){Se(e.name),Se(e.exclamationToken),Tn(e.type),Sn(e.initializer,e.type?e.type.end:e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 254:return function(n){Un(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),Hn(),On(n,n.declarations,528)}(t);case 255:return function(e){Ye(e)}(t);case 256:return function(e){tn(e)}(t);case 257:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Un("interface"),Hn(),Se(e.name),In(e,e.typeParameters),On(e,e.heritageClauses,512),Hn(),Gn("{"),On(e,e.members,129),Gn("}")}(t);case 258:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Un("type"),Hn(),Se(e.name),In(e,e.typeParameters),Hn(),Gn("="),Hn(),Se(e.type),Bn()}(t);case 259:return function(e){En(e,e.modifiers),Un("enum"),Hn(),Se(e.name),Hn(),Gn("{"),On(e,e.members,145),Gn("}")}(t);case 260:return function(n){En(n,n.modifiers),1024&~n.flags&&(Un(16&n.flags?"namespace":"module"),Hn());Se(n.name);var t=n.body;if(!t)return Bn();for(;t&&e.isModuleDeclaration(t);)Gn("."),Se(t.name),t=t.body;Hn(),Se(t)}(t);case 261:return function(n){_t(n),e.forEach(n.statements,ht),We(n,dt(n)),gt(n)}(t);case 262:return function(e){Xe(18,e.pos,Gn,e),On(e,e.clauses,129),Xe(19,e.clauses.end,Gn,e,!0)}(t);case 263:return function(e){var n=Xe(93,e.pos,Un,e);Hn(),n=Xe(127,n,Un,e),Hn(),n=Xe(142,n,Un,e),Hn(),Se(e.name),Bn()}(t);case 264:return function(e){En(e,e.modifiers),Xe(100,e.modifiers?e.modifiers.end:e.pos,Un,e),Hn(),e.isTypeOnly&&(Xe(151,e.pos,Un,e),Hn());Se(e.name),Hn(),Xe(63,e.name.end,Gn,e),Hn(),function(e){79===e.kind?Le(e):Se(e)}(e.moduleReference),Bn()}(t);case 265:return function(e){En(e,e.modifiers),Xe(100,e.modifiers?e.modifiers.end:e.pos,Un,e),Hn(),e.importClause&&(Se(e.importClause),Hn(),Xe(155,e.importClause.end,Un,e),Hn());Le(e.moduleSpecifier),e.assertClause&&xn(e.assertClause);Bn()}(t);case 266:return function(e){e.isTypeOnly&&(Xe(151,e.pos,Un,e),Hn());Se(e.name),e.name&&e.namedBindings&&(Xe(27,e.name.end,Gn,e),Hn());Se(e.namedBindings)}(t);case 267:return function(e){var n=Xe(41,e.pos,Gn,e);Hn(),Xe(127,n,Un,e),Hn(),Se(e.name)}(t);case 273:return function(e){var n=Xe(41,e.pos,Gn,e);Hn(),Xe(127,n,Un,e),Hn(),Se(e.name)}(t);case 268:case 272:return function(e){rn(e)}(t);case 269:case 274:return function(e){an(e)}(t);case 270:return function(e){var n=Xe(93,e.pos,Un,e);Hn(),e.isExportEquals?Xe(63,n,Vn,e):Xe(88,n,Un,e);Hn(),Le(e.expression,e.isExportEquals?re.getParenthesizeRightSideOfBinaryForOperator(63):re.parenthesizeExpressionOfExportDefault),Bn()}(t);case 271:return function(e){var n=Xe(93,e.pos,Un,e);Hn(),e.isTypeOnly&&(n=Xe(151,n,Un,e),Hn());e.exportClause?Se(e.exportClause):n=Xe(41,n,Gn,e);if(e.moduleSpecifier){Hn(),Xe(155,e.exportClause?e.exportClause.end:n,Un,e),Hn(),Le(e.moduleSpecifier)}e.assertClause&&xn(e.assertClause);Bn()}(t);case 292:return function(e){Xe(129,e.pos,Un,e),Hn();var n=e.elements;On(e,n,526226)}(t);case 293:return function(n){Se(n.name),Gn(":"),Hn();var t=n.value;if(0===(512&e.getEmitFlags(t))){jt(e.getCommentRange(t).pos)}Se(t)}(t);case 275:case 317:case 328:case 329:case 331:case 332:case 333:case 334:case 335:case 347:case 351:case 350:return;case 276:return function(e){Un("require"),Gn("("),Le(e.expression),Gn(")")}(t);case 11:return function(e){f.writeLiteral(e.text)}(t);case 279:case 282:return function(n){if(Gn("<"),e.isJsxOpeningElement(n)){var t=st(n.tagName,n);on(n.tagName),An(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&Hn(),Se(n.attributes),ct(n.attributes,n),tt(t)}Gn(">")}(t);case 280:case 283:return function(n){Gn("</"),e.isJsxClosingElement(n)&&on(n.tagName);Gn(">")}(t);case 284:return function(e){Se(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",Gn,e.initializer,De)}(t);case 285:return function(e){On(e,e.properties,262656)}(t);case 286:return function(e){Gn("{..."),Le(e.expression),Gn("}")}(t);case 287:return function(n){var t;if(n.expression||!$&&!e.nodeIsSynthesized(n)&&(o=n.pos,function(n){var t=!1;return e.forEachTrailingCommentRange((null===r||void 0===r?void 0:r.text)||"",n+1,(function(){return t=!0})),t}(o)||function(n){var t=!1;return e.forEachLeadingCommentRange((null===r||void 0===r?void 0:r.text)||"",n+1,(function(){return t=!0})),t}(o))){var a=r&&!e.nodeIsSynthesized(n)&&e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line;a&&f.increaseIndent();var i=Xe(18,n.pos,Gn,n);Se(n.dotDotDotToken),Le(n.expression),Xe(19,(null===(t=n.expression)||void 0===t?void 0:t.end)||i,Gn,n),a&&f.decreaseIndent()}var o}(t);case 288:return function(e){Xe(82,e.pos,Un,e),Hn(),Le(e.expression,re.parenthesizeExpressionForDisallowedComma),sn(e,e.statements,e.expression.end)}(t);case 289:return function(e){var n=Xe(88,e.pos,Un,e);sn(e,e.statements,n)}(t);case 290:return function(e){Hn(),Zn(e.token,Un),Hn(),On(e,e.types,528)}(t);case 291:return function(e){var n=Xe(83,e.pos,Un,e);Hn(),e.variableDeclaration&&(Xe(20,n,Gn,e),Se(e.variableDeclaration),Xe(21,e.variableDeclaration.end,Gn,e),Hn());Se(e.block)}(t);case 294:return function(n){Se(n.name),Gn(":"),Hn();var t=n.initializer;if(0===(512&e.getEmitFlags(t))){jt(e.getCommentRange(t).pos)}Le(t,re.parenthesizeExpressionForDisallowedComma)}(t);case 295:return function(e){Se(e.name),e.objectAssignmentInitializer&&(Hn(),Gn("="),Hn(),Le(e.objectAssignmentInitializer,re.parenthesizeExpressionForDisallowedComma))}(t);case 296:return function(e){e.expression&&(Xe(25,e.pos,Gn,e),Le(e.expression,re.parenthesizeExpressionForDisallowedComma))}(t);case 297:return function(e){Se(e.name),Sn(e.initializer,e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}(t);case 298:return Ve(t);case 305:case 299:return function(e){for(var n=0,t=e.texts;n<t.length;n++){var r=t[n];Jn(),Se(r)}}(t);case 300:case 301:return function(e){var n=le();Ve(e),V&&ue(n,f.getTextPos(),300===e.kind?"text":"internal")}(t);case 302:return function(n){var t=le();if(Ve(n),V){var r=e.clone(n.section);r.pos=t,r.end=f.getTextPos(),V.sections.push(r)}}(t);case 303:return fn(t);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return pn(t);case 308:return function(e){Hn(),Gn("{"),Se(e.name),Gn("}")}(t);case 310:return Gn("*");case 311:return Gn("?");case 312:return function(e){Gn("?"),Se(e.type)}(t);case 313:return function(e){Gn("!"),Se(e.type)}(t);case 314:return function(e){Se(e.type),Gn("=")}(t);case 315:return function(e){Un("function"),kn(e,e.parameters),Gn(":"),Se(e.type)}(t);case 185:case 316:return function(e){Gn("..."),Se(e.type)}(t);case 318:return function(n){if(U("/**"),n.comment){var t=e.getTextOfJSDocComment(n.comment);if(t)for(var r=0,a=t.split(/\r\n?|\n/g);r<a.length;r++){var i=a[r];Jn(),Hn(),Gn("*"),Hn(),U(i)}}n.tags&&(1!==n.tags.length||341!==n.tags[0].kind||n.comment?On(n,n.tags,33):(Hn(),Se(n.tags[0])));Hn(),U("*/")}(t);case 320:return cn(t);case 321:return ln(t);case 325:case 330:return un((s=t).tagName),void dn(s.comment);case 326:case 327:return function(e){un(e.tagName),Hn(),Gn("{"),Se(e.class),Gn("}"),dn(e.comment)}(t);case 336:return function(e){un(e.tagName),e.name&&(Hn(),Se(e.name));dn(e.comment),ln(e.typeExpression)}(t);case 338:case 345:return function(e){un(e.tagName),pn(e.typeExpression),Hn(),e.isBracketed&&Gn("[");Se(e.name),e.isBracketed&&Gn("]");dn(e.comment)}(t);case 337:case 339:case 340:case 341:return function(e){un(e.tagName),pn(e.typeExpression),dn(e.comment)}(t);case 342:return function(e){un(e.tagName),pn(e.constraint),Hn(),On(e,e.typeParameters,528),dn(e.comment)}(t);case 343:return function(e){un(e.tagName),e.typeExpression&&(307===e.typeExpression.kind?pn(e.typeExpression):(Hn(),Gn("{"),U("Object"),e.typeExpression.isArrayType&&(Gn("["),Gn("]")),Gn("}")));e.fullName&&(Hn(),Se(e.fullName));dn(e.comment),e.typeExpression&&320===e.typeExpression.kind&&cn(e.typeExpression)}(t);case 344:return function(e){un(e.tagName),Se(e.name),dn(e.comment)}(t)}if(e.isExpression(t)&&(n=1,A!==e.noEmitSubstitution)){var o=A(n,t)||t;o!==t&&(t=o,T&&(t=T(t)))}}var s,c;if(1===n)switch(t.kind){case 8:case 9:return function(e){Ue(e,!1)}(t);case 10:case 13:case 14:return Ue(t,!1);case 79:return je(t);case 80:return Ke(t);case 203:return function(e){var n=e.elements,t=e.multiLine?65536:0;wn(e,n,8914|t,re.parenthesizeExpressionForDisallowedComma)}(t);case 204:return function(n){e.forEach(n.properties,vt);var t=65536&e.getEmitFlags(n);t&&qn();var a=n.multiLine?65536:0,i=r.languageVersion>=1&&!e.isJsonSourceFile(r)?64:0;On(n,n.properties,526226|i|a),t&&Xn()}(t);case 205:return function(n){Le(n.expression,re.parenthesizeLeftSideOfAccess);var t=n.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),n.expression.end,n.name.pos),r=ut(n,n.expression,t),a=ut(n,t,n.name);nt(r,!1),28===t.kind||!function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var t=mt(n,!0,!1);return!n.numericLiteralFlags&&!e.stringContains(t,e.tokenToString(24))}if(e.isAccessExpression(n)){var r=e.getConstantValue(n);return"number"===typeof r&&isFinite(r)&&Math.floor(r)===r}}(n.expression)||f.hasTrailingComment()||f.hasTrailingWhitespace()||Gn(".");n.questionDotToken?Se(t):Xe(t.kind,n.expression.end,Gn,n);nt(a,!1),Se(n.name),tt(r,a)}(t);case 206:return function(e){Le(e.expression,re.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),Xe(22,e.expression.end,Gn,e),Le(e.argumentExpression),Xe(23,e.argumentExpression.end,Gn,e)}(t);case 207:return function(n){var t=536870912&e.getEmitFlags(n);t&&(Gn("("),Pn("0"),Gn(","),Hn());Le(n.expression,re.parenthesizeLeftSideOfAccess),t&&Gn(")");Se(n.questionDotToken),An(n,n.typeArguments),wn(n,n.arguments,2576,re.parenthesizeExpressionForDisallowedComma)}(t);case 208:return function(e){Xe(103,e.pos,Un,e),Hn(),Le(e.expression,re.parenthesizeExpressionOfNew),An(e,e.typeArguments),wn(e,e.arguments,18960,re.parenthesizeExpressionForDisallowedComma)}(t);case 209:return function(n){var t=536870912&e.getEmitFlags(n);t&&(Gn("("),Pn("0"),Gn(","),Hn());Le(n.tag,re.parenthesizeLeftSideOfAccess),t&&Gn(")");An(n,n.typeArguments),Hn(),Le(n.template)}(t);case 210:return function(e){Gn("<"),Se(e.type),Gn(">"),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 211:return function(e){var n=Xe(20,e.pos,Gn,e),t=st(e.expression,e);Le(e.expression,void 0),ct(e.expression,e),tt(t),Xe(21,e.expression?e.expression.end:n,Gn,e)}(t);case 212:return function(e){bt(e.name),Ye(e)}(t);case 213:return function(e){Cn(e,e.decorators),En(e,e.modifiers),Qe(e,He)}(t);case 214:return function(e){Xe(89,e.pos,Un,e),Hn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 215:return function(e){Xe(112,e.pos,Un,e),Hn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 216:return function(e){Xe(114,e.pos,Un,e),Hn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){Xe(132,e.pos,Un,e),Hn(),Le(e.expression,re.parenthesizeOperandOfPrefixUnary)}(t);case 218:return function(e){Zn(e.operator,Vn),function(e){var n=e.operand;return 218===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}(e)&&Hn();Le(e.operand,re.parenthesizeOperandOfPrefixUnary)}(t);case 219:return function(e){Le(e.operand,re.parenthesizeOperandOfPostfixUnary),Zn(e.operator,Vn)}(t);case 220:return ae(t);case 221:return function(e){var n=ut(e,e.condition,e.questionToken),t=ut(e,e.questionToken,e.whenTrue),r=ut(e,e.whenTrue,e.colonToken),a=ut(e,e.colonToken,e.whenFalse);Le(e.condition,re.parenthesizeConditionOfConditionalExpression),nt(n,!0),Se(e.questionToken),nt(t,!0),Le(e.whenTrue,re.parenthesizeBranchOfConditionalExpression),tt(n,t),nt(r,!0),Se(e.colonToken),nt(a,!0),Le(e.whenFalse,re.parenthesizeBranchOfConditionalExpression),tt(r,a)}(t);case 222:return function(e){Se(e.head),On(e,e.templateSpans,262144)}(t);case 223:return function(e){Xe(125,e.pos,Un,e),Se(e.asteriskToken),Ln(e.expression,re.parenthesizeExpressionForDisallowedComma)}(t);case 224:return function(e){Xe(25,e.pos,Gn,e),Le(e.expression,re.parenthesizeExpressionForDisallowedComma)}(t);case 225:return function(e){bt(e.name),tn(e)}(t);case 226:case 347:case 350:case 351:return;case 228:return function(e){Le(e.expression,void 0),e.type&&(Hn(),Un("as"),Hn(),Se(e.type))}(t);case 229:return function(e){Le(e.expression,re.parenthesizeLeftSideOfAccess),Vn("!")}(t);case 230:return function(e){Yn(e.keywordToken,e.pos,Gn),Gn("."),Se(e.name)}(t);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return function(e){Se(e.openingElement),On(e,e.children,262144),Se(e.closingElement)}(t);case 278:return function(e){Gn("<"),on(e.tagName),An(e,e.typeArguments),Hn(),Se(e.attributes),Gn("/>")}(t);case 281:return function(e){Se(e.openingFragment),On(e,e.children,262144),Se(e.closingFragment)}(t);case 346:return e.Debug.fail("SyntaxList should not be printed");case 348:return function(e){Le(e.expression)}(t);case 349:return function(e){wn(e,e.elements,528,void 0)}(t);case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(t.kind)?Qn(t,Un):e.isTokenKind(t.kind)?Qn(t,Gn):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(t.kind),"."))}function Fe(n,t){var r=Oe(1,n,t);e.Debug.assertIsDefined(E),t=E,E=void 0,r(n,t)}function Ge(t){var a=!1,i=304===t.kind?t:void 0;if(!i||F!==e.ModuleKind.None){for(var o=i?i.prepends.length:0,s=i?i.sourceFiles.length+o:1,c=0;c<s;c++){var l=i?c<o?i.prepends[c]:i.sourceFiles[c-o]:t,u=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:r,d=n.noEmitHelpers||!!u&&e.hasRecordedExternalHelpers(u),p=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!_,m=e.isUnparsedSource(l)?l.helpers:Be(l);if(m)for(var g=0,y=m;g<y.length;g++){var h=y[g];if(h.scoped){if(i)continue}else{if(d)continue;if(p){if(G.get(h.name))continue;G.set(h.name,!0)}}var v=le();"string"===typeof h.text?et(h.text):et(h.text(Ct)),V&&V.sections.push({pos:v,end:f.getTextPos(),kind:"emitHelpers",data:h.name}),a=!0}}return a}}function Be(n){var t=e.getEmitHelpers(n);return t&&e.stableSort(t,e.compareEmitHelpers)}function Ue(t,r){var a,i=mt(t,n.neverAsciiEscape,r);!n.sourceMap&&!n.inlineSourceMap||10!==t.kind&&!e.isTemplateLiteralKind(t.kind)?(a=i,f.writeStringLiteral(a)):Pn(i)}function Ve(e){f.rawWrite(e.parent.text.substring(e.pos,e.end))}function je(e){(e.symbol?Fn:U)(ft(e,!1),e.symbol),On(e,e.typeArguments,53776)}function Ke(e){(e.symbol?Fn:U)(ft(e,!1),e.symbol)}function He(e){In(e,e.typeParameters),Nn(e,e.parameters),Tn(e.type),Hn(),Se(e.equalsGreaterThanToken)}function We(n,t){Xe(18,n.pos,Gn,n);var r=t||1&e.getEmitFlags(n)?768:129;On(n,n.statements,r),Xe(19,n.statements.end,Gn,n,!!(1&r))}function ze(e){e?Gn(";"):Bn()}function Je(e,n){var t=Xe(115,n,Un,e);Hn(),Xe(20,t,Gn,e),Le(e.expression),Xe(21,e.expression.end,Gn,e)}function qe(e){void 0!==e&&(254===e.kind?Se(e):Le(e))}function Xe(n,t,a,i,o){var s=e.getParseTreeNode(i),c=s&&s.kind===i.kind,l=t;if(c&&r&&(t=e.skipTrivia(r.text,t)),c&&i.pos!==l){var u=o&&r&&!e.positionsAreOnSameLine(l,t,r);u&&qn(),Ut(l),u&&Xn()}if(t=Zn(n,a,t),c&&i.end!==t){var d=287===i.kind;jt(t,!d,d)}return t}function Ye(e){Cn(e,e.decorators),En(e,e.modifiers),Un("function"),Se(e.asteriskToken),Hn(),xe(e.name),Qe(e,Ze)}function Qe(n,t){var r=n.body;if(r)if(e.isBlock(r)){var a=65536&e.getEmitFlags(n);a&&qn(),_t(n),e.forEach(n.parameters,ht),ht(n.body),t(n),$e(r),gt(n),a&&Xn()}else t(n),Hn(),Le(r,re.parenthesizeConciseBodyOfArrowFunction);else t(n),Bn()}function Ze(e){In(e,e.typeParameters),kn(e,e.parameters),Tn(e.type)}function $e(n){null===I||void 0===I||I(n),Hn(),Gn("{"),qn();var t=function(n){if(1&e.getEmitFlags(n))return!0;if(n.multiLine)return!1;if(!e.nodeIsSynthesized(n)&&!e.rangeIsOnSingleLine(n,r))return!1;if(rt(n,n.statements,2)||it(n,n.statements,2))return!1;for(var t,a=0,i=n.statements;a<i.length;a++){var o=i[a];if(at(t,o,2)>0)return!1;t=o}return!0}(n)?en:nn;wt?wt(n,n.statements,t):t(n),Xn(),Yn(19,n.statements.end,Gn,n),null===k||void 0===k||k(n)}function en(e){nn(e,!0)}function nn(e,n){var t=gn(e.statements),r=f.getTextPos();Ge(e),0===t&&r===f.getTextPos()&&n?(Xn(),On(e,e.statements,768),qn()):On(e,e.statements,1,void 0,t)}function tn(n){e.forEach(n.members,vt),Cn(n,n.decorators),En(n,n.modifiers),Un("class"),n.name&&(Hn(),xe(n.name));var t=65536&e.getEmitFlags(n);t&&qn(),In(n,n.typeParameters),On(n,n.heritageClauses,0),Hn(),Gn("{"),On(n,n.members,129),Gn("}"),t&&Xn()}function rn(e){Gn("{"),On(e,e.elements,525136),Gn("}")}function an(e){e.isTypeOnly&&(Un("type"),Hn()),e.propertyName&&(Se(e.propertyName),Hn(),Xe(127,e.propertyName.end,Un,e),Hn()),Se(e.name)}function on(e){79===e.kind?Le(e):Se(e)}function sn(n,t,a){var i=163969;1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],r))?(Yn(58,a,Gn,n),Hn(),i&=-130):Xe(58,a,Gn,n),On(n,t,i)}function cn(n){On(n,e.factory.createNodeArray(n.jsDocPropertyTags),33)}function ln(n){n.typeParameters&&On(n,e.factory.createNodeArray(n.typeParameters),33),n.parameters&&On(n,e.factory.createNodeArray(n.parameters),33),n.type&&(Jn(),Hn(),Gn("*"),Hn(),Se(n.type))}function un(e){Gn("@"),Se(e)}function dn(n){var t=e.getTextOfJSDocComment(n);t&&(Hn(),U(t))}function pn(e){e&&(Hn(),Gn("{"),Se(e.type),Gn("}"))}function fn(n){Jn();var t=n.statements;if(wt&&(0===t.length||!e.isPrologueDirective(t[0])||e.nodeIsSynthesized(t[0])))return void wt(n,t,_n);_n(n)}function mn(e,n,t,a){if(e){var i=f.getTextPos();Kn('/// <reference no-default-lib="true"/>'),V&&V.sections.push({pos:i,end:f.getTextPos(),kind:"no-default-lib"}),Jn()}if(r&&r.moduleName&&(Kn('/// <amd-module name="'.concat(r.moduleName,'" />')),Jn()),r&&r.amdDependencies)for(var o=0,s=r.amdDependencies;o<s.length;o++){var c=s[o];c.name?Kn('/// <amd-dependency name="'.concat(c.name,'" path="').concat(c.path,'" />')):Kn('/// <amd-dependency path="'.concat(c.path,'" />')),Jn()}for(var l=0,u=n;l<u.length;l++){var d=u[l];i=f.getTextPos();Kn('/// <reference path="'.concat(d.fileName,'" />')),V&&V.sections.push({pos:i,end:f.getTextPos(),kind:"reference",data:d.fileName}),Jn()}for(var p=0,m=t;p<m.length;p++){d=m[p],i=f.getTextPos();Kn('/// <reference types="'.concat(d.fileName,'" />')),V&&V.sections.push({pos:i,end:f.getTextPos(),kind:"type",data:d.fileName}),Jn()}for(var _=0,g=a;_<g.length;_++){d=g[_],i=f.getTextPos();Kn('/// <reference lib="'.concat(d.fileName,'" />')),V&&V.sections.push({pos:i,end:f.getTextPos(),kind:"lib",data:d.fileName}),Jn()}}function _n(n){var t=n.statements;_t(n),e.forEach(n.statements,ht),Ge(n);var r=e.findIndex(t,(function(n){return!e.isPrologueDirective(n)}));!function(e){e.isDeclarationFile&&mn(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(n),On(n,t,1,void 0,-1===r?t.length:r),gt(n)}function gn(n,t,r,a){for(var i=!!t,o=0;o<n.length;o++){var s=n[o];if(!e.isPrologueDirective(s))return o;if(!r||!r.has(s.expression.text)){i&&(i=!1,ve(t)),Jn();var c=f.getTextPos();Se(s),a&&V&&V.sections.push({pos:c,end:f.getTextPos(),kind:"prologue",data:s.expression.text}),r&&r.add(s.expression.text)}}return n.length}function yn(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];if(!n.has(a.data)){Jn();var i=f.getTextPos();Se(a),V&&V.sections.push({pos:i,end:f.getTextPos(),kind:"prologue",data:a.data}),n&&n.add(a.data)}}}function hn(n){if(e.isSourceFile(n))gn(n.statements,n);else{for(var t=new e.Set,r=0,a=n.prepends;r<a.length;r++){yn(a[r].prologues,t)}for(var i=0,o=n.sourceFiles;i<o.length;i++){var s=o[i];gn(s.statements,s,t,!0)}ve(void 0)}}function vn(n){if(e.isSourceFile(n)||e.isUnparsedSource(n)){var t=e.getShebang(n.text);if(t)return Kn(t),Jn(),!0}else{for(var r=0,a=n.prepends;r<a.length;r++){var i=a[r];if(e.Debug.assertNode(i,e.isUnparsedSource),vn(i))return!0}for(var o=0,s=n.sourceFiles;o<s.length;o++){if(vn(s[o]))return!0}}}function bn(e,n){if(e){var t=U;U=n,Se(e),U=t}}function En(e,n){n&&n.length&&(On(e,n,262656),Hn())}function Tn(e){e&&(Gn(":"),Hn(),Se(e))}function Sn(e,n,t,r){e&&(Hn(),Xe(63,n,Vn,t),Hn(),Le(e,r))}function xn(e){e&&(Hn(),Se(e))}function Ln(e,n){e&&(Hn(),Le(e,n))}function Dn(n,t){e.isBlock(t)||1&e.getEmitFlags(n)?(Hn(),Se(t)):(Jn(),qn(),e.isEmptyStatement(t)?Ie(5,t):Se(t),Xn())}function Cn(e,n){On(e,n,2146305)}function An(e,n){On(e,n,53776,re.parenthesizeMemberOfElementType)}function In(n,t){if(e.isFunctionLike(n)&&n.typeArguments)return An(n,n.typeArguments);On(n,t,53776)}function kn(e,n){On(e,n,2576)}function Nn(n,t){!function(n,t){var r=e.singleOrUndefined(t);return r&&r.pos===n.pos&&e.isArrowFunction(n)&&!n.type&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!e.some(n.typeParameters)&&!e.some(r.decorators)&&!e.some(r.modifiers)&&!r.dotDotDotToken&&!r.questionToken&&!r.type&&!r.initializer&&e.isIdentifier(r.name)}(n,t)?kn(n,t):On(n,t,528)}function Rn(e){switch(60&e){case 0:break;case 16:Gn(",");break;case 4:Hn(),Gn("|");break;case 32:Hn(),Gn("*"),Hn();break;case 8:Hn(),Gn("&")}}function On(e,n,t,r,a,i){Mn(Se,e,n,t,r,a,i)}function wn(e,n,t,r,a,i){Mn(Le,e,n,t,r,a,i)}function Mn(n,t,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var u=void 0===a||c>=a.length||0===l;if(u&&32768&o)return N&&N(a),void(R&&R(a));if(15360&o&&(Gn(function(e){return i[15360&e][0]}(o)),u&&a&&jt(a.pos,!0)),N&&N(a),u)1&o&&(!B||t&&!e.rangeIsOnSingleLine(t,r))?Jn():256&o&&!(524288&o)&&Hn();else{e.Debug.type(a);var d=0===(262144&o),f=d,m=rt(t,a,o);m?(Jn(m),f=!1):256&o&&Hn(),128&o&&qn();for(var _=void 0,g=void 0,y=!1,h=0;h<l;h++){var v=a[c+h];if(32&o)Jn(),Rn(o);else if(_){60&o&&_.end!==(t?t.end:-1)&&Ut(_.end),Rn(o),pe(g);var b=at(_,v,o);b>0?(0===(131&o)&&(qn(),y=!0),Jn(b),f=!1):_&&512&o&&Hn()}if(g=de(v),f){if(jt)jt(e.getCommentRange(v).pos)}else f=d;p=v.pos,1===n.length?n(v):n(v,s),y&&(Xn(),y=!1),_=v}var E=_?e.getEmitFlags(_):0,T=$||!!(1024&E),S=(null===a||void 0===a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(_&&!T?Xe(27,_.end,Gn,_):Gn(",")),_&&(t?t.end:-1)!==_.end&&60&o&&!T&&Ut(S&&(null===a||void 0===a?void 0:a.end)?a.end:_.end),128&o&&Xn(),pe(g);var x=it(t,a,o);x?Jn(x):2097408&o&&Hn()}R&&R(a),15360&o&&(u&&a&&Ut(a.end),Gn(function(e){return i[15360&e][1]}(o)))}}function Pn(e){f.writeLiteral(e)}function Fn(e,n){f.writeSymbol(e,n)}function Gn(e){f.writePunctuation(e)}function Bn(){f.writeTrailingSemicolon(";")}function Un(e){f.writeKeyword(e)}function Vn(e){f.writeOperator(e)}function jn(e){f.writeParameter(e)}function Kn(e){f.writeComment(e)}function Hn(){f.writeSpace(" ")}function Wn(e){f.writeProperty(e)}function zn(e){f.nonEscapingWrite?f.nonEscapingWrite(e):f.write(e)}function Jn(e){void 0===e&&(e=1);for(var n=0;n<e;n++)f.writeLine(n>0)}function qn(){f.increaseIndent()}function Xn(){f.decreaseIndent()}function Yn(n,t,r,a){return z?Zn(n,r,t):function(n,t,r,a,i){if(z||n&&e.isInJsonFile(n))return i(t,r,a);var o=n&&n.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],l=c&&c.source||y;a=Zt(l,c?c.pos:a),0===(128&s)&&a>=0&&er(l,a);a=i(t,r,a),c&&(a=c.end);0===(256&s)&&a>=0&&er(l,a);return a}(a,n,r,t,Zn)}function Qn(n,t){O&&O(n),t(e.tokenToString(n.kind)),w&&w(n)}function Zn(n,t,r){var a=e.tokenToString(n);return t(a),r<0?r:r+a.length}function $n(n,t,r){if(1&e.getEmitFlags(n))Hn();else if(B){var a=ut(n,t,r);a?Jn(a):Hn()}else Jn()}function et(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),a=0,i=t;a<i.length;a++){var o=i[a],s=r?o.slice(r):o;s.length&&(Jn(),U(s))}}function nt(e,n){e?(qn(),Jn(e)):n&&Hn()}function tt(e,n){e&&Xn(),n&&Xn()}function rt(n,t,a){if(2&a||B){if(65536&a)return 1;var i=t[0];if(void 0===i)return!n||e.rangeIsOnSingleLine(n,r)?0:1;if(i.pos===p)return 0;if(11===i.kind)return 0;if(n&&!e.positionIsSynthesized(n.pos)&&!e.nodeIsSynthesized(i)&&(!i.parent||e.getOriginalNode(i.parent)===e.getOriginalNode(n)))return B?ot((function(t){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(i.pos,n.pos,r,t)})):e.rangeStartPositionsAreOnSameLine(n,i,r)?0:1;if(lt(i,a))return 1}return 1&a?1:0}function at(n,t,a){if(2&a||B){if(void 0===n||void 0===t)return 0;if(11===t.kind)return 0;if(!e.nodeIsSynthesized(n)&&!e.nodeIsSynthesized(t))return B&&function(n,t){if(t.pos<n.end)return!1;n=e.getOriginalNode(n),t=e.getOriginalNode(t);var r=n.parent;if(!r||r!==t.parent)return!1;var a=e.getContainingNodeArray(n),i=null===a||void 0===a?void 0:a.indexOf(n);return void 0!==i&&i>-1&&a.indexOf(t)===i+1}(n,t)?ot((function(a){return e.getLinesBetweenRangeEndAndRangeStart(n,t,r,a)})):!B&&(i=n,o=t,(i=e.getOriginalNode(i)).parent&&i.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(n,t,r)?0:1:65536&a?1:0;if(lt(n,a)||lt(t,a))return 1}else if(e.getStartsOnNewLine(t))return 1;var i,o;return 1&a?1:0}function it(n,t,a){if(2&a||B){if(65536&a)return 1;var i=e.lastOrUndefined(t);if(void 0===i)return!n||e.rangeIsOnSingleLine(n,r)?0:1;if(n&&!e.positionIsSynthesized(n.pos)&&!e.nodeIsSynthesized(i)&&(!i.parent||i.parent===n)){if(B){var o=e.isNodeArray(t)&&!e.positionIsSynthesized(t.end)?t.end:i.end;return ot((function(t){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,n.end,r,t)}))}return e.rangeEndPositionsAreOnSameLine(n,i,r)?0:1}if(lt(i,a))return 1}return 1&a&&!(131072&a)?1:0}function ot(n){e.Debug.assert(!!B);var t=n(!0);return 0===t?n(!1):t}function st(e,n){var t=B&&rt(n,[e],0);return t&&nt(t,!1),!!t}function ct(e,n){var t=B&&it(n,[e],0);t&&Jn(t)}function lt(n,t){if(e.nodeIsSynthesized(n)){var r=e.getStartsOnNewLine(n);return void 0===r?0!==(65536&t):r}return 0!==(65536&t)}function ut(n,t,a){return 131072&e.getEmitFlags(n)?0:(n=pt(n),t=pt(t),a=pt(a),e.getStartsOnNewLine(a)?1:e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(a)?0:B?ot((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,a,r,n)})):e.rangeEndIsOnSameLineAsRangeStart(t,a,r)?0:1)}function dt(n){return 0===n.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(n,n,r)}function pt(n){for(;211===n.kind&&e.nodeIsSynthesized(n);)n=n.expression;return n}function ft(n,t){return e.isGeneratedIdentifier(n)?Et(n):(e.isIdentifier(n)||e.isPrivateIdentifier(n))&&(e.nodeIsSynthesized(n)||!n.parent||!r||n.parent&&r&&e.getSourceFileOfNode(n)!==e.getOriginalNode(r))?e.idText(n):10===n.kind&&n.textSourceNode?ft(n.textSourceNode,t):!e.isLiteralExpression(n)||!e.nodeIsSynthesized(n)&&n.parent?e.getSourceTextOfNodeFromSourceFile(r,n,t):n.text}function mt(t,a,i){if(10===t.kind&&t.textSourceNode){var o=t.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:ft(o);return i?'"'.concat(e.escapeJsxAttributeString(s),'"'):a||16777216&e.getEmitFlags(t)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return mt(o,a,i)}var c=(a?1:0)|(i?2:0)|(n.terminateUnterminatedLiterals?4:0)|(n.target&&99===n.target?8:0);return e.getLiteralText(t,r,c)}function _t(n){n&&524288&e.getEmitFlags(n)||(c.push(l),l=0,u.push(d))}function gt(n){n&&524288&e.getEmitFlags(n)||(l=c.pop(),d=u.pop())}function yt(n){d&&d!==e.lastOrUndefined(u)||(d=new e.Set),d.add(n)}function ht(n){if(n)switch(n.kind){case 234:case 288:case 289:e.forEach(n.statements,ht);break;case 249:case 247:case 239:case 240:ht(n.statement);break;case 238:ht(n.thenStatement),ht(n.elseStatement);break;case 241:case 243:case 242:ht(n.initializer),ht(n.statement);break;case 248:ht(n.caseBlock);break;case 262:e.forEach(n.clauses,ht);break;case 251:ht(n.tryBlock),ht(n.catchClause),ht(n.finallyBlock);break;case 291:ht(n.variableDeclaration),ht(n.block);break;case 236:ht(n.declarationList);break;case 254:e.forEach(n.declarations,ht);break;case 253:case 163:case 202:case 256:case 267:case 273:bt(n.name);break;case 255:bt(n.name),524288&e.getEmitFlags(n)&&(e.forEach(n.parameters,ht),ht(n.body));break;case 200:case 201:case 268:e.forEach(n.elements,ht);break;case 265:ht(n.importClause);break;case 266:bt(n.name),ht(n.namedBindings);break;case 269:bt(n.propertyName||n.name)}}function vt(e){if(e)switch(e.kind){case 294:case 295:case 166:case 168:case 171:case 172:bt(e.name)}}function bt(n){n&&(e.isGeneratedIdentifier(n)?Et(n):e.isBindingPattern(n)&&ht(n))}function Et(n){if(4===(7&n.autoGenerateFlags))return Tt(function(n){var t=n.autoGenerateId,r=n,a=r.original;for(;a&&(r=a,!(e.isIdentifier(r)&&4&r.autoGenerateFlags&&r.autoGenerateId!==t));)a=r.original;return r}(n),n.autoGenerateFlags);var t=n.autoGenerateId;return o[t]||(o[t]=function(n){switch(7&n.autoGenerateFlags){case 1:return Lt(0,!!(8&n.autoGenerateFlags));case 2:return Lt(268435456,!!(8&n.autoGenerateFlags));case 3:return Dt(e.idText(n),32&n.autoGenerateFlags?xt:St,!!(16&n.autoGenerateFlags),!!(8&n.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(n))}function Tt(n,t){var r=e.getNodeId(n);return a[r]||(a[r]=function(n,t){switch(n.kind){case 79:return Dt(ft(n),St,!!(16&t),!!(8&t));case 260:case 259:return function(n){var t=ft(n.name);return function(n,t){for(var r=t;e.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var a=r.locals.get(e.escapeLeadingUnderscores(n));if(a&&3257279&a.flags)return!1}return!0}(t,n)?t:Dt(t)}(n);case 265:case 271:return function(n){var t=e.getExternalModuleName(n);return Dt(e.isStringLiteral(t)?e.makeIdentifierFromModuleName(t.text):"module")}(n);case 255:case 256:case 270:return Dt("default");case 225:return Dt("class");case 168:case 171:case 172:return function(n){if(e.isIdentifier(n.name))return Tt(n.name);return Lt(0)}(n);case 161:return Lt(0,!0);default:return Lt(0)}}(n,t))}function St(e){return xt(e)&&!s.has(e)&&!(d&&d.has(e))}function xt(n){return!r||e.isFileLevelUniqueName(r,n,S)}function Lt(e,n){if(e&&!(l&e)&&St(t=268435456===e?"_i":"_n"))return l|=e,n&&yt(t),t;for(;;){var t,r=268435455&l;if(l++,8!==r&&13!==r)if(St(t=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return n&&yt(t),t}}function Dt(e,n,t,r){if(void 0===n&&(n=St),t&&n(e))return r?yt(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var a=1;;){var i=e+a;if(n(i))return r?yt(i):s.add(i),i;a++}}function Ct(e){return Dt(e,xt,!0)}function At(e,n){var t=Oe(2,e,n),r=X,a=Y,i=Q;It(n),t(e,n),kt(n,r,a,i)}function It(n){var t=e.getEmitFlags(n),r=e.getCommentRange(n);!function(n,t,r,a){ne(),Z=!1;var i=r<0||0!==(512&t)||11===n.kind,o=a<0||0!==(1024&t)||11===n.kind;(r>0||a>0)&&r!==a&&(i||Mt(r,347!==n.kind),(!i||r>=0&&0!==(512&t))&&(X=r),(!o||a>=0&&0!==(1024&t))&&(Y=a,254===n.kind&&(Q=a)));e.forEach(e.getSyntheticLeadingComments(n),Nt),te()}(n,t,r.pos,r.end),2048&t&&($=!0)}function kt(n,t,r,a){var i=e.getEmitFlags(n),o=e.getCommentRange(n);2048&i&&($=!1),function(n,t,r,a,i,o,s){ne();var c=a<0||0!==(1024&t)||11===n.kind;e.forEach(e.getSyntheticTrailingComments(n),Rt),(r>0||a>0)&&r!==a&&(X=i,Y=o,Q=s,c||347===n.kind||function(e){zt(e,Vt)}(a));te()}(n,i,o.pos,o.end,t,r,a)}function Nt(e){(e.hasLeadingNewline||2===e.kind)&&f.writeLine(),Ot(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function Rt(e){f.isAtStartOfLine()||f.writeSpace(" "),Ot(e),e.hasTrailingNewLine&&f.writeLine()}function Ot(n){var t=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(n),r=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,r,f,0,t.length,P)}function wt(n,t,a){ne();var i=t.pos,o=t.end,s=e.getEmitFlags(n),c=$||o<0||0!==(1024&s);i<0||0!==(512&s)||function(n){var t=e.emitDetachedComments(r.text,Te(),f,Jt,n,P,$);t&&(b?b.push(t):b=[t])}(t),te(),2048&s&&!$?($=!0,a(n),$=!1):a(n),ne(),c||(Mt(t.end,!0),Z&&!f.isAtStartOfLine()&&f.writeLine()),te()}function Mt(e,n){Z=!1,n?0===e&&(null===r||void 0===r?void 0:r.isDeclarationFile)?Wt(e,Ft):Wt(e,Bt):0===e&&Wt(e,Pt)}function Pt(e,n,t,r,a){qt(e,n)&&Bt(e,n,t,r,a)}function Ft(e,n,t,r,a){qt(e,n)||Bt(e,n,t,r,a)}function Gt(t,r){return!n.onlyPrintJsDocStyle||(e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r))}function Bt(n,t,a,i,o){Gt(r.text,n)&&(Z||(e.emitNewLineBeforeLeadingCommentOfPosition(Te(),f,o,n),Z=!0),$t(n),e.writeCommentRange(r.text,Te(),f,n,t,P),$t(t),i?f.writeLine():3===a&&f.writeSpace(" "))}function Ut(e){$||-1===e||Mt(e,!0)}function Vt(n,t,a,i){Gt(r.text,n)&&(f.isAtStartOfLine()||f.writeSpace(" "),$t(n),e.writeCommentRange(r.text,Te(),f,n,t,P),$t(t),i&&f.writeLine())}function jt(e,n,t){$||(ne(),zt(e,n?Vt:t?Kt:Ht),te())}function Kt(n,t,a){$t(n),e.writeCommentRange(r.text,Te(),f,n,t,P),$t(t),2===a&&f.writeLine()}function Ht(n,t,a,i){$t(n),e.writeCommentRange(r.text,Te(),f,n,t,P),$t(t),i?f.writeLine():f.writeSpace(" ")}function Wt(n,t){!r||-1!==X&&n===X||(function(n){return void 0!==b&&e.last(b).nodePos===n}(n)?function(n){var t=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0;e.forEachLeadingCommentRange(r.text,t,n,t)}(t):e.forEachLeadingCommentRange(r.text,n,t,n))}function zt(n,t){r&&(-1===Y||n!==Y&&n!==Q)&&e.forEachTrailingCommentRange(r.text,n,t)}function Jt(n,t,a,i,o,s){Gt(r.text,i)&&($t(i),e.writeCommentRange(n,t,a,i,o,s),$t(o))}function qt(n,t){return e.isRecognizedTripleSlashComment(r.text,n,t)}function Xt(e,n){var t=Oe(3,e,n);Yt(n),t(e,n),Qt(n)}function Yt(n){var t=e.getEmitFlags(n),r=e.getSourceMapRange(n);if(e.isUnparsedNode(n)){e.Debug.assertIsDefined(n.parent,"UnparsedNodes must have parent pointers");var a=function(n){return void 0===n.parsedSourceMap&&void 0!==n.sourceMapText&&(n.parsedSourceMap=e.tryParseRawSourceMap(n.sourceMapText)||!1),n.parsedSourceMap||void 0}(n.parent);a&&g&&g.appendSourceMap(f.getLine(),f.getColumn(),a,n.parent.sourceMapPath,n.parent.getLineAndCharacterOfPosition(n.pos),n.parent.getLineAndCharacterOfPosition(n.end))}else{var i=r.source||y;347!==n.kind&&0===(16&t)&&r.pos>=0&&er(r.source||y,Zt(i,r.pos)),64&t&&(z=!0)}}function Qt(n){var t=e.getEmitFlags(n),r=e.getSourceMapRange(n);e.isUnparsedNode(n)||(64&t&&(z=!1),347!==n.kind&&0===(32&t)&&r.end>=0&&er(r.source||y,r.end))}function Zt(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function $t(n){if(!(z||e.positionIsSynthesized(n)||tr(y))){var t=e.getLineAndCharacterOfPosition(y,n),r=t.line,a=t.character;g.addMapping(f.getLine(),f.getColumn(),J,r,a,void 0)}}function er(e,n){if(e!==y){var t=y,r=J;nr(e),$t(n),function(e,n){y=e,J=n}(t,r)}else $t(n)}function nr(e){z||(y=e,e!==h?tr(e)||(J=g.addSource(e.fileName),n.inlineSources&&g.setSourceContent(J,e.text),h=e,q=J):J=q)}function tr(n){return e.fileExtensionIs(n.fileName,".json")}}e.isBuildInfoFile=function(n){return e.fileExtensionIs(n,".tsbuildinfo")},e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=l,e.getOutputExtension=d,e.getOutputDeclarationFileName=f,e.getCommonSourceDirectory=h,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(n,t){var r=_(),a=r.addOutput,i=r.getOutputs;if(e.outFile(n.options))g(n,a);else{for(var o=e.memoize((function(){return v(n,t)})),c=0,l=n.fileNames;c<l.length;c++){var u=l[c];y(n,u,t,a,o)}a(s(n.options))}return i()},e.getOutputFileNames=function(n,t,r){t=e.normalizePath(t),e.Debug.assert(e.contains(n.fileNames,t),"Expected fileName to be present in command line");var a=_(),i=a.addOutput,o=a.getOutputs;return e.outFile(n.options)?g(n,i):y(n,t,r,i),o()},e.getFirstProjectOutput=function(n,t){if(e.outFile(n.options)){var r=c(n.options,!1).jsFilePath;return e.Debug.checkDefined(r,"project ".concat(n.options.configFilePath," expected to have at least one output"))}for(var a=e.memoize((function(){return v(n,t)})),i=0,o=n.fileNames;i<o.length;i++){var l=o[i];if(!e.fileExtensionIs(l,".d.ts")){if(r=m(l,n,t,a))return r;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(n.options))return f(l,n,t,a)}}var u=s(n.options);return u||e.Debug.fail("project ".concat(n.options.configFilePath," expected to have at least one output"))},e.emitFiles=b,e.getBuildInfoText=E,e.getBuildInfo=T,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=function(n,t,r,a){var i=c(n.options,!1),o=i.buildInfoPath,s=i.jsFilePath,l=i.sourceMapFilePath,u=i.declarationFilePath,d=i.declarationMapPath,p=t.readFile(e.Debug.checkDefined(o));if(!p)return o;var f=t.readFile(e.Debug.checkDefined(s));if(!f)return s;var m=l&&t.readFile(l);if(l&&!m||n.options.inlineSourceMap)return l||"inline sourcemap decoding";var _=u&&t.readFile(u);if(u&&!_)return u;var g=d&&t.readFile(d);if(d&&!g||n.options.inlineSourceMap)return d||"inline sourcemap decoding";var y=T(p);if(!y.bundle||!y.bundle.js||_&&!y.bundle.dts)return o;var h=e.getDirectoryPath(e.getNormalizedAbsolutePath(o,t.getCurrentDirectory())),v=e.createInputFiles(f,_,l,m,d,g,s,u,o,y,!0),S=[],x=e.createPrependNodes(n.projectReferences,r,(function(e){return t.readFile(e)})),L=function(n,t,r){var a,i=e.Debug.checkDefined(n.js),o=(null===(a=i.sources)||void 0===a?void 0:a.prologues)&&e.arrayToMap(i.sources.prologues,(function(e){return e.file}));return n.sourceFiles.map((function(n,a){var i,s,c=null===o||void 0===o?void 0:o.get(a),l=null===c||void 0===c?void 0:c.directives.map((function(n){var t=e.setTextRange(e.factory.createStringLiteral(n.expression.text),n.expression),r=e.setTextRange(e.factory.createExpressionStatement(t),n);return e.setParent(t,r),r})),u=e.factory.createToken(1),d=e.factory.createSourceFile(null!==l&&void 0!==l?l:[],u,0);return d.fileName=e.getRelativePathFromDirectory(r.getCurrentDirectory(),e.getNormalizedAbsolutePath(n,t),!r.useCaseSensitiveFileNames()),d.text=null!==(i=null===c||void 0===c?void 0:c.text)&&void 0!==i?i:"",e.setTextRangePosWidth(d,0,null!==(s=null===c||void 0===c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(d.statements,d),e.setTextRangePosWidth(u,d.end,0),e.setParent(u,d),d}))}(y.bundle,h,t),D={getPrependNodes:e.memoize((function(){return pa(pa([],x,!0),[v],!1)})),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(y.bundle.commonSourceDirectory,h)},getCompilerOptions:function(){return n.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return L},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(n,t,r){switch(n){case s:if(f===t)return;break;case l:if(m===t)return;break;case o:var a=T(t);a.program=y.program;var i=y.bundle,c=i.js,p=i.dts,h=i.sourceFiles;return a.bundle.js.sources=c.sources,p&&(a.bundle.dts.sources=p.sources),a.bundle.sourceFiles=h,void S.push({name:n,text:E(a),writeByteOrderMark:r});case u:if(_===t)return;break;case d:if(g===t)return;break;default:e.Debug.fail("Unexpected path: ".concat(n))}S.push({name:n,text:t,writeByteOrderMark:r})},isEmitBlocked:e.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return b(e.notImplementedResolver,D,void 0,e.getTransformers(n.options,a)),S},(t=n||(n={}))[t.Notification=0]="Notification",t[t.Substitution=1]="Substitution",t[t.Comments=2]="Comments",t[t.SourceMaps=3]="SourceMaps",t[t.Emit=4]="Emit",e.createPrinter=S,(a=r||(r={}))[a.Auto=0]="Auto",a[a.CountMask=268435455]="CountMask",a[a._i=268435456]="_i"}(ha||(ha={})),function(e){var n,t,r;function a(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(n,t,r){if(n.getDirectories&&n.readDirectory){var a=new e.Map,i=e.createGetCanonicalFileName(r);return{useCaseSensitiveFileNames:r,fileExists:function(e){var t=c(o(e));return t&&p(t.files,l(e))||n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:n.directoryExists&&function(t){var r=o(t);return a.has(e.ensureTrailingDirectorySeparator(r))||n.directoryExists(t)},getDirectories:function(e){var t=o(e),r=u(e,t);if(r)return r.directories.slice();return n.getDirectories(e)},readDirectory:function(a,i,s,c,d){var p,f=o(a),_=u(a,f);if(void 0!==_)return e.matchFiles(a,i,s,c,r,t,d,(function(n){var t=o(n);if(t===f)return _||g(n,t);var r=u(n,t);return void 0!==r?r||g(n,t):e.emptyFileSystemEntries}),m);return n.readDirectory(a,i,s,c,d);function g(t,r){if(p&&r===f)return p;var a={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:n.getDirectories(t)||e.emptyArray};return r===f&&(p=a),a}},createDirectory:n.createDirectory&&function(e){var t=c(o(e)),r=l(e);t&&f(t.directories,r,!0);n.createDirectory(e)},writeFile:n.writeFile&&function(e,t,r){var a=c(o(e));a&&_(a,l(e),!0);return n.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(void 0!==s(t))return void g();var r=c(t);if(!r)return;if(!n.directoryExists)return void g();var a=l(e),i={fileExists:n.fileExists(t),directoryExists:n.directoryExists(t)};i.directoryExists||p(r.directories,a)?g():_(r,a,i.fileExists);return i},addOrDeleteFile:function(n,t,r){if(r===e.FileWatcherEventKind.Changed)return;var a=c(t);a&&_(a,l(n),r===e.FileWatcherEventKind.Created)},clearCache:g,realpath:n.realpath&&m}}function o(n){return e.toPath(n,t,i)}function s(n){return a.get(e.ensureTrailingDirectorySeparator(n))}function c(n){return s(e.getDirectoryPath(n))}function l(n){return e.getBaseFileName(e.normalizePath(n))}function u(t,r){var i=s(r=e.ensureTrailingDirectorySeparator(r));if(i)return i;try{return function(t,r){var i;if(!n.realpath||e.ensureTrailingDirectorySeparator(o(n.realpath(t)))===r){var s={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:n.getDirectories(t)||[]};return a.set(e.ensureTrailingDirectorySeparator(r),s),s}if(null===(i=n.directoryExists)||void 0===i?void 0:i.call(n,t))return a.set(r,!1),!1}(t,r)}catch(c){return void e.Debug.assert(!a.has(e.ensureTrailingDirectorySeparator(r)))}}function d(e,n){return i(e)===i(n)}function p(n,t){return e.some(n,(function(e){return d(e,t)}))}function f(n,t,r){if(p(n,t)){if(!r)return e.filterMutate(n,(function(e){return!d(e,t)}))}else if(r)return n.push(t)}function m(e){return n.realpath?n.realpath(e):e}function _(e,n,t){f(e.files,n,t)}function g(){a.clear()}},(n=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[n.None=0]="None",n[n.Partial=1]="Partial",n[n.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=function(n,t,r,a,i){var o,s=e.arrayToMap((null===(o=null===t||void 0===t?void 0:t.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,i);r.forEach((function(e,t){s.has(t)||(e.projects.delete(n),e.close())})),s.forEach((function(t,i){var o=r.get(i);o?o.projects.add(n):r.set(i,{projects:new e.Set([n]),watcher:a(t,i),close:function(){var e=r.get(i);e&&0===e.projects.size&&(e.watcher.close(),r.delete(i))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,n){n.forEach((function(n){n.projects.delete(e)&&n.close()}))},e.cleanExtendedConfigCache=function e(n,t,r){n.delete(t)&&n.forEach((function(a,i){var o;(null===(o=a.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return r(e)===t})))&&e(n,i,r)}))},e.updatePackageJsonWatch=function(n,t,r){var a=new e.Map(n);e.mutateMap(t,a,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(n,t,r){var a=n.getMissingFilePaths(),i=e.arrayToMap(a,e.identity,e.returnTrue);e.mutateMap(t,i,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(n,t,r){function i(e,n){return{watcher:r(e,n),flags:n}}e.mutateMap(n,t,{createNewValue:i,onDeleteValue:a,onExistingValue:function(e,t,r){if(e.flags===t)return;e.watcher.close(),n.set(r,i(r,t))}})},e.isIgnoredFileFromWildCardWatching=function(n){var t=n.watchedDirPath,r=n.fileOrDirectory,a=n.fileOrDirectoryPath,i=n.configFileName,o=n.options,s=n.program,c=n.extraFileExtensions,l=n.currentDirectory,u=n.useCaseSensitiveFileNames,d=n.writeLog,p=n.toPath,f=e.removeIgnoredPath(a);if(!f)return d("Project: ".concat(i," Detected ignored path: ").concat(r)),!0;if((a=f)===t)return!1;if(e.hasExtension(a)&&!e.isSupportedSourceFileName(r,o,c))return d("Project: ".concat(i," Detected file add/remove of non supported extension: ").concat(r)),!0;if(e.isExcludedFile(r,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(i),l),u,l))return d("Project: ".concat(i," Detected excluded file: ").concat(r)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.fileExtensionIs(a,".d.ts")){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(a,e.supportedJSExtensionsFlat))return!1;var m=e.removeFileExtension(a),_=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,g=_||e.isArray(s)?void 0:s;return!(!y(m+".ts")&&!y(m+".tsx"))&&(d("Project: ".concat(i," Detected output file: ").concat(r)),!0);function y(n){return _?!!_.getSourceFileByPath(n):g?g.getState().fileInfos.has(n):!!e.find(s,(function(e){return p(e)===n}))}},e.isEmittedFileOfProgram=function(e,n){return!!e&&e.isEmittedFile(n)},(r=t=e.WatchLogLevel||(e.WatchLogLevel={}))[r.None=0]="None",r[r.TriggerOnly=1]="TriggerOnly",r[r.Verbose=2]="Verbose",e.getWatchFactory=function(n,r,a,i){e.setSysLog(r===t.Verbose?a:e.noop);var o={watchFile:function(e,t,r,a){return n.watchFile(e,t,r,a)},watchDirectory:function(e,t,r,a){return n.watchDirectory(e,t,0!==(1&r),a)}},s=r!==t.None?{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")}:void 0,c=r===t.Verbose?{watchFile:function(e,n,t,r,o,c){a("FileWatcher:: Added:: ".concat(p(e,t,r,o,c,i)));var l=s.watchFile(e,n,t,r,o,c);return{close:function(){a("FileWatcher:: Close:: ".concat(p(e,t,r,o,c,i))),l.close()}}},watchDirectory:function(n,t,r,o,c,l){var u="DirectoryWatcher:: Added:: ".concat(p(n,r,o,c,l,i));a(u);var d=e.timestamp(),f=s.watchDirectory(n,t,r,o,c,l),m=e.timestamp()-d;return a("Elapsed:: ".concat(m,"ms ").concat(u)),{close:function(){var t="DirectoryWatcher:: Close:: ".concat(p(n,r,o,c,l,i));a(t);var s=e.timestamp();f.close();var u=e.timestamp()-s;a("Elapsed:: ".concat(u,"ms ").concat(t))}}}}:s||o,l=r===t.Verbose?function(e,n,t,r,o){return a("ExcludeWatcher:: Added:: ".concat(p(e,n,t,r,o,i))),{close:function(){return a("ExcludeWatcher:: Close:: ".concat(p(e,n,t,r,o,i)))}}}:e.returnNoopFileWatcher;return{watchFile:u("watchFile"),watchDirectory:u("watchDirectory")};function u(t){return function(r,a,i,o,s,u){var d;return e.matchesExclude(r,"watchFile"===t?null===o||void 0===o?void 0:o.excludeFiles:null===o||void 0===o?void 0:o.excludeDirectories,"boolean"===typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames:n.useCaseSensitiveFileNames(),(null===(d=n.getCurrentDirectory)||void 0===d?void 0:d.call(n))||"")?l(r,i,o,s,u):c[t].call(void 0,r,a,i,o,s,u)}}function d(n){return function(t,r,s,c,l,u){return o[n].call(void 0,t,(function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];var f="".concat("watchFile"===n?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(o[0]," ").concat(void 0!==o[1]?o[1]:"",":: ").concat(p(t,s,c,l,u,i));a(f);var m=e.timestamp();r.call.apply(r,pa([void 0],o,!1));var _=e.timestamp()-m;a("Elapsed:: ".concat(_,"ms ").concat(f))}),s,c,l,u)}}function p(e,n,t,r,a,i){return"WatchInfo: ".concat(e," ").concat(n," ").concat(JSON.stringify(t)," ").concat(i?i(r,a):void 0===a?r:"".concat(r," ").concat(a))}},e.getFallbackOptions=function(n){var t=null===n||void 0===n?void 0:n.fallbackPolling;return{watchFile:void 0!==t?t:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=a}(ha||(ha={})),function(e){function n(n,t){var r=e.getDirectoryPath(t),a=e.isRootedDiskPath(n)?n:e.combinePaths(r,n);return e.normalizePath(a)}function t(e,n){return r(e,n)}function r(n,t,r){void 0===r&&(r=e.sys);var a,i=new e.Map,o=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),s=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(r.getExecutingFilePath()))}var l=e.getNewLineCharacter(n,(function(){return r.newLine})),u=r.realpath&&function(e){return r.realpath(e)},d={getSourceFile:function(n,r,a){var i;try{e.performance.mark("beforeIORead"),i=d.readFile(n),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Oa){a&&a(Oa.message),i=""}return void 0!==i?e.createSourceFile(n,i,r,t):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(n){return e.combinePaths(c(),e.getDefaultLibFileName(n))},writeFile:function(t,o,c,l){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,o,c,(function(t,i,o){return function(t,i,o){if(!e.isWatchSet(n)||!r.getModifiedTime)return void r.writeFile(t,i,o);a||(a=new e.Map);var c=s(i),l=r.getModifiedTime(t);if(l){var u=a.get(t);if(u&&u.byteOrderMark===o&&u.hash===c&&u.mtime.getTime()===l.getTime())return}r.writeFile(t,i,o);var d=r.getModifiedTime(t)||e.missingFileModifiedTime;a.set(t,{hash:c,byteOrderMark:o,mtime:d})}(t,i,o)}),(function(e){return(d.createDirectory||r.createDirectory)(e)}),(function(e){return n=e,!!i.has(n)||!!(d.directoryExists||r.directoryExists)(n)&&(i.set(n,!0),!0);var n})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Oa){l&&l(Oa.message)}},getCurrentDirectory:e.memoize((function(){return r.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return r.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return l},fileExists:function(e){return r.fileExists(e)},readFile:function(e){return r.readFile(e)},trace:function(e){return r.write(e+l)},directoryExists:function(e){return r.directoryExists(e)},getEnvironmentVariable:function(e){return r.getEnvironmentVariable?r.getEnvironmentVariable(e):""},getDirectories:function(e){return r.getDirectories(e)},realpath:u,readDirectory:function(e,n,t,a,i){return r.readDirectory(e,n,t,a,i)},createDirectory:function(e){return r.createDirectory(e)},createHash:e.maybeBind(r,r.createHash)};return d}function a(n,t){var r="".concat(e.diagnosticCategoryName(n)," TS").concat(n.code,": ").concat(m(n.messageText,t.getNewLine())).concat(t.getNewLine());if(n.file){var a=e.getLineAndCharacterOfPosition(n.file,n.start),i=a.line,o=a.character,s=n.file.fileName,c=e.convertToRelativePath(s,t.getCurrentDirectory(),(function(e){return t.getCanonicalFileName(e)}));return"".concat(c,"(").concat(i+1,",").concat(o+1,"): ")+r}return r}var i,o;e.findConfigFile=function(n,t,r){return void 0===r&&(r="tsconfig.json"),e.forEachAncestorDirectory(n,(function(n){var a=e.combinePaths(n,r);return t(a)?a:void 0}))},e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=function(n,t,r){var a,i=e.forEach(n,(function(n){var i=e.getNormalizedPathComponents(n,t);if(i.pop(),a){for(var o=Math.min(a.length,i.length),s=0;s<o;s++)if(r(a[s])!==r(i[s])){if(0===s)return!0;a.length=s;break}i.length<a.length&&(a.length=i.length)}else a=i}));return i?"":a?e.getPathFromPathComponents(a):t},e.createCompilerHost=t,e.createCompilerHostWorker=r,e.changeCompilerHostLikeToUseCache=function(n,t,r){var a=n.readFile,i=n.fileExists,o=n.directoryExists,s=n.createDirectory,c=n.writeFile,l=new e.Map,u=new e.Map,d=new e.Map,p=new e.Map,f=function(e,t){var r=a.call(n,t);return l.set(e,void 0!==r&&r),r};n.readFile=function(r){var i=t(r),o=l.get(i);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(r,".json")||e.isBuildInfoFile(r)?f(i,r):a.call(n,r)};var m=r?function(n,a,i,o){var s=t(n),c=p.get(s);if(c)return c;var l=r(n,a,i,o);return l&&(e.isDeclarationFileName(n)||e.fileExtensionIs(n,".json"))&&p.set(s,l),l}:void 0;return n.fileExists=function(e){var r=t(e),a=u.get(r);if(void 0!==a)return a;var o=i.call(n,e);return u.set(r,!!o),o},c&&(n.writeFile=function(e,r,a,i,o){var s=t(e);u.delete(s);var d=l.get(s);if(void 0!==d&&d!==r)l.delete(s),p.delete(s);else if(m){var f=p.get(s);f&&f.text!==r&&p.delete(s)}c.call(n,e,r,a,i,o)}),o&&s&&(n.directoryExists=function(e){var r=t(e),a=d.get(r);if(void 0!==a)return a;var i=o.call(n,e);return d.set(r,!!i),i},n.createDirectory=function(e){var r=t(e);d.delete(r),s.call(n,e)}),{originalReadFile:a,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:m,readFileWithCache:function(e){var n=t(e),r=l.get(n);return void 0!==r?!1!==r?r:void 0:f(n,e)}}},e.getPreEmitDiagnostics=function(n,t,r){var a;return a=e.addRange(a,n.getConfigFileParsingDiagnostics()),a=e.addRange(a,n.getOptionsDiagnostics(r)),a=e.addRange(a,n.getSyntacticDiagnostics(t,r)),a=e.addRange(a,n.getGlobalDiagnostics(r)),a=e.addRange(a,n.getSemanticDiagnostics(t,r)),e.getEmitDeclarations(n.getCompilerOptions())&&(a=e.addRange(a,n.getDeclarationDiagnostics(t,r))),e.sortAndDeduplicateDiagnostics(a||e.emptyArray)},e.formatDiagnostics=function(e,n){for(var t="",r=0,i=e;r<i.length;r++){t+=a(i[r],n)}return t},e.formatDiagnostic=a,(o=i=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={})).Grey="\x1b[90m",o.Red="\x1b[91m",o.Yellow="\x1b[93m",o.Blue="\x1b[94m",o.Cyan="\x1b[96m";var s="\x1b[7m",c="\x1b[0m",l=" ";function u(n){switch(n){case e.DiagnosticCategory.Error:return i.Red;case e.DiagnosticCategory.Warning:return i.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return i.Blue}}function d(e,n){return n+e+c}function p(n,t,r,a,i,o){var l=e.getLineAndCharacterOfPosition(n,t),u=l.line,p=l.character,f=e.getLineAndCharacterOfPosition(n,t+r),m=f.line,_=f.character,g=e.getLineAndCharacterOfPosition(n,n.text.length).line,y=m-u>=4,h=(m+1+"").length;y&&(h=Math.max("...".length,h));for(var v="",b=u;b<=m;b++){v+=o.getNewLine(),y&&u+1<b&&b<m-1&&(v+=a+d(e.padLeft("...",h),s)+" "+o.getNewLine(),b=m-1);var E=e.getPositionOfLineAndCharacter(n,b,0),T=b<g?e.getPositionOfLineAndCharacter(n,b+1,0):n.text.length,S=n.text.slice(E,T);if(S=(S=e.trimStringEnd(S)).replace(/\t/g," "),v+=a+d(e.padLeft(b+1+"",h),s)+" ",v+=S+o.getNewLine(),v+=a+d(e.padLeft("",h),s)+" ",v+=i,b===u){var x=b===m?_:void 0;v+=S.slice(0,p).replace(/\S/g," "),v+=S.slice(p,x).replace(/./g,"~")}else v+=b===m?S.slice(0,_).replace(/./g,"~"):S.replace(/./g,"~");v+=c}return v}function f(n,t,r,a){void 0===a&&(a=d);var o=e.getLineAndCharacterOfPosition(n,t),s=o.line,c=o.character,l="";return l+=a(r?e.convertToRelativePath(n.fileName,r.getCurrentDirectory(),(function(e){return r.getCanonicalFileName(e)})):n.fileName,i.Cyan),l+=":",l+=a("".concat(s+1),i.Yellow),l+=":",l+=a("".concat(c+1),i.Yellow)}function m(n,t,r){if(void 0===r&&(r=0),e.isString(n))return n;if(void 0===n)return"";var a="";if(r){a+=t;for(var i=0;i<r;i++)a+=" "}if(a+=n.messageText,r++,n.next)for(var o=0,s=n.next;o<s.length;o++){a+=m(s[o],t,r)}return a}function _(n,t,r,a){if(0===n.length)return[];for(var i=[],o=new e.Map,s=0,c=n;s<c.length;s++){var l=c[s],u=void 0;o.has(l)?u=o.get(l):o.set(l,u=a(l,t,r)),i.push(u)}return i}function g(e,n){if(void 0!==e.impliedNodeFormat)return y(e,N(e,n))}function y(n,t){var r;if(void 0!==n.impliedNodeFormat){if(n.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(t.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var a=null===(r=e.walkUpParenthesizedExpressions(t.parent))||void 0===r?void 0:r.parent;return a&&e.isImportEqualsDeclaration(a)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}function h(n,t,r,a,i){if(0===n.length)return[];for(var o=[],s=new e.Map,c=0,l=0,u=n;l<u.length;l++){var d=u[l],p=void 0,f=g(t,c);c++;var m=void 0!==f?"".concat(f,"|").concat(d):d;s.has(m)?p=s.get(m):s.set(m,p=i(d,f,r,a)),o.push(p)}return o}function v(n,t,r,a){var i;return function n(t,o,s){if(a){var c=a(t,s);if(c)return c}return e.forEach(o,(function(t,a){if(!t||!(null===i||void 0===i?void 0:i.has(t.sourceFile.path))){var o=r(t,s,a);return o||!t?o:((i||(i=new e.Set)).add(t.sourceFile.path),n(t.commandLine.projectReferences,t.references,t))}}))}(n,t,void 0)}function b(n){switch(null===n||void 0===n?void 0:n.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function E(e){return void 0!==e.pos}function T(n,t){var r,a,i,o,s,c,l,u,d,p,f=e.Debug.checkDefined(n(t.file)),m=t.kind,_=t.index;switch(m){case e.FileIncludeKind.Import:var y=N(f,_);if(p=null===(s=null===(o=f.resolvedModules)||void 0===o?void 0:o.get(y.text,g(f,_)))||void 0===s?void 0:s.packageId,-1===y.pos)return{file:f,packageId:p,text:y.text};u=e.skipTrivia(f.text,y.pos),d=y.end;break;case e.FileIncludeKind.ReferenceFile:u=(r=f.referencedFiles[_]).pos,d=r.end;break;case e.FileIncludeKind.TypeReferenceDirective:u=(a=f.typeReferenceDirectives[_]).pos,d=a.end,p=null===(l=null===(c=f.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(f.typeReferenceDirectives[_].fileName),f.impliedNodeFormat))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:u=(i=f.libReferenceDirectives[_]).pos,d=i.end;break;default:return e.Debug.assertNever(m)}return{file:f,pos:u,end:d,packageId:p}}function S(n,t,r,a){switch(e.getEmitModuleResolutionKind(a)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(n,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(n,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(n,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){var i=e.getPackageScopeForPath(n,t,r,a);return"module"===(null===i||void 0===i?void 0:i.packageJsonContent.type)?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}():void 0;default:return}}function x(n,t,r,a){var i=n.getCompilerOptions();if(i.noEmit)return n.getSemanticDiagnostics(t,a),t||e.outFile(i)?e.emitSkippedWithNoDiagnostics:n.emitBuildInfo(r,a);if(i.noEmitOnError){var o=pa(pa(pa(pa([],n.getOptionsDiagnostics(a),!0),n.getSyntacticDiagnostics(t,a),!0),n.getGlobalDiagnostics(a),!0),n.getSemanticDiagnostics(t,a),!0);if(0===o.length&&e.getEmitDeclarations(n.getCompilerOptions())&&(o=n.getDeclarationDiagnostics(void 0,a)),o.length){var s;if(!t&&!e.outFile(i)){var c=n.emitBuildInfo(r,a);c.diagnostics&&(o=pa(pa([],o,!0),c.diagnostics,!0)),s=c.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:s,emitSkipped:!0}}}}function L(n,t){return e.filter(n,(function(e){return!e.skippedOn||!t[e.skippedOn]}))}function D(n,t){return void 0===t&&(t=n),{fileExists:function(e){return t.fileExists(e)},readDirectory:function(n,r,a,i,o){return e.Debug.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,r,a,i,o)},readFile:function(e){return t.readFile(e)},useCaseSensitiveFileNames:n.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return n.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:n.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:n.trace?function(e){return n.trace(e)}:void 0}}function C(n,t,r){if(!n)return e.emptyArray;for(var a,i=0;i<n.length;i++){var o=n[i],s=t(o,i);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,u=c.sourceMapFilePath,d=c.declarationFilePath,p=c.declarationMapPath,f=c.buildInfoPath,m=e.createInputFiles(r,l,u,d,p,f);(a||(a=[])).push(m)}}return a||e.emptyArray}function A(n,t){var r=t||n;return e.resolveConfigFileProjectName(r.path)}function I(n,t){switch(t.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||a();case".js":return a();case".json":return n.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function r(){return n.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function a(){return e.getAllowJSCompilerOption(n)||!e.getStrictOptionValue(n,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function k(e){for(var n=e.imports,t=e.moduleAugmentations,r=n.map((function(e){return e.text})),a=0,i=t;a<i.length;a++){var o=i[a];10===o.kind&&r.push(o.text)}return r}function N(n,t){var r=n.imports,a=n.moduleAugmentations;if(t<r.length)return r[t];for(var i=r.length,o=0,s=a;o<s.length;o++){var c=s[o];if(10===c.kind){if(t===i)return c;i++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=d,e.formatLocation=f,e.formatDiagnosticsWithColorAndContext=function(n,t){for(var r="",a=0,o=n;a<o.length;a++){var s=o[a];if(s.file)r+=f(y=s.file,h=s.start,t),r+=" - ";if(r+=d(e.diagnosticCategoryName(s),u(s.category)),r+=d(" TS".concat(s.code,": "),i.Grey),r+=m(s.messageText,t.getNewLine()),s.file&&(r+=t.getNewLine(),r+=p(s.file,s.start,s.length,"",u(s.category),t)),s.relatedInformation){r+=t.getNewLine();for(var c=0,_=s.relatedInformation;c<_.length;c++){var g=_[c],y=g.file,h=g.start,v=g.length,b=g.messageText;y&&(r+=t.getNewLine(),r+=" "+f(y,h,t),r+=p(y,h,v,l,i.Cyan,t)),r+=t.getNewLine(),r+=l+m(b,t.getNewLine())}}r+=t.getNewLine()}return r},e.flattenDiagnosticMessageText=m,e.loadWithLocalCache=_,e.getModeForResolutionAtIndex=g,e.getModeForUsageLocation=y,e.loadWithModeAwareCache=h,e.forEachResolvedProjectReference=function(e,n){return v(void 0,e,(function(e,t){return e&&n(e,t)}))},e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=b,e.isReferenceFileLocation=E,e.getReferencedFileLocation=T,e.isProgramUptoDate=function(n,t,r,a,i,o,s,c,l){if(!n||(null===s||void 0===s?void 0:s()))return!1;if(!e.arrayIsEqualTo(n.getRootFileNames(),t))return!1;var u;if(!e.arrayIsEqualTo(n.getProjectReferences(),l,(function(t,r,a){return e.projectReferenceIsEqualTo(t,r)&&p(n.getResolvedProjectReferences()[a],t)})))return!1;if(n.getSourceFiles().some((function(e){return!function(e){return e.version===a(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(n.getMissingFilePaths().some(i))return!1;var d=n.getCompilerOptions();return!!e.compareDataObjects(d,r)&&(!d.configFile||!r.configFile||d.configFile.text===r.configFile.text);function p(n,t){if(n){if(e.contains(u,n))return!0;var r=A(t),a=c(r);return!!a&&(n.commandLine.options.configFile===a.options.configFile&&(!!e.arrayIsEqualTo(n.commandLine.fileNames,a.fileNames)&&((u||(u=[])).push(n),!e.forEach(n.references,(function(e,t){return!p(e,n.commandLine.projectReferences[t])})))))}var i=A(t);return!c(i)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?pa(pa([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors},e.getImpliedNodeFormatForFile=S,e.createProgram=function(r,a,i,o,s){var c,l,u,d,p,f,m,y,N,R,O,w,M,P=e.isArray(r)?function(e,n,t,r,a){return{rootNames:e,options:n,host:t,oldProgram:r,configFileParsingDiagnostics:a}}(r,a,i,o,s):r,F=P.rootNames,G=P.options,B=P.configFileParsingDiagnostics,U=P.projectReferences,V=P.oldProgram,j=new e.Map,K=e.createMultiMap(),H={},W={},z=new e.Map,J="number"===typeof G.maxNodeModuleJsDepth?G.maxNodeModuleJsDepth:0,q=0,X=new e.Map,Y=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),e.performance.mark("beforeProgram");var Q,Z,$,ee,ne,te=P.host||t(G),re=D(te),ae=G.noLib,ie=e.memoize((function(){return te.getDefaultLibFileName(G)})),oe=te.getDefaultLibLocation?te.getDefaultLibLocation():e.getDirectoryPath(ie()),se=e.createDiagnosticCollection(),ce=te.getCurrentDirectory(),le=e.getSupportedExtensions(G),ue=e.getSupportedExtensionsWithJsonIfResolveJsonModule(G,le),de=new e.Map,pe=te.hasInvalidatedResolution||e.returnFalse;if(te.resolveModuleNames)ee=function(n,t,r,a,i){return te.resolveModuleNames(e.Debug.checkEachDefined(n),r,a,i,G,t).map((function(n){if(!n||void 0!==n.extension)return n;var t=e.clone(n);return t.extension=e.extensionFromPath(n.resolvedFileName),t}))},Z=null===(c=te.getModuleResolutionCache)||void 0===c?void 0:c.call(te);else{Z=e.createModuleResolutionCache(ce,Wn,G);var fe=function(n,t,r,a){return e.resolveModuleName(n,r,G,te,Z,a,t).resolvedModule};ee=function(n,t,r,a,i){return h(e.Debug.checkEachDefined(n),t,r,i,fe)}}if(te.resolveTypeReferenceDirectives)ne=function(n,t,r){return te.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(n),t,r,G)};else{$=e.createTypeReferenceDirectiveResolutionCache(ce,Wn,void 0,null===Z||void 0===Z?void 0:Z.getPackageJsonInfoCache());var me=function(n,t,r){return e.resolveTypeReferenceDirective(n,t,G,te,r,$).resolvedTypeReferenceDirective};ne=function(n,t,r){return _(e.Debug.checkEachDefined(n),t,r,me)}}var _e,ge,ye,he,ve,be=new e.Map,Ee=new e.Map,Te=e.createMultiMap(),Se=!1,xe=new e.Map,Le=te.useCaseSensitiveFileNames()?new e.Map:void 0,De=!!(null===(l=te.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(te))&&!G.disableSourceOfProjectReferenceRedirect,Ce=function(n){var t,r,a=n.compilerHost.fileExists,i=n.compilerHost.directoryExists,o=n.compilerHost.getDirectories,s=n.compilerHost.realpath;if(!n.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:l};n.compilerHost.fileExists=l,i&&(r=n.compilerHost.directoryExists=function(r){return i.call(n.compilerHost,r)?(p(r),!0):!!n.getResolvedProjectReferences()&&(t||(t=new e.Set,n.forEachResolvedProjectReference((function(r){var a=e.outFile(r.commandLine.options);if(a)t.add(e.getDirectoryPath(n.toPath(a)));else{var i=r.commandLine.options.declarationDir||r.commandLine.options.outDir;i&&t.add(n.toPath(i))}}))),f(r,!1))});o&&(n.compilerHost.getDirectories=function(e){return!n.getResolvedProjectReferences()||i&&i.call(n.compilerHost,e)?o.call(n.compilerHost,e):[]});s&&(n.compilerHost.realpath=function(e){var t;return(null===(t=n.getSymlinkCache().getSymlinkedFiles())||void 0===t?void 0:t.get(n.toPath(e)))||s.call(n.compilerHost,e)});return{onProgramCreateComplete:c,fileExists:l,directoryExists:r};function c(){n.compilerHost.fileExists=a,n.compilerHost.directoryExists=i,n.compilerHost.getDirectories=o}function l(t){return!!a.call(n.compilerHost,t)||!!n.getResolvedProjectReferences()&&(!!e.isDeclarationFileName(t)&&f(t,!0))}function u(t){var r=n.getSourceOfProjectReferenceRedirect(n.toPath(t));return void 0!==r?!e.isString(r)||a.call(n.compilerHost,r):void 0}function d(r){var a=n.toPath(r),i="".concat(a).concat(e.directorySeparator);return e.forEachKey(t,(function(n){return a===n||e.startsWith(n,i)||e.startsWith(a,"".concat(n,"/"))}))}function p(t){var r;if(n.getResolvedProjectReferences()&&!e.containsIgnoredPath(t)&&s&&e.stringContains(t,e.nodeModulesPathPart)){var a=n.getSymlinkCache(),i=e.ensureTrailingDirectorySeparator(n.toPath(t));if(!(null===(r=a.getSymlinkedDirectories())||void 0===r?void 0:r.has(i))){var o,c=e.normalizePath(s.call(n.compilerHost,t));c!==t&&(o=e.ensureTrailingDirectorySeparator(n.toPath(c)))!==i?a.setSymlinkedDirectory(t,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):a.setSymlinkedDirectory(i,!1)}}}function f(t,r){var a,i=r?function(e){return u(e)}:function(e){return d(e)},o=i(t);if(void 0!==o)return o;var s=n.getSymlinkCache(),c=s.getSymlinkedDirectories();if(!c)return!1;var l=n.toPath(t);return!!e.stringContains(l,e.nodeModulesPathPart)&&(!(!r||!(null===(a=s.getSymlinkedFiles())||void 0===a?void 0:a.has(l)))||(e.firstDefinedIterator(c.entries(),(function(a){var o=a[0],c=a[1];if(c&&e.startsWith(l,o)){var u=i(l.replace(o,c.realPath));if(r&&u){var d=e.getNormalizedAbsolutePath(t,n.compilerHost.getCurrentDirectory());s.setSymlinkedFile(l,"".concat(c.real).concat(d.replace(new RegExp(o,"i"),"")))}return u}}))||!1))}}({compilerHost:te,getSymlinkCache:ut,useSourceOfProjectReferenceRedirect:De,toPath:Xe,getResolvedProjectReferences:$e,getSourceOfProjectReferenceRedirect:Fn,forEachResolvedProjectReference:Pn}),Ae=Ce.onProgramCreateComplete,Ie=Ce.fileExists,ke=Ce.directoryExists,Ne=te.readFile.bind(te);null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!V});var Re,Oe=function(n,t){return!!n&&e.optionsHaveChanges(n.getCompilerOptions(),t,e.sourceFileAffectingCompilerOptions)}(V,G);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Re=function(){var n;if(!V)return 0;var t=V.getCompilerOptions();if(e.changesAffectModuleResolution(t,G))return 0;var r=V.getRootFileNames();if(!e.arrayIsEqualTo(r,F))return 0;if(v(V.getProjectReferences(),V.getResolvedProjectReferences(),(function(n,t,r){var a=Jn((t?t.commandLine.projectReferences:U)[r]);return n?!a||a.sourceFile!==n.sourceFile||!e.arrayIsEqualTo(n.commandLine.fileNames,a.commandLine.fileNames):void 0!==a}),(function(n,t){var r=t?Bn(t.sourceFile.path).commandLine.projectReferences:U;return!e.arrayIsEqualTo(n,r,e.projectReferenceIsEqualTo)})))return 0;U&&(ge=U.map(Jn));var a=[],i=[];if(Re=2,V.getMissingFilePaths().some((function(e){return te.fileExists(e)})))return 0;var o,s=V.getSourceFiles();c=o||(o={}),c[c.Exists=0]="Exists",c[c.Modified=1]="Modified";var c;for(var l=new e.Map,u=0,d=s;u<d.length;u++){var p=d[u];if(!(B=te.getSourceFileByPath?te.getSourceFileByPath(p.fileName,p.resolvedPath,e.getEmitScriptTarget(G),void 0,Oe):te.getSourceFile(p.fileName,e.getEmitScriptTarget(G),void 0,Oe)))return 0;e.Debug.assert(!B.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var f=void 0;if(p.redirectInfo){if(B!==p.redirectInfo.unredirected)return 0;f=!1,B=p}else if(V.redirectTargetsMap.has(p.path)){if(B!==p)return 0;f=!1}else f=B!==p;B.path=p.path,B.originalFileName=p.originalFileName,B.resolvedPath=p.resolvedPath,B.fileName=p.fileName;var _=V.sourceFileToPackageName.get(p.path);if(void 0!==_){var g=l.get(_),y=f?1:0;if(void 0!==g&&1===y||1===g)return 0;l.set(_,y)}f?(e.arrayIsEqualTo(p.libReferenceDirectives,B.libReferenceDirectives,En)||(Re=1),p.hasNoDefaultLib!==B.hasNoDefaultLib&&(Re=1),e.arrayIsEqualTo(p.referencedFiles,B.referencedFiles,En)||(Re=1),xn(B),e.arrayIsEqualTo(p.imports,B.imports,Tn)||(Re=1),e.arrayIsEqualTo(p.moduleAugmentations,B.moduleAugmentations,Tn)||(Re=1),(3145728&p.flags)!==(3145728&B.flags)&&(Re=1),e.arrayIsEqualTo(p.typeReferenceDirectives,B.typeReferenceDirectives,En)||(Re=1),i.push({oldFile:p,newFile:B})):pe(p.path)&&(Re=1,i.push({oldFile:p,newFile:B})),a.push(B)}if(2!==Re)return Re;for(var h=i.map((function(e){return e.oldFile})),b=0,E=s;b<E.length;b++){var T=E[b];if(!e.contains(h,T))for(var S=0,x=T.ambientModuleNames;S<x.length;S++){var L=x[S];j.set(L,T.fileName)}}for(var D=0,C=i;D<C.length;D++){var A=C[D],I=(p=A.oldFile,k(B=A.newFile)),N=Qe(I,B);e.hasChangesInResolutions(I,N,p.resolvedModules,p,e.moduleResolutionIsEqualTo)?(Re=1,B.resolvedModules=e.zipToModeAwareCache(B,I,N)):B.resolvedModules=p.resolvedModules;var R=e.map(B.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)})),O=We(R,B);e.hasChangesInResolutions(R,O,p.resolvedTypeReferenceDirectiveNames,p,e.typeDirectiveIsEqualTo)?(Re=1,B.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(B,R,O)):B.resolvedTypeReferenceDirectiveNames=p.resolvedTypeReferenceDirectiveNames}if(2!==Re)return Re;if(e.changesAffectingProgramStructure(t,G)||(null===(n=te.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(te)))return 1;_e=V.getMissingFilePaths(),e.Debug.assert(a.length===V.getSourceFiles().length);for(var w=0,P=a;w<P.length;w++){var B=P[w];xe.set(B.path,B)}return V.getFilesByNameMap().forEach((function(e,n){e?e.path!==n?xe.set(n,xe.get(e.path)):V.isSourceFileFromExternalLibrary(e)&&Y.set(e.path,!0):xe.set(n,e)})),m=a,K=V.getFileIncludeReasons(),M=V.getFileProcessingDiagnostics(),z=V.getResolvedTypeReferenceDirectives(),Ee=V.sourceFileToPackageName,Te=V.redirectTargetsMap,Se=V.usesUriStyleNodeCoreModules,2}(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Re){p=[],f=[],U&&(ge||(ge=U.map(Jn)),F.length&&(null===ge||void 0===ge||ge.forEach((function(n,t){if(n){var r=e.outFile(n.commandLine.options);if(De){if(r||e.getEmitModuleKind(n.commandLine.options)===e.ModuleKind.None)for(var a=0,i=n.commandLine.fileNames;a<i.length;a++){Cn(l=i[a],{kind:e.FileIncludeKind.SourceFromProjectReference,index:t})}}else if(r)Cn(e.changeExtension(r,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:t});else if(e.getEmitModuleKind(n.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(n.commandLine,!te.useCaseSensitiveFileNames())})),s=0,c=n.commandLine.fileNames;s<c.length;s++){var l=c[s];e.fileExtensionIs(l,".d.ts")||e.fileExtensionIs(l,".json")||Cn(e.getOutputDeclarationFileName(l,n.commandLine,!te.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:t})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:F.length}),e.forEach(F,(function(n,t){return bn(n,!1,!1,{kind:e.FileIncludeKind.RootFile,index:t})})),null===e.tracing||void 0===e.tracing||e.tracing.pop();var we=F.length?e.getAutomaticTypeDirectiveNames(G,te):e.emptyArray;if(we.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:we.length});for(var Me=G.configFilePath?e.getDirectoryPath(G.configFilePath):te.getCurrentDirectory(),Pe=We(we,e.combinePaths(Me,e.inferredTypesContainingFile)),Fe=0;Fe<we.length;Fe++)jn(we[Fe],Pe[Fe],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:we[Fe],packageId:null===(u=Pe[Fe])||void 0===u?void 0:u.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(F.length&&!ae){var Ge=ie();!G.lib&&Ge?bn(Ge,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(G.lib,(function(n,t){bn(Kn(n),!0,!1,{kind:e.FileIncludeKind.LibFile,index:t})}))}_e=e.arrayFrom(e.mapDefinedIterator(xe.entries(),(function(e){var n=e[0];return void 0===e[1]?n:void 0}))),m=e.stableSort(p,(function(n,t){return e.compareValues(qe(n),qe(t))})).concat(f),p=void 0,f=void 0}if(e.Debug.assert(!!_e),V&&te.onReleaseOldSourceFile){for(var Be=0,Ue=V.getSourceFiles();Be<Ue.length;Be++){var Ve=Ue[Be],je=sn(Ve.resolvedPath);(Oe||!je||Ve.resolvedPath===Ve.path&&je.resolvedPath!==Ve.path)&&te.onReleaseOldSourceFile(Ve,V.getCompilerOptions(),!!sn(Ve.path))}te.getParsedCommandLine||V.forEachResolvedProjectReference((function(e){Bn(e.sourceFile.path)||te.onReleaseOldSourceFile(e.sourceFile,V.getCompilerOptions(),!1)}))}V&&te.onReleaseParsedCommandLine&&v(V.getProjectReferences(),V.getResolvedProjectReferences(),(function(e,n,t){var r=A((null===n||void 0===n?void 0:n.commandLine.projectReferences[t])||V.getProjectReferences()[t]);(null===ye||void 0===ye?void 0:ye.has(Xe(r)))||te.onReleaseParsedCommandLine(r,e,V.getCompilerOptions())})),$=void 0,V=void 0;var Ke={getRootFileNames:function(){return F},getSourceFile:on,getSourceFileByPath:sn,getSourceFiles:function(){return m},getMissingFilePaths:function(){return _e},getModuleResolutionCache:function(){return Z},getFilesByNameMap:function(){return xe},getCompilerOptions:function(){return G},getSyntacticDiagnostics:function(e,n){return cn(e,un,n)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(se.getGlobalDiagnostics(),function(){if(!G.configFile)return e.emptyArray;var n=se.getDiagnostics(G.configFile.fileName);return Pn((function(t){n=e.concatenate(n,se.getDiagnostics(t.sourceFile.fileName))})),n}()))},getGlobalDiagnostics:function(){return F.length?e.sortAndDeduplicateDiagnostics(tn().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,n){return cn(e,pn,n)},getCachedSemanticDiagnostics:function(e){var n;return e?null===(n=H.perFile)||void 0===n?void 0:n.get(e.path):H.allDiagnostics},getSuggestionDiagnostics:function(e,n){return dn((function(){return tn().getSuggestionDiagnostics(e,n)}))},getDeclarationDiagnostics:function(n,t){var r=Ke.getCompilerOptions();return!n||e.outFile(r)?gn(n,t):cn(n,vn,t)},getBindAndCheckDiagnostics:function(e,n){return fn(e,n)},getProgramDiagnostics:ln,getTypeChecker:rn,getClassifiableNames:function(){var n;if(!w){rn(),w=new e.Set;for(var t=0,r=m;t<r.length;t++){var a=r[t];null===(n=a.classifiableNames)||void 0===n||n.forEach((function(e){return w.add(e)}))}}return w},getDiagnosticsProducingTypeChecker:tn,getCommonSourceDirectory:Ye,emit:function(n,t,r,a,i,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null===n||void 0===n?void 0:n.path},!0);var s=dn((function(){return function(n,t,r,a,i,o,s){if(!s){var c=x(n,t,r,a);if(c)return c}var l=tn().getEmitResolver(e.outFile(G)?void 0:t,a);e.performance.mark("beforeEmit");var u=e.emitFiles(l,Ze(r),t,e.getTransformers(G,o,i),i,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u}(Ke,n,t,r,a,i,o)}));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:function(){return ce},getNodeCount:function(){return tn().getNodeCount()},getIdentifierCount:function(){return tn().getIdentifierCount()},getSymbolCount:function(){return tn().getSymbolCount()},getTypeCount:function(){return tn().getTypeCount()},getInstantiationCount:function(){return tn().getInstantiationCount()},getRelationCacheSizes:function(){return tn().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return M},getResolvedTypeReferenceDirectives:function(){return z},isSourceFileFromExternalLibrary:nn,isSourceFileDefaultLibrary:function(n){if(n.hasNoDefaultLib)return!0;if(!G.noLib)return!1;var t=te.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return G.lib?e.some(G.lib,(function(e){return t(n.fileName,Kn(e))})):t(n.fileName,ie())},dropDiagnosticsProducingTypeChecker:function(){R=void 0},getSourceFileFromReference:function(e,t){return Ln(n(t.fileName,e.fileName),on)},getLibFileFromReference:function(n){var t=e.toFileNameLowerCase(n.fileName),r=e.libMap.get(t);if(r)return on(Kn(r))},sourceFileToPackageName:Ee,redirectTargetsMap:Te,usesUriStyleNodeCoreModules:Se,isEmittedFile:function(n){if(G.noEmit)return!1;var t=Xe(n);if(sn(t))return!1;var r=e.outFile(G);if(r)return lt(t,r)||lt(t,e.removeFileExtension(r)+".d.ts");if(G.declarationDir&&e.containsPath(G.declarationDir,t,ce,!te.useCaseSensitiveFileNames()))return!0;if(G.outDir)return e.containsPath(G.outDir,t,ce,!te.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(t,e.supportedJSExtensionsFlat)||e.fileExtensionIs(t,".d.ts")){var a=e.removeFileExtension(t);return!!sn(a+".ts")||!!sn(a+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return B||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(n,t,r){return Z&&e.resolveModuleNameFromCache(n,t,Z,r)},getProjectReferences:function(){return U},getResolvedProjectReferences:$e,getProjectReferenceRedirect:Rn,getResolvedProjectReferenceToRedirect:Mn,getResolvedProjectReferenceByPath:Bn,forEachResolvedProjectReference:Pn,isSourceOfProjectReferenceRedirect:Gn,emitBuildInfo:function(n){e.Debug.assert(!e.outFile(G)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var t=e.emitFiles(e.notImplementedResolver,Ze(n),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t},fileExists:Ie,readFile:Ne,directoryExists:ke,getSymlinkCache:ut,realpath:null===(d=te.realpath)||void 0===d?void 0:d.bind(te),useCaseSensitiveFileNames:function(){return te.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return K},structureIsReused:Re};return Ae(),null===M||void 0===M||M.forEach((function(n){switch(n.kind){case 1:return se.add(qn(n.file&&sn(n.file),n.fileProcessingReason,n.diagnostic,n.args||e.emptyArray));case 0:var t=T(sn,n.reason),r=t.file,a=t.pos,i=t.end;return se.add(e.createFileDiagnostic.apply(void 0,pa([r,e.Debug.checkDefined(a),e.Debug.checkDefined(i)-a,n.diagnostic],n.args||e.emptyArray,!1)));default:e.Debug.assertNever(n)}})),function(){e.stringContains(e.version,"-dev")||(e.getEmitModuleKind(G)===e.ModuleKind.Node12?rt("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(G)===e.ModuleKind.NodeNext?rt("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(G)===e.ModuleResolutionKind.Node12?rt("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(G)===e.ModuleResolutionKind.NodeNext&&rt("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext"));G.strictPropertyInitialization&&!e.getStrictOptionValue(G,"strictNullChecks")&&tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");G.exactOptionalPropertyTypes&&!e.getStrictOptionValue(G,"strictNullChecks")&&tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");G.isolatedModules&&(G.out&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),G.outFile&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"));G.inlineSourceMap&&(G.sourceMap&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),G.mapRoot&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));G.composite&&(!1===G.declaration&&tt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===G.incremental&&tt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var n=e.outFile(G);G.tsBuildInfoFile?e.isIncrementalCompilation(G)||tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!G.incremental||n||G.configFilePath||se.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){var n=G.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(G);v(U,ge,(function(t,r,a){var i=(r?r.commandLine.projectReferences:U)[a],o=r&&r.sourceFile;if(t){var s=t.commandLine.options;if(!s.composite||s.noEmit)(r?r.commandLine.fileNames:F).length&&(s.composite||at(o,a,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),s.noEmit&&at(o,a,e.Diagnostics.Referenced_project_0_may_not_disable_emit,i.path));if(i.prepend){var c=e.outFile(s);c?te.fileExists(c)||at(o,a,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,i.path):at(o,a,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!r&&n&&n===e.getTsBuildInfoEmitOutputFilePath(s)&&(at(o,a,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,n,i.path),de.set(Xe(n),!0))}else at(o,a,e.Diagnostics.File_0_not_found,i.path)}))}(),G.composite)for(var t=new e.Set(F.map(Xe)),r=0,a=m;r<a.length;r++){var i=a[r];e.sourceFileMayBeEmitted(i,Ke)&&!t.has(i.path)&&Yn(i,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[i.fileName,G.configFilePath||""])}if(G.paths)for(var o in G.paths)if(e.hasProperty(G.paths,o))if(e.hasZeroOrOneAsteriskCharacter(o)||Zn(!0,o,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,o),e.isArray(G.paths[o])){var s=G.paths[o].length;0===s&&Zn(!1,o,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o);for(var c=0;c<s;c++){var l=G.paths[o][c],u=typeof l;"string"===u?(e.hasZeroOrOneAsteriskCharacter(l)||Qn(o,c,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,l,o),G.baseUrl||e.pathIsRelative(l)||e.pathIsAbsolute(l)||Qn(o,c,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Qn(o,c,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,l,o,u)}}else Zn(!1,o,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,o);G.sourceMap||G.inlineSourceMap||(G.inlineSources&&tt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),G.sourceRoot&&tt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));G.out&&G.outFile&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile");!G.mapRoot||G.sourceMap||G.declarationMap||tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");G.declarationDir&&(e.getEmitDeclarations(G)||tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),n&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",G.out?"out":"outFile"));G.declarationMap&&!e.getEmitDeclarations(G)&&tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");G.lib&&G.noLib&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib");G.noImplicitUseStrict&&e.getStrictOptionValue(G,"alwaysStrict")&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var d=e.getEmitScriptTarget(G),p=e.find(m,(function(n){return e.isExternalModule(n)&&!n.isDeclarationFile}));if(G.isolatedModules){G.module===e.ModuleKind.None&&d<2&&tt(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===G.preserveConstEnums&&tt(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var f=e.find(m,(function(n){return!e.isExternalModule(n)&&!e.isSourceFileJS(n)&&!n.isDeclarationFile&&6!==n.scriptKind}));if(f){var _=e.getErrorSpanForNode(f,f);se.add(e.createFileDiagnostic(f,_.start,_.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(f.fileName)))}}else if(p&&d<2&&G.module===e.ModuleKind.None){_=e.getErrorSpanForNode(p,p.externalModuleIndicator);se.add(e.createFileDiagnostic(p,_.start,_.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(n&&!G.emitDeclarationOnly)if(G.module&&G.module!==e.ModuleKind.AMD&&G.module!==e.ModuleKind.System)tt(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(void 0===G.module&&p){_=e.getErrorSpanForNode(p,p.externalModuleIndicator);se.add(e.createFileDiagnostic(p,_.start,_.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}G.resolveJsonModule&&(e.getEmitModuleResolutionKind(G)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(G)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(G)!==e.ModuleResolutionKind.NodeNext?tt(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(G)||tt(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){var g=Ye();G.outDir&&""===g&&m.some((function(n){return e.getRootLength(n.fileName)>1}))&&tt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&0===d&&tt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");G.checkJs&&!e.getAllowJSCompilerOption(G)&&se.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));G.emitDeclarationOnly&&(e.getEmitDeclarations(G)||tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));G.emitDecoratorMetadata&&!G.experimentalDecorators&&tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");G.jsxFactory?(G.reactNamespace&&tt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==G.jsx&&5!==G.jsx||tt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+G.jsx)),e.parseIsolatedEntityName(G.jsxFactory,d)||rt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!e.isIdentifierText(G.reactNamespace,d)&&rt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace);G.jsxFragmentFactory&&(G.jsxFactory||tt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==G.jsx&&5!==G.jsx||tt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+G.jsx)),e.parseIsolatedEntityName(G.jsxFragmentFactory,d)||rt("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory));G.reactNamespace&&(4!==G.jsx&&5!==G.jsx||tt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+G.jsx)));G.jsxImportSource&&2===G.jsx&&tt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+G.jsx));G.preserveValueImports&&e.getEmitModuleKind(G)<e.ModuleKind.ES2015&&rt("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later);if(!G.noEmit&&!G.suppressOutputPathCheck){var y=Ze(),h=new e.Set;e.forEachEmittedFile(y,(function(e){G.emitDeclarationOnly||b(e.jsFilePath,h),b(e.declarationFilePath,h)}))}function b(n,t){if(n){var r=Xe(n);if(xe.has(r)){var a=void 0;G.configFilePath||(a=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),a=e.chainDiagnosticMessages(a,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,n),ct(n,e.createCompilerDiagnosticFromMessageChain(a))}var i=te.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);t.has(i)?ct(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.add(i)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),Ke;function He(n,t,r){if(!n.length)return e.emptyArray;var a=e.getNormalizedAbsolutePath(t.originalFileName,ce),i=ze(t);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:a}),e.performance.mark("beforeResolveModule");var o=ee(n,t,a,r,i);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function We(n,t){if(!n.length)return[];var r=e.isString(t)?t:e.getNormalizedAbsolutePath(t.originalFileName,ce),a=e.isString(t)?void 0:ze(t);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:r}),e.performance.mark("beforeResolveTypeReference");var i=ne(n,r,a);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),i}function ze(n){var t=Mn(n.originalFileName);if(t||!e.fileExtensionIsOneOf(n.originalFileName,[".d.ts",".d.cts",".d.mts"]))return t;var r=Je(n.path);if(r)return r;if(te.realpath&&G.preserveSymlinks&&e.stringContains(n.originalFileName,e.nodeModulesPathPart)){var a=Xe(te.realpath(n.originalFileName));return a===n.path?void 0:Je(a)}}function Je(n){var t=Fn(n);return e.isString(t)?Mn(t):t?Pn((function(t){var r=e.outFile(t.commandLine.options);if(r)return Xe(r)===n?t:void 0})):void 0}function qe(n){if(e.containsPath(oe,n.fileName,!1)){var t=e.getBaseFileName(n.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;var r=e.removeSuffix(e.removePrefix(t,"lib."),".d.ts"),a=e.libs.indexOf(r);if(-1!==a)return a+1}return e.libs.length+2}function Xe(n){return e.toPath(n,ce,Wn)}function Ye(){if(void 0===N){var n=e.filter(m,(function(n){return e.sourceFileMayBeEmitted(n,Ke)}));N=e.getCommonSourceDirectory(G,(function(){return e.mapDefined(n,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),ce,Wn,(function(t){return function(n,t){for(var r=!0,a=te.getCanonicalFileName(e.getNormalizedAbsolutePath(t,ce)),i=0,o=n;i<o.length;i++){var s=o[i];if(!s.isDeclarationFile)0!==te.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,ce)).indexOf(a)&&(Yn(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,t]),r=!1)}return r}(n,t)}))}return N}function Qe(n,t){if(0===Re&&!t.ambientModuleNames.length)return He(n,t,void 0);var r,a,i,o=V&&V.getSourceFile(t.fileName);if(o!==t&&t.resolvedModules){for(var s=[],c=0,l=0,u=n;l<u.length;l++){var d=u[l],p=t.resolvedModules.get(d,g(t,c));c++,s.push(p)}return s}var f={};for(c=0;c<n.length;c++){d=n[c];if(t===o&&!pe(o.path)){var m=e.getResolvedModule(o,d,g(o,c));if(m){e.isTraceEnabled(G,te)&&e.trace(te,m.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,d,e.getNormalizedAbsolutePath(t.originalFileName,ce),m.resolvedFileName,m.packageId&&e.packageIdToString(m.packageId)),(a||(a=new Array(n.length)))[c]=m,(i||(i=[])).push(d);continue}}var _=!1;e.contains(t.ambientModuleNames,d)?(_=!0,e.isTraceEnabled(G,te)&&e.trace(te,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,e.getNormalizedAbsolutePath(t.originalFileName,ce))):_=v(d,c),_?(a||(a=new Array(n.length)))[c]=f:(r||(r=[])).push(d)}var y=r&&r.length?He(r,t,i):e.emptyArray;if(!a)return e.Debug.assert(y.length===n.length),y;var h=0;for(c=0;c<a.length;c++)a[c]?a[c]===f&&(a[c]=void 0):(a[c]=y[h],h++);return e.Debug.assert(h===y.length),a;function v(n,t){if(t>=e.length(null===o||void 0===o?void 0:o.imports)+e.length(null===o||void 0===o?void 0:o.moduleAugmentations))return!1;var r=e.getResolvedModule(o,n,o&&g(o,t)),a=r&&V.getSourceFile(r.resolvedFileName);if(r&&a)return!1;var i=j.get(n);return!!i&&(e.isTraceEnabled(G,te)&&e.trace(te,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,n,i),!0)}}function Ze(n){return{getPrependNodes:en,getCanonicalFileName:Wn,getCommonSourceDirectory:Ke.getCommonSourceDirectory,getCompilerOptions:Ke.getCompilerOptions,getCurrentDirectory:function(){return ce},getNewLine:function(){return te.getNewLine()},getSourceFile:Ke.getSourceFile,getSourceFileByPath:Ke.getSourceFileByPath,getSourceFiles:Ke.getSourceFiles,getLibFileFromReference:Ke.getLibFileFromReference,isSourceFileFromExternalLibrary:nn,getResolvedProjectReferenceToRedirect:Mn,getProjectReferenceRedirect:Rn,isSourceOfProjectReferenceRedirect:Gn,getSymlinkCache:ut,writeFile:n||function(e,n,t,r,a){return te.writeFile(e,n,t,r,a)},isEmitBlocked:an,readFile:function(e){return te.readFile(e)},fileExists:function(n){var t=Xe(n);return!!sn(t)||!e.contains(_e,t)&&te.fileExists(n)},useCaseSensitiveFileNames:function(){return te.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Ke.getProgramBuildInfo&&Ke.getProgramBuildInfo()},getSourceFileFromReference:function(e,n){return Ke.getSourceFileFromReference(e,n)},redirectTargetsMap:Te,getFileIncludeReasons:Ke.getFileIncludeReasons}}function $e(){return ge}function en(){return C(U,(function(e,n){var t;return null===(t=ge[n])||void 0===t?void 0:t.commandLine}),(function(e){var n=Xe(e),t=sn(n);return t?t.text:xe.has(n)?void 0:te.readFile(n)}))}function nn(e){return!!Y.get(e.path)}function tn(){return R||(R=e.createTypeChecker(Ke,!0))}function rn(){return O||(O=e.createTypeChecker(Ke,!1))}function an(e){return de.has(Xe(e))}function on(e){return sn(Xe(e))}function sn(e){return xe.get(e)||void 0}function cn(n,t,r){return n?t(n,r):e.sortAndDeduplicateDiagnostics(e.flatMap(Ke.getSourceFiles(),(function(e){return r&&r.throwIfCancellationRequested(),t(e,r)})))}function ln(n){var t;if(e.skipTypeChecking(n,G,Ke))return e.emptyArray;var r=se.getDiagnostics(n.fileName);return(null===(t=n.commentDirectives)||void 0===t?void 0:t.length)?_n(n,n.commentDirectives,r).diagnostics:r}function un(n){return e.isSourceFileJS(n)?(n.additionalSyntacticDiagnostics||(n.additionalSyntacticDiagnostics=function(n){return dn((function(){var t=[];return r(n,n),e.forEachChildRecursively(n,r,a),t;function r(n,r){switch(r.kind){case 163:case 166:case 168:if(r.questionToken===n)return t.push(s(n,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(r.type===n)return t.push(s(n,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(n.kind){case 266:if(n.isTypeOnly)return t.push(s(r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(n.isTypeOnly)return t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return t.push(s(n,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(n.isExportEquals)return t.push(s(n,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:if(117===n.token)return t.push(s(n,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var a=e.tokenToString(118);return e.Debug.assertIsDefined(a),t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 260:var i=16&n.flags?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(i),t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 258:return t.push(s(n,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var o=e.Debug.checkDefined(e.tokenToString(92));return t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 229:return t.push(s(n,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return t.push(s(n.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function a(n,r){switch(r.decorators!==n||G.experimentalDecorators||t.push(s(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),r.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(n===r.typeParameters)return t.push(o(n,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(n===r.modifiers)return i(r.modifiers,236===r.kind),"skip";break;case 166:if(n===r.modifiers){for(var a=0,c=n;a<c.length;a++){var l=c[a];124!==l.kind&&t.push(s(l,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(l.kind)))}return"skip"}break;case 163:if(n===r.modifiers)return t.push(o(n,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(n===r.typeArguments)return t.push(o(n,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function i(n,r){for(var a=0,i=n;a<i.length;a++){var o=i[a];switch(o.kind){case 85:if(r)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:t.push(s(o,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(o.kind)))}}}function o(t,r,a,i,o){var s=t.pos;return e.createFileDiagnostic(n,s,t.end-s,r,a,i,o)}function s(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(n,t,r,a,i,o)}}))}(n)),e.concatenate(n.additionalSyntacticDiagnostics,n.parseDiagnostics)):n.parseDiagnostics}function dn(n){try{return n()}catch(Oa){throw Oa instanceof e.OperationCanceledException&&(O=void 0,R=void 0),Oa}}function pn(n,t){return e.concatenate(L(fn(n,t),G),ln(n))}function fn(e,n){return hn(e,n,H,mn)}function mn(n,t){return dn((function(){if(e.skipTypeChecking(n,G,Ke))return e.emptyArray;var r=tn();e.Debug.assert(!!n.bindDiagnostics);var a=e.isCheckJsEnabledForFile(n,G),i=!(!!n.checkJsDirective&&!1===n.checkJsDirective.enabled)&&(3===n.scriptKind||4===n.scriptKind||5===n.scriptKind||a||7===n.scriptKind),o=i?n.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(n,t):e.emptyArray;return function(n,t){for(var r,a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];var o=e.flatten(a);if(!t||!(null===(r=n.commentDirectives)||void 0===r?void 0:r.length))return o;for(var s=_n(n,n.commentDirectives,o),c=s.diagnostics,l=s.directives,u=0,d=l.getUnusedExpectations();u<d.length;u++){var p=d[u];c.push(e.createDiagnosticForRange(n,p.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(n,i,o,s,a?n.jsDocDiagnostics:void 0)}))}function _n(n,t,r){var a=e.createCommentDirectivesMap(n,t),i=r.filter((function(n){return-1===function(n,t){var r=n.file,a=n.start;if(!r)return-1;var i=e.getLineStarts(r),o=e.computeLineAndCharacterOfPosition(i,a).line-1;for(;o>=0;){if(t.markUsed(o))return o;var s=r.text.slice(i[o],i[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(n,a)}));return{diagnostics:i,directives:a}}function gn(e,n){return hn(e,n,W,yn)}function yn(n,t){return dn((function(){var r=tn().getEmitResolver(n,t);return e.getDeclarationDiagnostics(Ze(e.noop),r,n)||e.emptyArray}))}function hn(n,t,r,a){var i,o=n?null===(i=r.perFile)||void 0===i?void 0:i.get(n.path):r.allDiagnostics;if(o)return o;var s=a(n,t);return n?(r.perFile||(r.perFile=new e.Map)).set(n.path,s):r.allDiagnostics=s,s}function vn(e,n){return e.isDeclarationFile?[]:gn(e,n)}function bn(n,t,r,a){Dn(e.normalizePath(n),t,r,void 0,a)}function En(e,n){return e.fileName===n.fileName}function Tn(e,n){return 79===e.kind?79===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function Sn(n,t){var r=e.factory.createStringLiteral(n),a=e.factory.createImportDeclaration(void 0,void 0,void 0,r,void 0);return e.addEmitFlags(a,67108864),e.setParent(r,a),e.setParent(a,t),r.flags&=-9,a.flags&=-9,r}function xn(n){if(!n.imports){var t,r,a,i=e.isSourceFileJS(n),o=e.isExternalModule(n);if((G.isolatedModules||o)&&!n.isDeclarationFile){G.importHelpers&&(t=[Sn(e.externalHelpersModuleNameText,n)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(G,n),G);s&&(t||(t=[])).push(Sn(s,n))}for(var c=0,l=n.statements;c<l.length;c++){u(l[c],!1)}return(1048576&n.flags||i)&&function(n){var r=/import|require/g;for(;null!==r.exec(n.text);){var a=d(n,r.lastIndex);i&&e.isRequireCall(a,!0)||e.isImportCall(a)&&a.arguments.length>=1&&e.isStringLiteralLike(a.arguments[0])?(e.setParentRecursive(a,!1),t=e.append(t,a.arguments[0])):e.isLiteralImportTypeNode(a)&&(e.setParentRecursive(a,!1),t=e.append(t,a.argument.literal))}}(n),n.imports=t||e.emptyArray,n.moduleAugmentations=r||e.emptyArray,void(n.ambientModuleNames=a||e.emptyArray)}function u(i,s){if(e.isAnyImportOrReExport(i)){var c=e.getExternalModuleName(i);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(i,!1),t=e.append(t,c),Se||0!==q||n.isDeclarationFile||(Se=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(i)&&e.isAmbientModule(i)&&(s||e.hasSyntacticModifier(i,2)||n.isDeclarationFile)){i.name.parent=i;var l=e.getTextOfIdentifierOrLiteral(i.name);if(o||s&&!e.isExternalModuleNameRelative(l))(r||(r=[])).push(i.name);else if(!s){n.isDeclarationFile&&(a||(a=[])).push(l);var d=i.body;if(d)for(var p=0,f=d.statements;p<f.length;p++){u(f[p],!0)}}}}function d(n,t){for(var r=n,a=function(e){if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e};;){var o=i&&e.hasJSDocNodes(r)&&e.forEach(r.jsDoc,a)||e.forEachChild(r,a);if(!o)return r;r=o}}}function Ln(n,t,r,a){if(e.hasExtension(n)){var i=te.getCanonicalFileName(n);if(!G.allowNonTsExtensions&&!e.forEach(e.flatten(ue),(function(n){return e.fileExtensionIs(i,n)})))return void(r&&(e.hasJSFileExtension(i)?r(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,n):r(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,n,"'"+e.flatten(le).join("', '")+"'")));var o=t(n);if(r)if(o)b(a)&&i===te.getCanonicalFileName(sn(a.file).fileName)&&r(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Rn(n);s?r(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,n):r(e.Diagnostics.File_0_not_found,n)}return o}var c=G.allowNonTsExtensions&&t(n);if(c)return c;if(!r||!G.allowNonTsExtensions){var l=e.forEach(le[0],(function(e){return t(n+e)}));return r&&!l&&r(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,n,"'"+e.flatten(le).join("', '")+"'"),l}r(e.Diagnostics.File_0_not_found,n)}function Dn(e,n,t,r,a){Ln(e,(function(e){return In(e,n,t,a,r)}),(function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Xn(void 0,a,e,n)}),a)}function Cn(e,n){return Dn(e,!1,!1,void 0,n)}function An(n,t,r){!b(r)&&e.some(K.get(t.path),b)?Xn(t,r,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,n]):Xn(t,r,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[n,t.fileName])}function In(n,t,r,a,i){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:n,isDefaultLib:t||void 0,fileIncludeKind:e.FileIncludeKind[a.kind]});var o=function(n,t,r,a,i){var o=Xe(n);if(De){var s=Fn(o);if(!s&&te.realpath&&G.preserveSymlinks&&e.isDeclarationFileName(n)&&e.stringContains(n,e.nodeModulesPathPart)){var c=Xe(te.realpath(n));c!==o&&(s=Fn(c))}if(s){var l=e.isString(s)?In(s,t,r,a,i):void 0;return l&&Nn(l,o,void 0),l}}var u,d=n;if(xe.has(o)){var m=xe.get(o);if(kn(m||void 0,a),m&&G.forceConsistentCasingInFileNames){var _=m.fileName;Xe(_)!==Xe(n)&&(n=Rn(n)||n),e.getNormalizedAbsolutePathWithoutRoot(_,ce)!==e.getNormalizedAbsolutePathWithoutRoot(n,ce)&&An(n,m,a)}return m&&Y.get(m.path)&&0===q?(Y.set(m.path,!1),G.noResolve||(Un(m,t),Vn(m)),G.noLib||Hn(m),X.set(m.path,!1),zn(m)):m&&X.get(m.path)&&q<J&&(X.set(m.path,!1),zn(m)),m||void 0}if(b(a)&&!De){var g=On(n);if(g){if(e.outFile(g.commandLine.options))return;var y=wn(g,n);n=y,u=Xe(y)}}var h=te.getSourceFile(n,e.getEmitScriptTarget(G),(function(t){return Xn(void 0,a,e.Diagnostics.Cannot_read_file_0_Colon_1,[n,t])}),Oe);if(i){var v=e.packageIdToString(i),E=be.get(v);if(E){var T=function(e,n,t,r,a,i){var o=Object.create(e);return o.fileName=t,o.path=r,o.resolvedPath=a,o.originalFileName=i,o.redirectInfo={redirectTarget:e,unredirected:n},Y.set(r,q>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(E,h,n,o,Xe(n),d);return Te.add(E.path,n),Nn(T,o,u),kn(T,a),Ee.set(o,i.name),f.push(T),T}h&&(be.set(v,h),Ee.set(o,i.name))}if(Nn(h,o,u),h){if(Y.set(o,q>0),h.fileName=n,h.path=o,h.resolvedPath=Xe(n),h.originalFileName=d,h.impliedNodeFormat=S(h.resolvedPath,null===Z||void 0===Z?void 0:Z.getPackageJsonInfoCache(),te,G),kn(h,a),te.useCaseSensitiveFileNames()){var x=e.toFileNameLowerCase(o),L=Le.get(x);L?An(n,L,a):Le.set(x,h)}ae=ae||h.hasNoDefaultLib&&!r,G.noResolve||(Un(h,t),Vn(h)),G.noLib||Hn(h),zn(h),t?p.push(h):f.push(h)}return h}(n,t,r,a,i);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function kn(e,n){e&&K.add(e.path,n)}function Nn(e,n,t){t?(xe.set(t,e),xe.set(n,e||!1)):xe.set(n,e)}function Rn(e){var n=On(e);return n&&wn(n,e)}function On(n){if(ge&&ge.length&&!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json"))return Mn(n)}function wn(n,t){var r=e.outFile(n.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!te.useCaseSensitiveFileNames())}function Mn(n){void 0===he&&(he=new e.Map,Pn((function(e){Xe(G.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(n){return he.set(Xe(n),e.sourceFile.path)}))})));var t=he.get(Xe(n));return t&&Bn(t)}function Pn(n){return e.forEachResolvedProjectReference(ge,n)}function Fn(n){if(e.isDeclarationFileName(n))return void 0===ve&&(ve=new e.Map,Pn((function(n){var t=e.outFile(n.commandLine.options);if(t){var r=e.changeExtension(t,".d.ts");ve.set(Xe(r),!0)}else{var a=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(n.commandLine,!te.useCaseSensitiveFileNames())}));e.forEach(n.commandLine.fileNames,(function(t){if(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")){var r=e.getOutputDeclarationFileName(t,n.commandLine,!te.useCaseSensitiveFileNames(),a);ve.set(Xe(r),t)}}))}}))),ve.get(n)}function Gn(e){return De&&!!Mn(e)}function Bn(e){if(ye)return ye.get(e)||void 0}function Un(t,r){e.forEach(t.referencedFiles,(function(a,i){Dn(n(a.fileName,t.fileName),r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:t.path,index:i})}))}function Vn(n){var t=e.map(n.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)}));if(t)for(var r=We(t,n),a=0;a<t.length;a++){var i=n.typeReferenceDirectives[a],o=r[a],s=e.toFileNameLowerCase(i.fileName);e.setResolvedTypeReferenceDirective(n,s,o),jn(s,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:n.path,index:a})}}function jn(n,t,r){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:n,hasResolved:!!Qe,refKind:r.kind,refPath:b(r)?r.file:void 0}),function(n,t,r){var a=z.get(n);if(a&&a.primary)return;var i=!0;if(t){if(t.isExternalLibraryImport&&q++,t.primary)Dn(t.resolvedFileName,!1,!1,t.packageId,r);else if(a){if(t.resolvedFileName!==a.resolvedFileName){var o=te.readFile(t.resolvedFileName),s=on(a.resolvedFileName);o!==s.text&&Xn(s,r,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[n,t.resolvedFileName,a.resolvedFileName])}i=!1}else Dn(t.resolvedFileName,!1,!1,t.packageId,r);t.isExternalLibraryImport&&q--}else Xn(void 0,r,e.Diagnostics.Cannot_find_type_definition_file_for_0,[n]);i&&z.set(n,t)}(n,t,r),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Kn(n){for(var t=n.split("."),r=t[1],a=2;t[a]&&"d"!==t[a];)r+=(2===a?"/":"-")+t[a],a++;var i=e.combinePaths(ce,"__lib_node_modules_lookup_".concat(n,"__.ts")),o=e.resolveModuleName("@typescript/lib-"+r,i,{moduleResolution:e.ModuleResolutionKind.NodeJs},te,Z);return(null===o||void 0===o?void 0:o.resolvedModule)?o.resolvedModule.resolvedFileName:e.combinePaths(oe,n)}function Hn(n){e.forEach(n.libReferenceDirectives,(function(t,r){var a=e.toFileNameLowerCase(t.fileName),i=e.libMap.get(a);if(i)bn(Kn(i),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:n.path,index:r});else{var o=e.removeSuffix(e.removePrefix(a,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(M||(M=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:n.path,index:r},diagnostic:c,args:[a,s]})}}))}function Wn(e){return te.getCanonicalFileName(e)}function zn(n){var t;if(xn(n),n.imports.length||n.moduleAugmentations.length){var r=k(n),a=Qe(r,n);e.Debug.assert(a.length===r.length);for(var i=(De?null===(t=ze(n))||void 0===t?void 0:t.commandLine.options:void 0)||G,o=0;o<r.length;o++){var s=a[o];if(e.setResolvedModule(n,r[o],s,g(n,o)),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),u=c&&l,d=s.resolvedFileName;c&&q++;var p=u&&q>J,f=d&&!I(i,s)&&!i.noResolve&&o<n.imports.length&&!p&&!(l&&!e.getAllowJSCompilerOption(i))&&(e.isInJSFile(n.imports[o])||!(4194304&n.imports[o].flags));p?X.set(n.path,!0):f&&In(d,!1,!1,{kind:e.FileIncludeKind.Import,file:n.path,index:o},s.packageId),c&&q--}}}else n.resolvedModules=void 0}function Jn(n){ye||(ye=new e.Map);var t,r,a=A(n),i=Xe(a),o=ye.get(i);if(void 0!==o)return o||void 0;if(te.getParsedCommandLine){if(!(t=te.getParsedCommandLine(a)))return Nn(void 0,i,void 0),void ye.set(i,!1);r=e.Debug.checkDefined(t.options.configFile),e.Debug.assert(!r.path||r.path===i),Nn(r,i,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(a),te.getCurrentDirectory());if(Nn(r=te.getSourceFile(a,100),i,void 0),void 0===r)return void ye.set(i,!1);t=e.parseJsonSourceFileConfigFileContent(r,re,s,void 0,a)}r.fileName=a,r.path=i,r.resolvedPath=i,r.originalFileName=a;var c={commandLine:t,sourceFile:r};return ye.set(i,c),t.projectReferences&&(c.references=t.projectReferences.map(Jn)),c}function qn(n,t,r,a){var i,o,s,c=b(t)?t:void 0;n&&(null===(i=K.get(n.path))||void 0===i||i.forEach(f)),t&&f(t),c&&1===(null===o||void 0===o?void 0:o.length)&&(o=void 0);var l=c&&T(sn,c),u=o&&e.chainDiagnosticMessages(o,e.Diagnostics.The_file_is_in_the_program_because_Colon),d=n&&e.explainIfFileIsRedirect(n),p=e.chainDiagnosticMessages.apply(void 0,pa([d?u?pa([u],d,!0):d:u,r],a||e.emptyArray,!1));return l&&E(l)?e.createFileDiagnosticFromMessageChain(l.file,l.pos,l.end-l.pos,p,s):e.createCompilerDiagnosticFromMessageChain(p,s);function f(n){(o||(o=[])).push(e.fileIncludeReasonToDiagnostics(Ke,n)),!c&&b(n)?c=n:c!==n&&(s=e.append(s,function(n){if(b(n)){var t,r=T(sn,n);switch(n.kind){case e.FileIncludeKind.Import:t=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:t=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:t=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:t=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(n)}return E(r)?e.createFileDiagnostic(r.file,r.pos,r.end-r.pos,t):void 0}if(!G.configFile)return;var a,i;switch(n.kind){case e.FileIncludeKind.RootFile:if(!G.configFile.configFileSpecs)return;var o=e.getNormalizedAbsolutePath(F[n.index],ce),s=e.getMatchedFileSpec(Ke,o);if(s){a=e.getTsConfigPropArrayElementValue(G.configFile,"files",s),i=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var c=e.getMatchedIncludeSpec(Ke,o);if(!c)return;a=e.getTsConfigPropArrayElementValue(G.configFile,"include",c),i=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var l=e.Debug.checkDefined(null===ge||void 0===ge?void 0:ge[n.index]),u=v(U,ge,(function(e,n,t){return e===l?{sourceFile:(null===n||void 0===n?void 0:n.sourceFile)||G.configFile,index:t}:void 0}));if(!u)return;var d=u.sourceFile,p=u.index,f=e.firstDefined(e.getTsConfigPropArray(d,"references"),(function(n){return e.isArrayLiteralExpression(n.initializer)?n.initializer:void 0}));return f&&f.elements.length>p?e.createDiagnosticForNodeInSourceFile(d,f.elements[p],n.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!G.types)return;a=nt("types",n.typeReference),i=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==n.index){a=nt("lib",G.lib[n.index]),i=e.Diagnostics.File_is_library_specified_here;break}var m=e.forEachEntry(e.targetOptionDeclaration.type,(function(n,t){return n===e.getEmitScriptTarget(G)?t:void 0}));a=m?function(n,t){var r=$n(n);return r&&e.firstDefined(r,(function(n){return e.isStringLiteral(n.initializer)&&n.initializer.text===t?n.initializer:void 0}))}("target",m):void 0,i=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(n)}return a&&e.createDiagnosticForNodeInSourceFile(G.configFile,a,i)}(n))),n===t&&(t=void 0)}}function Xn(e,n,t,r){(M||(M=[])).push({kind:1,file:e&&e.path,fileProcessingReason:n,diagnostic:t,args:r})}function Yn(e,n,t){se.add(qn(e,void 0,n,t))}function Qn(n,t,r,a,i,o){for(var s=!0,c=0,l=et();c<l.length;c++){var u=l[c];if(e.isObjectLiteralExpression(u.initializer))for(var d=0,p=e.getPropertyAssignment(u.initializer,n);d<p.length;d++){var f=p[d].initializer;e.isArrayLiteralExpression(f)&&f.elements.length>t&&(se.add(e.createDiagnosticForNodeInSourceFile(G.configFile,f.elements[t],r,a,i,o)),s=!1)}}s&&se.add(e.createCompilerDiagnostic(r,a,i,o))}function Zn(n,t,r,a){for(var i=!0,o=0,s=et();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&st(c.initializer,n,t,void 0,r,a)&&(i=!1)}i&&se.add(e.createCompilerDiagnostic(r,a))}function $n(n){var t=ot();return t&&e.getPropertyAssignment(t,n)}function et(){return $n("paths")||e.emptyArray}function nt(n,t){var r=ot();return r&&e.getPropertyArrayElementValue(r,n,t)}function tt(e,n,t,r){it(!0,n,t,e,n,t,r)}function rt(e,n,t,r){it(!1,e,void 0,n,t,r)}function at(n,t,r,a,i){var o=e.firstDefined(e.getTsConfigPropArray(n||G.configFile,"references"),(function(n){return e.isArrayLiteralExpression(n.initializer)?n.initializer:void 0}));o&&o.elements.length>t?se.add(e.createDiagnosticForNodeInSourceFile(n||G.configFile,o.elements[t],r,a,i)):se.add(e.createCompilerDiagnostic(r,a,i))}function it(n,t,r,a,i,o,s){var c=ot();(!c||!st(c,n,t,r,a,i,o,s))&&se.add(e.createCompilerDiagnostic(a,i,o,s))}function ot(){if(void 0===Q){Q=!1;var n=e.getTsConfigObjectLiteralExpression(G.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t<r.length;t++){var a=r[t];if(e.isObjectLiteralExpression(a.initializer)){Q=a.initializer;break}}}return Q||void 0}function st(n,t,r,a,i,o,s,c){for(var l=e.getPropertyAssignment(n,r,a),u=0,d=l;u<d.length;u++){var p=d[u];se.add(e.createDiagnosticForNodeInSourceFile(G.configFile,t?p.name:p.initializer,i,o,s,c))}return!!l.length}function ct(e,n){de.set(Xe(e),!0),se.add(n)}function lt(n,t){return 0===e.comparePaths(n,t,ce,!te.useCaseSensitiveFileNames())}function ut(){return te.getSymlinkCache?te.getSymlinkCache():(y||(y=e.createSymlinkCache(ce,Wn)),m&&z&&!y.hasProcessedResolutions()&&y.setSymlinksFromResolutions(m,z),y)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=x,e.filterSemanticDiagnostics=L,e.parseConfigHostFromCompilerHostLike=D,e.createPrependNodes=C,e.resolveProjectReferencePath=A,e.getResolutionDiagnostic=I,e.getModuleNameStringLiteralAt=N}(ha||(ha={})),function(e){function n(e,n,t,r,a,i){var o=[],s=e.emit(n,(function(e,n,t){o.push({name:e,writeByteOrderMark:t,text:n})}),r,t,a,i),c=s.emitSkipped,l=s.diagnostics,u=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:l,exportedModulesFromDeclarationEmit:u}}e.getFileEmitOutput=n,function(t){var r=0;function a(){return function n(t,a,o){var s=0,c={id:r++,version:function(){return s},clone:function(){return n(new e.Map(t),new e.Map(a),o&&new e.Set(o))},forEach:function(e){return t.forEach(e)},getKeys:function(e){return a.get(e)},getValues:function(e){return t.get(e)},hasKey:function(e){return t.has(e)},keys:function(){return t.keys()},deletedKeys:function(){return o},deleteKey:function(n){(o||(o=new e.Set)).add(n);var r=t.get(n);return!!r&&(r.forEach((function(e){return i(a,e,n)})),t.delete(n),s++,!0)},set:function(n,r){var l=!!(null===o||void 0===o?void 0:o.delete(n)),u=t.get(n);return t.set(n,r),null===u||void 0===u||u.forEach((function(e){r.has(e)||(l=!0,i(a,e,n))})),r.forEach((function(t){(null===u||void 0===u?void 0:u.has(t))||(l=!0,function(n,t,r){var a=n.get(t);a||(a=new e.Set,n.set(t,a));a.add(r)}(a,t,n))})),l&&s++,c}};return c}(new e.Map,new e.Map,void 0)}function i(e,n,t,r){void 0===r&&(r=!0);var a=e.get(n);return!!(null===a||void 0===a?void 0:a.delete(t))&&(r&&!a.size&&e.delete(n),!0)}function o(n){return e.mapDefined(n.declarations,(function(n){var t;return null===(t=e.getSourceFileOfNode(n))||void 0===t?void 0:t.resolvedPath}))}function s(e,n){var t=e.getSymbolAtLocation(n);return t&&o(t)}function c(n,t,r,a){return e.toPath(n.getProjectReferenceRedirect(t)||t,r,a)}function l(n,t,r){var a;if(t.imports&&t.imports.length>0)for(var i=n.getTypeChecker(),o=0,l=t.imports;o<l.length;o++){var u=s(i,l[o]);null===u||void 0===u||u.forEach(S)}var d=e.getDirectoryPath(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(var p=0,f=t.referencedFiles;p<f.length;p++){var m=f[p];S(c(n,m.fileName,d,r))}if(t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var t=e.resolvedFileName;S(c(n,t,d,r))}})),t.moduleAugmentations.length){i=n.getTypeChecker();for(var _=0,g=t.moduleAugmentations;_<g.length;_++){var y=g[_];if(e.isStringLiteral(y)){var h=i.getSymbolAtLocation(y);h&&T(h)}}}for(var v=0,b=n.getTypeChecker().getAmbientModules();v<b.length;v++){var E=b[v];E.declarations&&E.declarations.length>1&&T(E)}return a;function T(n){if(n.declarations)for(var r=0,a=n.declarations;r<a.length;r++){var i=a[r],o=e.getSourceFileOfNode(i);o&&o!==t&&S(o.resolvedPath)}}function S(n){(a||(a=new e.Set)).add(n)}}function u(e,n){return n&&!n.referencedMap===!e}function d(e,n){n.forEach((function(n,t){return p(e,n,t)}))}function p(e,n,t){e.fileInfos.get(t).signature=n,e.hasCalledUpdateShapeSignature.add(t)}function f(t,r,a,i,s,c,l,u){if(void 0===u&&(u=t.useFileVersionAsSignature),e.Debug.assert(!!a),e.Debug.assert(!l||!!t.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),t.hasCalledUpdateShapeSignature.has(a.resolvedPath)||i.has(a.resolvedPath))return!1;var d=t.fileInfos.get(a.resolvedPath);if(!d)return e.Debug.fail();var p,f=d.signature;if(!a.isDeclarationFile&&!u){var m=n(r,a,!0,s,void 0,!0),_=e.firstOrUndefined(m.outputFiles);_&&(e.Debug.assert(e.fileExtensionIsOneOf(_.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",(function(){return"Found: ".concat(e.getAnyExtensionFromPath(_.name)," for ").concat(_.name,":: All output files: ").concat(JSON.stringify(m.outputFiles.map((function(e){return e.name}))))})),p=(c||e.generateDjb2Hash)(_.text),l&&p!==f&&function(n,t,r){if(!t)return void r.deleteKey(n.resolvedPath);var a;t.forEach((function(e){return i(o(e))})),a?r.set(n.resolvedPath,a):r.deleteKey(n.resolvedPath);function i(n){(null===n||void 0===n?void 0:n.length)&&(a||(a=new e.Set),n.forEach((function(e){return a.add(e)})))}}(a,m.exportedModulesFromDeclarationEmit,l))}if(void 0===p&&(p=a.version,l&&p!==f)){var g=t.referencedMap?t.referencedMap.getValues(a.resolvedPath):void 0;g?l.set(a.resolvedPath,g):l.deleteKey(a.resolvedPath)}return i.set(a.resolvedPath,p),p!==f}function m(n,t){if(!n.allFileNames){var r=t.getSourceFiles();n.allFileNames=r===e.emptyArray?e.emptyArray:r.map((function(e){return e.fileName}))}return n.allFileNames}function _(n,t){var r=n.referencedMap.getKeys(t);return r?e.arrayFrom(r.keys()):[]}function g(n){return function(n){return e.some(n.moduleAugmentations,(function(n){return e.isGlobalScopeAugmentation(n.parent)}))}(n)||!e.isExternalOrCommonJsModule(n)&&!e.isJsonSourceFile(n)&&!function(n){for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if(!e.isModuleWithStringLiteralName(a))return!1}return!0}(n)}function y(n,t,r){if(n.allFilesExcludingDefaultLibraryFile)return n.allFilesExcludingDefaultLibraryFile;var a;r&&c(r);for(var i=0,o=t.getSourceFiles();i<o.length;i++){var s=o[i];s!==r&&c(s)}return n.allFilesExcludingDefaultLibraryFile=a||e.emptyArray,n.allFilesExcludingDefaultLibraryFile;function c(e){t.isSourceFileDefaultLibrary(e)||(a||(a=[])).push(e)}}function h(n,t,r){var a=t.getCompilerOptions();return a&&e.outFile(a)?[r]:y(n,t,r)}function v(n,t,r,a,i,o,s){if(g(r))return y(n,t,r);var c=t.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[r];var l=new e.Map;l.set(r.resolvedPath,r);for(var u=_(n,r.resolvedPath);u.length>0;){var d=u.pop();if(!l.has(d)){var p=t.getSourceFileByPath(d);l.set(d,p),p&&f(n,t,p,a,i,o,s)&&u.push.apply(u,_(n,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}t.createManyToManyPathMap=a,t.canReuseOldState=u,t.create=function(n,t,r,i){var o=new e.Map,s=n.getCompilerOptions().module!==e.ModuleKind.None?a():void 0,c=s?a():void 0,d=new e.Set,p=u(s,r);n.getTypeChecker();for(var f=0,m=n.getSourceFiles();f<m.length;f++){var _=m[f],y=e.Debug.checkDefined(_.version,"Program intended to be used with Builder should have source files with versions set"),h=p?r.fileInfos.get(_.resolvedPath):void 0;if(s){var v=l(n,_,t);if(v&&s.set(_.resolvedPath,v),p){var b=r.exportedModulesMap.getValues(_.resolvedPath);b&&c.set(_.resolvedPath,b)}}o.set(_.resolvedPath,{version:y,signature:h&&h.signature,affectsGlobalScope:g(_)||void 0,impliedFormat:_.impliedNodeFormat})}return{fileInfos:o,referencedMap:s,exportedModulesMap:c,hasCalledUpdateShapeSignature:d,useFileVersionAsSignature:!i&&!p}},t.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},t.clone=function(n){var t,r;return{fileInfos:new e.Map(n.fileInfos),referencedMap:null===(t=n.referencedMap)||void 0===t?void 0:t.clone(),exportedModulesMap:null===(r=n.exportedModulesMap)||void 0===r?void 0:r.clone(),hasCalledUpdateShapeSignature:new e.Set(n.hasCalledUpdateShapeSignature),useFileVersionAsSignature:n.useFileVersionAsSignature}},t.getFilesAffectedBy=function(n,t,r,a,i,o,s){var c=o||new e.Map,l=t.getSourceFileByPath(r);if(!l)return e.emptyArray;if(!f(n,t,l,c,a,i,s))return[l];var u=(n.referencedMap?v:h)(n,t,l,c,a,i,s);return o||d(n,c),u},t.updateSignaturesFromCache=d,t.updateSignatureOfFile=p,t.updateShapeSignature=f,t.updateExportedFilesMapFromCache=function(n,t){var r;if(t){e.Debug.assert(!!n.exportedModulesMap);var a=t.id,i=t.version();if(n.previousCache){if(n.previousCache.id===a&&n.previousCache.version===i)return;n.previousCache.id=a,n.previousCache.version=i}else n.previousCache={id:a,version:i};null===(r=t.deletedKeys())||void 0===r||r.forEach((function(e){return n.exportedModulesMap.deleteKey(e)})),t.forEach((function(e,t){return n.exportedModulesMap.set(t,e)}))}},t.getAllDependencies=function(n,t,r){var a=t.getCompilerOptions();if(e.outFile(a))return m(n,t);if(!n.referencedMap||g(r))return m(n,t);for(var i=new e.Set,o=[r.resolvedPath];o.length;){var s=o.pop();if(!i.has(s)){i.add(s);var c=n.referencedMap.getValues(s);if(c)for(var l=c.keys(),u=l.next();!u.done;u=l.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(i.keys(),(function(e){var n,r;return null!==(r=null===(n=t.getSourceFileByPath(e))||void 0===n?void 0:n.fileName)&&void 0!==r?r:e})))},t.getReferencedByPaths=_,t.getAllFilesExcludingDefaultLibraryFile=y}(e.BuilderState||(e.BuilderState={}))}(ha||(ha={})),function(e){var n,t,r;function a(n,t,r,a){var o=e.BuilderState.create(n,t,r,a);o.program=n;var s=n.getCompilerOptions();o.compilerOptions=s,e.outFile(s)||(o.semanticDiagnosticsPerFile=new e.Map),o.changedFilesSet=new e.Set;var c=e.BuilderState.canReuseOldState(o.referencedMap,r),l=c?r.compilerOptions:void 0,u=c&&r.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,l);if(c){if(!r.currentChangedFilePath){var d=r.currentAffectedFilesSignatures;e.Debug.assert(!r.affectedFiles&&(!d||!d.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var p=r.changedFilesSet;u&&e.Debug.assert(!p||!e.forEachKey(p,(function(e){return r.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null===p||void 0===p||p.forEach((function(e){return o.changedFilesSet.add(e)})),!e.outFile(s)&&r.affectedFilesPendingEmit&&(o.affectedFilesPendingEmit=r.affectedFilesPendingEmit.slice(),o.affectedFilesPendingEmitKind=r.affectedFilesPendingEmitKind&&new e.Map(r.affectedFilesPendingEmitKind),o.affectedFilesPendingEmitIndex=r.affectedFilesPendingEmitIndex,o.seenAffectedFiles=new e.Set)}var f=o.referencedMap,m=c?r.referencedMap:void 0,_=u&&!s.skipLibCheck===!l.skipLibCheck,g=_&&!s.skipDefaultLibCheck===!l.skipDefaultLibCheck;return o.fileInfos.forEach((function(a,s){var l,d,p,y;if(!c||!(l=r.fileInfos.get(s))||l.version!==a.version||(p=d=f&&f.getValues(s),y=m&&m.getValues(s),p!==y&&(void 0===p||void 0===y||p.size!==y.size||e.forEachKey(p,(function(e){return!y.has(e)}))))||d&&e.forEachKey(d,(function(e){return!o.fileInfos.has(e)&&r.fileInfos.has(e)})))o.changedFilesSet.add(s);else if(u){var h=n.getSourceFileByPath(s);if(h.isDeclarationFile&&!_)return;if(h.hasNoDefaultLib&&!g)return;var v=r.semanticDiagnosticsPerFile.get(s);v&&(o.semanticDiagnosticsPerFile.set(s,r.hasReusableDiagnostic?function(n,t,r){if(!n.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.getCompilerOptions()),t.getCurrentDirectory()));return n.map((function(e){var n=i(e,t,o);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;var r=e.relatedInformation;return n.relatedInformation=r?r.length?r.map((function(e){return i(e,t,o)})):[]:void 0,n}));function o(n){return e.toPath(n,a,r)}}(v,n,t):v),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new e.Set),o.semanticDiagnosticsFromOldState.add(s))}})),c&&e.forEachEntry(r.fileInfos,(function(e,n){return e.affectsGlobalScope&&!o.fileInfos.has(n)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(o,n,void 0).forEach((function(e){return o.changedFilesSet.add(e.resolvedPath)})):l&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,l)&&(n.getSourceFiles().forEach((function(e){return E(o,e.resolvedPath,1)})),e.Debug.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new e.Set),c&&e.forEachEntry(r.fileInfos,(function(e,n){o.fileInfos.has(n)&&o.fileInfos.get(n).impliedFormat!==e.impliedFormat&&o.changedFilesSet.add(n)})),o.buildInfoEmitPending=!!o.changedFilesSet.size,o}function i(e,n,t){var r=e.file;return fa(fa({},e),{file:r?n.getSourceFileByPath(t(r)):void 0})}function o(n,t){e.Debug.assert(!t||!n.affectedFiles||n.affectedFiles[n.affectedFilesIndex-1]!==t||!n.semanticDiagnosticsPerFile.has(t.resolvedPath))}function s(n,t,r){for(;;){var a=n.affectedFiles;if(a){for(var i=n.seenAffectedFiles,o=n.affectedFilesIndex;o<a.length;){var s=a[o];if(!i.has(s.resolvedPath))return n.affectedFilesIndex=o,c(n,s,t,r),s;o++}n.changedFilesSet.delete(n.currentChangedFilePath),n.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(n,n.currentAffectedFilesSignatures),n.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(n,n.currentAffectedFilesExportedModulesMap),n.affectedFiles=void 0}var l=n.changedFilesSet.keys().next();if(l.done)return;var u=e.Debug.checkDefined(n.program),d=u.getCompilerOptions();if(e.outFile(d))return e.Debug.assert(!n.semanticDiagnosticsPerFile),u;n.currentAffectedFilesSignatures||(n.currentAffectedFilesSignatures=new e.Map),n.exportedModulesMap&&(n.currentAffectedFilesExportedModulesMap||(n.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),n.affectedFiles=e.BuilderState.getFilesAffectedBy(n,u,l.value,t,r,n.currentAffectedFilesSignatures,n.currentAffectedFilesExportedModulesMap),n.currentChangedFilePath=l.value,n.affectedFilesIndex=0,n.seenAffectedFiles||(n.seenAffectedFiles=new e.Set)}}function c(n,t,r,a){var i;if(l(n,t.resolvedPath),n.allFilesExcludingDefaultLibraryFile!==n.affectedFiles)e.Debug.assert(n.hasCalledUpdateShapeSignature.has(t.resolvedPath)||(null===(i=n.currentAffectedFilesSignatures)||void 0===i?void 0:i.has(t.resolvedPath)),"Signature not updated for affected file: ".concat(t.fileName)),n.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(n,t,r){var a,i;if(!n.exportedModulesMap||!n.changedFilesSet.has(t.resolvedPath))return;if(!u(n,t.resolvedPath))return;if(n.compilerOptions.isolatedModules){var o=new e.Map;o.set(t.resolvedPath,!0);for(var s=e.BuilderState.getReferencedByPaths(n,t.resolvedPath);s.length>0;){var c=s.pop();if(!o.has(c)&&(o.set(c,!0),r(n,c),u(n,c))){var l=e.Debug.checkDefined(n.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(n,l.resolvedPath))}}}e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var p=new e.Set;null===(a=n.currentAffectedFilesExportedModulesMap.getKeys(t.resolvedPath))||void 0===a||a.forEach((function(e){return d(n,e,p,r)})),null===(i=n.exportedModulesMap.getKeys(t.resolvedPath))||void 0===i||i.forEach((function(e){var t;return!n.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))&&d(n,e,p,r)}))}(n,t,(function(n,t){return function(n,t,r,a){if(l(n,t),!n.changedFilesSet.has(t)){var i=e.Debug.checkDefined(n.program),o=i.getSourceFileByPath(t);o&&(e.BuilderState.updateShapeSignature(n,i,o,e.Debug.checkDefined(n.currentAffectedFilesSignatures),r,a,n.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(n.compilerOptions)&&E(n,t,0))}}(n,t,r,a)}));else{if(!n.cleanedDiagnosticsOfLibFiles){n.cleanedDiagnosticsOfLibFiles=!0;var o=e.Debug.checkDefined(n.program),s=o.getCompilerOptions();e.forEach(o.getSourceFiles(),(function(t){return o.isSourceFileDefaultLibrary(t)&&!e.skipTypeChecking(t,s,o)&&l(n,t.resolvedPath)}))}e.BuilderState.updateShapeSignature(n,e.Debug.checkDefined(n.program),t,e.Debug.checkDefined(n.currentAffectedFilesSignatures),r,a,n.currentAffectedFilesExportedModulesMap)}}function l(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function u(n,t){return e.Debug.checkDefined(n.currentAffectedFilesSignatures).get(t)!==e.Debug.checkDefined(n.fileInfos.get(t)).signature}function d(e,n,t,r){var a;null===(a=e.referencedMap.getKeys(n))||void 0===a||a.forEach((function(n){return p(e,n,t,r)}))}function p(n,t,r,a){var i,o,s;e.tryAddToSet(r,t)&&(a(n,t),e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap),null===(i=n.currentAffectedFilesExportedModulesMap.getKeys(t))||void 0===i||i.forEach((function(e){return p(n,e,r,a)})),null===(o=n.exportedModulesMap.getKeys(t))||void 0===o||o.forEach((function(e){var t;return!n.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))&&p(n,e,r,a)})),null===(s=n.referencedMap.getKeys(t))||void 0===s||s.forEach((function(e){return!r.has(e)&&a(n,e)})))}function f(n,t,r,a,i){i?n.buildInfoEmitPending=!1:t===n.program?(n.changedFilesSet.clear(),n.programEmitComplete=!0):(n.seenAffectedFiles.add(t.resolvedPath),void 0!==r&&(n.seenEmittedFiles||(n.seenEmittedFiles=new e.Map)).set(t.resolvedPath,r),a?(n.affectedFilesPendingEmitIndex++,n.buildInfoEmitPending=!0):n.affectedFilesIndex++)}function m(e,n,t){return f(e,t),{result:n,affected:t}}function _(e,n,t,r,a,i){return f(e,t,r,a,i),{result:n,affected:t}}function g(n,t,r){return e.concatenate(function(n,t,r){var a=t.resolvedPath;if(n.semanticDiagnosticsPerFile){var i=n.semanticDiagnosticsPerFile.get(a);if(i)return e.filterSemanticDiagnostics(i,n.compilerOptions)}var o=e.Debug.checkDefined(n.program).getBindAndCheckDiagnostics(t,r);n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(a,o);return e.filterSemanticDiagnostics(o,n.compilerOptions)}(n,t,r),e.Debug.checkDefined(n.program).getProgramDiagnostics(t))}function y(n,t){for(var r,a=e.getOptionsNameMap().optionsNameMap,i=0,o=e.getOwnKeys(n).sort(e.compareStringsCaseSensitive);i<o.length;i++){var s=o[i],c=s.toLowerCase(),l=a.get(c);((null===l||void 0===l?void 0:l.affectsEmit)||(null===l||void 0===l?void 0:l.affectsSemanticDiagnostics)||"strict"===c||"skiplibcheck"===c||"skipdefaultlibcheck"===c)&&((r||(r={}))[s]=h(l,n[s],t))}return r}function h(e,n,t){if(e)if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function v(n,t){return e.Debug.assert(!!n.length),n.map((function(e){var n=b(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;var r=e.relatedInformation;return n.relatedInformation=r?r.length?r.map((function(e){return b(e,t)})):[]:void 0,n}))}function b(e,n){var t=e.file;return fa(fa({},e),{file:t?n(t.resolvedPath):void 0})}function E(n,t,r){n.affectedFilesPendingEmit||(n.affectedFilesPendingEmit=[]),n.affectedFilesPendingEmitKind||(n.affectedFilesPendingEmitKind=new e.Map);var a=n.affectedFilesPendingEmitKind.get(t);n.affectedFilesPendingEmit.push(t),n.affectedFilesPendingEmitKind.set(t,a||r),void 0===n.affectedFilesPendingEmitIndex&&(n.affectedFilesPendingEmitIndex=0)}function T(n){return e.isString(n)?{version:n,signature:n,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(n.signature)?n:{version:n.version,signature:!1===n.signature?void 0:n.version,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}function S(n,t){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:r,getProgramOrUndefined:function(){return n().program},releaseProgram:function(){return n().program=void 0},getCompilerOptions:function(){return n().compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,n){return r().getSyntacticDiagnostics(e,n)},getDeclarationDiagnostics:function(e,n){return r().getDeclarationDiagnostics(e,n)},getSemanticDiagnostics:function(e,n){return r().getSemanticDiagnostics(e,n)},emit:function(e,n,t,a,i){return r().emit(e,n,t,a,i)},emitBuildInfo:function(e,n){return r().emitBuildInfo(e,n)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.checkDefined(n().program)}}(n=e.BuilderFileEmit||(e.BuilderFileEmit={}))[n.DtsOnly=0]="DtsOnly",n[n.Full=1]="Full",(r=t=e.BuilderProgramKind||(e.BuilderProgramKind={}))[r.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",r[r.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e.getBuilderCreationParameters=function(n,t,r,a,i,o){var s,c,l;return void 0===n?(e.Debug.assert(void 0===t),s=r,l=a,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(n)?(l=a,c=e.createProgram({rootNames:n,options:t,host:r,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),s=r):(c=n,s=t,l=r,i=a),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:i||e.emptyArray}},e.createBuilderProgram=function(n,r){var i=r.newProgram,c=r.host,l=r.oldProgram,u=r.configFileParsingDiagnostics,d=l&&l.getState();if(d&&i===d.program&&u===i.getConfigFileParsingDiagnostics())return i=void 0,d=void 0,l;var p,h=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),b=e.maybeBind(c,c.createHash),T=a(i,h,d,c.disableUseFileVersionAsSignature);i.getProgramBuildInfo=function(){return function(n,t){if(!e.outFile(n.compilerOptions)){var r,a,i,o,s,c,l=e.Debug.checkDefined(n.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),l)),d=[],p=new e.Map,f=e.arrayFrom(n.fileInfos.entries(),(function(t){var r=t[0],a=t[1],i=L(r);e.Debug.assert(d[i-1]===x(r));var o=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(r),s=null!==o&&void 0!==o?o:a.signature;return a.version===s?a.affectsGlobalScope?{version:a.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:a.impliedFormat}:a.version:void 0!==s?void 0===o?a:{version:a.version,signature:o,affectsGlobalScope:a.affectsGlobalScope,impliedFormat:a.impliedFormat}:{version:a.version,signature:!1,affectsGlobalScope:a.affectsGlobalScope,impliedFormat:a.impliedFormat}}));if(n.referencedMap&&(i=e.arrayFrom(n.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[L(e),D(n.referencedMap.getValues(e))]}))),n.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(n.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var t;if(n.currentAffectedFilesExportedModulesMap){if(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))return;var r=n.currentAffectedFilesExportedModulesMap.getValues(e);if(r)return[L(e),D(r)]}return[L(e),D(n.exportedModulesMap.getValues(e))]}))),n.semanticDiagnosticsPerFile)for(var m=0,_=e.arrayFrom(n.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);m<_.length;m++){var g=_[m],h=n.semanticDiagnosticsPerFile.get(g);(s||(s=[])).push(h.length?[L(g),n.hasReusableDiagnostic?h:v(h,x)]:L(g))}if(n.affectedFilesPendingEmit)for(var b=new e.Set,E=0,T=n.affectedFilesPendingEmit.slice(n.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);E<T.length;E++){var S=T[E];e.tryAddToSet(b,S)&&(c||(c=[])).push([L(S),n.affectedFilesPendingEmitKind.get(S)])}return{fileNames:d,fileInfos:f,options:y(n.compilerOptions,(function(n){return x(e.getNormalizedAbsolutePath(n,l))})),fileIdsList:r,referencedMap:i,exportedModulesMap:o,semanticDiagnosticsPerFile:s,affectedFilesPendingEmit:c}}function x(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(u,n,t))}function L(e){var n=p.get(e);return void 0===n&&(d.push(x(e)),p.set(e,n=d.length)),n}function D(n){var t=e.arrayFrom(n.keys(),L).sort(e.compareValues),i=t.join(),o=null===a||void 0===a?void 0:a.get(i);return void 0===o&&((r||(r=[])).push(t),(a||(a=new e.Map)).set(i,o=r.length)),o}}(T,h)},i=void 0,l=void 0,d=void 0;var x=function(){return T},L=S(x,u);return L.getState=x,L.backupState=function(){e.Debug.assert(void 0===p),p=function(n){var t,r=e.BuilderState.clone(n);return r.semanticDiagnosticsPerFile=n.semanticDiagnosticsPerFile&&new e.Map(n.semanticDiagnosticsPerFile),r.changedFilesSet=new e.Set(n.changedFilesSet),r.affectedFiles=n.affectedFiles,r.affectedFilesIndex=n.affectedFilesIndex,r.currentChangedFilePath=n.currentChangedFilePath,r.currentAffectedFilesSignatures=n.currentAffectedFilesSignatures&&new e.Map(n.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=null===(t=n.currentAffectedFilesExportedModulesMap)||void 0===t?void 0:t.clone(),r.seenAffectedFiles=n.seenAffectedFiles&&new e.Set(n.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=n.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=n.semanticDiagnosticsFromOldState&&new e.Set(n.semanticDiagnosticsFromOldState),r.program=n.program,r.compilerOptions=n.compilerOptions,r.affectedFilesPendingEmit=n.affectedFilesPendingEmit&&n.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=n.affectedFilesPendingEmitKind&&new e.Map(n.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex,r.seenEmittedFiles=n.seenEmittedFiles&&new e.Map(n.seenEmittedFiles),r.programEmitComplete=n.programEmitComplete,r}(T)},L.restoreState=function(){T=e.Debug.checkDefined(p),p=void 0},L.getAllDependencies=function(n){return e.BuilderState.getAllDependencies(T,e.Debug.checkDefined(T.program),n)},L.getSemanticDiagnostics=function(n,t){o(T,n);var r,a=e.Debug.checkDefined(T.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!T.semanticDiagnosticsPerFile),e.Debug.checkDefined(T.program).getSemanticDiagnostics(n,t);if(n)return g(T,n,t);for(;C(t););for(var i=0,s=e.Debug.checkDefined(T.program).getSourceFiles();i<s.length;i++){var c=s[i];r=e.addRange(r,g(T,c,t))}return r||e.emptyArray},L.emit=function(r,a,i,s,l){var u,d,p,f=!1;n===t.EmitAndSemanticDiagnosticsBuilderProgram||r||e.outFile(T.compilerOptions)||T.compilerOptions.noEmit||!T.compilerOptions.noEmitOnError||(f=!0,u=T.affectedFilesPendingEmit&&T.affectedFilesPendingEmit.slice(),d=T.affectedFilesPendingEmitKind&&new e.Map(T.affectedFilesPendingEmitKind),p=T.affectedFilesPendingEmitIndex);n===t.EmitAndSemanticDiagnosticsBuilderProgram&&o(T,r);var m=e.handleNoEmitOptions(L,r,a,i);if(m)return m;f&&(T.affectedFilesPendingEmit=u,T.affectedFilesPendingEmitKind=d,T.affectedFilesPendingEmitIndex=p);if(!r&&n===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var _=[],g=!1,y=void 0,h=[],v=void 0;v=D(a,i,s,l);)g=g||v.result.emitSkipped,y=e.addRange(y,v.result.diagnostics),h=e.addRange(h,v.result.emittedFiles),_=e.addRange(_,v.result.sourceMaps);return{emitSkipped:g,diagnostics:y||e.emptyArray,emittedFiles:h,sourceMaps:_}}return e.Debug.checkDefined(T.program).emit(r,a||e.maybeBind(c,c.writeFile),i,s,l)},L.releaseProgram=function(){!function(n){e.BuilderState.releaseCache(n),n.program=void 0}(T),p=void 0},n===t.SemanticDiagnosticsBuilderProgram?L.getSemanticDiagnosticsOfNextAffectedFile=C:n===t.EmitAndSemanticDiagnosticsBuilderProgram?(L.getSemanticDiagnosticsOfNextAffectedFile=C,L.emitNextAffectedFile=D,L.emitBuildInfo=function(n,t){if(T.buildInfoEmitPending){var r=e.Debug.checkDefined(T.program).emitBuildInfo(n||e.maybeBind(c,c.writeFile),t);return T.buildInfoEmitPending=!1,r}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),L;function D(n,t,r,a){var i=s(T,t,b),o=1,l=!1;if(!i)if(e.outFile(T.compilerOptions)){var u=e.Debug.checkDefined(T.program);if(T.programEmitComplete)return;i=u}else{var d=function(n){var t=n.affectedFilesPendingEmit;if(t){for(var r=n.seenEmittedFiles||(n.seenEmittedFiles=new e.Map),a=n.affectedFilesPendingEmitIndex;a<t.length;a++){var i=e.Debug.checkDefined(n.program).getSourceFileByPath(t[a]);if(i){var o=r.get(i.resolvedPath),s=e.Debug.checkDefined(e.Debug.checkDefined(n.affectedFilesPendingEmitKind).get(i.resolvedPath));if(void 0===o||o<s)return n.affectedFilesPendingEmitIndex=a,{affectedFile:i,emitKind:s}}}n.affectedFilesPendingEmit=void 0,n.affectedFilesPendingEmitKind=void 0,n.affectedFilesPendingEmitIndex=void 0}}(T);if(!d){if(!T.buildInfoEmitPending)return;var p=e.Debug.checkDefined(T.program);return _(T,p.emitBuildInfo(n||e.maybeBind(c,c.writeFile),t),p,1,!1,!0)}i=d.affectedFile,o=d.emitKind,l=!0}return _(T,e.Debug.checkDefined(T.program).emit(i===T.program?void 0:i,n||e.maybeBind(c,c.writeFile),t,r||0===o,a),i,o,l)}function C(e,r){for(;;){var a=s(T,e,b);if(!a)return;if(a===T.program)return m(T,T.program.getSemanticDiagnostics(void 0,e),a);if((n===t.EmitAndSemanticDiagnosticsBuilderProgram||T.compilerOptions.noEmit||T.compilerOptions.noEmitOnError)&&E(T,a.resolvedPath,1),!r||!r(a))return m(T,g(T,a,e),a);f(T,a)}}},e.toBuilderStateFileInfo=T,e.createBuildProgramUsingProgramBuildInfo=function(n,t,r){var a,i=e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory())),o=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames()),s=n.fileNames.map((function(n){return e.toPath(n,i,o)})),c=null===(a=n.fileIdsList)||void 0===a?void 0:a.map((function(n){return new e.Set(n.map(d))})),l=new e.Map;n.fileInfos.forEach((function(e,n){return l.set(d(n+1),T(e))}));var u={fileInfos:l,compilerOptions:n.options?e.convertToOptionsWithAbsolutePaths(n.options,(function(n){return e.getNormalizedAbsolutePath(n,i)})):{},referencedMap:p(n.referencedMap),exportedModulesMap:p(n.exportedModulesMap),semanticDiagnosticsPerFile:n.semanticDiagnosticsPerFile&&e.arrayToMap(n.semanticDiagnosticsPerFile,(function(n){return d(e.isNumber(n)?n:n[0])}),(function(n){return e.isNumber(n)?e.emptyArray:n[1]})),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(n.affectedFilesPendingEmit,(function(e){return d(e[0])})),affectedFilesPendingEmitKind:n.affectedFilesPendingEmit&&e.arrayToMap(n.affectedFilesPendingEmit,(function(e){return d(e[0])}),(function(e){return e[1]})),affectedFilesPendingEmitIndex:n.affectedFilesPendingEmit&&0};return{getState:function(){return u},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return u.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function d(e){return s[e-1]}function p(n){if(n){var t=e.BuilderState.createManyToManyPathMap();return n.forEach((function(e){var n=e[0],r=e[1];return t.set(d(n),c[r-1])})),t}}},e.createRedirectedBuilderProgram=S}(ha||(ha={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(n,t,r,a,i,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,a,i,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(n,t,r,a,i,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(n,t,r,a,i,o))},e.createAbstractBuilder=function(n,t,r,a,i,o){var s=e.getBuilderCreationParameters(n,t,r,a,i,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((function(){return{program:c,compilerOptions:c.getCompilerOptions()}}),l)}}(ha||(ha={})),function(e){function n(n){return e.endsWith(n,"/node_modules/.staging")?e.removeSuffix(n,"/.staging"):e.some(e.ignoredPaths,(function(t){return e.stringContains(n,t)}))?void 0:n}function t(n){var t=e.getRootLength(n);if(n.length===t)return!1;var r=n.indexOf(e.directorySeparator,t);if(-1===r)return!1;var a=n.substring(t,r+1),i=t>1||47!==n.charCodeAt(0);if(i&&0!==n.search(/[a-zA-Z]:/)&&0===a.search(/[a-zA-z]\$\//)){if(-1===(r=n.indexOf(e.directorySeparator,r+1)))return!1;a=n.substring(t+a.length,r+1)}if(i&&0!==a.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(0===(o=n.indexOf(e.directorySeparator,o)+1))return!1;return!0}function r(e){var n,t;return!(!(null===(n=e.resolvedModule)||void 0===n?void 0:n.originalPath)&&!(null===(t=e.resolvedTypeReferenceDirective)||void 0===t?void 0:t.originalPath))}e.removeIgnoredPath=n,e.canWatchDirectory=t,e.createResolutionCache=function(a,i,o){var s,c,l,u,d,p,f=e.createMultiMap(),m=[],_=e.createMultiMap(),g=!1,y=e.memoize((function(){return a.getCurrentDirectory()})),h=a.getCachedDirectoryStructureHost(),v=new e.Map,b=e.createCacheWithRedirects(),E=e.createCacheWithRedirects(),T=e.createModuleResolutionCache(y(),a.getCanonicalFileName,void 0,b,E),S=new e.Map,x=e.createCacheWithRedirects(),L=e.createTypeReferenceDirectiveResolutionCache(y(),a.getCanonicalFileName,void 0,T.getPackageJsonInfoCache(),x),D=[".ts",".tsx",".js",".jsx",".json"],C=new e.Map,A=new e.Map,I=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,y())),k=I&&a.toPath(I),N=void 0!==k?k.split(e.directorySeparator).length:0,R=new e.Map;return{getModuleResolutionCache:function(){return T},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:F,finishCachingPerDirectoryResolution:function(){l=void 0,F(),A.forEach((function(e,n){0===e.refCount&&(A.delete(n),e.watcher.close())})),g=!1},resolveModuleNames:function(n,t,r,a,i){return U({names:n,containingFile:t,redirectedReference:a,cache:v,perDirectoryCacheWithRedirects:b,loader:G,getResolutionWithResolvedFileName:O,shouldRetryResolution:function(n){return!n.resolvedModule||!e.resolutionExtensionIsTSOrJson(n.resolvedModule.extension)},reusedNames:r,logChanges:o,containingSourceFile:i})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n,t){var r=v.get(a.toPath(n));return r?r.get(e,t):void 0},resolveTypeReferenceDirectives:function(e,n,t){return U({names:e,containingFile:n,redirectedReference:t,cache:S,perDirectoryCacheWithRedirects:x,loader:B,getResolutionWithResolvedFileName:w,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(n){if(!e.fileExtensionIs(n,".json"))return;var t=a.getCurrentProgram();if(!t)return;var r=t.getResolvedProjectReferenceByPath(n);if(!r)return;r.commandLine.fileNames.forEach((function(e){return $(a.toPath(e))}))},removeResolutionsOfFile:$,hasChangedAutomaticTypeDirectiveNames:function(){return g},invalidateResolutionOfFile:function(n){$(n);var t=g;ee(_.get(n),e.returnTrue)&&g&&!t&&a.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:te,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(n){e.Debug.assert(l===n||void 0===l),l=n},createHasInvalidatedResolution:function(n){if(te(),n)return c=void 0,e.returnTrue;var t=c;return c=void 0,function(e){return!!t&&t.has(e)||P(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:P,updateTypeRootsWatch:function(){var n=a.getCompilationSettings();if(n.types)return void ae();var t=e.getEffectiveTypeRoots(n,{directoryExists:oe,getCurrentDirectory:y});t?e.mutateMap(R,e.arrayToMap(t,(function(e){return a.toPath(e)})),{createNewValue:ie,onDeleteValue:e.closeFileWatcher}):ae()},closeTypeRootsWatch:ae,clear:function(){e.clearMap(A,e.closeFileWatcherOf),C.clear(),f.clear(),ae(),v.clear(),S.clear(),_.clear(),m.length=0,u=void 0,d=void 0,p=void 0,F(),g=!1}};function O(e){return e.resolvedModule}function w(e){return e.resolvedTypeReferenceDirective}function M(n,t){return!(void 0===n||t.length<=n.length)&&(e.startsWith(t,n)&&t[n.length]===e.directorySeparator)}function P(e){if(!l)return!1;var n=l.get(e);return!!n&&!!n.length}function F(){T.clear(),L.clear(),f.forEach(J),f.clear()}function G(n,t,r,i,o){var s,c=e.resolveModuleName(n,t,r,i,T,o);if(!a.getGlobalCache)return c;var l=a.getGlobalCache();if(void 0!==l&&!e.isExternalModuleNameRelative(n)&&(!c.resolvedModule||!e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(a.globalCacheResolutionModuleName)(n),a.projectName,r,i,l,T),d=u.resolvedModule,p=u.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,p),c}return c}function B(n,t,r,a,i){return e.resolveTypeReferenceDirective(n,t,r,a,i,L)}function U(n){var t,i,o,c=n.names,l=n.containingFile,u=n.redirectedReference,d=n.cache,p=n.perDirectoryCacheWithRedirects,f=n.loader,m=n.getResolutionWithResolvedFileName,_=n.shouldRetryResolution,g=n.reusedNames,y=n.logChanges,h=n.containingSourceFile,v=a.toPath(l),b=d.get(v)||d.set(v,e.createModeAwareCache()).get(v),E=e.getDirectoryPath(v),T=p.getOrCreateMapOfCacheRedirects(u),S=T.get(E);S||(S=e.createModeAwareCache(),T.set(E,S));for(var x=[],L=a.getCompilationSettings(),D=y&&P(v),C=a.getCurrentProgram(),A=C&&C.getResolvedProjectReferenceToRedirect(l),I=A?!u||u.sourceFile.path!==A.sourceFile.path:!!u,k=e.createModeAwareCache(),N=0,R=0,O=c;R<O.length;R++){var w=O[R],M=h?e.getModeForResolutionAtIndex(h,N):void 0;N++;var F=b.get(w,M);if(!k.has(w,M)&&I||!F||F.isInvalidated||D&&!e.isExternalModuleNameRelative(w)&&_(F)){var B=F,U=S.get(w,M);if(U){F=U;var V=(null===(t=a.getCompilerHost)||void 0===t?void 0:t.call(a))||a;if(e.isTraceEnabled(L,V)){var j=m(F);e.trace(V,f===G?(null===j||void 0===j?void 0:j.resolvedFileName)?j.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(null===j||void 0===j?void 0:j.resolvedFileName)?j.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,w,l,e.getDirectoryPath(l),null===j||void 0===j?void 0:j.resolvedFileName,(null===j||void 0===j?void 0:j.packagetId)&&e.packageIdToString(j.packagetId))}}else F=f(w,l,L,(null===(i=a.getCompilerHost)||void 0===i?void 0:i.call(a))||a,u,h),S.set(w,M,F),a.onDiscoveredSymlink&&r(F)&&a.onDiscoveredSymlink();b.set(w,M,F),W(w,F,v,m),B&&X(B,v,m),y&&s&&!K(B,F)&&(s.push(v),y=!1)}else{V=(null===(o=a.getCompilerHost)||void 0===o?void 0:o.call(a))||a;if(e.isTraceEnabled(L,V)&&!k.has(w,M)){j=m(F);e.trace(V,f===G?(null===j||void 0===j?void 0:j.resolvedFileName)?j.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null===j||void 0===j?void 0:j.resolvedFileName)?j.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,w,l,null===j||void 0===j?void 0:j.resolvedFileName,(null===j||void 0===j?void 0:j.packagetId)&&e.packageIdToString(j.packagetId))}}e.Debug.assert(void 0!==F&&!F.isInvalidated),k.set(w,M,!0),x.push(m(F))}return b.forEach((function(n,t,r){k.has(t,r)||e.contains(g,t)||(X(n,v,m),b.delete(t,r))})),x;function K(e,n){if(e===n)return!0;if(!e||!n)return!1;var t=m(e),r=m(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function V(n){return e.endsWith(n,"/node_modules/@types")}function j(n,t){if(M(k,t)){n=e.isRootedDiskPath(n)?e.normalizePath(n):e.getNormalizedAbsolutePath(n,y());var r=t.split(e.directorySeparator),a=n.split(e.directorySeparator);return e.Debug.assert(a.length===r.length,"FailedLookup: ".concat(n," failedLookupLocationPath: ").concat(t)),r.length>N+1?{dir:a.slice(0,N+1).join(e.directorySeparator),dirPath:r.slice(0,N+1).join(e.directorySeparator)}:{dir:I,dirPath:k,nonRecursive:!1}}return K(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,y())),e.getDirectoryPath(t))}function K(n,r){for(;e.pathContainsNodeModules(r);)n=e.getDirectoryPath(n),r=e.getDirectoryPath(r);if(e.isNodeModulesDirectory(r))return t(e.getDirectoryPath(r))?{dir:n,dirPath:r}:void 0;var a,i,o=!0;if(void 0!==k)for(;!M(r,k);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,a=r,i=n,r=s,n=e.getDirectoryPath(n)}return t(r)?{dir:i||n,dirPath:a||r,nonRecursive:o}:void 0}function H(n){return e.fileExtensionIsOneOf(n,D)}function W(n,t,r,i){if(t.refCount)t.refCount++,e.Debug.assertDefined(t.files);else{t.refCount=1,e.Debug.assert(0===e.length(t.files)),e.isExternalModuleNameRelative(n)?z(t):f.add(n,t);var o=i(t);o&&o.resolvedFileName&&_.add(a.toPath(o.resolvedFileName),t)}(t.files||(t.files=[])).push(r)}function z(n){e.Debug.assert(!!n.refCount);var t=n.failedLookupLocations;if(t.length){m.push(n);for(var r=!1,i=0,o=t;i<o.length;i++){var s=o[i],c=a.toPath(s),l=j(s,c);if(l){var u=l.dir,d=l.dirPath,p=l.nonRecursive;if(!H(c)){var f=C.get(c)||0;C.set(c,f+1)}d===k?(e.Debug.assert(!p),r=!0):q(u,d,p)}}r&&q(I,k,!0)}}function J(e,n){var t=a.getCurrentProgram();t&&t.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)||e.forEach(z)}function q(n,t,r){var a=A.get(t);a?(e.Debug.assert(!!r===!!a.nonRecursive),a.refCount++):A.set(t,{watcher:Q(n,t,r),refCount:1,nonRecursive:r})}function X(n,t,r){if(e.unorderedRemoveItem(e.Debug.assertDefined(n.files),t),n.refCount--,!n.refCount){var i=r(n);if(i&&i.resolvedFileName&&_.remove(a.toPath(i.resolvedFileName),n),e.unorderedRemoveItem(m,n)){for(var o=!1,s=0,c=n.failedLookupLocations;s<c.length;s++){var l=c[s],u=a.toPath(l),d=j(l,u);if(d){var p=d.dirPath,f=C.get(u);f&&(1===f?C.delete(u):(e.Debug.assert(f>1),C.set(u,f-1))),p===k?o=!0:Y(p)}}o&&Y(k)}}}function Y(e){A.get(e).refCount--}function Q(e,n,t){return a.watchDirectoryOfFailedLookupLocation(e,(function(e){var t=a.toPath(e);h&&h.addOrDeleteFileOrDirectory(e,t),ne(t,n===t)}),t?0:1)}function Z(e,n,t){var r=e.get(n);r&&(r.forEach((function(e){return X(e,n,t)})),e.delete(n))}function $(e){Z(v,e,O),Z(S,e,w)}function ee(n,t){if(!n)return!1;for(var r=!1,a=0,i=n;a<i.length;a++){var o=i[a];if(!o.isInvalidated&&t(o)){o.isInvalidated=r=!0;for(var s=0,l=e.Debug.assertDefined(o.files);s<l.length;s++){var u=l[s];(c||(c=new e.Set)).add(u),g=g||e.endsWith(u,e.inferredTypesContainingFile)}}}return r}function ne(t,r){if(r)(p||(p=[])).push(t);else{var i=n(t);if(!i)return!1;if(t=i,a.fileIsOpen(t))return!1;var o=e.getDirectoryPath(t);if(V(t)||e.isNodeModulesDirectory(t)||V(o)||e.isNodeModulesDirectory(o))(u||(u=[])).push(t),(d||(d=new e.Set)).add(t);else{if(!H(t)&&!C.has(t))return!1;if(e.isEmittedFileOfProgram(a.getCurrentProgram(),t))return!1;(u||(u=[])).push(t);var s=e.parseNodeModuleFromPath(t);s&&(d||(d=new e.Set)).add(s)}}a.scheduleInvalidateResolutionsOfFailedLookupLocations()}function te(){if(!u&&!d&&!p)return!1;var e=ee(m,re);return u=void 0,d=void 0,p=void 0,e}function re(n){return n.failedLookupLocations.some((function(n){var t=a.toPath(n);return e.contains(u,t)||e.firstDefinedIterator((null===d||void 0===d?void 0:d.keys())||e.emptyIterator,(function(n){return!!e.startsWith(t,n)||void 0}))||(null===p||void 0===p?void 0:p.some((function(e){return M(e,t)})))}))}function ae(){e.clearMap(R,e.closeFileWatcher)}function ie(e,n){return a.watchTypeRootsDirectory(n,(function(t){var r=a.toPath(t);h&&h.addOrDeleteFileOrDirectory(t,r),g=!0,a.onChangedAutomaticTypeDirectiveNames();var i=function(e,n){if(M(k,n))return k;var t=K(e,n);return t&&A.has(t.dirPath)?t.dirPath:void 0}(n,e);i&&ne(r,i===r)}),1)}function oe(n){var r=e.getDirectoryPath(e.getDirectoryPath(n)),i=a.toPath(r);return i===k||t(i)}}}(ha||(ha={})),function(e){!function(n){var t,r,a,i,o,s;function c(n,t,r,a){var i=t.importModuleSpecifierPreference,o=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:"project-relative"===i?3:2,ending:function(){switch(o){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(n){var t=n.imports;return e.firstDefined(t,(function(n){var t=n.text;return e.pathIsRelative(t)?e.hasJSFileExtension(t):void 0}))||!1}(a)||l(r,a.path,n)?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function l(n,t,r){return(e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeNext)&&e.getImpliedNodeFormatForFile(t,void 0,function(n){var t;return{fileExists:n.fileExists,readFile:e.Debug.checkDefined(n.readFile),directoryExists:n.directoryExists,getCurrentDirectory:n.getCurrentDirectory,realpath:n.realpath,useCaseSensitiveFileNames:null===(t=n.useCaseSensitiveFileNames)||void 0===t?void 0:t.call(n)}}(r),n)!==e.ModuleKind.CommonJS}function u(n,t,r,a,i,o){var s=f(t,a),c=v(t,r,a,o);return e.firstDefined(c,(function(e){return S(e,s,a,n)}))||m(r,s,n,a,i)}function d(n,t,r,a){var i,o=e.getSourceFileOfModule(n);if(!o)return e.emptyArray;var s=null===(i=r.getModuleSpecifierCache)||void 0===i?void 0:i.call(r),c=null===s||void 0===s?void 0:s.get(t.path,o.path,a);return[null===c||void 0===c?void 0:c.moduleSpecifiers,o,null===c||void 0===c?void 0:c.modulePaths,s]}function p(n,t,r,a,i,o){var s=!1,l=function(n,t){var r,a=null===(r=n.declarations)||void 0===r?void 0:r.find((function(n){return e.isNonGlobalAmbientModule(n)&&(!e.isExternalModuleAugmentation(n)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name)))}));if(a)return a.name.text;var i=e.mapDefined(n.declarations,(function(n){var r,a,i,o;if(e.isModuleDeclaration(n)){var s=u(n);if((null===(r=null===s||void 0===s?void 0:s.parent)||void 0===r?void 0:r.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(i=null===(a=s.parent.parent.symbol.exports)||void 0===a?void 0:a.get("export="))||void 0===i?void 0:i.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=t.getSymbolAtLocation(c);if(l)if((2097152&(null===l||void 0===l?void 0:l.flags)?t.getAliasedSymbol(l):l)===n.symbol)return s.parent.parent}}}function u(e){for(;4&e.flags;)e=e.parent;return e}}))[0];if(i)return i.name.text}(n,t);if(l)return{moduleSpecifiers:[l],computedWithoutCache:s};var u=d(n,a,i,o),p=u[0],_=u[1],g=u[2],y=u[3];if(p)return{moduleSpecifiers:p,computedWithoutCache:s};if(!_)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:s};s=!0,g||(g=b(a.path,_.originalFileName,i));var h=function(n,t,r,a,i){var o=f(r.path,a),s=c(a,i,t,r),l=e.forEach(n,(function(n){return e.forEach(a.getFileIncludeReasons().get(e.toPath(n.path,a.getCurrentDirectory(),o.getCanonicalFileName)),(function(n){if(n.kind===e.FileIncludeKind.Import&&n.file===r.path){var t=e.getModuleNameStringLiteralAt(r,n.index).text;return 1===s.relativePreference&&e.pathIsRelative(t)?void 0:t}}))}));if(l){return[l]}for(var u,d,p,_=e.some(n,(function(e){return e.isInNodeModules})),g=0,y=n;g<y.length;g++){var h=y[g],v=S(h,o,a,t);if(u=e.append(u,v),v&&h.isRedirect)return u;if(!v&&!h.isRedirect){var b=m(h.path,o,t,a,s);e.pathIsBareSpecifier(b)?d=e.append(d,b):_&&!h.isInNodeModules||(p=e.append(p,b))}}return(null===d||void 0===d?void 0:d.length)?d:(null===u||void 0===u?void 0:u.length)?u:e.Debug.checkDefined(p)}(g,r,a,i,o);return null===y||void 0===y||y.set(a.path,_.path,o,g,h),{moduleSpecifiers:h,computedWithoutCache:s}}function f(n,t){return{getCanonicalFileName:e.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),importingSourceFileName:n,sourceDirectory:e.getDirectoryPath(n)}}function m(n,t,r,a,i){var o=i.ending,s=i.relativePreference,c=r.baseUrl,l=r.paths,u=r.rootDirs,d=t.sourceDirectory,p=t.getCanonicalFileName,f=u&&function(n,t,r,a,i,o){var s=x(t,n,a);if(void 0===s)return;var c=x(r,n,a),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,a)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?L(l,i,o):e.removeFileExtension(l)}(u,n,d,p,o,r)||L(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(d,n,p)),o,r);if(!c&&!l||0===s)return f;var m=A(n,e.getNormalizedAbsolutePath(e.getPathsBasePath(r,a)||c,a.getCurrentDirectory()),p);if(!m)return f;var g=L(m,o,r),h=l&&E(e.removeFileExtension(m),g,l),v=void 0===h&&void 0!==c?g:h;if(!v)return f;if(1===s)return v;if(3===s){var b=r.configFilePath?e.toPath(e.getDirectoryPath(r.configFilePath),a.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(a.getCurrentDirectory()),T=e.toPath(n,b,p),S=e.startsWith(d,b),D=e.startsWith(T,b);if(S&&!D||!S&&D)return v;var C=y(a,e.getDirectoryPath(T));return y(a,d)!==C?v:f}return 2!==s&&e.Debug.assertNever(s),I(v)||_(f)<_(v)?f:v}function _(n){for(var t=0,r=e.startsWith(n,"./")?2:0;r<n.length;r++)47===n.charCodeAt(r)&&t++;return t}function g(n,t){return e.compareBooleans(t.isRedirect,n.isRedirect)||e.compareNumberOfDirectorySeparators(n.path,t.path)}function y(n,t){return n.getNearestAncestorDirectoryWithPackageJson?n.getNearestAncestorDirectoryWithPackageJson(t):!!e.forEachAncestorDirectory(t,(function(t){return!!n.fileExists(e.combinePaths(t,"package.json"))||void 0}))}function h(n,t,r,a,i){var o,s=e.hostGetCanonicalFileName(r),c=r.getCurrentDirectory(),l=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,u=e.toPath(t,c,s),d=r.redirectTargetsMap.get(u)||e.emptyArray,p=pa(pa(pa([],l?[l]:e.emptyArray,!0),[t],!1),d,!0).map((function(n){return e.getNormalizedAbsolutePath(n,c)})),f=!e.every(p,e.containsIgnoredPath);if(!a){var m=e.forEach(p,(function(n){return!(f&&e.containsIgnoredPath(n))&&i(n,l===n)}));if(m)return m}var _=null===(o=r.getSymlinkCache)||void 0===o?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),g=e.getNormalizedAbsolutePath(t,c),y=_&&e.forEachAncestorDirectory(e.getDirectoryPath(g),(function(t){var r=_.get(e.ensureTrailingDirectorySeparator(e.toPath(t,c,s)));if(r)return!e.startsWithDirectory(n,t,s)&&e.forEach(p,(function(n){if(e.startsWithDirectory(n,t,s))for(var a=e.getRelativePathFromDirectory(t,n,s),o=0,c=r;o<c.length;o++){var u=c[o],d=e.resolvePath(u,a),p=i(d,n===l);if(f=!0,p)return p}}))}));return y||(a?e.forEach(p,(function(n){return f&&e.containsIgnoredPath(n)?void 0:i(n,n===l)})):void 0)}function v(n,t,r,a,i){var o;void 0===i&&(i=e.toPath(t,r.getCurrentDirectory(),e.hostGetCanonicalFileName(r)));var s=null===(o=r.getModuleSpecifierCache)||void 0===o?void 0:o.call(r);if(s){var c=s.get(n,i,a);if(null===c||void 0===c?void 0:c.modulePaths)return c.modulePaths}var l=b(n,t,r);return s&&s.setModulePaths(n,i,a,l),l}function b(n,t,r){var a=e.hostGetCanonicalFileName(r),i=new e.Map,o=!1;h(n,t,r,!0,(function(n,t){var r=e.pathContainsNodeModules(n);i.set(n,{path:a(n),isRedirect:t,isInNodeModules:r}),o=o||r}));for(var s,c=[],l=function(n){var t,r=e.ensureTrailingDirectorySeparator(n);i.forEach((function(n,a){var o=n.path,s=n.isRedirect,c=n.isInNodeModules;e.startsWith(o,r)&&((t||(t=[])).push({path:a,isRedirect:s,isInNodeModules:c}),i.delete(a))})),t&&(t.length>1&&t.sort(g),c.push.apply(c,t));var a=e.getDirectoryPath(n);if(a===n)return s=n,"break";s=n=a},u=e.getDirectoryPath(n);0!==i.size;){var d=l(u);if(u=s,"break"===d)break}if(i.size){var p=e.arrayFrom(i.values());p.length>1&&p.sort(g),c.push.apply(c,p)}return c}function E(n,t,r){for(var a in r)for(var i=0,o=r[a];i<o.length;i++){var s=o[i],c=e.removeFileExtension(e.normalizePath(s)),l=c.indexOf("*");if(-1!==l){var u=c.substr(0,l),d=c.substr(l+1);if(t.length>=u.length+d.length&&e.startsWith(t,u)&&e.endsWith(t,d)||!d&&t===e.removeTrailingDirectorySeparator(u)){var p=t.substr(u.length,t.length-d.length-u.length);return a.replace("*",p)}}else if(c===t||c===n)return a}}function T(n,t,r,a,i,o,s){if(void 0===s&&(s=0),"string"===typeof i){var c=e.getNormalizedAbsolutePath(e.combinePaths(r,i),void 0),l=e.hasTSFileExtension(t)?e.removeFileExtension(t)+C(t,n):void 0;switch(s){case 0:if(0===e.comparePaths(t,c)||l&&0===e.comparePaths(l,c))return{moduleFileToTry:a};break;case 1:if(e.containsPath(c,t)){var u=e.getRelativePathFromDirectory(c,t,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(a,i),u),void 0)}}break;case 2:var d=c.indexOf("*"),p=c.slice(0,d),f=c.slice(d+1);if(e.startsWith(t,p)&&e.endsWith(t,f)){var m=t.slice(p.length,t.length-f.length);return{moduleFileToTry:a.replace("*",m)}}if(l&&e.startsWith(l,p)&&e.endsWith(l,f)){m=l.slice(p.length,l.length-f.length);return{moduleFileToTry:a.replace("*",m)}}}}else{if(Array.isArray(i))return e.forEach(i,(function(e){return T(n,t,r,a,e,o)}));if("object"===typeof i&&null!==i){if(e.allKeysStartWithDot(i))return e.forEach(e.getOwnKeys(i),(function(s){var c=e.getNormalizedAbsolutePath(e.combinePaths(a,s),void 0),l=e.endsWith(s,"/")?1:e.stringContains(s,"*")?2:0;return T(n,t,r,c,i[s],o,l)}));for(var _=0,g=e.getOwnKeys(i);_<g.length;_++){var y=g[_];if("default"===y||o.indexOf(y)>=0||e.isApplicableVersionedTypesKey(o,y)){var h=i[y],v=T(n,t,r,a,h,o);if(v)return v}}}}}function S(n,t,r,a,i){var o=n.path,s=n.isRedirect,c=t.getCanonicalFileName,l=t.sourceDirectory;if(r.fileExists&&r.readFile){var u=function(n){var t,r=0,a=0,i=0,o=0;s=t||(t={}),s[s.BeforeNodeModules=0]="BeforeNodeModules",s[s.NodeModules=1]="NodeModules",s[s.Scope=2]="Scope",s[s.PackageContent=3]="PackageContent";var s;var c=0,l=0,u=0;for(;l>=0;)switch(c=l,l=n.indexOf("/",c+1),u){case 0:n.indexOf(e.nodeModulesPathPart,c)===c&&(r=c,a=l,u=1);break;case 1:case 2:1===u&&"@"===n.charAt(c+1)?u=2:(i=l,u=3);break;case 3:u=n.indexOf(e.nodeModulesPathPart,c)===c?1:3}return o=c,u>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:a,packageRootIndex:i,fileNameIndex:o}:void 0}(o);if(u){var d=o,p=!1;if(!i)for(var f=u.packageRootIndex,m=void 0;;){var _=A(f),g=_.moduleFileToTry,y=_.packageRootPath,h=_.blockedByExports,v=_.verbatimFromExports;if(e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.Classic){if(h)return;if(v)return g}if(y){d=y,p=!0;break}if(m||(m=g),-1===(f=o.indexOf(e.directorySeparator,f+1))){d=I(m);break}}if(!s||p){var b=r.getGlobalTypingsCacheLocation&&r.getGlobalTypingsCacheLocation(),S=c(d.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,S)||b&&e.startsWith(c(b),S)){var x=d.substring(u.topLevelPackageNameIndex+1),D=e.getPackageNameFromTypesPackageName(x);return e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.Classic&&D===x?void 0:D}}}}function A(n){var t=o.substring(0,n),i=e.combinePaths(t,"package.json"),s=o;if(r.fileExists(i)){var l=JSON.parse(r.readFile(i));if(e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.NodeNext){var u=l.exports&&"string"===typeof l.name?T(a,o,t,l.name,l.exports,["node","types"]):void 0;if(u){var d=e.hasTSFileExtension(u.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(u.moduleFileToTry)+C(u.moduleFileToTry,a)}:u;return fa(fa({},d),{verbatimFromExports:!0})}if(l.exports)return{moduleFileToTry:o,blockedByExports:!0}}var p=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(p){var f=o.slice(t.length+1),m=E(e.removeFileExtension(f),L(f,0,a),p.paths);void 0!==m&&(s=e.combinePaths(t,m))}var _=l.typings||l.types||l.main;if(e.isString(_)){var g=e.toPath(_,t,c);if(e.removeFileExtension(g)===e.removeFileExtension(c(s)))return{packageRootPath:t,moduleFileToTry:s}}}return{moduleFileToTry:s}}function I(n){var t=e.removeFileExtension(n);return"/index"!==c(t.substring(u.fileNameIndex))||function(n,t){if(!n.fileExists)return;for(var r=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),a=0,i=r;a<i.length;a++){var o=t+i[a];if(n.fileExists(o))return o}}(r,t.substring(0,u.fileNameIndex))?t:t.substring(0,u.fileNameIndex)}}function x(n,t,r){return e.firstDefined(t,(function(e){var t=A(n,e,r);return I(t)?void 0:t}))}function L(n,t,r){if(e.fileExtensionIsOneOf(n,[".json",".mjs",".cjs"]))return n;var a=e.removeFileExtension(n);if(e.fileExtensionIsOneOf(n,[".d.mts",".mts",".d.cts",".cts"]))return a+D(n,r);switch(t){case 0:return e.removeSuffix(a,"/index");case 1:return a;case 2:return a+D(n,r);default:return e.Debug.assertNever(t)}}function D(n,t){var r;return null!==(r=C(n,t))&&void 0!==r?r:e.Debug.fail("Extension ".concat(e.extensionFromPath(n)," is unsupported:: FileName:: ").concat(n))}function C(n,t){var r=e.tryGetExtensionFromPath(n);switch(r){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".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 A(n,t,r){var a=e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1);return e.isRootedDiskPath(a)?void 0:a}function I(n){return e.startsWith(n,"..")}(r=t||(t={}))[r.Relative=0]="Relative",r[r.NonRelative=1]="NonRelative",r[r.Shortest=2]="Shortest",r[r.ExternalNonRelative=3]="ExternalNonRelative",(i=a||(a={}))[i.Minimal=0]="Minimal",i[i.Index=1]="Index",i[i.JsExtension=2]="JsExtension",n.updateModuleSpecifier=function(n,t,r,a,i){var o=u(n,t,r,a,function(n,t,r,a){return{relativePreference:e.isExternalModuleNameRelative(t)?0:1,ending:e.hasJSFileExtension(t)||l(n,r,a)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs||e.endsWith(t,"index")?1:0}}(n,i,t,a),{});if(o!==i)return o},n.getModuleSpecifier=function(e,n,t,r,a){return u(e,t,r,a,c(a,{},e,n),{})},n.getNodeModulesPackageName=function(n,t,r,a,i){var o=f(t,a),s=v(t,r,a,i);return e.firstDefined(s,(function(e){return S(e,o,a,n,!0)}))},n.tryGetModuleSpecifiersFromCache=function(e,n,t,r){return d(e,n,t,r)[0]},n.getModuleSpecifiers=function(e,n,t,r,a,i){return p(e,n,t,r,a,i).moduleSpecifiers},n.getModuleSpecifiersWithCacheInfo=p,n.countPathComponents=_,n.forEachFileNameOfModule=h,(s=o||(o={}))[s.Exact=0]="Exact",s[s.Directory=1]="Directory",s[s.Pattern=2]="Pattern",n.tryGetJSExtensionForFile=C}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(ha||(ha={})),function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function t(t,r){var a=t===e.sys&&n?n:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!r)return function(n){return t.write(e.formatDiagnostic(n,a))};var i=new Array(1);return function(n){i[0]=n,t.write(e.formatDiagnosticsWithColorAndContext(i,a)+a.getNewLine()),i[0]=void 0}}function r(n,t,r){return!(!n.clearScreen||r.preserveWatchOutput||r.extendedDiagnostics||r.diagnostics||!e.contains(e.screenStartingMessageCodes,t.code))&&(n.clearScreen(),!0)}function a(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function i(n,t){return t?function(t,i,o){r(n,t,o);var s="[".concat(e.formatColorAndReset(a(n),e.ForegroundColorEscapeSequences.Grey),"] ");s+="".concat(e.flattenDiagnosticMessageText(t.messageText,n.newLine)).concat(i+i),n.write(s)}:function(t,i,o){var s="";r(n,t,o)||(s+=i),s+="".concat(a(n)," - "),s+="".concat(e.flattenDiagnosticMessageText(t.messageText,n.newLine)).concat(function(n,t){return e.contains(e.screenStartingMessageCodes,n.code)?t+t:t}(t,i)),n.write(s)}}function o(n){return e.countWhere(n,(function(n){return n.category===e.DiagnosticCategory.Error}))}function s(n){return 1===n?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function c(n,t){if(0===n)return"";var r=e.createCompilerDiagnostic(1===n?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,n);return"".concat(t).concat(e.flattenDiagnosticMessageText(r.messageText,t)).concat(t).concat(t)}function l(e){return!!e.getState}function u(n,t){var r=n.getCompilerOptions();r.explainFiles?d(l(n)?n.getProgram():n,t):(r.listFiles||r.listFilesOnly)&&e.forEach(n.getSourceFiles(),(function(e){t(e.fileName)}))}function d(n,t){for(var r,a,i=n.getFileIncludeReasons(),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=function(t){return e.convertToRelativePath(t,n.getCurrentDirectory(),o)},c=0,l=n.getSourceFiles();c<l.length;c++){var u=l[c];t("".concat(g(u,s))),null===(r=i.get(u.path))||void 0===r||r.forEach((function(e){return t(" ".concat(_(n,e,s).messageText))})),null===(a=p(u,s))||void 0===a||a.forEach((function(e){return t(" ".concat(e.messageText))}))}}function p(n,t){var r;return n.path!==n.resolvedPath&&(r||(r=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,g(n.originalFileName,t))),n.redirectInfo&&(r||(r=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,g(n.redirectInfo.redirectTarget,t))),r}function f(n,t){var r,a=n.getCompilerOptions().configFile;if(null===(r=null===a||void 0===a?void 0:a.configFileSpecs)||void 0===r?void 0:r.validatedFilesSpec){var i=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),o=i(t),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,n.getCurrentDirectory()));return e.find(a.configFileSpecs.validatedFilesSpec,(function(n){return i(e.getNormalizedAbsolutePath(n,s))===o}))}}function m(n,t){var r,a,i=n.getCompilerOptions().configFile;if(null===(r=null===i||void 0===i?void 0:i.configFileSpecs)||void 0===r?void 0:r.validatedIncludeSpecs){var o=e.fileExtensionIs(t,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,n.getCurrentDirectory())),c=n.useCaseSensitiveFileNames();return e.find(null===(a=null===i||void 0===i?void 0:i.configFileSpecs)||void 0===a?void 0:a.validatedIncludeSpecs,(function(n){if(o&&!e.endsWith(n,".json"))return!1;var r=e.getPatternFromSpec(n,s,"files");return!!r&&e.getRegexFromPattern("(".concat(r,")$"),c).test(t)}))}}function _(n,t,r){var a,i,o=n.getCompilerOptions();if(e.isReferencedFile(t)){var s=e.getReferencedFileLocation((function(e){return n.getSourceFileByPath(e)}),t),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'.concat(s.text,'"'),l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||t.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),t.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(t)}return e.chainDiagnosticMessages(void 0,l,c,g(s.file,r),s.packageId&&e.packageIdToString(s.packageId))}switch(t.kind){case e.FileIncludeKind.RootFile:if(!(null===(a=o.configFile)||void 0===a?void 0:a.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var u=e.getNormalizedAbsolutePath(n.getRootFileNames()[t.index],n.getCurrentDirectory());if(f(n,u))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var d=m(n,u);return d?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,d,g(o.configFile,r)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var p=t.kind===e.FileIncludeKind.OutputFromProjectReference,_=e.Debug.checkDefined(null===(i=n.getResolvedProjectReferences())||void 0===i?void 0:i[t.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?p?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:p?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,g(_.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?t.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&e.packageIdToString(t.packageId));case e.FileIncludeKind.LibFile:if(void 0!==t.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[t.index]);var y=e.forEachEntry(e.targetOptionDeclaration.type,(function(n,t){return n===e.getEmitScriptTarget(o)?t:void 0}));return e.chainDiagnosticMessages(void 0,y?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,y);default:e.Debug.assertNever(t)}}function g(n,t){var r=e.isString(n)?n:n.fileName;return t?t(r):r}function y(n,t,r,a,i,s,c,l){var d=!!n.getCompilerOptions().listFilesOnly,p=n.getConfigFileParsingDiagnostics().slice(),f=p.length;e.addRange(p,n.getSyntacticDiagnostics(void 0,s)),p.length===f&&(e.addRange(p,n.getOptionsDiagnostics(s)),d||(e.addRange(p,n.getGlobalDiagnostics(s)),p.length===f&&e.addRange(p,n.getSemanticDiagnostics(void 0,s))));var m=d?{emitSkipped:!0,diagnostics:e.emptyArray}:n.emit(void 0,i,s,c,l),_=m.emittedFiles,g=m.diagnostics;e.addRange(p,g);var y=e.sortAndDeduplicateDiagnostics(p);if(y.forEach(t),r){var h=n.getCurrentDirectory();e.forEach(_,(function(n){var t=e.getNormalizedAbsolutePath(n,h);r("TSFILE: ".concat(t))})),u(n,r)}return a&&a(o(y)),{emitResult:m,diagnostics:y}}function h(n,t,r,a,i,o,s,c){var l=y(n,t,r,a,i,o,s,c),u=l.emitResult,d=l.diagnostics;return u.emitSkipped&&d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function v(n,t){return void 0===n&&(n=e.sys),{onWatchStatusChange:t||i(n),watchFile:e.maybeBind(n,n.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(n,n.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(n,n.setTimeout)||e.noop,clearTimeout:e.maybeBind(n,n.clearTimeout)||e.noop}}function b(n,t){var r=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getNewLine:function(){return n.newLine},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),getDefaultLibLocation:r,getDefaultLibFileName:function(n){return e.combinePaths(r(),e.getDefaultLibFileName(n))},fileExists:function(e){return n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:function(e){return n.directoryExists(e)},getDirectories:function(e){return n.getDirectories(e)},readDirectory:function(e,t,r,a,i){return n.readDirectory(e,t,r,a,i)},realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable),trace:function(e){return n.write(e+n.newLine)},createDirectory:function(e){return n.createDirectory(e)},writeFile:function(e,t,r){return n.writeFile(e,t,r)},createHash:e.maybeBind(n,n.createHash),createProgram:t||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:n.disableUseFileVersionAsSignature}}function E(n,t,r,a){void 0===n&&(n=e.sys);var i=function(e){return n.write(e+n.newLine)},o=b(n,t);return e.copyProperties(o,v(n,a)),o.afterProgramCreate=function(t){var a=t.getCompilerOptions(),c=e.getNewLineCharacter(a,(function(){return n.newLine}));y(t,r,i,(function(n){return o.onWatchStatusChange(e.createCompilerDiagnostic(s(n),n),c,a,n)}))},o}function T(n,t,r){t(r),n.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=t,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(n,t,r,a,i,o){var s=i;s.onUnRecoverableConfigFileDiagnostic=function(e){return T(i,o,e)};var c=e.getParsedCommandLineOfConfigFile(n,t,s,r,a);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=o,e.getWatchErrorSummaryDiagnosticMessage=s,e.getErrorSummaryText=c,e.isBuilderProgram=l,e.listFiles=u,e.explainFiles=d,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=f,e.getMatchedIncludeSpec=m,e.fileIncludeReasonToDiagnostics=_,e.emitFilesAndReportErrors=y,e.emitFilesAndReportErrorsAndGetExitStatus=h,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=v,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",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"},e.createWatchFactory=function(n,t){var r=n.trace?t.extendedDiagnostics?e.WatchLogLevel.Verbose:t.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,a=r!==e.WatchLogLevel.None?function(e){return n.trace(e)}:e.noop,i=e.getWatchFactory(n,r,a);return i.writeLog=a,i},e.createCompilerHostFromProgramHost=function(n,t,r){void 0===r&&(r=n);var a=n.useCaseSensitiveFileNames(),i=e.memoize((function(){return n.getNewLine()}));return{getSourceFile:function(r,a,i){var o;try{e.performance.mark("beforeIORead"),o=n.readFile(r,t().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Oa){i&&i(Oa.message),o=""}return void 0!==o?e.createSourceFile(r,o,a):void 0},getDefaultLibLocation:e.maybeBind(n,n.getDefaultLibLocation),getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,a,i){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,r,a,(function(e,t,r){return n.writeFile(e,t,r)}),(function(e){return n.createDirectory(e)}),(function(e){return n.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Oa){i&&i(Oa.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return a},getCanonicalFileName:e.createGetCanonicalFileName(a),getNewLine:function(){return e.getNewLineCharacter(t(),i)},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:e.maybeBind(n,n.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(n,n.createHash),readDirectory:e.maybeBind(n,n.readDirectory),disableUseFileVersionAsSignature:n.disableUseFileVersionAsSignature}},e.setGetSourceFileAsHashVersioned=function(n,t){var r=n.getSourceFile,a=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=r.call.apply(r,pa([n],e,!1));return i&&(i.version=a(i.text)),i}},e.createProgramHost=b,e.createWatchCompilerHostOfConfigFile=function(e){var n=e.configFileName,r=e.optionsToExtend,a=e.watchOptionsToExtend,i=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=c||t(o),d=E(o,s,u,l);return d.onUnRecoverableConfigFileDiagnostic=function(e){return T(o,u,e)},d.configFileName=n,d.optionsToExtend=r,d.watchOptionsToExtend=a,d.extraFileExtensions=i,d},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var n=e.rootFiles,r=e.options,a=e.watchOptions,i=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=E(o,s,c||t(o),l);return u.rootFiles=n,u.options=r,u.watchOptions=a,u.projectReferences=i,u},e.performIncrementalCompilation=function(n){var r=n.system||e.sys,a=n.host||(n.host=e.createIncrementalCompilerHost(n.options,r)),i=e.createIncrementalProgram(n),o=h(i,n.reportDiagnostic||t(r),(function(e){return a.trace&&a.trace(e)}),n.reportErrorSummary||n.options.pretty?function(e){return r.write(c(e,r.newLine))}:void 0);return n.afterProgramEmitAndDiagnostics&&n.afterProgramEmitAndDiagnostics(i),o}}(ha||(ha={})),function(e){function n(n,t){if(!e.outFile(n)){var r=e.getTsBuildInfoEmitOutputFilePath(n);if(r){var a=t.readFile(r);if(a){var i=e.getBuildInfo(a);if(i.version===e.version&&i.program)return e.createBuildProgramUsingProgramBuildInfo(i.program,r,t)}}}}function t(n,t){void 0===t&&(t=e.sys);var r=e.createCompilerHostWorker(n,void 0,t);return r.createHash=e.maybeBind(t,t.createHash),r.disableUseFileVersionAsSignature=t.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(r,t),e.changeCompilerHostLikeToUseCache(r,(function(n){return e.toPath(n,r.getCurrentDirectory(),r.getCanonicalFileName)})),r}e.readBuilderProgram=n,e.createIncrementalCompilerHost=t,e.createIncrementalProgram=function(r){var a=r.rootNames,i=r.options,o=r.configFileParsingDiagnostics,s=r.projectReferences,c=r.host,l=r.createProgram;return c=c||t(i),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(a,i,c,n(i,c),o,s)},e.createWatchCompilerHost=function(n,t,r,a,i,o,s,c){return e.isArray(n)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:n,options:t,watchOptions:c,projectReferences:s,system:r,createProgram:a,reportDiagnostic:i,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:n,optionsToExtend:t,watchOptionsToExtend:s,extraFileExtensions:c,system:r,createProgram:a,reportDiagnostic:i,reportWatchStatus:o})},e.createWatchProgram=function(t){var r,a,i,o,s,c,l,u,d,p,f,m,_=t.extendedConfigCache,g=!1,y=new e.Map,h=!1,v=t.useCaseSensitiveFileNames(),b=t.getCurrentDirectory(),E=t.configFileName,T=t.optionsToExtend,S=void 0===T?{}:T,x=t.watchOptionsToExtend,L=t.extraFileExtensions,D=t.createProgram,C=t.rootFiles,A=t.options,I=t.watchOptions,k=t.projectReferences,N=!1,R=!1,O=void 0===E?void 0:e.createCachedDirectoryStructureHost(t,b,v),w=O||t,M=e.parseConfigHostFromCompilerHostLike(t,w),P=Q();E&&t.configFileParsingResult&&(pe(t.configFileParsingResult),P=Q()),ae(e.Diagnostics.Starting_compilation_in_watch_mode),E&&!t.configFileParsingResult&&(P=e.getNewLineCharacter(S,(function(){return t.getNewLine()})),e.Debug.assert(!C),de(),P=Q());var F,G=e.createWatchFactory(t,A),B=G.watchFile,U=G.watchDirectory,V=G.writeLog,j=e.createGetCanonicalFileName(v);V("Current directory: ".concat(b," CaseSensitiveFileNames: ").concat(v)),E&&(F=B(E,(function(){e.Debug.assert(!!E),a=e.ConfigFileProgramReloadLevel.Full,ce()}),e.PollingInterval.High,I,e.WatchType.ConfigFile));var K=e.createCompilerHostFromProgramHost(t,(function(){return A}),w);e.setGetSourceFileAsHashVersioned(K,t);var H=K.getSourceFile;K.getSourceFile=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return ne.apply(void 0,pa([e,Z(e)],n,!1))},K.getSourceFileByPath=ne,K.getNewLine=function(){return P},K.fileExists=ee,K.onReleaseOldSourceFile=function(e,n,t){var r=y.get(e.resolvedPath);void 0!==r&&($(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),y.delete(e.resolvedPath),t||W.removeResolutionsOfFile(e.path)))},K.onReleaseParsedCommandLine=function(n){var t,r=Z(n),a=null===u||void 0===u?void 0:u.get(r);if(!a)return;u.delete(r),a.watchedDirectories&&e.clearMap(a.watchedDirectories,e.closeFileWatcherOf);null===(t=a.watcher)||void 0===t||t.close(),e.clearSharedExtendedConfigFileWatcher(r,d)},K.toPath=Z,K.getCompilationSettings=function(){return A},K.useSourceOfProjectReferenceRedirect=e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),K.watchDirectoryOfFailedLookupLocation=function(n,t,r){return U(n,t,r,I,e.WatchType.FailedLookupLocations)},K.watchTypeRootsDirectory=function(n,t,r){return U(n,t,r,I,e.WatchType.TypeRoots)},K.getCachedDirectoryStructureHost=function(){return O},K.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!t.setTimeout||!t.clearTimeout)return W.invalidateResolutionsOfFailedLookupLocations();var e=oe();V("Scheduling invalidateFailedLookup".concat(e?", Cancelled earlier one":"")),l=t.setTimeout(se,250)},K.onInvalidatedResolution=ce,K.onChangedAutomaticTypeDirectiveNames=ce,K.fileIsOpen=e.returnFalse,K.getCurrentProgram=X,K.writeLog=V,K.getParsedCommandLine=fe;var W=e.createResolutionCache(K,E?e.getDirectoryPath(e.getNormalizedAbsolutePath(E,b)):b,!1);K.resolveModuleNames=t.resolveModuleNames?function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolveModuleNames.apply(t,e)}:function(e,n,t,r,a,i){return W.resolveModuleNames(e,n,t,r,i)},K.resolveTypeReferenceDirectives=t.resolveTypeReferenceDirectives?function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolveTypeReferenceDirectives.apply(t,e)}:function(e,n,t){return W.resolveTypeReferenceDirectives(e,n,t)};var z=!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives;return r=n(A,K),Y(),Ee(),E&&Se(Z(E),A,I,e.WatchType.ExtendedConfigFile),E?{getCurrentProgram:q,getProgram:ue,close:J}:{getCurrentProgram:q,getProgram:ue,updateRootFileNames:function(n){e.Debug.assert(!E,"Cannot update root file names with config file watch mode"),C=n,ce()},close:J};function J(){oe(),W.clear(),e.clearMap(y,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),F&&(F.close(),F=void 0),null===_||void 0===_||_.clear(),_=void 0,d&&(e.clearMap(d,e.closeFileWatcherOf),d=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),i&&(e.clearMap(i,e.closeFileWatcher),i=void 0),u&&(e.clearMap(u,(function(n){var t;null===(t=n.watcher)||void 0===t||t.close(),n.watcher=void 0,n.watchedDirectories&&e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0})),u=void 0),o&&(e.clearMap(o,e.closeFileWatcher),o=void 0)}function q(){return r}function X(){return r&&r.getProgramOrUndefined()}function Y(){V("Synchronizing program"),oe();var n=q();h&&(P=Q(),n&&(g||e.changesAffectModuleResolution(n.getCompilerOptions(),A))&&W.clear());var a=W.createHasInvalidatedResolution(z||g);return e.isProgramUptoDate(X(),C,A,re,ee,a,ie,fe,k)?R&&(r=D(void 0,void 0,K,r,m,k),R=!1):function(n){V("CreatingProgramWith::"),V(" roots: ".concat(JSON.stringify(C))),V(" options: ".concat(JSON.stringify(A))),k&&V(" projectReferences: ".concat(JSON.stringify(k)));var t=h||!X();h=!1,R=!1,W.startCachingPerDirectoryResolution(),K.hasInvalidatedResolution=n,K.hasChangedAutomaticTypeDirectiveNames=ie,r=D(C,A,K,r,m,k);var a=e.map(W.getModuleResolutionCache().getPackageJsonInfoCache().entries(),(function(e){var n=e[0],t=e[1];return[K.realpath?Z(K.realpath(n)):n,t]}));W.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(r.getProgram(),i||(i=new e.Map),ye),e.updatePackageJsonWatch(a,o||(o=new e.Map),he),t&&W.updateTypeRootsWatch();if(p){for(var s=0,c=p;s<c.length;s++){var l=c[s];i.has(l)||y.delete(l)}p=void 0}}(a),g=!1,t.afterProgramCreate&&n!==r&&t.afterProgramCreate(r),r}function Q(){return e.getNewLineCharacter(A||S,(function(){return t.getNewLine()}))}function Z(n){return e.toPath(n,b,j)}function $(e){return"boolean"===typeof e}function ee(e){var n=Z(e);return!$(y.get(n))&&w.fileExists(e)}function ne(n,t,r,a,i){var o=y.get(t);if(!$(o)){if(void 0===o||i||function(e){return"boolean"===typeof e.version}(o)){var s=H(n,r,a);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=me(t,n,_e,e.PollingInterval.Low,I,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),y.set(t,!1));else if(s){var c=me(t,n,_e,e.PollingInterval.Low,I,e.WatchType.SourceFile);y.set(t,{sourceFile:s,version:s.version,fileWatcher:c})}else y.set(t,!1);return s&&(s.impliedNodeFormat=e.getImpliedNodeFormatForFile(t,W.getModuleResolutionCache().getPackageJsonInfoCache(),K,K.getCompilationSettings())),s}return o.sourceFile}}function te(e){var n=y.get(e);void 0!==n&&($(n)?y.set(e,{version:!1}):n.version=!1)}function re(e){var n=y.get(e);return n&&n.version?n.version:void 0}function ae(n){t.onWatchStatusChange&&t.onWatchStatusChange(e.createCompilerDiagnostic(n),P,A||S)}function ie(){return W.hasChangedAutomaticTypeDirectiveNames()}function oe(){return!!l&&(t.clearTimeout(l),l=void 0,!0)}function se(){l=void 0,W.invalidateResolutionsOfFailedLookupLocations()&&ce()}function ce(){t.setTimeout&&t.clearTimeout&&(c&&t.clearTimeout(c),V("Scheduling update"),c=t.setTimeout(le,250))}function le(){c=void 0,ae(e.Diagnostics.File_change_detected_Starting_incremental_compilation),ue()}function ue(){switch(a){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){V("Reloading new file names and options"),C=e.getFileNamesFromConfigSpecs(A.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(E),b),A,M,L),e.updateErrorForNoInputFiles(C,e.getNormalizedAbsolutePath(E,b),A.configFile.configFileSpecs,m,N)&&(R=!0);Y()}();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),function(){V("Reloading config file: ".concat(E)),a=e.ConfigFileProgramReloadLevel.None,O&&O.clearCache();de(),h=!0,Y(),Ee(),Se(Z(E),A,I,e.WatchType.ExtendedConfigFile)}();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Y()}return e.perfLogger.logStopUpdateProgram("Done"),q()}function de(){pe(e.getParsedCommandLineOfConfigFile(E,S,M,_||(_=new e.Map),x,L))}function pe(n){C=n.fileNames,A=n.options,I=n.watchOptions,k=n.projectReferences,f=n.wildcardDirectories,m=e.getConfigFileParsingDiagnostics(n).slice(),N=e.canJsonReportNoInputFiles(n.raw),R=!0}function fe(n){var r=Z(n),a=null===u||void 0===u?void 0:u.get(r);if(a){if(!a.reloadLevel)return a.parsedCommandLine;if(a.parsedCommandLine&&a.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!t.getParsedCommandLine){V("Reloading new file names and options");var i=e.getFileNamesFromConfigSpecs(a.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),b),A,M);return a.parsedCommandLine=fa(fa({},a.parsedCommandLine),{fileNames:i}),a.reloadLevel=void 0,a.parsedCommandLine}}V("Loading config file: ".concat(n));var o=t.getParsedCommandLine?t.getParsedCommandLine(n):function(n){var t=M.onUnRecoverableConfigFileDiagnostic;M.onUnRecoverableConfigFileDiagnostic=e.noop;var r=e.getParsedCommandLineOfConfigFile(n,void 0,M,_||(_=new e.Map),x);return M.onUnRecoverableConfigFileDiagnostic=t,r}(n);return a?(a.parsedCommandLine=o,a.reloadLevel=void 0):(u||(u=new e.Map)).set(r,a={parsedCommandLine:o}),function(n,t,r){var a,i,o,s,c;r.watcher||(r.watcher=B(n,(function(r,a){ge(n,t,a);var i=null===u||void 0===u?void 0:u.get(t);i&&(i.reloadLevel=e.ConfigFileProgramReloadLevel.Full),W.removeResolutionsFromProjectReferenceRedirects(t),ce()}),e.PollingInterval.High,(null===(a=r.parsedCommandLine)||void 0===a?void 0:a.watchOptions)||I,e.WatchType.ConfigFileOfReferencedProject)),(null===(i=r.parsedCommandLine)||void 0===i?void 0:i.wildcardDirectories)?e.updateWatchingWildcardDirectories(r.watchedDirectories||(r.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=r.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),(function(a,i){var o;return U(a,(function(r){var i=Z(r);O&&O.addOrDeleteFileOrDirectory(r,i),te(i);var o=null===u||void 0===u?void 0:u.get(t);(null===o||void 0===o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:Z(a),fileOrDirectory:r,fileOrDirectoryPath:i,configFileName:n,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:b,useCaseSensitiveFileNames:v,writeLog:V,toPath:Z})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,ce()))}),i,(null===(o=r.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||I,e.WatchType.WildcardDirectoryOfReferencedProject)})):r.watchedDirectories&&(e.clearMap(r.watchedDirectories,e.closeFileWatcherOf),r.watchedDirectories=void 0);Se(t,null===(s=r.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=r.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||I,e.WatchType.ExtendedConfigOfReferencedProject)}(n,r,a),o}function me(e,n,t,r,a,i){return B(n,(function(n,r){return t(n,r,e)}),r,a,i)}function _e(n,t,r){ge(n,r,t),t===e.FileWatcherEventKind.Deleted&&y.has(r)&&W.invalidateResolutionOfFile(r),te(r),ce()}function ge(e,n,t){O&&O.addOrDeleteFile(e,n,t)}function ye(n){return(null===u||void 0===u?void 0:u.has(n))?e.noopFileWatcher:me(n,n,be,e.PollingInterval.Medium,I,e.WatchType.MissingFile)}function he(n){return y.has(n)?e.noopFileWatcher:me(n,n,ve,e.PollingInterval.High,I,e.WatchType.PackageJson)}function ve(n,t,r){ge(n,r,t),a=e.ConfigFileProgramReloadLevel.Full,g=!0,ce()}function be(n,t,r){ge(n,r,t),t===e.FileWatcherEventKind.Created&&i.has(r)&&(i.get(r).close(),i.delete(r),te(r),ce())}function Ee(){f?e.updateWatchingWildcardDirectories(s||(s=new e.Map),new e.Map(e.getEntries(f)),Te):s&&e.clearMap(s,e.closeFileWatcherOf)}function Te(n,t){return U(n,(function(t){e.Debug.assert(!!E);var r=Z(t);O&&O.addOrDeleteFileOrDirectory(t,r),te(r),e.isIgnoredFileFromWildCardWatching({watchedDirPath:Z(n),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:E,extraFileExtensions:L,options:A,program:q()||C,currentDirectory:b,useCaseSensitiveFileNames:v,writeLog:V,toPath:Z})||a!==e.ConfigFileProgramReloadLevel.Full&&(a=e.ConfigFileProgramReloadLevel.Partial,ce())}),t,I,e.WatchType.WildcardDirectory)}function Se(n,t,r,i){e.updateSharedExtendedConfigFileWatcher(n,t,d||(d=new e.Map),(function(n,t){return B(n,(function(r,i){var o;ge(n,t,i),_&&e.cleanExtendedConfigCache(_,t,Z);var s=null===(o=d.get(t))||void 0===o?void 0:o.projects;(null===s||void 0===s?void 0:s.size)&&s.forEach((function(n){if(Z(E)===n)a=e.ConfigFileProgramReloadLevel.Full;else{var t=null===u||void 0===u?void 0:u.get(n);t&&(t.reloadLevel=e.ConfigFileProgramReloadLevel.Full),W.removeResolutionsFromProjectReferenceRedirects(n)}ce()}))}),e.PollingInterval.High,r,i)}),Z)}}}(ha||(ha={})),function(e){var n;(n=e.UpToDateStatusType||(e.UpToDateStatusType={}))[n.Unbuildable=0]="Unbuildable",n[n.UpToDate=1]="UpToDate",n[n.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",n[n.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",n[n.OutputMissing=4]="OutputMissing",n[n.OutOfDateWithSelf=5]="OutOfDateWithSelf",n[n.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",n[n.UpstreamOutOfDate=7]="UpstreamOutOfDate",n[n.UpstreamBlocked=8]="UpstreamBlocked",n[n.ComputingUpstream=9]="ComputingUpstream",n[n.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",n[n.ContainerOnly=11]="ContainerOnly",e.resolveConfigFileProjectName=function(n){return e.fileExtensionIs(n,".json")?n:e.combinePaths(n,"tsconfig.json")}}(ha||(ha={})),function(e){var n,t,r,a,i,o,s=new Date(-864e13),c=new Date(864e13);function l(n,t){return function(e,n,t){var r,a=e.get(n);return a||(r=t(),e.set(n,r)),a||r}(n,t,(function(){return new e.Map}))}function u(e,n){return n>e?n:e}function d(n){return e.fileExtensionIs(n,".d.ts")}function p(e){return!!e&&!!e.buildOrder}function f(e){return p(e)?e.buildOrder:e}function m(n,t){return function(r){var a=t?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(n),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(n)," - ");a+="".concat(e.flattenDiagnosticMessageText(r.messageText,n.newLine)).concat(n.newLine+n.newLine),n.write(a)}}function _(n,t,r,a){var i=e.createProgramHost(n,t);return i.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:e.returnUndefined,i.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:e.noop,i.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:e.noop,i.reportDiagnostic=r||e.createDiagnosticReporter(n),i.reportSolutionBuilderStatus=a||m(n),i.now=e.maybeBind(n,n.now),i}function g(n,t,r,a,i){var o=t,s=t,c=o.getCurrentDirectory(),l=e.createGetCanonicalFileName(o.useCaseSensitiveFileNames()),u=function(n){var t={};return e.commonOptionsWithBuild.forEach((function(r){e.hasProperty(n,r.name)&&(t[r.name]=n[r.name])})),t}(a),d=e.createCompilerHostFromProgramHost(o,(function(){return T.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(d,o),d.getParsedCommandLine=function(e){return E(T,e,h(T,e))},d.resolveModuleNames=e.maybeBind(o,o.resolveModuleNames),d.resolveTypeReferenceDirectives=e.maybeBind(o,o.resolveTypeReferenceDirectives);var p=d.resolveModuleNames?void 0:e.createModuleResolutionCache(c,l),f=d.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(c,l,void 0,null===p||void 0===p?void 0:p.getPackageJsonInfoCache());if(!d.resolveModuleNames){var m=function(n,t,r,a){return e.resolveModuleName(n,r,T.projectCompilerOptions,d,p,a,t).resolvedModule};d.resolveModuleNames=function(n,t,r,a,i,o){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(n),e.Debug.checkDefined(o),t,a,m)},d.getModuleResolutionCache=function(){return p}}if(!d.resolveTypeReferenceDirectives){var _=function(n,t,r){return e.resolveTypeReferenceDirective(n,t,T.projectCompilerOptions,d,r,T.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};d.resolveTypeReferenceDirectives=function(n,t,r){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,r,_)}}var g=e.createWatchFactory(s,a),y=g.watchFile,v=g.watchDirectory,b=g.writeLog,T={host:o,hostWithWatch:s,currentDirectory:c,getCanonicalFileName:l,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(o),write:e.maybeBind(o,o.trace),options:a,baseCompilerOptions:u,rootNames:r,baseWatchOptions:i,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:d,moduleResolutionCache:p,typeReferenceDirectiveResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return o.readFile(e)},projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:n,currentInvalidatedProject:void 0,watch:n,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:y,watchDirectory:v,writeLog:b};return T}function y(n,t){return e.toPath(t,n.currentDirectory,n.getCanonicalFileName)}function h(e,n){var t=e.resolvedConfigFilePaths,r=t.get(n);if(void 0!==r)return r;var a=y(e,n);return t.set(n,a),a}function v(e){return!!e.options}function b(e,n){var t=e.configFileCache.get(n);return t&&v(t)?t:void 0}function E(n,t,r){var a,i=n.configFileCache,o=i.get(r);if(o)return v(o)?o:void 0;var s,c=n.parseConfigFileHost,l=n.baseCompilerOptions,u=n.baseWatchOptions,d=n.extendedConfigCache,p=n.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(t))||(a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return a=e},s=e.getParsedCommandLineOfConfigFile(t,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),i.set(r,s||a),s}function T(n,t){return e.resolveConfigFileProjectName(e.resolvePath(n.currentDirectory,t))}function S(n,t){for(var r,a,i=new e.Map,o=new e.Map,s=[],c=0,l=t;c<l.length;c++){u(l[c])}return a?{buildOrder:r||e.emptyArray,circularDiagnostics:a}:r||e.emptyArray;function u(t,c){var l=h(n,t);if(!o.has(l))if(i.has(l))c||(a||(a=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{i.set(l,!0),s.push(t);var d=E(n,t,l);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var m=f[p];u(T(n,m.path),c||m.circular)}s.pop(),o.set(l,!0),(r||(r=[])).push(t)}}}function x(n){return n.buildOrder||function(n){var t=S(n,n.rootNames.map((function(e){return T(n,e)})));n.resolvedConfigFilePaths.clear();var r=new e.Map(f(t).map((function(e){return[h(n,e),!0]}))),a={onDeleteValue:e.noop};e.mutateMapSkippingNewValues(n.configFileCache,r,a),e.mutateMapSkippingNewValues(n.projectStatus,r,a),e.mutateMapSkippingNewValues(n.buildInfoChecked,r,a),e.mutateMapSkippingNewValues(n.builderPrograms,r,a),e.mutateMapSkippingNewValues(n.diagnostics,r,a),e.mutateMapSkippingNewValues(n.projectPendingBuild,r,a),e.mutateMapSkippingNewValues(n.projectErrorsReported,r,a),n.watch&&(e.mutateMapSkippingNewValues(n.allWatchedConfigFiles,r,{onDeleteValue:e.closeFileWatcher}),n.allWatchedExtendedConfigFiles.forEach((function(e){e.projects.forEach((function(n){r.has(n)||e.projects.delete(n)})),e.close()})),e.mutateMapSkippingNewValues(n.allWatchedWildcardDirectories,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(n.allWatchedInputFiles,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(n.allWatchedPackageJsonFiles,r,{onDeleteValue:function(n){return n.forEach(e.closeFileWatcher)}}));return n.buildOrder=t}(n)}function L(n,t,r){var a=t&&T(n,t),i=x(n);if(p(i))return i;if(a){var o=h(n,a);if(-1===e.findIndex(i,(function(e){return h(n,e)===o})))return}var s=a?S(n,[a]):i;return e.Debug.assert(!p(s)),e.Debug.assert(!r||void 0!==a),e.Debug.assert(!r||s[s.length-1]===a),r?s.slice(0,s.length-1):s}function D(n){n.cache&&C(n);var t=n.compilerHost,r=n.host,a=n.readFileWithCache,i=t.getSourceFile,o=e.changeCompilerHostLikeToUseCache(r,(function(e){return y(n,e)}),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i.call.apply(i,pa([t],e,!1))})),s=o.originalReadFile,c=o.originalFileExists,l=o.originalDirectoryExists,u=o.originalCreateDirectory,d=o.originalWriteFile,p=o.getSourceFileWithCache,f=o.readFileWithCache;n.readFileWithCache=f,t.getSourceFile=p,n.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:l,originalCreateDirectory:u,originalWriteFile:d,originalReadFileWithCache:a,originalGetSourceFile:i}}function C(e){if(e.cache){var n=e.cache,t=e.host,r=e.compilerHost,a=e.extendedConfigCache,i=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;t.readFile=n.originalReadFile,t.fileExists=n.originalFileExists,t.directoryExists=n.originalDirectoryExists,t.createDirectory=n.originalCreateDirectory,t.writeFile=n.originalWriteFile,r.getSourceFile=n.originalGetSourceFile,e.readFileWithCache=n.originalReadFileWithCache,a.clear(),null===i||void 0===i||i.clear(),null===o||void 0===o||o.clear(),e.cache=void 0}}function A(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function I(e,n,t){var r=e.projectPendingBuild,a=r.get(n);(void 0===a||a<t)&&r.set(n,t)}function k(n,t){n.allProjectBuildPending&&(n.allProjectBuildPending=!1,n.options.watch&&ae(n,e.Diagnostics.Starting_compilation_in_watch_mode),D(n),f(x(n)).forEach((function(t){return n.projectPendingBuild.set(h(n,t),e.ConfigFileProgramReloadLevel.None)})),t&&t.throwIfCancellationRequested())}function N(n,t){return n.projectPendingBuild.delete(t),n.currentInvalidatedProject=void 0,n.diagnostics.has(t)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function R(e,n,t,a,i){var o=!0;return{kind:r.UpdateOutputFileStamps,project:n,projectPath:t,buildOrder:i,getCompilerOptions:function(){return a.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){j(e,a,t),o=!1},done:function(){return o&&j(e,a,t),N(e,t)}}}function O(t,a,o,l,p,f,m){var _,g,v,b=t===r.Build?i.CreateProgram:i.EmitBundle;return t===r.Build?{kind:t,project:o,projectPath:l,buildOrder:m,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return a.currentDirectory},getBuilderProgram:function(){return x(e.identity)},getProgram:function(){return x((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return x((function(n){return n.getSourceFile(e)}))},getSourceFiles:function(){return L((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return L((function(n){return n.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return L((function(n){return n.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return L((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,n){return L((function(t){return t.getSyntacticDiagnostics(e,n)}))},getAllDependencies:function(e){return L((function(n){return n.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,n){return L((function(t){return t.getSemanticDiagnostics(e,n)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,n){return x((function(t){return t.getSemanticDiagnosticsOfNextAffectedFile&&t.getSemanticDiagnosticsOfNextAffectedFile(e,n)}))},emit:function(e,n,t,r,s){return e||r?x((function(i){var c,l;return i.emit(e,n,t,r,s||(null===(l=(c=a.host).getCustomTransformers)||void 0===l?void 0:l.call(c,o)))})):(B(i.SemanticDiagnostics,t),b===i.EmitBuildInfo?R(n,t):b===i.Emit?k(n,t,s):void 0)},done:S}:{kind:t,project:o,projectPath:l,buildOrder:m,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return a.currentDirectory},emit:function(e,n){return b!==i.EmitBundle?v:M(e,n)},done:S};function S(e,n,t){return B(i.Done,e,n,t),N(a,l)}function x(e){return B(i.CreateProgram),_&&e(_)}function L(n){return x(n)||e.emptyArray}function D(){var t,r;if(e.Debug.assert(void 0===_),a.options.dry)return re(a,e.Diagnostics.A_non_dry_build_would_build_project_0,o),g=n.Success,void(b=i.QueueReferencingProjects);if(a.options.verbose&&re(a,e.Diagnostics.Building_project_0,o),0===f.fileNames.length)return oe(a,l,e.getConfigFileParsingDiagnostics(f)),g=n.None,void(b=i.QueueReferencingProjects);var s=a.host,c=a.compilerHost;a.projectCompilerOptions=f.options,null===(t=a.moduleResolutionCache)||void 0===t||t.update(f.options),null===(r=a.typeReferenceDirectiveResolutionCache)||void 0===r||r.update(f.options),_=s.createProgram(f.fileNames,f.options,c,function(n,t,r){var a=n.options,i=n.builderPrograms,o=n.compilerHost;if(a.force)return;var s=i.get(t);return s||e.readBuilderProgram(r.options,o)}(a,l,f),e.getConfigFileParsingDiagnostics(f),f.projectReferences),a.watch&&(a.lastCachedPackageJsonLookups.set(l,a.moduleResolutionCache&&e.map(a.moduleResolutionCache.getPackageJsonInfoCache().entries(),(function(e){var n=e[0],t=e[1];return[a.host.realpath&&t?y(a,a.host.realpath(n)):n,t]}))),a.builderPrograms.set(l,_)),b++}function C(e,n,t){var r;e.length?(r=G(a,l,_,f,e,n,t),g=r.buildResult,b=r.step):b++}function A(t){e.Debug.assertIsDefined(_),C(pa(pa(pa(pa([],_.getConfigFileParsingDiagnostics(),!0),_.getOptionsDiagnostics(t),!0),_.getGlobalDiagnostics(t),!0),_.getSyntacticDiagnostics(void 0,t),!0),n.SyntaxErrors,"Syntactic")}function I(t){C(e.Debug.checkDefined(_).getSemanticDiagnostics(void 0,t),n.TypeErrors,"Semantic")}function k(t,r,c){var p,m,h,v;e.Debug.assertIsDefined(_),e.Debug.assert(b===i.Emit),_.backupState();var E=[],T=e.emitFilesAndReportErrors(_,(function(e){return(v||(v=[])).push(e)}),void 0,void 0,(function(e,n,t){return E.push({name:e,text:n,writeByteOrderMark:t})}),r,!1,c||(null===(h=(m=a.host).getCustomTransformers)||void 0===h?void 0:h.call(m,o))).emitResult;if(v)return _.restoreState(),p=G(a,l,_,f,v,n.DeclarationEmitErrors,"Declaration file"),g=p.buildResult,b=p.step,{emitSkipped:!0,diagnostics:T.diagnostics};var S=a.host,x=a.compilerHost,L=n.DeclarationOutputUnchanged,D=s,C=!1,A=e.createDiagnosticCollection(),I=new e.Map;return E.forEach((function(r){var i,o=r.name,s=r.text,c=r.writeByteOrderMark;!C&&d(o)&&(S.fileExists(o)&&a.readFileWithCache(o)===s?i=S.getModifiedTime(o):(L&=~n.DeclarationOutputUnchanged,C=!0)),I.set(y(a,o),o),e.writeFile(t?{writeFile:t}:x,A,o,s,c),void 0!==i&&(D=u(i,D))})),w(A,I,D,C,E.length?E[0].name:e.getFirstProjectOutput(f,!S.useCaseSensitiveFileNames()),L),T}function R(t,r){e.Debug.assertIsDefined(_),e.Debug.assert(b===i.EmitBuildInfo);var o=_.emitBuildInfo(t,r);return o.diagnostics.length&&(ie(a,o.diagnostics),a.diagnostics.set(l,pa(pa([],a.diagnostics.get(l),!0),o.diagnostics,!0)),g=n.EmitErrors&g),o.emittedFiles&&a.write&&o.emittedFiles.forEach((function(e){return P(a,f,e)})),F(a,_,f),b=i.QueueReferencingProjects,o}function w(t,r,o,s,u,d){var p,m=t.getDiagnostics();if(m.length)return p=G(a,l,_,f,m,n.EmitErrors,"Emit"),g=p.buildResult,b=p.step,m;a.write&&r.forEach((function(e){return P(a,f,e)}));var y=V(a,f,o,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,r);return a.diagnostics.delete(l),a.projectStatus.set(l,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?c:y,oldestOutputFileName:u}),F(a,_,f),b=i.QueueReferencingProjects,g=d,m}function M(c,u){var d,_;if(e.Debug.assert(t===r.UpdateBundle),a.options.dry)return re(a,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,o),g=n.Success,void(b=i.QueueReferencingProjects);a.options.verbose&&re(a,e.Diagnostics.Updating_output_of_project_0,o);var S=a.compilerHost;a.projectCompilerOptions=f.options;var x=e.emitUsingBuildInfo(f,S,(function(e){var n=T(a,e.path);return E(a,n,h(a,n))}),u||(null===(_=(d=a.host).getCustomTransformers)||void 0===_?void 0:_.call(d,o)));if(e.isString(x))return re(a,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,o,te(a,x)),b=i.BuildInvalidatedProjectOfBundle,v=O(r.Build,a,o,l,p,f,m);e.Debug.assert(!!x.length);var L=e.createDiagnosticCollection(),D=new e.Map;return x.forEach((function(n){var t=n.name,r=n.text,i=n.writeByteOrderMark;D.set(y(a,t),t),e.writeFile(c?{writeFile:c}:S,L,t,r,i)})),{emitSkipped:!1,diagnostics:w(L,D,s,!1,x[0].name,n.DeclarationOutputUnchanged)}}function B(n,t,r,s){for(;b<=n&&b<i.Done;){var c=b;switch(b){case i.CreateProgram:D();break;case i.SyntaxDiagnostics:A(t);break;case i.SemanticDiagnostics:I(t);break;case i.Emit:k(r,t,s);break;case i.EmitBuildInfo:R(r,t);break;case i.EmitBundle:M(r,s);break;case i.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(v).done(t,r,s),b=i.Done;break;case i.QueueReferencingProjects:K(a,o,l,p,f,m,e.Debug.checkDefined(g)),b++;break;case i.Done:default:e.assertType(b)}e.Debug.assert(b>c)}}}function w(n,t,r){var a=n.options;return!(t.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!a.force)||(0===r.fileNames.length||!!e.getConfigFileParsingDiagnostics(r).length||!e.isIncrementalCompilation(r.options))}function M(n,t,a){if(n.projectPendingBuild.size&&!p(t)){if(n.currentInvalidatedProject)return e.arrayIsEqualTo(n.currentInvalidatedProject.buildOrder,t)?n.currentInvalidatedProject:void 0;for(var i=n.options,o=n.projectPendingBuild,s=0;s<t.length;s++){var c=t[s],l=h(n,c),u=n.projectPendingBuild.get(l);if(void 0!==u){a&&(a=!1,le(n,t));var d=E(n,c,l);if(d){u===e.ConfigFileProgramReloadLevel.Full?(Y(n,c,l,d),Q(n,l,d),Z(n,c,l,d),$(n,c,l,d),ee(n,c,l,d)):u===e.ConfigFileProgramReloadLevel.Partial&&(d.fileNames=e.getFileNamesFromConfigSpecs(d.options.configFile.configFileSpecs,e.getDirectoryPath(c),d.options,n.parseConfigFileHost),e.updateErrorForNoInputFiles(d.fileNames,c,d.options.configFile.configFileSpecs,d.errors,e.canJsonReportNoInputFiles(d.raw)),$(n,c,l,d),ee(n,c,l,d));var f=U(n,d,l);if(ue(n,c,f),!i.force){if(f.type===e.UpToDateStatusType.UpToDate){oe(n,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l),i.dry&&re(n,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return oe(n,l,e.getConfigFileParsingDiagnostics(d)),R(n,c,l,d,t)}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return O(w(n,f,d)?r.Build:r.UpdateBundle,n,c,l,s,d,t);oe(n,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l)}else oe(n,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l),i.verbose&&re(n,f.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,f.upstreamProjectName)}else se(n,l),o.delete(l)}}}}function P(e,n,t){var r=e.write;r&&n.options.listEmittedFiles&&r("TSFILE: ".concat(t))}function F(n,t,r){t?(t&&n.write&&e.listFiles(t,n.write),n.host.afterProgramEmitAndDiagnostics&&n.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):n.host.afterEmitBundle&&n.host.afterEmitBundle(r),n.projectCompilerOptions=n.baseCompilerOptions}function G(t,r,a,o,s,c,l){var u=!(c&n.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return oe(t,r,s),t.projectStatus.set(r,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(l," errors")}),u?{buildResult:c,step:i.EmitBuildInfo}:(F(t,a,o),{buildResult:c,step:i.QueueReferencingProjects})}function B(n,t,r,a){if(r<e.getModifiedTime(n.host,t))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:a,newerInputFileName:t}}function U(n,t,r){if(void 0===t)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var a=n.projectStatus.get(r);if(void 0!==a)return a;var i=function(n,t,r){for(var a=!!n.options.force,i=void 0,o=s,l=n.host,p=0,f=t.fileNames;p<f.length;p++){var m=f[p];if(!l.fileExists(m))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(m," does not exist")};if(!a){var _=e.getModifiedTime(l,m);_>o&&(i=m,o=_)}}if(!t.fileNames.length&&!e.canJsonReportNoInputFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};var g,y=e.getAllProjectOutputs(t,!l.useCaseSensitiveFileNames()),v="(none)",b=c,T="(none)",S=s,x=s,L=!1;if(!a)for(var D=0,C=y;D<C.length;D++){var A=C[D];if(!l.fileExists(A)){g=A;break}var I=e.getModifiedTime(l,A);if(I<b&&(b=I,v=A),I<o){L=!0;break}I>S&&(S=I,T=A),d(A)&&(x=u(x,e.getModifiedTime(l,A)))}var k,N=!1,R=!1;if(t.projectReferences){n.projectStatus.set(r,{type:e.UpToDateStatusType.ComputingUpstream});for(var O=0,w=t.projectReferences;O<w.length;O++){var M=w[O];R=R||!!M.prepend;var P=e.resolveProjectReferencePath(M),F=h(n,P),G=U(n,E(n,P,F),F);if(G.type!==e.UpToDateStatusType.ComputingUpstream&&G.type!==e.UpToDateStatusType.ContainerOnly){if(G.type===e.UpToDateStatusType.Unbuildable||G.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:M.path,upstreamProjectBlocked:G.type===e.UpToDateStatusType.UpstreamBlocked};if(G.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:M.path};if(!a&&!g){if(G.newestInputFileTime&&G.newestInputFileTime<=b)continue;if(G.newestDeclarationFileContentChangedTime&&G.newestDeclarationFileContentChangedTime<=b){N=!0,k=M.path;continue}return e.Debug.assert(void 0!==v,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v,newerProjectName:M.path}}}}}if(void 0!==g)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:g};if(L)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:v,newerInputFileName:i};var V=B(n,t.options.configFilePath,b,v);if(V)return V;var j=e.forEach(t.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return B(n,e,b,v)}));if(j)return j;var K=e.forEach(n.lastCachedPackageJsonLookups.get(r)||e.emptyArray,(function(e){var t=e[0];return B(n,t,b,v)}));if(K)return K;if(!a&&!n.buildInfoChecked.has(r)){n.buildInfoChecked.set(r,!0);var H=e.getTsBuildInfoEmitOutputFilePath(t.options);if(H){var W=n.readFileWithCache(H),z=W&&e.getBuildInfo(W);if(z&&(z.bundle||z.program)&&z.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:z.version}}}return R&&N?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v,newerProjectName:k}:{type:N?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:x,newestInputFileTime:o,newestOutputFileTime:S,newestInputFileName:i,newestOutputFileName:T,oldestOutputFileName:v}}(n,t,r);return n.projectStatus.set(r,i),i}function V(n,t,r,a,i){if(t.options.noEmit)return r;var o=n.host,s=e.getAllProjectOutputs(t,!o.useCaseSensitiveFileNames());if(!i||s.length!==i.size)for(var c=!!n.options.verbose,l=o.now?o.now():new Date,p=0,f=s;p<f.length;p++){var m=f[p];i&&i.has(y(n,m))||(c&&(c=!1,re(n,a,t.options.configFilePath)),d(m)&&(r=u(r,e.getModifiedTime(o,m))),o.setModifiedTime(m,l))}return r}function j(n,t,r){if(n.options.dry)return re(n,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);var a=V(n,t,s,e.Diagnostics.Updating_output_timestamps_of_project_0);n.projectStatus.set(r,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:a,oldestOutputFileName:e.getFirstProjectOutput(t,!n.host.useCaseSensitiveFileNames())})}function K(t,r,a,i,o,s,c){if(!(c&n.AnyErrors)&&o.options.composite)for(var l=i+1;l<s.length;l++){var u=s[l],d=h(t,u);if(!t.projectPendingBuild.has(d)){var p=E(t,u,d);if(p&&p.projectReferences)for(var f=0,m=p.projectReferences;f<m.length;f++){var _=m[f];if(h(t,T(t,_.path))===a){var g=t.projectStatus.get(d);if(g)switch(g.type){case e.UpToDateStatusType.UpToDate:if(c&n.DeclarationOutputUnchanged){_.prepend?t.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:g.oldestOutputFileName,newerProjectName:r}):g.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&n.DeclarationOutputUnchanged||t.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:g.type===e.UpToDateStatusType.OutOfDateWithPrepend?g.outOfDateOutputFileName:g.oldestOutputFileName,newerProjectName:r});break;case e.UpToDateStatusType.UpstreamBlocked:h(t,T(t,g.upstreamProjectName))===a&&A(t,d)}I(t,d,e.ConfigFileProgramReloadLevel.None);break}}}}}function H(n,t,r,a,i,o){var s=L(n,t,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;k(n,r);for(var c=!0,l=0;;){var u=M(n,s,c);if(!u)break;c=!1,u.done(r,a,null===i||void 0===i?void 0:i(u.project)),n.diagnostics.has(u.projectPath)||l++}return C(n),ce(n,s),function(e,n){if(!e.watchAllProjectsPending)return;e.watchAllProjectsPending=!1;for(var t=0,r=f(n);t<r.length;t++){var a=r[t],i=h(e,a),o=E(e,a,i);Y(e,a,i,o),Q(e,i,o),o&&(Z(e,a,i,o),$(e,a,i,o),ee(e,a,i,o))}}(n,s),p(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((function(e){return n.diagnostics.has(h(n,e))}))?l?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function W(n,t,r){var a=L(n,t,r);if(!a)return e.ExitStatus.InvalidProject_OutputsSkipped;if(p(a))return ie(n,a.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var i=n.options,o=n.host,s=i.dry?[]:void 0,c=0,l=a;c<l.length;c++){var u=l[c],d=h(n,u),f=E(n,u,d);if(void 0!==f){var m=e.getAllProjectOutputs(f,!o.useCaseSensitiveFileNames());if(m.length)for(var _=new e.Set(f.fileNames.map((function(e){return y(n,e)}))),g=0,v=m;g<v.length;g++){var b=v[g];_.has(y(n,b))||o.fileExists(b)&&(s?s.push(b):(o.deleteFile(b),z(n,d,e.ConfigFileProgramReloadLevel.None)))}}else se(n,d)}return s&&re(n,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((function(e){return"\r\n * ".concat(e)})).join("")),e.ExitStatus.Success}function z(n,t,r){n.host.getParsedCommandLine&&r===e.ConfigFileProgramReloadLevel.Partial&&(r=e.ConfigFileProgramReloadLevel.Full),r===e.ConfigFileProgramReloadLevel.Full&&(n.configFileCache.delete(t),n.buildOrder=void 0),n.needsSummary=!0,A(n,t),I(n,t,r),D(n)}function J(e,n,t){e.reportFileChangeDetected=!0,z(e,n,t),q(e)}function q(e){var n=e.hostWithWatch;n.setTimeout&&n.clearTimeout&&(e.timerToBuildInvalidatedProject&&n.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=n.setTimeout(X,250,e))}function X(n){n.timerToBuildInvalidatedProject=void 0,n.reportFileChangeDetected&&(n.reportFileChangeDetected=!1,n.projectErrorsReported.clear(),ae(n,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var t=x(n),r=M(n,t,!1);r&&(r.done(),n.projectPendingBuild.size)?n.watch&&!n.timerToBuildInvalidatedProject&&q(n):(C(n),ce(n,t))}function Y(n,t,r,a){n.watch&&!n.allWatchedConfigFiles.has(r)&&n.allWatchedConfigFiles.set(r,n.watchFile(t,(function(){J(n,r,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null===a||void 0===a?void 0:a.watchOptions,e.WatchType.ConfigFile,t))}function Q(n,t,r){e.updateSharedExtendedConfigFileWatcher(t,null===r||void 0===r?void 0:r.options,n.allWatchedExtendedConfigFiles,(function(t,a){return n.watchFile(t,(function(){var t;return null===(t=n.allWatchedExtendedConfigFiles.get(a))||void 0===t?void 0:t.projects.forEach((function(t){return J(n,t,e.ConfigFileProgramReloadLevel.Full)}))}),e.PollingInterval.High,null===r||void 0===r?void 0:r.watchOptions,e.WatchType.ExtendedConfigFile)}),(function(e){return y(n,e)}))}function Z(n,t,r,a){n.watch&&e.updateWatchingWildcardDirectories(l(n.allWatchedWildcardDirectories,r),new e.Map(e.getEntries(a.wildcardDirectories)),(function(i,o){return n.watchDirectory(i,(function(o){var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:y(n,i),fileOrDirectory:o,fileOrDirectoryPath:y(n,o),configFileName:t,currentDirectory:n.currentDirectory,options:a.options,program:n.builderPrograms.get(r)||(null===(s=b(n,r))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:n.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return n.writeLog(e)},toPath:function(e){return y(n,e)}})||J(n,r,e.ConfigFileProgramReloadLevel.Partial)}),o,null===a||void 0===a?void 0:a.watchOptions,e.WatchType.WildcardDirectory,t)}))}function $(n,t,r,a){n.watch&&e.mutateMap(l(n.allWatchedInputFiles,r),e.arrayToMap(a.fileNames,(function(e){return y(n,e)})),{createNewValue:function(i,o){return n.watchFile(o,(function(){return J(n,r,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null===a||void 0===a?void 0:a.watchOptions,e.WatchType.SourceFile,t)},onDeleteValue:e.closeFileWatcher})}function ee(n,t,r,a){n.watch&&n.lastCachedPackageJsonLookups&&e.mutateMap(l(n.allWatchedPackageJsonFiles,r),new e.Map(n.lastCachedPackageJsonLookups.get(r)),{createNewValue:function(i,o){return n.watchFile(i,(function(){return J(n,r,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null===a||void 0===a?void 0:a.watchOptions,e.WatchType.PackageJson,t)},onDeleteValue:e.closeFileWatcher})}function ne(n,t,r,a,i){var o=g(n,t,r,a,i);return{build:function(e,n,t,r){return H(o,e,n,t,r)},clean:function(e){return W(o,e)},buildReferences:function(e,n,t,r){return H(o,e,n,t,r,!0)},cleanReferences:function(e){return W(o,e,!0)},getNextInvalidatedProject:function(e){return k(o,e),M(o,x(o),!1)},getBuildOrder:function(){return x(o)},getUpToDateStatusOfProject:function(e){var n=T(o,e),t=h(o,n);return U(o,E(o,n,t),t)},invalidateProject:function(n,t){return z(o,n,t||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return X(o)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(function(e){return v(e)?e:void 0})))},close:function(){return function(n){e.clearMap(n.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(n.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(n.allWatchedWildcardDirectories,(function(n){return e.clearMap(n,e.closeFileWatcherOf)})),e.clearMap(n.allWatchedInputFiles,(function(n){return e.clearMap(n,e.closeFileWatcher)})),e.clearMap(n.allWatchedPackageJsonFiles,(function(n){return e.clearMap(n,e.closeFileWatcher)}))}(o)}}}function te(n,t){return e.convertToRelativePath(t,n.currentDirectory,(function(e){return n.getCanonicalFileName(e)}))}function re(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,pa([t],r,!1)))}function ae(n,t){for(var r,a,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];null===(a=(r=n.hostWithWatch).onWatchStatusChange)||void 0===a||a.call(r,e.createCompilerDiagnostic.apply(void 0,pa([t],i,!1)),n.host.getNewLine(),n.baseCompilerOptions)}function ie(e,n){var t=e.host;n.forEach((function(e){return t.reportDiagnostic(e)}))}function oe(e,n,t){ie(e,t),e.projectErrorsReported.set(n,!0),t.length&&e.diagnostics.set(n,t)}function se(e,n){oe(e,n,[e.configFileCache.get(n)])}function ce(n,t){if(n.needsSummary){n.needsSummary=!1;var r=n.watch||!!n.host.reportErrorSummary,a=n.diagnostics,i=0;p(t)?(le(n,t.buildOrder),ie(n,t.circularDiagnostics),r&&(i+=e.getErrorCountForSummary(t.circularDiagnostics))):(t.forEach((function(t){var r=h(n,t);n.projectErrorsReported.has(r)||ie(n,a.get(r)||e.emptyArray)})),r&&a.forEach((function(n){return i+=e.getErrorCountForSummary(n)}))),n.watch?ae(n,e.getWatchErrorSummaryDiagnosticMessage(i),i):n.host.reportErrorSummary&&n.host.reportErrorSummary(i)}}function le(n,t){n.options.verbose&&re(n,e.Diagnostics.Projects_in_this_build_Colon_0,t.map((function(e){return"\r\n * "+te(n,e)})).join(""))}function ue(n,t,r){n.options.verbose&&function(n,t,r){if(n.options.force&&(r.type===e.UpToDateStatusType.UpToDate||r.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return re(n,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,te(n,t));switch(r.type){case e.UpToDateStatusType.OutOfDateWithSelf:return re(n,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,te(n,t),te(n,r.outOfDateOutputFileName),te(n,r.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return re(n,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,te(n,t),te(n,r.outOfDateOutputFileName),te(n,r.newerProjectName));case e.UpToDateStatusType.OutputMissing:return re(n,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,te(n,t),te(n,r.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==r.newestInputFileTime)return re(n,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,te(n,t),te(n,r.newestInputFileName||""),te(n,r.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return re(n,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,te(n,t),te(n,r.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return re(n,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,te(n,t));case e.UpToDateStatusType.UpstreamOutOfDate:return re(n,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,te(n,t),te(n,r.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return re(n,r.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,te(n,t),te(n,r.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return re(n,e.Diagnostics.Failed_to_parse_file_0_Colon_1,te(n,t),r.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return re(n,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,te(n,t),r.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(r)}}(n,t,r)}(t=n||(n={}))[t.None=0]="None",t[t.Success=1]="Success",t[t.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",t[t.ConfigFileErrors=4]="ConfigFileErrors",t[t.SyntaxErrors=8]="SyntaxErrors",t[t.TypeErrors=16]="TypeErrors",t[t.DeclarationEmitErrors=32]="DeclarationEmitErrors",t[t.EmitErrors=64]="EmitErrors",t[t.AnyErrors=124]="AnyErrors",e.isCircularBuildOrder=p,e.getBuildOrderFromAnyBuildOrder=f,e.createBuilderStatusReporter=m,e.createSolutionBuilderHost=function(n,t,r,a,i){void 0===n&&(n=e.sys);var o=_(n,t,r,a);return o.reportErrorSummary=i,o},e.createSolutionBuilderWithWatchHost=function(n,t,r,a,i){void 0===n&&(n=e.sys);var o=_(n,t,r,a),s=e.createWatchHost(n,i);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,n,t){return ne(!1,e,n,t)},e.createSolutionBuilderWithWatch=function(e,n,t,r){return ne(!0,e,n,t,r)},(a=r=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}))[a.Build=0]="Build",a[a.UpdateBundle=1]="UpdateBundle",a[a.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",(o=i||(i={}))[o.CreateProgram=0]="CreateProgram",o[o.SyntaxDiagnostics=1]="SyntaxDiagnostics",o[o.SemanticDiagnostics=2]="SemanticDiagnostics",o[o.Emit=3]="Emit",o[o.EmitBundle=4]="EmitBundle",o[o.EmitBuildInfo=5]="EmitBuildInfo",o[o.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",o[o.QueueReferencingProjects=7]="QueueReferencingProjects",o[o.Done=8]="Done"}(ha||(ha={})),function(e){!function(n){var t;n.ActionSet="action::set",n.ActionInvalidate="action::invalidate",n.ActionPackageInstalled="action::packageInstalled",n.EventTypesRegistry="event::typesRegistry",n.EventBeginInstallTypes="event::beginInstallTypes",n.EventEndInstallTypes="event::endInstallTypes",n.EventInitializationFailed="event::initializationFailed",(t=n.Arguments||(n.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",n.hasArgument=function(n){return e.sys.args.indexOf(n)>=0},n.findArgument=function(n){var t=e.sys.args.indexOf(n);return t>=0&&t<e.sys.args.length-1?e.sys.args[t+1]:void 0},n.nowString=function(){var n=new Date;return"".concat(e.padLeft(n.getHours().toString(),2,"0"),":").concat(e.padLeft(n.getMinutes().toString(),2,"0"),":").concat(e.padLeft(n.getSeconds().toString(),2,"0"),".").concat(e.padLeft(n.getMilliseconds().toString(),3,"0"))}}(e.server||(e.server={}))}(ha||(ha={})),function(e){!function(n){function t(n,t){return new e.Version(e.getProperty(t,"ts".concat(e.versionMajorMinor))||e.getProperty(t,"latest")).compareTo(n.version)<=0}n.isTypingUpToDate=t;var r,a=["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"];function i(e){return n.nodeCoreModules.has(e)?"node":e}n.prefixedNodeCoreModuleList=a.map((function(e){return"node:".concat(e)})),n.nodeCoreModuleList=pa(pa([],a,!0),n.prefixedNodeCoreModuleList,!0),n.nodeCoreModules=new e.Set(n.nodeCoreModuleList),n.nonRelativeModuleNameForTypingCache=i,n.loadSafeList=function(n,t){var r=e.readConfigFile(t,(function(e){return n.readFile(e)}));return new e.Map(e.getEntries(r.config))},n.loadTypesMap=function(n,t){var r=e.readConfigFile(t,(function(e){return n.readFile(e)}));if(r.config)return new e.Map(e.getEntries(r.config.simpleMap))},n.discoverTypings=function(n,r,a,o,s,c,l,u,d){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var p=new e.Map;a=e.mapDefined(a,(function(n){var t=e.normalizePath(n);if(e.hasJSFileExtension(t))return t}));var f=[];l.include&&S(l.include,"Explicitly included types");var m=l.exclude||[],_=new e.Set(a.map(e.getDirectoryPath));_.add(o),_.forEach((function(n){x(e.combinePaths(n,"package.json"),f),x(e.combinePaths(n,"bower.json"),f),L(e.combinePaths(n,"bower_components"),f),L(e.combinePaths(n,"node_modules"),f)})),l.disableFilenameBasedTypeAcquisition||function(n){var t=e.mapDefined(n,(function(n){if(e.hasJSFileExtension(n)){var t=e.removeFileExtension(e.getBaseFileName(n.toLowerCase())),r=e.removeMinAndVersionNumbers(t);return s.get(r)}}));t.length&&S(t,"Inferred typings from file names");e.some(n,(function(n){return e.fileExtensionIs(n,".jsx")}))&&(r&&r("Inferred 'react' typings due to presence of '.jsx' extension"),T("react"))}(a),u&&S(e.deduplicate(u.map(i),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,n){var r=d.get(n);p.has(n)&&void 0===p.get(n)&&void 0!==r&&t(e,r)&&p.set(n,e.typingLocation)}));for(var g=0,y=m;g<y.length;g++){var h=y[g];p.delete(h)&&r&&r("Typing for ".concat(h," is in exclude list, will be ignored."))}var v=[],b=[];p.forEach((function(e,n){void 0!==e?b.push(e):v.push(n)}));var E={cachedTypingPaths:b,newTypingNames:v,filesToWatch:f};return r&&r("Result: ".concat(JSON.stringify(E))),E;function T(e){p.has(e)||p.set(e,void 0)}function S(n,t){r&&r("".concat(t,": ").concat(JSON.stringify(n))),e.forEach(n,T)}function x(t,r){if(n.fileExists(t)){r.push(t);var a=e.readConfigFile(t,(function(e){return n.readFile(e)})).config;S(e.flatMap([a.dependencies,a.devDependencies,a.optionalDependencies,a.peerDependencies],e.getOwnKeys),"Typing names in '".concat(t,"' dependencies"))}}function L(t,a){if(a.push(t),n.directoryExists(t)){var i=n.readDirectory(t,[".json"],void 0,void 0,2);r&&r("Searching for typing names in ".concat(t,"; all files: ").concat(JSON.stringify(i)));for(var o=[],s=0,c=i;s<c.length;s++){var l=c[s],u=e.normalizePath(l),d=e.getBaseFileName(u);if("package.json"===d||"bower.json"===d){var f=e.readConfigFile(u,(function(e){return n.readFile(e)})).config;if(("package.json"!==d||!f._requiredBy||0!==e.filter(f._requiredBy,(function(e){return"#"===e[0]||"/"===e})).length)&&f.name){var m=f.types||f.typings;if(m){var _=e.getNormalizedAbsolutePath(m,e.getDirectoryPath(u));r&&r(" Package '".concat(f.name,"' provides its own types.")),p.set(f.name,_)}else o.push(f.name)}}}S(o," Found package names")}}},(r=n.NameValidationResult||(n.NameValidationResult={}))[r.Ok=0]="Ok",r[r.EmptyName=1]="EmptyName",r[r.NameTooLong=2]="NameTooLong",r[r.NameStartsWithDot=3]="NameStartsWithDot",r[r.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",r[r.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters";function o(e,n){if(!e)return 1;if(e.length>214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(n){var t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){var r=o(t[1],!1);if(0!==r)return{name:t[1],isScopeName:!0,result:r};var a=o(t[2],!1);return 0!==a?{name:t[2],isScopeName:!1,result:a}:0}}return encodeURIComponent(e)!==e?5:0}function s(n,t,r,a){var i=a?"Scope":"Package";switch(t){case 1:return"'".concat(n,"':: ").concat(i," name '").concat(r,"' cannot be empty");case 2:return"'".concat(n,"':: ").concat(i," name '").concat(r,"' should be less than ").concat(214," characters");case 3:return"'".concat(n,"':: ").concat(i," name '").concat(r,"' cannot start with '.'");case 4:return"'".concat(n,"':: ").concat(i," name '").concat(r,"' cannot start with '_'");case 5:return"'".concat(n,"':: ").concat(i," name '").concat(r,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}n.validatePackageName=function(e){return o(e,!0)},n.renderPackageNameValidationFailure=function(e,n){return"object"===typeof e?s(n,e.result,e.name,e.isScopeName):s(n,e,n,!1)}}(e.JsTyping||(e.JsTyping={}))}(ha||(ha={})),function(e){var n,t,r,a,i,o,s,c,l,u,d,p,f,m,_,g,y,h,v,b;function E(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:c.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:u.Ignore,trimTrailingWhitespace:!0}}!function(e){var n=function(){function e(e){this.text=e}return e.prototype.getText=function(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new n(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),(n=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[n.Dependencies=1]="Dependencies",n[n.DevDependencies=2]="DevDependencies",n[n.PeerDependencies=4]="PeerDependencies",n[n.OptionalDependencies=8]="OptionalDependencies",n[n.All=15]="All",(t=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",(r=e.LanguageServiceMode||(e.LanguageServiceMode={}))[r.Semantic=0]="Semantic",r[r.PartialSemantic=1]="PartialSemantic",r[r.Syntactic=2]="Syntactic",e.emptyOptions={},(a=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",a.TwentyTwenty="2020",(i=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[i.Invoked=1]="Invoked",i[i.TriggerCharacter=2]="TriggerCharacter",i[i.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(o=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",o.Parameter="Parameter",o.Enum="Enum",(s=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",s.definition="definition",s.reference="reference",s.writtenReference="writtenReference",(l=c=e.IndentStyle||(e.IndentStyle={}))[l.None=0]="None",l[l.Block=1]="Block",l[l.Smart=2]="Smart",(d=u=e.SemicolonPreference||(e.SemicolonPreference={})).Ignore="ignore",d.Insert="insert",d.Remove="remove",e.getDefaultFormatCodeSettings=E,e.testFormatSettings=E("\n"),(p=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[p.aliasName=0]="aliasName",p[p.className=1]="className",p[p.enumName=2]="enumName",p[p.fieldName=3]="fieldName",p[p.interfaceName=4]="interfaceName",p[p.keyword=5]="keyword",p[p.lineBreak=6]="lineBreak",p[p.numericLiteral=7]="numericLiteral",p[p.stringLiteral=8]="stringLiteral",p[p.localName=9]="localName",p[p.methodName=10]="methodName",p[p.moduleName=11]="moduleName",p[p.operator=12]="operator",p[p.parameterName=13]="parameterName",p[p.propertyName=14]="propertyName",p[p.punctuation=15]="punctuation",p[p.space=16]="space",p[p.text=17]="text",p[p.typeParameterName=18]="typeParameterName",p[p.enumMemberName=19]="enumMemberName",p[p.functionName=20]="functionName",p[p.regularExpressionLiteral=21]="regularExpressionLiteral",p[p.link=22]="link",p[p.linkName=23]="linkName",p[p.linkText=24]="linkText",(f=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",f.Region="region",f.Code="code",f.Imports="imports",(m=e.OutputFileType||(e.OutputFileType={}))[m.JavaScript=0]="JavaScript",m[m.SourceMap=1]="SourceMap",m[m.Declaration=2]="Declaration",(_=e.EndOfLineState||(e.EndOfLineState={}))[_.None=0]="None",_[_.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",_[_.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",_[_.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",_[_.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",_[_.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",_[_.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(g=e.TokenClass||(e.TokenClass={}))[g.Punctuation=0]="Punctuation",g[g.Keyword=1]="Keyword",g[g.Operator=2]="Operator",g[g.Comment=3]="Comment",g[g.Whitespace=4]="Whitespace",g[g.Identifier=5]="Identifier",g[g.NumberLiteral=6]="NumberLiteral",g[g.BigIntLiteral=7]="BigIntLiteral",g[g.StringLiteral=8]="StringLiteral",g[g.RegExpLiteral=9]="RegExpLiteral",(y=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",y.warning="warning",y.keyword="keyword",y.scriptElement="script",y.moduleElement="module",y.classElement="class",y.localClassElement="local class",y.interfaceElement="interface",y.typeElement="type",y.enumElement="enum",y.enumMemberElement="enum member",y.variableElement="var",y.localVariableElement="local var",y.functionElement="function",y.localFunctionElement="local function",y.memberFunctionElement="method",y.memberGetAccessorElement="getter",y.memberSetAccessorElement="setter",y.memberVariableElement="property",y.constructorImplementationElement="constructor",y.callSignatureElement="call",y.indexSignatureElement="index",y.constructSignatureElement="construct",y.parameterElement="parameter",y.typeParameterElement="type parameter",y.primitiveType="primitive type",y.label="label",y.alias="alias",y.constElement="const",y.letElement="let",y.directory="directory",y.externalModuleName="external module name",y.jsxAttribute="JSX attribute",y.string="string",y.link="link",y.linkName="link name",y.linkText="link text",(h=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",h.publicMemberModifier="public",h.privateMemberModifier="private",h.protectedMemberModifier="protected",h.exportedModifier="export",h.ambientModifier="declare",h.staticModifier="static",h.abstractModifier="abstract",h.optionalModifier="optional",h.deprecatedModifier="deprecated",h.dtsModifier=".d.ts",h.tsModifier=".ts",h.tsxModifier=".tsx",h.jsModifier=".js",h.jsxModifier=".jsx",h.jsonModifier=".json",h.dmtsModifier=".d.mts",h.mtsModifier=".mts",h.mjsModifier=".mjs",h.dctsModifier=".d.cts",h.ctsModifier=".cts",h.cjsModifier=".cjs",(v=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",v.identifier="identifier",v.keyword="keyword",v.numericLiteral="number",v.bigintLiteral="bigint",v.operator="operator",v.stringLiteral="string",v.whiteSpace="whitespace",v.text="text",v.punctuation="punctuation",v.className="class name",v.enumName="enum name",v.interfaceName="interface name",v.moduleName="module name",v.typeParameterName="type parameter name",v.typeAliasName="type alias name",v.parameterName="parameter name",v.docCommentTagName="doc comment tag name",v.jsxOpenTagName="jsx open tag name",v.jsxCloseTagName="jsx close tag name",v.jsxSelfClosingTagName="jsx self closing tag name",v.jsxAttribute="jsx attribute",v.jsxText="jsx text",v.jsxAttributeStringLiteralValue="jsx attribute string literal value",(b=e.ClassificationType||(e.ClassificationType={}))[b.comment=1]="comment",b[b.identifier=2]="identifier",b[b.keyword=3]="keyword",b[b.numericLiteral=4]="numericLiteral",b[b.operator=5]="operator",b[b.stringLiteral=6]="stringLiteral",b[b.regularExpressionLiteral=7]="regularExpressionLiteral",b[b.whiteSpace=8]="whiteSpace",b[b.text=9]="text",b[b.punctuation=10]="punctuation",b[b.className=11]="className",b[b.enumName=12]="enumName",b[b.interfaceName=13]="interfaceName",b[b.moduleName=14]="moduleName",b[b.typeParameterName=15]="typeParameterName",b[b.typeAliasName=16]="typeAliasName",b[b.parameterName=17]="parameterName",b[b.docCommentTagName=18]="docCommentTagName",b[b.jsxOpenTagName=19]="jsxOpenTagName",b[b.jsxCloseTagName=20]="jsxCloseTagName",b[b.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",b[b.jsxAttribute=22]="jsxAttribute",b[b.jsxText=23]="jsxText",b[b.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",b[b.bigintLiteral=25]="bigintLiteral"}(ha||(ha={})),function(e){var n;function t(n){switch(n.kind){case 253:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return void 0===n.name?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(n)||1===e.getModuleInstanceState(n)?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}function r(n){for(;160===n.parent.kind;)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function a(e){return e.expression}function i(e){return e.tag}function o(e){return e.tagName}function s(n,t,r,a,i){var o=a?l(n):c(n);return i&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function c(e){return p(e)?e.parent:e}function l(e){return p(e)||f(e)?e.parent:e}function u(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===n}function d(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isLabeledStatement))||void 0===t?void 0:t.label)===n}function p(n){var t;return(null===(t=e.tryCast(n.parent,e.isPropertyAccessExpression))||void 0===t?void 0:t.name)===n}function f(n){var t;return(null===(t=e.tryCast(n.parent,e.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===n}e.scanner=e.createScanner(99,!0),(n=e.SemanticMeaning||(e.SemanticMeaning={}))[n.None=0]="None",n[n.Value=1]="Value",n[n.Type=2]="Type",n[n.Namespace=4]="Namespace",n[n.All=7]="All",e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){var a=(n=R(n)).parent;if(303===n.kind)return 1;if(e.isExportAssignment(a)||e.isExportSpecifier(a)||e.isExternalModuleReference(a)||e.isImportSpecifier(a)||e.isImportClause(a)||e.isImportEqualsDeclaration(a)&&n===a.name){for(var i=a;i;){if(e.isImportEqualsDeclaration(i)||e.isImportClause(i)||e.isExportDeclaration(i))return i.isTypeOnly?2:7;i=i.parent}return 7}return r(n)?function(n){var t=160===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&264===t.parent.kind?7:4}(n):e.isDeclarationName(n)?t(a):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(n){e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent);switch(n.kind){case 108:return!e.isExpressionNode(n);case 191:return!0}switch(n.parent.kind){case 177:return!0;case 199:return!n.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(n)?2:function(e){return function(e){var n=e,t=!0;if(160===n.parent.kind){for(;n.parent&&160===n.parent.kind;)n=n.parent;t=n.right===e}return 177===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(205===n.parent.kind){for(;n.parent&&205===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&227===n.parent.kind&&290===n.parent.parent.kind){var r=n.parent.parent.parent;return 256===r.kind&&117===n.parent.parent.token||257===r.kind&&94===n.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(a)?(e.Debug.assert(e.isJSDocTemplateTag(a.parent)),2):e.isLiteralTypeNode(a)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isCallExpression,a,t,r)},e.isNewExpressionTarget=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isNewExpression,a,t,r)},e.isCallOrNewExpressionTarget=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isCallOrNewExpression,a,t,r)},e.isTaggedTemplateTag=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isTaggedTemplateExpression,i,t,r)},e.isDecoratorTarget=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isDecorator,a,t,r)},e.isJsxOpeningLikeElementTagName=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isJsxOpeningLikeElement,o,t,r)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,n){for(;e;){if(249===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(n,t){return!!e.isPropertyAccessExpression(n.expression)&&n.expression.name.text===t},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||u(e)},e.isTagName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isJSDocTag))||void 0===t?void 0:t.tagName)===n},e.isRightSideOfQualifiedName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isQualifiedName))||void 0===t?void 0:t.right)===n},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=f,e.isNameOfModuleDeclaration=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isModuleDeclaration))||void 0===t?void 0:t.name)===n},e.isNameOfFunctionDeclaration=function(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isFunctionLike))||void 0===t?void 0:t.name)===n},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(n){switch(n.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(n.parent)===n;case 206:return n.parent.argumentExpression===n;case 161:return!0;case 195:return 193===n.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n},e.getContainerNode=function(n){for(e.isJSDocTypeAlias(n)&&(n=n.parent.parent);;){if(!(n=n.parent))return;switch(n.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return n}}},e.getNodeKind=function n(t){switch(t.kind){case 303:return e.isExternalModule(t)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return c(t);case 202:return c(e.getRootDeclaration(t));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var r=t.initializer;return e.isFunctionLike(r)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(t,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var a=e.getAssignmentDeclarationKind(t),i=t.right;switch(a){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=n(i);return""===o?"const":o;case 3:case 5:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(a),""}case 79:return e.isImportClause(t.parent)?"alias":"";case 270:var s=n(t.expression);return""===s?"const":s;default:return""}function c(n){return e.isVarConst(n)?"const":e.isLet(n)?"let":"var"}},e.isThis=function(n){switch(n.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(n)&&163===n.parent.kind;default:return!1}};var m,_=/^\/\/\/\s*</;function g(e,n){return h(e.pos,e.end,n)}function y(e,n){return e.pos<n&&n<e.end}function h(e,n,t){return e<=t.pos&&n>=t.end}function v(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function b(n,t){if(void 0===n||e.nodeIsMissing(n))return!1;switch(n.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return E(n,19,t);case 291:return b(n.block,t);case 208:if(!n.arguments)return!0;case 207:case 211:case 190:return E(n,21,t);case 178:case 179:return b(n.type,t);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return n.body?b(n.body,t):n.type?b(n.type,t):T(n,21,t);case 260:return!!n.body&&b(n.body,t);case 238:return n.elseStatement?b(n.elseStatement,t):b(n.thenStatement,t);case 237:return b(n.expression,t)||T(n,26,t);case 203:case 201:case 206:case 161:case 183:return E(n,23,t);case 175:return n.type?b(n.type,t):T(n,23,t);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return b(n.statement,t);case 239:return T(n,115,t)?E(n,21,t):b(n.statement,t);case 180:return b(n.exprName,t);case 215:case 214:case 216:case 223:case 224:return b(n.expression,t);case 209:return b(n.template,t);case 222:return b(e.lastOrUndefined(n.templateSpans),t);case 232:return e.nodeIsPresent(n.literal);case 271:case 265:return e.nodeIsPresent(n.moduleSpecifier);case 218:return b(n.operand,t);case 220:return b(n.right,t);case 221:return b(n.whenFalse,t);default:return!0}}function E(n,t,r){var a=n.getChildren(r);if(a.length){var i=e.last(a);if(i.kind===t)return!0;if(26===i.kind&&1!==a.length)return a[a.length-2].kind===t}return!1}function T(e,n,t){return!!S(e,n,t)}function S(n,t,r){return e.find(n.getChildren(r),(function(e){return e.kind===t}))}function x(n){var t=e.find(n.parent.getChildren(),(function(t){return e.isSyntaxList(t)&&g(t,n)}));return e.Debug.assert(!t||e.contains(t.getChildren(),n)),t}function L(e){return 88===e.kind}function D(e){return 84===e.kind}function C(e){return 98===e.kind}function A(n,t){if(!t)switch(n.kind){case 256:case 225:return function(n){if(e.isNamedDeclaration(n))return n.name;if(e.isClassDeclaration(n)){var t=n.modifiers&&e.find(n.modifiers,L);if(t)return t}if(e.isClassExpression(n)){var r=e.find(n.getChildren(),D);if(r)return r}}(n);case 255:case 212:return function(n){if(e.isNamedDeclaration(n))return n.name;if(e.isFunctionDeclaration(n)){var t=e.find(n.modifiers,L);if(t)return t}if(e.isFunctionExpression(n)){var r=e.find(n.getChildren(),C);if(r)return r}}(n)}if(e.isNamedDeclaration(n))return n.name}function I(n,t){if(n.importClause){if(n.importClause.name&&n.importClause.namedBindings)return;if(n.importClause.name)return n.importClause.name;if(n.importClause.namedBindings){if(e.isNamedImports(n.importClause.namedBindings)){var r=e.singleOrUndefined(n.importClause.namedBindings.elements);if(!r)return;return r.name}if(e.isNamespaceImport(n.importClause.namedBindings))return n.importClause.namedBindings.name}}if(!t)return n.moduleSpecifier}function k(n,t){if(n.exportClause){if(e.isNamedExports(n.exportClause)){if(!e.singleOrUndefined(n.exportClause.elements))return;return n.exportClause.elements[0].name}if(e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(!t)return n.moduleSpecifier}function N(n,t){var r=n.parent;if((e.isModifier(n)&&(t||88!==n.kind)?e.contains(r.modifiers,n):84===n.kind?e.isClassDeclaration(r)||e.isClassExpression(n):98===n.kind?e.isFunctionDeclaration(r)||e.isFunctionExpression(n):118===n.kind?e.isInterfaceDeclaration(r):92===n.kind?e.isEnumDeclaration(r):151===n.kind?e.isTypeAliasDeclaration(r):142===n.kind||141===n.kind?e.isModuleDeclaration(r):100===n.kind?e.isImportEqualsDeclaration(r):136===n.kind?e.isGetAccessorDeclaration(r):148===n.kind&&e.isSetAccessorDeclaration(r))&&(i=A(r,t)))return i;if((113===n.kind||85===n.kind||119===n.kind)&&e.isVariableDeclarationList(r)&&1===r.declarations.length){var a=r.declarations[0];if(e.isIdentifier(a.name))return a.name}if(151===n.kind){if(e.isImportClause(r)&&r.isTypeOnly)if(i=I(r.parent,t))return i;if(e.isExportDeclaration(r)&&r.isTypeOnly)if(i=k(r,t))return i}if(127===n.kind){if(e.isImportSpecifier(r)&&r.propertyName||e.isExportSpecifier(r)&&r.propertyName||e.isNamespaceImport(r)||e.isNamespaceExport(r))return r.name;if(e.isExportDeclaration(r)&&r.exportClause&&e.isNamespaceExport(r.exportClause))return r.exportClause.name}if(100===n.kind&&e.isImportDeclaration(r)&&(i=I(r,t)))return i;if(93===n.kind){if(e.isExportDeclaration(r))if(i=k(r,t))return i;if(e.isExportAssignment(r))return e.skipOuterExpressions(r.expression)}if(145===n.kind&&e.isExternalModuleReference(r))return r.expression;if(155===n.kind&&(e.isImportDeclaration(r)||e.isExportDeclaration(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((94===n.kind||117===n.kind)&&e.isHeritageClause(r)&&r.token===n.kind){var i=function(e){if(1===e.types.length)return e.types[0].expression}(r);if(i)return i}if(94===n.kind){if(e.isTypeParameterDeclaration(r)&&r.constraint&&e.isTypeReferenceNode(r.constraint))return r.constraint.typeName;if(e.isConditionalTypeNode(r)&&e.isTypeReferenceNode(r.extendsType))return r.extendsType.typeName}if(137===n.kind&&e.isInferTypeNode(r))return r.typeParameter.name;if(101===n.kind&&e.isTypeParameterDeclaration(r)&&e.isMappedTypeNode(r.parent))return r.name;if(140===n.kind&&e.isTypeOperatorNode(r)&&140===r.operator&&e.isTypeReferenceNode(r.type))return r.type.typeName;if(144===n.kind&&e.isTypeOperatorNode(r)&&144===r.operator&&e.isArrayTypeNode(r.type)&&e.isTypeReferenceNode(r.type.elementType))return r.type.elementType.typeName;if(!t){if((103===n.kind&&e.isNewExpression(r)||114===n.kind&&e.isVoidExpression(r)||112===n.kind&&e.isTypeOfExpression(r)||132===n.kind&&e.isAwaitExpression(r)||125===n.kind&&e.isYieldExpression(r)||89===n.kind&&e.isDeleteExpression(r))&&r.expression)return e.skipOuterExpressions(r.expression);if((101===n.kind||102===n.kind)&&e.isBinaryExpression(r)&&r.operatorToken===n)return e.skipOuterExpressions(r.right);if(127===n.kind&&e.isAsExpression(r)&&e.isTypeReferenceNode(r.type))return r.type.typeName;if(101===n.kind&&e.isForInStatement(r)||159===n.kind&&e.isForOfStatement(r))return e.skipOuterExpressions(r.expression)}return n}function R(e){return N(e,!1)}function O(e,n,t){return M(e,n,!1,t,!1)}function w(e,n){return M(e,n,!0,void 0,!1)}function M(n,t,r,a,i){for(var o,s=n,c=function(){var i=s.getChildren(n),c=e.binarySearchKey(i,t,(function(e,n){return n}),(function(e,o){var s=r?i[e].getFullStart():i[e].getStart(n,!0);return s>t?1:u(i[e])?i[e-1]&&u(i[e-1])?1:0:a&&s===t&&i[e-1]&&i[e-1].getEnd()===t&&u(i[e-1])?1:-1}));return o?{value:o}:c>=0&&i[c]?(s=i[c],"continue-outer"):{value:s}};;){var l=c();if("object"===typeof l)return l.value}function u(e){if((r?e.getFullStart():e.getStart(n,!0))>t)return!1;var s=e.getEnd();if(t<s||t===s&&(1===e.kind||i))return!0;if(a&&s===t){var c=F(t,n,e);if(c&&a(c))return o=c,!0}return!1}}function P(n,t,r){return function t(a){if(e.isToken(a)&&a.pos===n.end)return a;return e.firstDefined(a.getChildren(r),(function(e){return(e.pos<=n.pos&&e.end>n.end||e.pos===n.end)&&J(e,r)?t(e):void 0}))}(t)}function F(n,t,r,a){var i=function i(o){if(G(o)&&1!==o.kind)return o;var s=o.getChildren(t),c=e.binarySearchKey(s,n,(function(e,n){return n}),(function(e,t){return n<s[e].end?!s[e-1]||n>=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(n<l.end){if(l.getStart(t,!a)>=n||!J(l,t)||V(l)){var u=U(s,c,t,o.kind);return u&&B(u,t)}return i(l)}}e.Debug.assert(void 0!==r||303===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=U(s,s.length,t,o.kind);return d&&B(d,t)}(r||t);return e.Debug.assert(!(i&&V(i))),i}function G(n){return e.isToken(n)&&!V(n)}function B(e,n){if(G(e))return e;var t=e.getChildren(n);if(0===t.length)return e;var r=U(t,t.length,n,e.kind);return r&&B(r,n)}function U(n,t,r,a){for(var i=t-1;i>=0;i--){if(V(n[i]))0!==i||11!==a&&278!==a||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(J(n[i],r))return n[i]}}function V(n){return e.isJsxText(n)&&n.containsOnlyTriviaWhiteSpaces}function j(n,t,r){var a=e.tokenToString(n.kind),i=e.tokenToString(t),o=n.getFullStart(),s=r.text.lastIndexOf(i,o);if(-1!==s){if(r.text.lastIndexOf(a,o-1)<s){var c=F(s+1,r);if(c&&c.kind===t)return c}for(var l=n.kind,u=0;;){var d=F(n.getFullStart(),r);if(!d)return;if((n=d).kind===t){if(0===u)return n;u--}else n.kind===l&&u++}}}function K(e,n,t){return n?e.getNonNullableType():t?e.getNonOptionalType():e}function H(n,t,r){var a=r.getTypeAtLocation(n);return e.isOptionalChain(n.parent)&&(a=K(a,e.isOptionalChainRoot(n.parent),!0)),(e.isNewExpression(n.parent)?a.getConstructSignatures():a.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=t}))}function W(n,t){if(-1!==t.text.lastIndexOf("<",n?n.pos:t.text.length))for(var r=n,a=0,i=0;r;){switch(r.kind){case 29:if((r=F(r.getFullStart(),t))&&28===r.kind&&(r=F(r.getFullStart(),t)),!r||!e.isIdentifier(r))return;if(!a)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};a--;break;case 49:a=3;break;case 48:a=2;break;case 31:a++;break;case 19:if(!(r=j(r,18,t)))return;break;case 21:if(!(r=j(r,20,t)))return;break;case 23:if(!(r=j(r,22,t)))return;break;case 27:i++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(r))break;return}r=F(r.getFullStart(),t)}}function z(n,t,r){return e.formatting.getRangeOfEnclosingComment(n,t,void 0,r)}function J(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function q(e,n,t){var r=z(e,n,void 0);return!!r&&t===_.test(e.text.substring(r.pos,r.end))}function Y(n,t,r){return e.createTextSpanFromBounds(n.getStart(t),(r||n).getEnd())}function Q(n){if(!n.isUnterminated)return e.createTextSpanFromBounds(n.getStart()+1,n.getEnd()-1)}function Z(e,n){return{span:e,newText:n}}function $(e){return 151===e.kind}function ee(n,t){return{fileExists:function(e){return n.fileExists(e)},getCurrentDirectory:function(){return t.getCurrentDirectory()},readFile:e.maybeBind(t,t.readFile),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache)||n.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(t,t.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return n.getFileIncludeReasons()}}}function ne(e,n){return fa(fa({},ee(e,n)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(n,t,r,a,i){return e.factory.createImportDeclaration(void 0,void 0,n||t?e.factory.createImportClause(!!i,n,t&&t.length?e.factory.createNamedImports(t):void 0):void 0,"string"===typeof r?re(r,a):r,void 0)}function re(n,t){return e.factory.createStringLiteral(n,0===t)}function ae(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function ie(n,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;var r=n.imports&&e.find(n.imports,(function(n){return e.isStringLiteral(n)&&!e.nodeIsSynthesized(n.parent)}));return r?ae(r,n):1}function oe(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,(function(n){var t=e.getNameOfDeclaration(n);return t&&79===t.kind?t.escapedText:void 0}))}function se(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function ce(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function le(n){var t=n.declarations?e.firstOrUndefined(n.declarations):void 0;return!!e.findAncestor(t,(function(n){return!!e.isParameter(n)||!(e.isBindingElement(n)||e.isObjectBindingPattern(n)||e.isArrayBindingPattern(n))&&"quit"}))}e.getLineStartPositionForPosition=function(n,t){return e.getLineStarts(t)[t.getLineAndCharacterOfPosition(n).line]},e.rangeContainsRange=g,e.rangeContainsRangeExclusive=function(e,n){return y(e,n.pos)&&y(e,n.end)},e.rangeContainsPosition=function(e,n){return e.pos<=n&&n<=e.end},e.rangeContainsPositionExclusive=y,e.startEndContainsRange=h,e.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},e.rangeOverlapsWithStartEnd=function(e,n,t){return v(e.pos,e.end,n,t)},e.nodeOverlapsWithStartEnd=function(e,n,t,r){return v(e.getStart(n),e.end,t,r)},e.startEndOverlapsWithStartEnd=v,e.positionBelongsToNode=function(n,t,r){return e.Debug.assert(n.pos<=t),t<n.end||!b(n,r)},e.findListItemInfo=function(n){var t=x(n);if(t){var r=t.getChildren();return{listItemIndex:e.indexOfNode(r,n),list:t}}},e.hasChildOfKind=T,e.findChildOfKind=S,e.findContainingList=x,e.getContextualTypeFromParentOrAncestorTypeNode=function(n,t){var r=Fe(n,t);if(r)return r;var a=function(n){var t;return e.findAncestor(n,(function(n){return e.isTypeNode(n)&&(t=n),!e.isQualifiedName(n.parent)&&!e.isTypeNode(n.parent)&&!e.isTypeElement(n.parent)})),t}(n);return a&&t.getTypeAtLocation(a)},e.getAdjustedReferenceLocation=R,e.getAdjustedRenameLocation=function(e){return N(e,!0)},e.getTouchingPropertyName=function(n,t){return O(n,t,(function(n){return e.isPropertyNameLiteral(n)||e.isKeyword(n.kind)||e.isPrivateIdentifier(n)}))},e.getTouchingToken=O,e.getTokenAtPosition=w,e.findFirstNonJsxWhitespaceToken=function(e,n){for(var t=w(e,n);V(t);){var r=P(t,t.parent,e);if(!r)return;t=r}return t},e.findTokenOnLeftOfPosition=function(n,t){var r=w(n,t);return e.isToken(r)&&t>r.getStart(n)&&t<r.getEnd()?r:F(t,n)},e.findNextToken=P,e.findPrecedingToken=F,e.isInString=function(n,t,r){if(void 0===r&&(r=F(t,n)),r&&e.isStringTextContainingNode(r)){var a=r.getStart(n),i=r.getEnd();if(a<t&&t<i)return!0;if(t===i)return!!r.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,n){var t=w(e,n);return!!t&&(11===t.kind||(29===t.kind&&11===t.parent.kind||(29===t.kind&&287===t.parent.kind||(!(!t||19!==t.kind||287!==t.parent.kind)||29===t.kind&&280===t.parent.kind))))},e.isInTemplateString=function(n,t){var r=w(n,t);return e.isTemplateLiteralKind(r.kind)&&t>r.getStart(n)},e.isInJSXText=function(n,t){var r=w(n,t);return!!e.isJsxText(r)||(!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(29!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent)))},e.isInsideJsxElement=function(e,n){return function(t){for(;t;)if(t.kind>=278&&t.kind<=287||11===t.kind||29===t.kind||31===t.kind||79===t.kind||19===t.kind||18===t.kind||43===t.kind)t=t.parent;else{if(277!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}(w(e,n))},e.findPrecedingMatchingToken=j,e.removeOptionality=K,e.isPossiblyTypeArgumentPosition=function n(t,r,a){var i=W(t,r);return void 0!==i&&(e.isPartOfTypeNode(i.called)||0!==H(i.called,i.nTypeArguments,a).length||n(i.called,r,a))},e.getPossibleGenericSignatures=H,e.getPossibleTypeArgumentsInfo=W,e.isInComment=z,e.hasDocComment=function(n,t){var r=w(n,t);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(n,t){void 0===t&&(t=0);var r=[],a=e.isDeclaration(n)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n)&~t:0;return 8&a&&r.push("private"),16&a&&r.push("protected"),4&a&&r.push("public"),(32&a||e.isClassStaticBlockDeclaration(n))&&r.push("static"),128&a&&r.push("abstract"),1&a&&r.push("export"),8192&a&&r.push("deprecated"),8388608&n.flags&&r.push("declare"),270===n.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 177===n.kind||207===n.kind?n.typeArguments:e.isFunctionLike(n)||256===n.kind||257===n.kind?n.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(n){return!(10!==n&&13!==n&&!e.isTemplateLiteralKind(n))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)<t&&t<n.end||!!n.isUnterminated&&t===n.end},e.isAccessibilityModifier=function(e){switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=function(n){var t=e.clone(n);return e.setConfigFileInOptions(t,n&&n.configFile),t},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(n){if(203===n.kind||204===n.kind){if(220===n.parent.kind&&n.parent.left===n&&63===n.parent.operatorToken.kind)return!0;if(243===n.parent.kind&&n.parent.initializer===n)return!0;if(e(294===n.parent.kind?n.parent.parent:n.parent))return!0}return!1},e.isInReferenceComment=function(e,n){return q(e,n,!0)},e.isInNonReferenceComment=function(e,n){return q(e,n,!1)},e.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return Q(e);default:return Y(e)}},e.createTextSpanFromNode=Y,e.createTextSpanFromStringLiteralLikeContent=Q,e.createTextRangeFromNode=function(n,t){return e.createRange(n.getStart(t),n.end)},e.createTextSpanFromRange=function(n){return e.createTextSpanFromBounds(n.pos,n.end)},e.createTextRangeFromSpan=function(n){return e.createRange(n.start,n.start+n.length)},e.createTextChangeFromStartLength=function(n,t,r){return Z(e.createTextSpan(n,t),r)},e.createTextChange=Z,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154],e.isTypeKeyword=function(n){return e.contains(e.typeKeywords,n)},e.isTypeKeywordToken=$,e.isTypeKeywordTokenOrIdentifier=function(n){return $(n)||e.isIdentifier(n)&&"type"===n.text},e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var n=[];return function(t){var r=e.getNodeId(t);return!n[r]&&(n[r]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,n){for(var t="",r=0;r<n;r++)t+=e;return t},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(n){return 161===n.kind?e.isStringOrNumericLiteralLike(n.expression)?n.expression.text:void 0:e.isPrivateIdentifier(n)?e.idText(n):e.getTextOfIdentifierOrLiteral(n)},e.programContainsModules=function(e){return e.getSourceFiles().some((function(n){return!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)}))},e.programContainsEsModules=function(e){return e.getSourceFiles().some((function(n){return!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator}))},e.compilerOptionsIndicateEsModules=function(n){return!!n.module||e.getEmitScriptTarget(n)>=2||!!n.noEmit},e.createModuleSpecifierResolutionHost=ee,e.getModuleSpecifierResolverHost=ne,e.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?te(e,n,t,r):void 0},e.makeImport=te,e.makeStringLiteral=re,(m=e.QuotePreference||(e.QuotePreference={}))[m.Single=0]="Single",m[m.Double=1]="Double",e.quotePreferenceFromString=ae,e.getQuotePreference=ie,e.getQuoteFromPreference=function(n){switch(n){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(n)}},e.symbolNameNoDefault=function(n){var t=oe(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)},e.symbolEscapedNameNoDefault=oe,e.isModuleSpecifierLike=function(n){return e.isStringLiteralLike(n)&&(e.isExternalModuleReference(n.parent)||e.isImportDeclaration(n.parent)||e.isRequireCall(n.parent,!1)&&n.parent.arguments[0]===n||e.isImportCall(n.parent)&&n.parent.arguments[0]===n)},e.isObjectBindingElementWithoutPropertyName=function(n){return e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)&&e.isIdentifier(n.name)&&!n.propertyName},e.getPropertySymbolFromBindingElement=function(e,n){var t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)},e.getParentNodeInSpan=function(n,t,r){if(n)for(;n.parent;){if(e.isSourceFile(n.parent)||!se(r,n.parent,t))return n;n=n.parent}},e.findModifier=function(n,t){return n.modifiers&&e.find(n.modifiers,(function(e){return e.kind===t}))},e.insertImports=function(n,t,r,a){var i=236===(e.isArray(r)?r[0]:r).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(t.statements,i),s=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var u=l[c],d=e.OrganizeImports.getImportDeclarationInsertionIndex(o,u);if(0===d){var p=o[0]===t.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};n.insertNodeBefore(t,o[0],u,!1,p)}else{var f=o[d-1];n.insertNodeAfter(t,f,u)}}else{var m=e.lastOrUndefined(o);m?n.insertNodesAfter(t,m,s):n.insertNodesAtTopOfFile(t,s,a)}else n.insertNodesAtTopOfFile(t,s,a)},e.getTypeKeywordOfTypeOnlyImport=function(n,t){return e.Debug.assert(n.isTypeOnly),e.cast(n.getChildAt(0,t),$)},e.textSpansEqual=ce,e.documentSpansEqual=function(e,n){return e.fileName===n.fileName&&ce(e.textSpan,n.textSpan)},e.forEachUnique=function(e,n){if(e)for(var t=0;t<e.length;t++)if(e.indexOf(e[t])===t){var r=n(e[t],t);if(r)return r}},e.isTextWhiteSpaceLike=function(n,t,r){for(var a=t;a<r;a++)if(!e.isWhiteSpaceLike(n.charCodeAt(a)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=le;var ue=function(){var n,t,r,a,i=10*e.defaultMaximumTruncationLength;l();var o=function(n){return c(n,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var t=n.length&&n[n.length-1].text;return a>i&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(pe(" ",e.SymbolDisplayPartKind.space)),n.push(pe("...",e.SymbolDisplayPartKind.punctuation))),n},writeKeyword:function(n){return c(n,e.SymbolDisplayPartKind.keyword)},writeOperator:function(n){return c(n,e.SymbolDisplayPartKind.operator)},writePunctuation:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(n){return c(n,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(n){return c(n,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(n){return c(n,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){if(a>i)return;s(),a+=e.length,n.push(de(e,t))},writeLine:function(){if(a>i)return;a+=1,n.push(he()),t=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(a>i)&&t){var o=e.getIndentString(r);o&&(a+=o.length,n.push(pe(o,e.SymbolDisplayPartKind.space))),t=!1}}function c(e,t){a>i||(s(),a+=e.length,n.push(pe(e,t)))}function l(){n=[],t=!0,r=0,a=0}}();function de(n,t){return pe(n,function(n){var t=n.flags;if(3&t)return le(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;return 4&t||32768&t||65536&t?e.SymbolDisplayPartKind.propertyName:8&t?e.SymbolDisplayPartKind.enumMemberName:16&t?e.SymbolDisplayPartKind.functionName:32&t?e.SymbolDisplayPartKind.className:64&t?e.SymbolDisplayPartKind.interfaceName:384&t?e.SymbolDisplayPartKind.enumName:1536&t?e.SymbolDisplayPartKind.moduleName:8192&t?e.SymbolDisplayPartKind.methodName:262144&t?e.SymbolDisplayPartKind.typeParameterName:524288&t||2097152&t?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(t))}function pe(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function fe(n){return pe(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function me(n){return pe(n,e.SymbolDisplayPartKind.text)}function _e(n){return pe(n,e.SymbolDisplayPartKind.linkText)}function ge(n,t){return{text:n,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(t).fileName,textSpan:Y(t)}}}function ye(n){return pe(n,e.SymbolDisplayPartKind.link)}e.symbolPart=de,e.displayPart=pe,e.spacePart=function(){return pe(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=fe,e.punctuationPart=function(n){return pe(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return pe(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(n){return pe(n,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(n){return pe(n,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?me(n):fe(t)},e.textPart=me,e.typeAliasNamePart=function(n){return pe(n,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(n){return pe(n,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=_e,e.linkNamePart=ge,e.linkPart=ye,e.buildLinkParts=function(n,t){var r,a=e.isJSDocLink(n)?"link":e.isJSDocLinkCode(n)?"linkcode":"linkplain",i=[ye("{@".concat(a," "))];if(n.name){var o=null===t||void 0===t?void 0:t.getSymbolAtLocation(n.name),s=function(e){if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;var n=0,t=0;for(;t<e.length;)if("<"===e[t]&&n++,">"===e[t]&&n--,t++,!n)return t;return 0}(n.text),c=e.getTextOfNode(n.name)+n.text.slice(0,s),l=n.text.slice(s),u=(null===o||void 0===o?void 0:o.valueDeclaration)||(null===(r=null===o||void 0===o?void 0:o.declarations)||void 0===r?void 0:r[0]);u?(i.push(ge(c,u)),l&&i.push(_e(l))):i.push(_e(c+(s?"":" ")+l))}else n.text&&i.push(_e(n.text));return i.push(ye("}")),i};function he(){return pe("\n",e.SymbolDisplayPartKind.lineBreak)}function ve(e){try{return e(ue),ue.displayParts()}finally{ue.clear()}}function be(e){return 0!==(33554432&e.flags)}function Ee(e){return 0!==(2097152&e.flags)}function Te(e,n){void 0===n&&(n=!0);var t=e&&xe(e);return t&&!n&&Ce(t),t}function Se(n,t,r){var a=r(n);return a?e.setOriginalNode(a,n):a=xe(n,r),a&&!t&&Ce(a),a}function xe(n,t){var r=t?function(e){return Se(e,!0,t)}:Te,a=t?function(e){return e&&De(e,!0,t)}:function(e){return e&&Le(e)},i=e.visitEachChild(n,r,e.nullTransformationContext,a,r);if(i===n){var o=e.isStringLiteral(n)?e.setOriginalNode(e.factory.createStringLiteralFromNode(n),n):e.isNumericLiteral(n)?e.setOriginalNode(e.factory.createNumericLiteral(n.text,n.numericLiteralFlags),n):e.factory.cloneNode(n);return e.setTextRange(o,n)}return i.parent=void 0,i}function Le(n,t){return void 0===t&&(t=!0),n&&e.factory.createNodeArray(n.map((function(e){return Te(e,t)})),n.hasTrailingComma)}function De(n,t,r){return e.factory.createNodeArray(n.map((function(e){return Se(e,t,r)})),n.hasTrailingComma)}function Ce(e){Ae(e),Ie(e)}function Ae(e){ke(e,512,Ne)}function Ie(n){ke(n,1024,e.getLastChild)}function ke(n,t,r){e.addEmitFlags(n,t);var a=r(n);a&&ke(a,t,r)}function Ne(e){return e.forEachChild((function(e){return e}))}function Re(n,t,r,a,i){e.forEachLeadingCommentRange(r.text,n.pos,Me(t,r,a,i,e.addSyntheticLeadingComment))}function Oe(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.end,Me(t,r,a,i,e.addSyntheticTrailingComment))}function we(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.pos,Me(t,r,a,i,e.addSyntheticLeadingComment))}function Me(e,n,t,r,a){return function(i,o,s,c){3===s?(i+=2,o-=2):i+=2,a(e,t||s,n.text.slice(i,o),void 0!==r?r:c)}}function Pe(n,t){if(e.startsWith(n,t))return 0;var r=n.indexOf(" "+t);return-1===r&&(r=n.indexOf("."+t)),-1===r&&(r=n.indexOf('"'+t)),-1===r?-1:r+1}function Fe(e,n){var t=e.parent;switch(t.kind){case 208:return n.getContextualType(t);case 220:var r=t,a=r.left,i=r.operatorToken,o=r.right;return Ge(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 288:return t.expression===e?Be(t,n):void 0;default:return n.getContextualType(e)}}function Ge(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Be(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function Ue(e){return 173===e||174===e||175===e||165===e||167===e}function Ve(e){return 255===e||170===e||168===e||171===e||172===e}function je(e){return 260===e}function Ke(e){return 236===e||237===e||239===e||244===e||245===e||246===e||250===e||252===e||166===e||258===e||265===e||264===e||271===e||263===e||270===e}function He(e,n){return ze(e,e.fileExists,n)}function We(e){try{return e()}catch(X){return}}function ze(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return We((function(){return n&&n.apply(e,t)}))}function Je(n,t){if(!t.fileExists)return[];var r=[];return e.forEachAncestorDirectory(e.getDirectoryPath(n),(function(n){var a=e.combinePaths(n,"package.json");if(t.fileExists(a)){var i=qe(a,t);i&&r.push(i)}})),r}function qe(n,t){if(t.readFile){var r=function(e){try{return JSON.parse(e)}catch(X){return}}(t.readFile(n)||""),a={};if(r)for(var i=0,o=["dependencies","devDependencies","optionalDependencies","peerDependencies"];i<o.length;i++){var s=o[i],c=r[s];if(c){var l=new e.Map;for(var u in c)l.set(u,c[u]);a[s]=l}}var d=[[1,a.dependencies],[2,a.devDependencies],[8,a.optionalDependencies],[4,a.peerDependencies]];return fa(fa({},a),{parseable:!!r,fileName:n,get:p,has:function(e,n){return!!p(e,n)}})}function p(e,n){void 0===n&&(n=15);for(var t=0,r=d;t<r.length;t++){var a=r[t],i=a[0],o=a[1];if(o&&n&i){var s=o.get(e);if(void 0!==s)return s}}}}function Xe(n){return e.some(n.imports,(function(n){var t=n.text;return e.JsTyping.nodeCoreModules.has(t)}))}function Ye(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Qe(n){var t=n.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(e.isInJSFile(n)||!e.findAncestor(n,e.isGlobalScopeAugmentation))}e.getNewLineOrDefaultFromHost=function(e,n){var t;return(null===n||void 0===n?void 0:n.newLineCharacter)||(null===(t=e.getNewLine)||void 0===t?void 0:t.call(e))||"\r\n"},e.lineBreakPart=he,e.mapToDisplayParts=ve,e.typeToDisplayParts=function(e,n,t,r){return void 0===r&&(r=0),ve((function(a){e.writeType(n,t,17408|r,a)}))},e.symbolToDisplayParts=function(e,n,t,r,a){return void 0===a&&(a=0),ve((function(i){e.writeSymbol(n,t,r,8|a,i)}))},e.signatureToDisplayParts=function(e,n,t,r){return void 0===r&&(r=0),r|=25632,ve((function(a){e.writeSignature(n,t,r,void 0,a)}))},e.isImportOrExportSpecifierName=function(n){return!!n.parent&&e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n},e.getScriptKind=function(n,t){return e.ensureScriptKind(n,t.getScriptKind&&t.getScriptKind(n))},e.getSymbolTarget=function(n,t){for(var r=n;Ee(r)||be(r)&&r.target;)r=be(r)&&r.target?r.target:e.skipAlias(r,t);return r},e.getUniqueSymbolId=function(n,t){return e.getSymbolId(e.skipAlias(n,t))},e.getFirstNonSpaceCharacterPosition=function(n,t){for(;e.isWhiteSpaceLike(n.charCodeAt(t));)t+=1;return t},e.getPrecedingNonSpaceCharacterPosition=function(n,t){for(;t>-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));)t-=1;return t+1},e.getSynthesizedDeepClone=Te,e.getSynthesizedDeepCloneWithReplacements=Se,e.getSynthesizedDeepClones=Le,e.getSynthesizedDeepClonesWithReplacements=De,e.suppressLeadingAndTrailingTrivia=Ce,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Ie,e.copyComments=function(e,n){var t=e.getSourceFile();!function(e,n){for(var t=e.getFullStart(),r=e.getStart(),a=t;a<r;a++)if(10===n.charCodeAt(a))return!0;return!1}(e,t.text)?we(e,n,t):Re(e,n,t),Oe(e,n,t)},e.getUniqueName=function(n,t){for(var r=n,a=1;!e.isFileLevelUniqueName(t,r);a++)r="".concat(n,"_").concat(a);return r},e.getRenameLocation=function(n,t,r,a){for(var i=0,o=-1,s=0,c=n;s<c.length;s++){var l=c[s],u=l.fileName,d=l.textChanges;e.Debug.assert(u===t);for(var p=0,f=d;p<f.length;p++){var m=f[p],_=m.span,g=m.newText,y=Pe(g,r);if(-1!==y&&(o=_.start+i+y,!a))return o;i+=g.length-_.length}}return e.Debug.assert(a),e.Debug.assert(o>=0),o},e.copyLeadingComments=Re,e.copyTrailingComments=Oe,e.copyTrailingAsLeadingComments=we,e.needsParentheses=function(n){return e.isBinaryExpression(n)&&27===n.operatorToken.kind||e.isObjectLiteralExpression(n)||e.isAsExpression(n)&&e.isObjectLiteralExpression(n.expression)},e.getContextualTypeFromParent=Fe,e.quote=function(n,t,r){var a=ie(n,t),i=JSON.stringify(r);return 0===a?"'".concat(e.stripQuotes(i).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):i},e.isEqualityOperatorKind=Ge,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Be,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,n,t,r){var a=t.getTypeChecker(),i=!0,o=function(){return i=!1},s=a.typeToTypeNode(e,n,1,{trackSymbol:function(e,n,t){return!(i=i&&0===a.isSymbolAccessible(e,n,t,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ne(t,r)});return i?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Ue,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Ve,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=je,e.syntaxRequiresTrailingSemicolonOrASI=Ke,e.syntaxMayBeASICandidate=e.or(Ue,Ve,je,Ke),e.positionIsASICandidate=function(n,t,r){var a=e.findAncestor(t,(function(t){return t.end!==n?"quit":e.syntaxMayBeASICandidate(t.kind)}));return!!a&&function(n,t){var r=n.getLastToken(t);if(r&&26===r.kind)return!1;if(Ue(n.kind)){if(r&&27===r.kind)return!1}else if(je(n.kind)){if((a=e.last(n.getChildren(t)))&&e.isModuleBlock(a))return!1}else if(Ve(n.kind)){var a;if((a=e.last(n.getChildren(t)))&&e.isFunctionBlock(a))return!1}else if(!Ke(n.kind))return!1;if(239===n.kind)return!0;var i=P(n,e.findAncestor(n,(function(e){return!e.parent})),t);return!i||19===i.kind||t.getLineAndCharacterOfPosition(n.getEnd()).line!==t.getLineAndCharacterOfPosition(i.getStart(t)).line}(a,r)},e.probablyUsesSemicolons=function(n){var t=0,r=0;return e.forEachChild(n,(function a(i){if(Ke(i.kind)){var o=i.getLastToken(n);o&&26===o.kind?t++:r++}return t+r>=5||e.forEachChild(i,a)})),0===t&&r<=1||t/r>.2},e.tryGetDirectories=function(e,n){return ze(e,e.getDirectories,n)||[]},e.tryReadDirectory=function(n,t,r,a,i){return ze(n,n.readDirectory,t,r,a,i)||e.emptyArray},e.tryFileExists=He,e.tryDirectoryExists=function(n,t){return We((function(){return e.directoryProbablyExists(t,n)}))||!1},e.tryAndIgnoreErrors=We,e.tryIOAndConsumeErrors=ze,e.findPackageJsons=function(n,t,r){var a=[];return e.forEachAncestorDirectory(n,(function(n){if(n===r)return!0;var i=e.combinePaths(n,"package.json");He(t,i)&&a.push(i)})),a},e.findPackageJson=function(n,t){var r;return e.forEachAncestorDirectory(n,(function(n){return"node_modules"===n||(!!(r=e.findConfigFile(n,(function(e){return He(t,e)}),"package.json"))||void 0)})),r},e.getPackageJsonsVisibleToFile=Je,e.createPackageJsonInfo=qe,e.createPackageJsonImportFilter=function(n,t,r){var a,i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(n.fileName)||Je(n.fileName,r)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(n,t){if(!i.length||!n.valueDeclaration)return!0;var r=c(n.valueDeclaration.getSourceFile().fileName,t);if("undefined"===typeof r)return!0;var a=e.stripQuotes(n.getName());if(s(a))return!0;return o(r)||o(a)},allowsImportingSourceFile:function(e,n){if(!i.length)return!0;var t=c(e.fileName,n);if(!t)return!0;return o(t)},allowsImportingSpecifier:function(n){if(!i.length||s(n))return!0;if(e.pathIsRelative(n)||e.isRootedDiskPath(n))return!0;return o(n)}};function o(n){for(var t=l(n),r=0,a=i;r<a.length;r++){var o=a[r];if(o.has(t)||o.has(e.getTypesPackageName(t)))return!0}return!1}function s(t){return!!(e.isSourceFileJS(n)&&e.JsTyping.nodeCoreModules.has(t)&&(void 0===a&&(a=Xe(n)),a))}function c(a,i){if(e.stringContains(a,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(r.getCompilationSettings(),n.path,a,i,t);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(n){var t=e.getPathComponents(e.getPackageNameFromTypesPackageName(n)).slice(1);return e.startsWith(t[0],"@")?"".concat(t[0],"/").concat(t[1]):t[0]}},e.consumesNodeCoreModules=Xe,e.isInsideNodeModules=function(n){return e.contains(e.getPathComponents(n),"node_modules")},e.isDiagnosticWithLocation=Ye,e.findDiagnosticForNode=function(n,t){var r=Y(n),a=e.binarySearchKey(t,r,e.identity,e.compareTextSpans);if(a>=0){var i=t[a];return e.Debug.assertEqual(i.file,n.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(i,Ye)}},e.getDiagnosticsWithinSpan=function(n,t){var r,a=e.binarySearchKey(t,n.start,(function(e){return e.start}),e.compareValues);for(a<0&&(a=~a);(null===(r=t[a-1])||void 0===r?void 0:r.start)===n.start;)a--;for(var i=[],o=e.textSpanEnd(n);;){var s=e.tryCast(t[a],Ye);if(!s||s.start>o)break;e.textSpanContainsTextSpan(n,s)&&i.push(s),a++}return i},e.getRefactorContextSpan=function(n){var t=n.startPosition,r=n.endPosition;return e.createTextSpanFromBounds(t,void 0===r?t:r)},e.getFixableErrorSpanExpression=function(n,t){var r=w(n,t.start);return e.findAncestor(r,(function(r){return r.getStart(n)<t.start||r.getEnd()>e.textSpanEnd(t)?"quit":e.isExpression(r)&&ce(t,Y(r,n))}))},e.mapOneOrMany=function(n,t,r){return void 0===r&&(r=e.identity),n?e.isArray(n)?r(e.map(n,t)):t(n,0):void 0},e.firstOrOnly=function(n){return e.isArray(n)?e.first(n):n},e.getNameForExportedSymbol=function(n,t){return 33554432&n.flags||"export="!==n.escapedName&&"default"!==n.escapedName?n.name:e.firstDefined(n.declarations,(function(n){var t;return e.isExportAssignment(n)?null===(t=e.tryCast(e.skipOuterExpressions(n.expression),e.isIdentifier))||void 0===t?void 0:t.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(n){var t;return e.Debug.checkDefined(n.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(n.flags),". ")+"Declarations: ".concat(null===(t=n.declarations)||void 0===t?void 0:t.map((function(n){var t=e.Debug.formatSyntaxKind(n.kind),r=e.isInJSFile(n),a=n.expression;return(r?"[JS]":"")+t+(a?" (expression: ".concat(e.Debug.formatSyntaxKind(a.kind),")"):"")})).join(", "),"."))}(n),t)},e.stringContainsAt=function(e,n,t){var r=n.length;if(r+t>e.length)return!1;for(var a=0;a<r;a++)if(n.charCodeAt(a)!==e.charCodeAt(a+t))return!1;return!0},e.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},e.isGlobalDeclaration=function(e){return!Qe(e)},e.isNonGlobalDeclaration=Qe,e.isDeprecatedDeclaration=function(n){return!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n))},e.shouldUseUriStyleNodeCoreModules=function(n,t){var r=e.firstDefined(n.imports,(function(n){if(e.JsTyping.nodeCoreModules.has(n.text))return e.startsWith(n.text,"node:")}));return null!==r&&void 0!==r?r:t.usesUriStyleNodeCoreModules},e.getNewLineKind=function(e){return"\n"===e?1:0},e.diagnosticToString=function(n){return e.isArray(n)?e.formatStringFromArgs(e.getLocaleSpecificMessage(n[0]),n.slice(1)):e.getLocaleSpecificMessage(n)}}(ha||(ha={})),function(e){var n,t;function r(n){var t,r=1,a=e.createMultiMap(),i=new e.Map,o={isUsableByFile:function(e){return e===t},isEmpty:function(){return!a.size},clear:function(){a.clear(),i.clear(),t=void 0},add:function(n,s,c,l,u,d,p,f,m){n!==t&&(o.clear(),t=n);var _=1===d&&e.getLocalSymbolForExportDefault(s)||s,g=0===d||e.isExternalModuleSymbol(_)?e.unescapeLeadingUnderscores(c):e.getNameForExportedSymbol(_,f),y=e.stripQuotes(l.name),h=r++,v=e.skipAlias(s,m),b=33554432&s.flags?void 0:s,E=33554432&l.flags?void 0:l;b&&E||i.set(h,[s,l]),a.add(function(n,t,r,a){var i=r||"";return"".concat(n,"|").concat(e.getSymbolId(e.skipAlias(t,a)),"|").concat(i)}(g,s,e.isExternalModuleNameRelative(y)?void 0:y,m),{id:h,symbolTableKey:c,symbolName:g,moduleName:y,moduleFile:u,moduleFileName:null===u||void 0===u?void 0:u.fileName,exportKind:d,targetFlags:v.flags,isFromPackageJson:p,symbol:b,moduleSymbol:E})},get:function(e,n){if(e===t){var r=a.get(n);return null===r||void 0===r?void 0:r.map(s)}},forEach:function(e,n){e===t&&a.forEach((function(e,t){var r=function(e){var n=e.substring(0,e.indexOf("|")),t=e.substring(e.lastIndexOf("|")+1);return{symbolName:n,ambientModuleName:""===t?void 0:t}}(t),a=r.symbolName,i=r.ambientModuleName;n(e.map(s),a,!!i,t)}))},releaseSymbols:function(){i.clear()},onFileChanged:function(n,r,a){return(!c(n)||!c(r))&&(t&&t!==r.path||a&&e.consumesNodeCoreModules(n)!==e.consumesNodeCoreModules(r)||!e.arrayIsEqualTo(n.moduleAugmentations,r.moduleAugmentations)||!function(n,t){if(!e.arrayIsEqualTo(n.ambientModuleNames,t.ambientModuleNames))return!1;for(var r=-1,a=-1,i=function(i){var o=function(n){return e.isNonGlobalAmbientModule(n)&&n.name.text===i};if(r=e.findIndex(n.statements,o,r+1),a=e.findIndex(t.statements,o,a+1),n.statements[r]!==t.statements[a])return{value:!1}},o=0,s=t.ambientModuleNames;o<s.length;o++){var c=i(s[o]);if("object"===typeof c)return c.value}return!0}(n,r)?(o.clear(),!0):(t=r.path,!1))}};return e.Debug.isDebugging&&Object.defineProperty(o,"__cache",{get:function(){return a}}),o;function s(t){if(t.symbol&&t.moduleSymbol)return t;var r=t.id,a=t.exportKind,o=t.targetFlags,s=t.isFromPackageJson,c=t.moduleFileName,l=i.get(r)||e.emptyArray,u=l[0],d=l[1];if(u&&d)return{symbol:u,moduleSymbol:d,moduleFileName:c,exportKind:a,targetFlags:o,isFromPackageJson:s};var p=(s?n.getPackageJsonAutoImportProvider():n.getCurrentProgram()).getTypeChecker(),f=t.moduleSymbol||d||e.Debug.checkDefined(t.moduleFile?p.getMergedSymbol(t.moduleFile.symbol):p.tryFindAmbientModule(t.moduleName)),m=t.symbol||u||e.Debug.checkDefined(2===a?p.resolveExternalModuleSymbol(f):p.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(t.symbolTableKey),f),"Could not find symbol '".concat(t.symbolName,"' by key '").concat(t.symbolTableKey,"' in module ").concat(f.name));return i.set(r,[m,f]),{symbol:m,moduleSymbol:f,moduleFileName:c,exportKind:a,targetFlags:o,isFromPackageJson:s}}function c(e){return!e.commonJsModuleIndicator&&!e.externalModuleIndicator&&!e.moduleAugmentations&&!e.ambientModuleNames}}function a(n,t,r,a){var o,s;i(n.getTypeChecker(),n.getSourceFiles(),(function(e,t){return a(e,t,n,!1)}));var c=r&&(null===(o=t.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(t));if(c){var l=e.timestamp();i(c.getTypeChecker(),c.getSourceFiles(),(function(e,n){return a(e,n,c,!0)})),null===(s=t.log)||void 0===s||s.call(t,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-l))}}function i(n,t,r){for(var a=0,i=n.getAmbientModules();a<i.length;a++){var o=i[a];e.stringContains(o.name,"*")||r(o,void 0)}for(var s=0,c=t;s<c.length;s++){var l=c[s];e.isExternalOrCommonJsModule(l)&&r(n.getMergedSymbol(l.symbol),l)}}function o(e,n,t){var r=function(e,n){var t=n.resolveExternalModuleSymbol(e);if(t!==e)return{symbol:t,exportKind:2};var r=n.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}(e,n);if(r){var a=r.symbol,i=r.exportKind,o=c(a,n,t);return o&&fa({symbol:a,exportKind:i},o)}}function s(n,t){return!t.isUndefinedSymbol(n)&&!t.isUnknownSymbol(n)&&!e.isKnownSymbol(n)&&!e.isPrivateIdentifierSymbol(n)}function c(n,t,r){var a=e.getLocalSymbolForExportDefault(n);if(a)return{symbolForMeaning:a,name:a.name};var i,o=(i=n).declarations&&e.firstDefined(i.declarations,(function(n){var t;return e.isExportAssignment(n)?null===(t=e.tryCast(e.skipOuterExpressions(n.expression),e.isIdentifier))||void 0===t?void 0:t.text:e.isExportSpecifier(n)?(e.Debug.assert("default"===n.name.text,"Expected the specifier to be a default export"),n.propertyName&&n.propertyName.text):void 0}));if(void 0!==o)return{symbolForMeaning:n,name:o};if(2097152&n.flags){var s=t.getImmediateAliasedSymbol(n);if(s&&s.parent)return c(s,t,r)}return"default"!==n.escapedName&&"export="!==n.escapedName?{symbolForMeaning:n,name:n.getName()}:{symbolForMeaning:n,name:e.getNameForExportedSymbol(n,r.target)}}(n=e.ImportKind||(e.ImportKind={}))[n.Named=0]="Named",n[n.Default=1]="Default",n[n.Namespace=2]="Namespace",n[n.CommonJS=3]="CommonJS",(t=e.ExportKind||(e.ExportKind={}))[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",e.createCacheableExportInfoMap=r,e.isImportableFile=function(n,t,r,a,i,o,s){var c;if(t===r)return!1;var l=null===s||void 0===s?void 0:s.get(t.path,r.path,a);if(void 0!==(null===l||void 0===l?void 0:l.isAutoImportable))return l.isAutoImportable;var u=e.hostGetCanonicalFileName(o),d=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),p=!!e.moduleSpecifiers.forEachFileNameOfModule(t.fileName,r.fileName,o,!1,(function(a){var i=n.getSourceFile(a);return(i===r||!i)&&function(n,t,r,a){var i=e.forEachAncestorDirectory(t,(function(n){return"node_modules"===e.getBaseFileName(n)?n:void 0})),o=i&&e.getDirectoryPath(r(i));return void 0===o||e.startsWith(r(n),o)||!!a&&e.startsWith(r(a),o)}(t.fileName,a,u,d)}));if(i){var f=p&&i.allowsImportingSourceFile(r,o);return null===s||void 0===s||s.setIsAutoImportable(t.path,r.path,a,f),f}return p},e.forEachExternalModuleToImportFrom=a,e.getExportInfoMap=function(n,t,i,c){var l,u,d,p,f,m=e.timestamp();null===(l=t.getPackageJsonAutoImportProvider)||void 0===l||l.call(t);var _=(null===(u=t.getCachedExportInfoMap)||void 0===u?void 0:u.call(t))||r({getCurrentProgram:function(){return i},getPackageJsonAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)}});if(_.isUsableByFile(n.path))return null===(d=t.log)||void 0===d||d.call(t,"getExportInfoMap: cache hit"),_;null===(p=t.log)||void 0===p||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");var g=i.getCompilerOptions(),y=e.getEmitScriptTarget(g),h=0;return a(i,t,!0,(function(t,r,a,i){++h%100===0&&(null===c||void 0===c||c.throwIfCancellationRequested());var l=new e.Map,u=a.getTypeChecker(),d=o(t,u,g);d&&s(d.symbol,u)&&_.add(n.path,d.symbol,1===d.exportKind?"default":"export=",t,r,d.exportKind,i,y,u),u.forEachExportAndPropertyOfModule(t,(function(a,o){a!==(null===d||void 0===d?void 0:d.symbol)&&s(a,u)&&e.addToSeen(l,o)&&_.add(n.path,a,o,t,r,0,i,y,u)}))})),null===(f=t.log)||void 0===f||f.call(t,"getExportInfoMap: done in ".concat(e.timestamp()-m," ms")),_},e.getDefaultLikeExportInfo=o}(ha||(ha={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(a,s,c){var l=0,u=0,d=[],p=function(n){switch(n){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(n)}}(s),f=p.prefix,m=p.pushTemplate;a=f+a;var _=f.length;m&&d.push(15),o.setText(a);var g=0,y=[],h=0;do{l=o.scan(),e.isTrivia(l)||(E(),u=l);var v=o.getTextPos();if(r(o.getTokenPos(),v,_,i(l),y),v>=a.length){var b=t(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function E(){switch(l){case 43:case 68:n[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&h++;break;case 31:h>0&&h--;break;case 130:case 149:case 146:case 133:case 150:h>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var t=e.lastOrUndefined(d);15===t?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(t,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 136:case 148:case 134:case 124:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(n,t,r){return function(n,t){for(var r=[],i=n.spans,o=0,s=0;s<i.length;s+=3){var c=i[s],l=i[s+1],u=i[s+2];if(o>=0){var d=c-o;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:l,classification:a(u)}),o=c+l}var p=t.length-o;p>0&&r.push({length:p,classification:e.TokenClass.Whitespace});return{entries:r,finalLexState:n.endOfLineState}}(s(n,t,r),n)},getEncodedLexicalClassifications:s}};var n=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(function(e){return e}),(function(){return!0}));function t(n,t,r){switch(t){case 10:if(!n.isUnterminated())return;for(var a=n.getTokenText(),i=a.length-1,o=0;92===a.charCodeAt(i-o);)o++;if(0===(1&o))return;return 34===a.charCodeAt(0)?3:2;case 3:return n.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(t)){if(!n.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}function r(e,n,t,r,a){if(8!==r){0===e&&t>0&&(e+=t);var i=n-e;i>0&&a.push(e-t,i,r)}}function a(n){switch(n){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function i(n){if(e.isKeyword(n))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(n)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(n))return 5;if(n>=18&&n<=78)return 10;switch(n){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return e.isTemplateLiteralKind(n)?6:2}}function o(e,n){switch(n){case 260:case 256:case 257:case 255:case 225:case 212:case 213:e.throwIfCancellationRequested()}}function s(n,t,r,a,i){var s=[];return r.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(i,u.pos,u.getFullWidth())){if(o(t,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&a.has(u.escapedText)){var d=n.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),n);p&&function(n,t,r){var a=t-n;e.Debug.assert(a>0,"Classification had non-positive length of ".concat(a)),s.push(n),s.push(a),s.push(r)}(u.getStart(r),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(n,t,r){var a=n.getFlags();return 0===(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&t||1&t&&function(n){return e.some(n.declarations,(function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)}))}(n)?14:void 0:2097152&a?c(r.getAliasedSymbol(n),t,r):2&t?64&a?13:262144&a?15:void 0:void 0}function l(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 u(n){e.Debug.assert(n.spans.length%3===0);for(var t=n.spans,r=[],a=0;a<t.length;a+=3)r.push({textSpan:e.createTextSpan(t[a],t[a+1]),classificationType:l(t[a+2])});return r}function d(n,t,r){var a=r.start,i=r.length,s=e.createScanner(99,!1,t.languageVariant,t.text),c=e.createScanner(99,!1,t.languageVariant,t.text),l=[];return h(t),{spans:l,endOfLineState:0};function u(e,n,t){l.push(e),l.push(n),l.push(t)}function d(n,r,a,i){if(3===r){var o=e.parseIsolatedJSDocComment(t.text,a,i);if(o&&o.jsDoc)return e.setParent(o.jsDoc,n),void function(e){var n,t,r,a,i,o,s,c=e.pos;if(e.tags)for(var l=0,d=e.tags;l<d.length;l++){var m=d[l];m.pos!==c&&p(c,m.pos-c),u(m.pos,1,10),u(m.tagName.pos,m.tagName.end-m.tagName.pos,18),c=m.tagName.end;var _=m.tagName.end;switch(m.kind){case 338:var g=m;b(g),_=g.isNameFirst&&(null===(n=g.typeExpression)||void 0===n?void 0:n.end)||g.name.end;break;case 345:var y=m;_=y.isNameFirst&&(null===(t=y.typeExpression)||void 0===t?void 0:t.end)||y.name.end;break;case 342:f(m),c=m.end,_=m.typeParameters.end;break;case 343:var v=m;_=307===(null===(r=v.typeExpression)||void 0===r?void 0:r.kind)&&(null===(a=v.fullName)||void 0===a?void 0:a.end)||(null===(i=v.typeExpression)||void 0===i?void 0:i.end)||_;break;case 336:case 340:case 337:_=m.typeExpression.end;break;case 341:h(m.typeExpression),c=m.end,_=m.typeExpression.end;break;case 339:h(m.typeExpression),c=m.end,_=(null===(o=m.typeExpression)||void 0===o?void 0:o.end)||_;break;case 344:_=(null===(s=m.name)||void 0===s?void 0:s.end)||_;break;case 326:case 327:_=m.class.end}"object"===typeof m.comment?p(m.comment.pos,m.comment.end-m.comment.pos):"string"===typeof m.comment&&p(_,m.end-_)}c!==e.end&&p(c,e.end-c);return;function b(e){e.isNameFirst&&(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(p(c,e.typeExpression.pos-c),h(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}}(o.jsDoc)}else if(2===r&&function(n,r){var a=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=t.text.substr(n,r),s=a.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=n;p(c,s[1].length),u(c+=s[1].length,s[2].length,10),u(c+=s[2].length,s[3].length,21),c+=s[3].length;var l=s[4],d=c;for(;;){var f=i.exec(l);if(!f)break;var m=c+f.index+f[1].length;m>d&&(p(d,m-d),d=m),u(d,f[2].length,22),d+=f[2].length,f[3].length&&(p(d,f[3].length),d+=f[3].length),u(d,f[4].length,5),d+=f[4].length,f[5].length&&(p(d,f[5].length),d+=f[5].length),u(d,f[6].length,24),d+=f[6].length}(c+=s[4].length)>d&&p(d,c-d);s[5]&&(u(c,s[5].length,10),c+=s[5].length);var _=n+r;c<_&&p(c,_-c);return!0}(a,i))return;p(a,i)}function p(e,n){u(e,n,1)}function f(e){for(var n=0,t=e.getChildren();n<t.length;n++){h(t[n])}}function m(n,t,r){var a;for(a=t;a<r&&!e.isLineBreak(n.charCodeAt(a));a++);for(u(t,a-t,1),c.setTextPos(a);c.getTextPos()<r;)_()}function _(){var e=c.getTextPos(),n=c.scan(),t=c.getTextPos(),r=y(n);r&&u(e,t-e,r)}function g(n){if(e.isJSDoc(n))return!0;if(e.nodeIsMissing(n))return!0;var r=function(e){switch(e.parent&&e.parent.kind){case 279:if(e.parent.tagName===e)return 19;break;case 280:if(e.parent.tagName===e)return 20;break;case 278:if(e.parent.tagName===e)return 21;break;case 284:if(e.parent.name===e)return 22}return}(n);if(!e.isToken(n)&&11!==n.kind&&void 0===r)return!1;var a=11===n.kind?n.pos:function(n){for(s.setTextPos(n.pos);;){var r=s.getTextPos();if(!e.couldStartTrivia(t.text,r))return r;var a=s.scan(),i=s.getTextPos(),o=i-r;if(!e.isTrivia(a))return r;switch(a){case 4:case 5:continue;case 2:case 3:d(n,a,r,o),s.setTextPos(i);continue;case 7:var c=t.text,l=c.charCodeAt(r);if(60===l||62===l){u(r,o,1);continue}e.Debug.assert(124===l||61===l),m(c,r,i);break;case 6:break;default:e.Debug.assertNever(a)}}}(n),i=n.end-a;if(e.Debug.assert(i>=0),i>0){var o=r||y(n.kind,n);o&&u(a,i,o)}return!0}function y(n,t){if(e.isKeyword(n))return 3;if((29===n||31===n)&&t&&e.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(e.isPunctuation(n)){if(t){var r=t.parent;if(63===n&&(253===r.kind||166===r.kind||163===r.kind||284===r.kind))return 5;if(220===r.kind||218===r.kind||219===r.kind||221===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return t&&284===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(79===n){if(t)switch(t.parent.kind){case 256:return t.parent.name===t?11:void 0;case 162:return t.parent.name===t?15:void 0;case 257:return t.parent.name===t?13:void 0;case 259:return t.parent.name===t?12:void 0;case 260:return t.parent.name===t?14:void 0;case 163:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function h(r){if(r&&e.decodedTextSpanIntersectsWith(a,i,r.pos,r.getFullWidth())){o(n,r.kind);for(var s=0,c=r.getChildren(t);s<c.length;s++){var l=c[s];g(l)||h(l)}}}}e.getSemanticClassifications=function(e,n,t,r,a){return u(s(e,n,t,r,a))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,n,t){return u(d(e,n,t))},e.getEncodedSyntacticClassifications=d}(ha||(ha={})),function(e){var n;(function(n){var t,r,a;function i(e,n,t,r){return{spans:o(e,t,r,n),endOfLineState:0}}function o(n,t,r,a){var i=[];return n&&t&&function(n,t,r,a,i){var o=n.getTypeChecker(),u=!1;function d(p){switch(p.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:i.throwIfCancellationRequested()}if(p&&e.textSpanIntersectsWith(r,p.pos,p.getFullWidth())&&0!==p.getFullWidth()){var f=u;if((e.isJsxElement(p)||e.isJsxSelfClosingElement(p))&&(u=!0),e.isJsxExpression(p)&&(u=!1),e.isIdentifier(p)&&!u&&!function(n){var t=n.parent;return t&&(e.isImportClause(t)||e.isImportSpecifier(t)||e.isNamespaceImport(t))}(p)&&!e.isInfinityOrNaNString(p.escapedText)){var m=o.getSymbolAtLocation(p);if(m){2097152&m.flags&&(m=o.getAliasedSymbol(m));var _=function(n,t){var r=n.getFlags();if(32&r)return 0;if(384&r)return 1;if(524288&r)return 5;if(64&r){if(2&t)return 2}else if(262144&r)return 4;var a=n.valueDeclaration||n.declarations&&n.declarations[0];return a&&e.isBindingElement(a)&&(a=s(a)),a&&l.get(a.kind)}(m,e.getMeaningFromLocation(p));if(void 0!==_){var g=0;p.parent&&(e.isBindingElement(p.parent)||l.get(p.parent.kind)===_)&&p.parent.name===p&&(g=1),6===_&&c(p)&&(_=9),_=function(n,t,r){if(7===r||9===r||6===r){var a=n.getTypeAtLocation(t);if(a){var i=function(e){return e(a)||a.isUnion()&&a.types.some(e)};if(6!==r&&i((function(e){return e.getConstructSignatures().length>0})))return 0;if(i((function(e){return e.getCallSignatures().length>0}))&&!i((function(e){return e.getProperties().length>0}))||function(n){for(;c(n);)n=n.parent;return e.isCallExpression(n.parent)&&n.parent.expression===n}(t))return 9===r?11:10}}return r}(o,p,_);var y=m.valueDeclaration;if(y){var h=e.getCombinedModifierFlags(y),v=e.getCombinedNodeFlags(y);32&h&&(g|=2),256&h&&(g|=4),0!==_&&2!==_&&(64&h||2&v||8&m.getFlags())&&(g|=8),7!==_&&10!==_||!function(n,t){return e.isBindingElement(n)&&(n=s(n)),e.isVariableDeclaration(n)?(!e.isSourceFile(n.parent.parent.parent)||e.isCatchClause(n.parent))&&n.getSourceFile()===t:!!e.isFunctionDeclaration(n)&&(!e.isSourceFile(n.parent)&&n.getSourceFile()===t)}(y,t)||(g|=32),n.isSourceFileDefaultLibrary(y.getSourceFile())&&(g|=16)}else m.declarations&&m.declarations.some((function(e){return n.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(g|=16);a(p,_,g)}}}e.forEachChild(p,d),u=f}}d(t)}(n,t,r,(function(e,n,r){i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),a),i}function s(n){for(;;){if(!e.isBindingElement(n.parent.parent))return n.parent.parent;n=n.parent.parent}}function c(n){return e.isQualifiedName(n.parent)&&n.parent.right===n||e.isPropertyAccessExpression(n.parent)&&n.parent.name===n}(t=n.TokenEncodingConsts||(n.TokenEncodingConsts={}))[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",(r=n.TokenType||(n.TokenType={}))[r.class=0]="class",r[r.enum=1]="enum",r[r.interface=2]="interface",r[r.namespace=3]="namespace",r[r.typeParameter=4]="typeParameter",r[r.type=5]="type",r[r.parameter=6]="parameter",r[r.variable=7]="variable",r[r.enumMember=8]="enumMember",r[r.property=9]="property",r[r.function=10]="function",r[r.member=11]="member",(a=n.TokenModifier||(n.TokenModifier={}))[a.declaration=0]="declaration",a[a.static=1]="static",a[a.async=2]="async",a[a.readonly=3]="readonly",a[a.defaultLibrary=4]="defaultLibrary",a[a.local=5]="local",n.getSemanticClassifications=function(n,t,r,a){var o=i(n,t,r,a);e.Debug.assert(o.spans.length%3===0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},n.getEncodedSemanticClassifications=i;var l=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})((n=e.classifier||(e.classifier={})).v2020||(n.v2020={}))}(ha||(ha={})),function(e){var n;(function(t){function r(e){var t=e.map((function(e){var t=e.name,r=e.kind,i=e.span;return{name:t,kind:r,kindModifiers:a(e.extension),sortText:n.SortText.LocationPriority,replacementSpan:i}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t}}function a(n){switch(n){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(n)}}var i,o,s,c;function l(t,r,a,i,o,s,c){var l,f,m=u(r.parent);switch(m.kind){case 195:var _=u(m.parent);switch(_.kind){case 177:var y=_,h=e.findAncestor(m,(function(e){return e.parent===y}));return h?{kind:2,types:p(i.getTypeArgumentConstraint(h)),isNewIdentifier:!1}:void 0;case 193:var v=_,b=v.indexType,E=v.objectType;if(!e.rangeContainsPosition(b,a))return;return d(i.getTypeFromTypeNode(E));case 199:return{kind:0,paths:g(t,r,o,s,i,c)};case 186:if(!e.isTypeReferenceNode(_.parent))return;var T=(l=_,f=m,e.mapDefined(l.types,(function(n){return n!==f&&e.isLiteralTypeNode(n)&&e.isStringLiteral(n.literal)?n.literal.text:void 0})));return{kind:2,types:p(i.getTypeArgumentConstraint(_)).filter((function(n){return!e.contains(T,n.value)})),isNewIdentifier:!1};default:return}case 294:return e.isObjectLiteralExpression(m.parent)&&m.name===r?function(t,r){var a=t.getContextualType(r);if(a){var i=t.getContextualType(r,4);return{kind:1,symbols:n.getPropertiesForObjectExpression(a,i,r,t),hasIndexSignature:e.hasIndexSignature(a)}}}(i,m.parent):C();case 206:var S=m,x=S.expression,L=S.argumentExpression;return r===e.skipParentheses(L)?d(i.getTypeAtLocation(x)):void 0;case 207:case 208:if(!function(n){return e.isCallExpression(n.parent)&&e.firstOrUndefined(n.parent.arguments)===n&&e.isIdentifier(n.parent.expression)&&"require"===n.parent.expression.escapedText}(r)&&!e.isImportCall(m)){var D=e.SignatureHelp.getArgumentInfoForCompletions(r,a,t);return D?function(n,t){var r=!1,a=new e.Map,i=[];return t.getResolvedSignature(n.invocation,i,n.argumentCount),{kind:2,types:e.flatMap(i,(function(i){if(e.signatureHasRestParameter(i)||!(n.argumentCount>i.parameters.length)){var o=t.getParameterType(i,n.argumentIndex);return r=r||!!(4&o.flags),p(o,a)}})),isNewIdentifier:r}}(D,i):C()}case 265:case 271:case 276:return{kind:0,paths:g(t,r,o,s,i,c)};default:return C()}function C(){return{kind:2,types:p(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function u(n){switch(n.kind){case 190:return e.walkUpParenthesizedTypes(n);case 211:return e.walkUpParenthesizedExpressions(n);default:return n}}function d(n){return n&&{kind:1,symbols:e.filter(n.getApparentProperties(),(function(n){return!(n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(n)}}function p(n,t){return void 0===t&&(t=new e.Map),n?(n=e.skipConstraint(n)).isUnion()?e.flatMap(n.types,(function(e){return p(e,t)})):!n.isStringLiteral()||1024&n.flags||!e.addToSeen(t,n.value)?e.emptyArray:[n]:e.emptyArray}function f(e,n,t){return{name:e,kind:n,extension:t}}function m(e){return f(e,"directory",void 0)}function _(n,t,r){var a=function(n,t){var r=Math.max(n.lastIndexOf(e.directorySeparator),n.lastIndexOf(e.altDirectorySeparator)),a=-1!==r?r+1:0,i=n.length-a;return 0===i||e.isIdentifierText(n.substr(a,i),99)?void 0:e.createTextSpan(t+a,i)}(n,t),i=0===n.length?void 0:e.createTextSpan(t,n.length);return r.map((function(n){var t=n.name,r=n.kind,o=n.extension;return-1!==Math.max(t.indexOf(e.directorySeparator),t.indexOf(e.altDirectorySeparator))?{name:t,kind:r,extension:o,span:i}:{name:t,kind:r,extension:o,span:a}}))}function g(n,t,r,a,i,o){return _(t.text,t.getStart(n)+1,function(n,t,r,a,i,o){var s=e.normalizeSlashes(t.text),c=n.path,l=e.getDirectoryPath(c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(s)||!r.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(n,t,r,a,i,o){var s=y(r,o);return r.rootDirs?function(n,t,r,a,i,o,s){var c=i.project||o.getCurrentDirectory(),l=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),u=function(n,t,r,a){n=n.map((function(n){return e.normalizePath(e.isRootedDiskPath(n)?n:e.combinePaths(t,n))}));var i=e.firstDefined(n,(function(n){return e.containsPath(n,r,t,a)?r.substr(n.length):void 0}));return e.deduplicate(pa(pa([],n.map((function(n){return e.combinePaths(n,i)})),!0),[r],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,c,r,l);return e.flatMap(u,(function(e){return v(t,e,a,o,s)}))}(r.rootDirs,n,t,s,r,a,i):v(n,t,s,a,i)}(s,l,r,a,c,u()):function(n,t,r,a,i){var o=r.baseUrl,s=r.paths,c=[],l=y(r);if(o){var u=r.project||a.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(u,o));v(n,d,l,a,void 0,c),s&&b(c,n,d,l.extensions,s,a)}for(var p=E(n),m=0,_=function(n,t,r){var a=r.getAmbientModules().map((function(n){return e.stripQuotes(n.name)})).filter((function(t){return e.startsWith(t,n)}));if(void 0!==t){var i=e.ensureTrailingDirectorySeparator(t);return a.map((function(n){return e.removePrefix(n,i)}))}return a}(n,p,i);m<_.length;m++){var g=_[m];c.push(f(g,"external module name",void 0))}if(S(a,r,t,p,l,c),e.getEmitModuleResolutionKind(r)===e.ModuleResolutionKind.NodeJs){var h=!1;if(void 0===p)for(var T=function(e){c.some((function(n){return n.name===e}))||(h=!0,c.push(f(e,"external module name",void 0)))},x=0,D=function(n,t){if(!n.readFile||!n.fileExists)return e.emptyArray;for(var r=[],a=0,i=e.findPackageJsons(t,n);a<i.length;a++)for(var o=i[a],s=e.readJson(o,n),c=0,l=L;c<l.length;c++){var u=s[l[c]];if(u)for(var d in u)u.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&r.push(d)}return r}(a,t);x<D.length;x++)T(D[x]);h||e.forEachAncestorDirectory(t,(function(t){var r=e.combinePaths(t,"node_modules");e.tryDirectoryExists(a,r)&&v(n,r,l,a,void 0,c)}))}return c}(s,l,r,a,i);function u(){var r=e.isStringLiteralLike(t)?e.getModeForUsageLocation(n,t):void 0;return"js"===o.importModuleSpecifierEnding||r===e.ModuleKind.ESNext?2:0}}(n,t,r,a,i,o))}function y(n,t){return void 0===t&&(t=0),{extensions:e.flatten(h(n)),includeExtensionsOption:t}}function h(n){var t=e.getSupportedExtensions(n);return e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(n,t):t}function v(n,t,r,a,i,o){var s=r.extensions,c=r.includeExtensionsOption;void 0===o&&(o=[]),void 0===n&&(n=""),n=e.normalizeSlashes(n),e.hasTrailingDirectorySeparator(n)||(n=e.getDirectoryPath(n)),""===n&&(n="."+e.directorySeparator),n=e.ensureTrailingDirectorySeparator(n);var l=e.resolvePath(t,n),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),d=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(a,u))return o;var p=e.tryReadDirectory(a,u,s,void 0,["./*"]);if(p){for(var _=new e.Map,g=0,y=p;g<y.length;g++){var h=y[g];if(h=e.normalizePath(h),!i||0!==e.comparePaths(h,i,t,d)){var v=void 0,E=e.moduleSpecifiers.tryGetJSExtensionForFile(h,a.getCompilationSettings());0!==c||e.fileExtensionIsOneOf(h,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(e.fileExtensionIsOneOf(h,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||2===c)&&E?(v=e.changeExtension(e.getBaseFileName(h),E),_.set(v,E)):(v=e.getBaseFileName(h),_.set(v,e.tryGetExtensionFromPath(h))):(v=e.removeFileExtension(e.getBaseFileName(h)),_.set(v,e.tryGetExtensionFromPath(h)))}}_.forEach((function(e,n){o.push(f(n,"script",e))}))}var T=e.tryGetDirectories(a,u);if(T)for(var S=0,x=T;S<x.length;S++){var L=x[S],D=e.getBaseFileName(e.normalizePath(L));"@types"!==D&&o.push(m(D))}var C=e.findPackageJson(u,a);if(C){var A=e.readJson(C,a).typesVersions;if("object"===typeof A){var I=e.getPackageJsonTypesVersionsPaths(A),k=I&&I.paths,N=l.slice(e.ensureTrailingDirectorySeparator(u).length);k&&b(o,N,u,s,k,a)}}return o}function b(n,t,r,a,i,o){for(var s in i)if(e.hasProperty(i,s)){var c=i[s];if(c)for(var l=function(e,t,r){n.some((function(n){return n.name===e}))||n.push(f(e,t,r))},u=0,d=T(s,c,t,r,a,o);u<d.length;u++){var p=d[u];l(p.name,p.kind,p.extension)}}}function E(n){return D(n)?e.hasTrailingDirectorySeparator(n)?n:e.getDirectoryPath(n):void 0}function T(n,t,r,a,i,o){if(!e.endsWith(n,"*"))return e.stringContains(n,"*")?e.emptyArray:l(n);var s=n.slice(0,n.length-1),c=e.tryRemovePrefix(r,s);return void 0===c?l(s):e.flatMap(t,(function(n){return function(n,t,r,a,i){if(i.readDirectory){var o=e.tryParsePattern(r);if(void 0!==o&&!e.isString(o)){var s=e.resolvePath(o.prefix),c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s),l=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s),u=D(n),d=u?e.hasTrailingDirectorySeparator(n)?n:e.getDirectoryPath(n):void 0,p=u?e.combinePaths(c,l+d):c,_=e.normalizePath(o.suffix),g=e.normalizePath(e.combinePaths(t,p)),y=u?g:e.ensureTrailingDirectorySeparator(g)+l,h=_?"**/*":"./*",v=e.mapDefined(e.tryReadDirectory(i,g,a,void 0,[h]),(function(n){var t=e.tryGetExtensionFromPath(n),r=E(n);return void 0===r?void 0:f(e.removeFileExtension(r),"script",t)})),b=e.mapDefined(e.tryGetDirectories(i,g).map((function(n){return e.combinePaths(g,n)})),(function(e){var n=E(e);return void 0===n?void 0:m(n)}));return pa(pa([],v,!0),b,!0)}}function E(n){var t,r,a,i=(t=e.normalizePath(n),r=y,a=_,e.startsWith(t,r)&&e.endsWith(t,a)?t.slice(r.length,t.length-a.length):void 0);return void 0===i?void 0:function(n){return n[0]===e.directorySeparator?n.slice(1):n}(i)}}(c,a,n,i,o)}));function l(n){return e.startsWith(n,r)?[m(n)]:e.emptyArray}}function S(n,t,r,a,i,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(t,n)}))||e.emptyArray;c<l.length;c++)m(l[c]);for(var u=0,d=e.findPackageJsons(r,n);u<d.length;u++){var p=d[u];m(e.combinePaths(e.getDirectoryPath(p),"node_modules/@types"))}return o;function m(r){if(e.tryDirectoryExists(n,r))for(var c=0,l=e.tryGetDirectories(n,r);c<l.length;c++){var u=l[c],d=e.unmangleScopedPackageName(u);if(!t.types||e.contains(t.types,d))if(void 0===a)s.has(d)||(o.push(f(d,"external module name",void 0)),s.set(d,!0));else{var p=e.combinePaths(r,u),m=e.tryRemoveDirectoryPrefix(a,d,e.hostGetCanonicalFileName(n));void 0!==m&&v(m,p,i,n,void 0,o)}}}}t.getStringLiteralCompletions=function(t,a,i,o,s,c,u,d){if(e.isInReferenceComment(t,a)){var p=function(n,t,r,a){var i=e.getTokenAtPosition(n,t),o=e.getLeadingCommentRanges(n.text,i.pos),s=o&&e.find(o,(function(e){return t>=e.pos&&t<=e.end}));if(s){var c=n.text.slice(s.pos,t),l=x.exec(c);if(l){var u=l[1],d=l[2],p=l[3],f=e.getDirectoryPath(n.path),m="path"===d?v(p,f,y(r,1),a,n.path):"types"===d?S(a,r,f,E(p),y(r)):e.Debug.fail();return _(p,s.pos+u.length,m)}}}(t,a,o,s);return p&&r(p)}if(e.isInString(t,a,i)){if(!i||!e.isStringLiteralLike(i))return;return function(t,a,i,o,s,c,l,u){if(void 0!==t){var d=e.createTextSpanFromStringLiteralLikeContent(a);switch(t.kind){case 0:return r(t.paths);case 1:var p=[];return n.getCompletionEntriesFromSymbols(t.symbols,p,a,a,i,i,o,s,99,c,4,u,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,optionalReplacementSpan:d,entries:p};case 2:return p=t.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:n.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(a)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:d,entries:p};default:return e.Debug.assertNever(t)}}}(p=l(t,i,a,c.getTypeChecker(),o,s,d),i,t,s,c,u,o,d)}},t.getStringLiteralCompletionDetails=function(t,r,i,o,s,c,u,d,p){if(o&&e.isStringLiteralLike(o)){var f=l(r,o,i,s,c,u,p);return f&&function(t,r,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===t})))&&n.createCompletionDetails(t,a(l.extension),l.kind,[e.textPart(t)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===t})))&&n.createCompletionDetailsForSymbol(l,s,o,r,c);case 2:return e.find(i.types,(function(e){return e.value===t}))?n.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}(t,o,f,r,s,d)}},(o=i||(i={}))[o.Paths=0]="Paths",o[o.Properties=1]="Properties",o[o.Types=2]="Types",(c=s||(s={}))[c.Exclude=0]="Exclude",c[c.Include=1]="Include",c[c.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion";var x=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,L=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function D(n){return e.stringContains(n,e.directorySeparator)}})((n=e.Completions||(e.Completions={})).StringCompletions||(n.StringCompletions={}))}(ha||(ha={})),function(e){!function(n){var t,r,a,i,o,s,c,l,u,d,p,f,m,_,g;function y(e){return!!(e&&4&e.kind)}function h(e){return!(!e||32!==e.kind)}function v(e){return(y(e)||h(e))&&!!e.isFromPackageJson}function b(t,r,a,i,o,s,c){var l,u,d,p=e.timestamp(),f=!1,m=0,_=0,g=0,y=0,h=c({tryResolve:function(t,c){if(c){var l=e.codefix.getModuleSpecifierForBestExportInfo(t,i,a,r,o);return l&&m++,l}var u=s||o.allowIncompleteCompletions&&_<n.moduleSpecifierResolutionLimit,d=!u&&o.allowIncompleteCompletions&&y<n.moduleSpecifierResolutionCacheAttemptLimit,p=u||d?e.codefix.getModuleSpecifierForBestExportInfo(t,i,a,r,o,d):void 0;(!u&&!d||d&&!p)&&(f=!0);_+=(null===p||void 0===p?void 0:p.computedWithoutCacheCount)||0,g+=t.length-_,d&&y++;return p},resolutionLimitExceeded:function(){return f}}),v=y?" (".concat((g/y*100).toFixed(1),"% hit rate)"):"";return null===(l=r.log)||void 0===l||l.call(r,"".concat(t,": resolved ").concat(_," module specifiers, plus ").concat(m," ambient and ").concat(g," from cache").concat(v)),null===(u=r.log)||void 0===u||u.call(r,"".concat(t,": response is ").concat(f?"incomplete":"complete")),null===(d=r.log)||void 0===d||d.call(r,"".concat(t,": ").concat(e.timestamp()-p)),h}function E(e){return!!(null===e||void 0===e?void 0:e.moduleSpecifier)}function T(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function S(e,n,t){return{kind:4,keywordCompletions:X(e,n),isNewIdentifierLocation:t}}function x(n){return 79===(null===n||void 0===n?void 0:n.kind)?e.createTextSpanFromNode(n):void 0}function L(n,t){return e.isSourceFileJS(n)&&!e.isCheckJsEnabledForFile(n,t)}function D(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function C(n,t,r){return"object"===typeof r?e.pseudoBigIntToString(r)+"n":e.isString(r)?e.quote(n,t,r):JSON.stringify(r)}function A(e,n,r){return{name:C(e,n,r),kind:"string",kindModifiers:"",sortText:t.LocationPriority}}function I(n,t,r,a,i,s,c,l,u,d,p,f,m,_,g,b,E,T,S,x,L){var D,C,A,I,N,O,F,G=e.getReplacementSpanForContextToken(r),B=P(p),U=l.getTypeChecker(),V=p&&function(e){return!!(16&e.kind)}(p),j=p&&function(e){return!!(2&e.kind)}(p)||d;if(p&&function(e){return!!(1&e.kind)}(p))A=d?"this".concat(V?"?.":"","[").concat(w(s,T,u),"]"):"this".concat(V?"?.":".").concat(u);else if((j||V)&&m){A=j?"[".concat(d?w(s,T,u):u,"]"):u,(V||m.questionDotToken)&&(A="?.".concat(A));var K=e.findChildOfKind(m,24,s)||e.findChildOfKind(m,28,s);if(!K)return;var H=e.startsWith(u,m.name.text)?m.name.end:K.end;G=e.createTextSpanFromBounds(K.getStart(s),H)}if(_&&(void 0===A&&(A=u),A="{".concat(A,"}"),"boolean"!==typeof _&&(G=e.createTextSpanFromNode(_,s))),p&&function(e){return!!(8&e.kind)}(p)&&m){void 0===A&&(A=u);var W=e.findPrecedingToken(m.pos,s),z="";W&&e.positionIsASICandidate(W.end,W.parent,s)&&(z=";"),z+="(await ".concat(m.expression.getText(),")"),A=d?"".concat(z).concat(A):"".concat(z).concat(V?"?.":".").concat(A),G=e.createTextSpanFromBounds(m.getStart(s),m.end)}if(h(p)&&(O=[e.textPart(p.moduleSpecifier)],g&&(D=function(n,t,r,a,i,o,s){var c,l,u,d=t.getSourceFile(),p=e.createTextSpanFromNode(e.findAncestor(t,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||t,d),f=e.quote(d,s,a.moduleSpecifier),m=a.isDefaultExport?1:"export="===a.exportName?2:0,_=s.includeCompletionsWithSnippetText?"$1":"",g=e.codefix.getImportKind(d,m,o,!0),y=(null===(l=null===(c=e.tryCast(t,e.isImportDeclaration))||void 0===c?void 0:c.importClause)||void 0===l?void 0:l.isTypeOnly)||(null===(u=e.tryCast(t,e.isImportEqualsDeclaration))||void 0===u?void 0:u.isTypeOnly),h=ce(t,r),v=y?" ".concat(e.tokenToString(151)," "):" ",b=h?"".concat(e.tokenToString(151)," "):"",E=i?";":"";switch(g){case 3:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(n)).concat(_," = require(").concat(f,")").concat(E)};case 1:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(n)).concat(_," from ").concat(f).concat(E)};case 2:return{replacementSpan:p,insertText:"import".concat(v,"* as ").concat(e.escapeSnippetText(n)," from ").concat(f).concat(E)};case 0:return{replacementSpan:p,insertText:"import".concat(v,"{ ").concat(b).concat(e.escapeSnippetText(n)).concat(_," } from ").concat(f).concat(E)}}}(u,g,a,p,b,E,T),A=D.insertText,G=D.replacementSpan,N=!!T.includeCompletionsWithSnippetText||void 0)),T.includeCompletionsWithClassMemberSnippets&&T.includeCompletionsWithInsertText&&3===S&&function(n,t){if(e.isInJSFile(t))return!1;var r=106500;return!!(n.flags&r)&&(e.isClassLike(t)||t.parent&&t.parent.parent&&e.isClassElement(t.parent)&&t===t.parent.name&&e.isClassLike(t.parent.parent)||t.parent&&e.isSyntaxList(t)&&e.isClassLike(t.parent))}(n,i)){var J=void 0;A=(C=k(c,l,E,T,u,n,i,a)).insertText,N=C.isSnippet,(null===(J=C.importAdder)||void 0===J?void 0:J.hasFixes())&&(F=!0,B=o.ClassMemberSnippet)}if(x&&!L&&T.includeCompletionsWithSnippetText&&T.jsxAttributeCompletionStyle&&"none"!==T.jsxAttributeCompletionStyle){var q="braces"===T.jsxAttributeCompletionStyle,X=U.getTypeOfSymbolAtLocation(n,i);"auto"!==T.jsxAttributeCompletionStyle||528&X.flags||1048576&X.flags&&e.find(X.types,(function(e){return!!(528&e.flags)}))||(402653316&X.flags||1048576&X.flags&&e.every(X.types,(function(e){return!!(402686084&e.flags)}))?(A="".concat(e.escapeSnippetText(u),"=").concat(e.quote(s,T,"$1")),N=!0):q=!0),q&&(A="".concat(e.escapeSnippetText(u),"={$1}"),N=!0)}if(void 0===A||T.includeCompletionsWithInsertText)return(y(p)||h(p))&&(I=R(p),F=!g),{name:u,kind:e.SymbolDisplay.getSymbolKind(U,n,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(U,n),sortText:t,source:B,hasAction:!!F||void 0,isRecommended:M(n,f,U)||void 0,insertText:A,replacementSpan:G,sourceDisplay:O,isSnippet:N,isPackageJsonImport:v(p)||void 0,isImportStatementCompletion:!!g||void 0,data:I}}function k(n,t,r,a,i,o,s,c){var l,u=e.findAncestor(s,e.isClassLike);if(!u)return{insertText:i};var d,p=i,f=t.getTypeChecker(),m=s.getSourceFile(),_=function(n){var t=e.createPrinter(n),r=e.createTextWriter(e.getNewLineCharacter(n)),a=fa(fa({},r),{write:function(n){return r.write(e.escapeSnippetText(n))},nonEscapingWrite:r.write,writeLiteral:function(n){return r.writeLiteral(e.escapeSnippetText(n))},writeStringLiteral:function(n){return r.writeStringLiteral(e.escapeSnippetText(n))},writeSymbol:function(n,t){return r.writeSymbol(e.escapeSnippetText(n),t)},writeParameter:function(n){return r.writeParameter(e.escapeSnippetText(n))},writeComment:function(n){return r.writeComment(e.escapeSnippetText(n))},writeProperty:function(n){return r.writeProperty(e.escapeSnippetText(n))}});return{printSnippetList:i};function i(e,n,r){return a.clear(),t.writeList(e,n,r,a),a.getText()}}({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(r,e.maybeBind(n,n.getNewLine)))}),g=e.codefix.createImportAdder(m,t,a,n);if(a.includeCompletionsWithSnippetText){l=!0;var y=e.factory.createExpressionStatement(e.factory.createIdentifier(""));e.setSnippetElement(y,{kind:0,order:0}),d=e.factory.createBlock([y],!0)}else d=e.factory.createBlock([],!0);var h=0,v=c&&126===N(c),b=[];return e.codefix.addNewNodeForMemberSymbol(o,u,m,{program:t,host:n},a,g,(function(n){var t=0;v&&(t|=128),e.isClassElement(n)&&1===f.getMemberOverrideModifierStatus(u,n)&&(t|=16384);var r=0;b.length||(c&&(r=function(n){var t,r=0;(t=N(n))&&(r|=e.modifierToFlag(t));e.isPropertyDeclaration(n.parent)&&(r|=e.modifiersToFlags(n.parent.modifiers));return r}(c)),h=n.modifierFlagsCache|t|r),n=e.factory.updateModifiers(n,h&~r),b.push(n)}),d,2,v),b.length&&(p=_.printSnippetList(131073,e.factory.createNodeArray(b),m)),{insertText:p,isSnippet:l,importAdder:g}}function N(n){return e.isModifier(n)?n.kind:e.isIdentifier(n)&&n.originalKeywordKind&&e.isModifierKind(n.originalKeywordKind)?n.originalKeywordKind:void 0}function R(n){var t=n.fileName?void 0:e.stripQuotes(n.moduleSymbol.name),r=!!n.isFromPackageJson||void 0;return h(n)?{exportName:n.exportName,moduleSpecifier:n.moduleSpecifier,ambientModuleName:t,fileName:n.fileName,isPackageJsonImport:r}:{exportName:n.exportName,exportMapKey:n.exportMapKey,fileName:n.fileName,ambientModuleName:n.fileName?void 0:e.stripQuotes(n.moduleSymbol.name),isPackageJsonImport:!!n.isFromPackageJson||void 0}}function O(e,n,t){var r="default"===e.exportName,a=!!e.isPackageJsonImport;return E(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:n,fileName:e.fileName,moduleSymbol:t,isDefaultExport:r,isFromPackageJson:a}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:n,fileName:e.fileName,moduleSymbol:t,isDefaultExport:r,isFromPackageJson:a}}function w(n,t,r){return/^\d+$/.test(r)?r:e.quote(n,t,r)}function M(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}function P(n){return y(n)?e.stripQuotes(n.moduleSymbol.name):h(n)?n.moduleSpecifier:1===(null===n||void 0===n?void 0:n.kind)?o.ThisProperty:void 0}function F(n,t,r,a,i,o,s,c,l,u,d,p,f,m,_,g,y,h,v,b,E,T,S){for(var x,L,D=e.timestamp(),C=(L=i,e.findAncestor(L,(function(n){return e.isFunctionBlock(n)||function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n}(n)||e.isBindingPattern(n)?"quit":e.isVariableDeclaration(n)}))),A=e.probablyUsesSemicolons(o),k=c.getTypeChecker(),N=new e.Map,R=0;R<n.length;R++){var O=n[R],w=null===b||void 0===b?void 0:b[R],M=z(O,l,w,d,!!g);if(M&&!N.get(M.name)&&(1!==d||!E||V(O,E))){var P=M.name,F=M.needsConvertPropertyAccess,G=null!==(x=null===E||void 0===E?void 0:E[e.getSymbolId(O)])&&void 0!==x?x:11,B=I(O,(pe(O,k)?8+G:G).toString(),r,a,i,o,s,c,P,F,w,v,_,y,h,A,f,p,d,T,S);if(B){var U=!w&&!(void 0===O.parent&&!e.some(O.declarations,(function(e){return e.getSourceFile()===i.getSourceFile()})));N.set(P,U),t.push(B)}}}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-D)),{has:function(e){return N.has(e)},add:function(e){return N.set(e,!0)}};function V(n,t){if(!e.isSourceFile(i)){if(e.isExportAssignment(i.parent))return!0;if(C&&n.valueDeclaration===C)return!1;var r=e.skipAlias(n,k);if(o.externalModuleIndicator&&!f.allowUmdGlobalAccess&&15===t[e.getSymbolId(n)]&&(16===t[e.getSymbolId(r)]||11===t[e.getSymbolId(r)]))return!1;if(n=r,e.isInRightSideOfInternalImportEqualsDeclaration(i))return!!(1920&n.flags);if(m)return de(n,k)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(n))}}function G(n,t,r,a,i,s,c){if(i.data){var l=W(i.name,i.data,n,s);if(l){var u=H(a,r),d=u.contextToken,p=u.previousToken;return{type:"symbol",symbol:l.symbol,location:e.getTouchingPropertyName(r,a),previousToken:p,contextToken:d,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:l.origin}}}var f=n.getCompilerOptions(),m=K(n,t,r,L(r,f),a,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,s);if(!m)return{type:"none"};if(0!==m.kind)return{type:"request",request:m};var _=m.symbols,g=m.literals,y=m.location,h=m.completionKind,v=m.symbolToOriginInfoMap,b=m.contextToken,E=m.previousToken,T=m.isJsxInitializer,S=m.isTypeOnlyLocation,x=e.find(g,(function(e){return C(r,c,e)===i.name}));return void 0!==x?{type:"literal",literal:x}:e.firstDefined(_,(function(n,t){var r=v[t],a=z(n,e.getEmitScriptTarget(f),r,h,m.isJsxIdentifierExpected);return a&&a.name===i.name&&(i.source===o.ClassMemberSnippet&&106500&n.flags||P(r)===i.source)?{type:"symbol",symbol:n,location:y,origin:r,contextToken:b,previousToken:E,isJsxInitializer:T,isTypeOnlyLocation:S}:void 0}))||{type:"none"}}function B(n,t,r){return V(n,"",t,[e.displayPart(n,r)])}function U(n,t,r,a,i,o,s){var c=t.runWithCancellationToken(i,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,n,r,a,a,7)})),l=c.displayParts,u=c.documentation,d=c.symbolKind,p=c.tags;return V(n.name,e.SymbolDisplay.getSymbolModifiers(t,n),d,l,u,p,o,s)}function V(e,n,t,r,a,i,o,s){return{name:e,kindModifiers:n,kind:t,displayParts:r,documentation:a,tags:i,codeActions:o,source:s,sourceDisplay:s}}function j(n,t,r){var a=r.getAccessibleSymbolChain(n,t,67108863,!1);return a?e.first(a):n.parent&&(function(e){var n;return!!(null===(n=e.declarations)||void 0===n?void 0:n.some((function(e){return 303===e.kind})))}(n.parent)?n:j(n.parent,t,r))}function K(n,r,a,i,o,s,c,l,u){var d=n.getTypeChecker(),p=e.timestamp(),f=e.getTokenAtPosition(a,o);r("getCompletionData: Get current token: "+(e.timestamp()-p)),p=e.timestamp();var m=e.isInComment(a,o,f);r("getCompletionData: Is inside comment: "+(e.timestamp()-p));var _=!1,g=!1;if(m){if(e.hasDocComment(a,o)){if(64===a.text.charCodeAt(o-1))return{kind:1};var y=e.getLineStartPositionForPosition(o,a);if(!/[^\*|\s(/)]/.test(a.text.substring(y,o)))return{kind:2}}var h=function(n,t){var r=e.findAncestor(n,e.isJSDoc);return r&&r.tags&&(e.rangeContainsPosition(r,t)?e.findLast(r.tags,(function(e){return e.pos<t})):void 0)}(f,o);if(h){if(h.tagName.pos<=o&&o<=h.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}}(h)&&h.typeExpression&&307===h.typeExpression.kind&&((f=e.getTokenAtPosition(a,o))&&(e.isDeclarationName(f)||345===f.parent.kind&&f.parent.name===f)||(_=Ae(h.typeExpression))),!_&&e.isJSDocParameterTag(h)&&(e.nodeIsMissing(h.name)||h.name.pos<=o&&o<=h.name.end))return{kind:3,tag:h}}if(!_)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=e.timestamp();var v=!_&&e.isSourceFileJS(a),E=H(o,a),T=E.previousToken,x=E.contextToken;r("getCompletionData: Get previous token: "+(e.timestamp()-p));var L,D,C,A=f,I=!1,k=!1,N=!1,R=!1,O=!1,w=!1,M=e.getTouchingPropertyName(a,o),P=0,F=!1;if(x){var G=se(x);if(F=G.isNewIdentifierLocation,G.keywordCompletion){if(G.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(C=G.keywordCompletion,{name:e.tokenToString(C),kind:"keyword",kindModifiers:"",sortText:t.GlobalsOrKeywords})],isNewIdentifierLocation:F};P=function(n){if(151===n)return 8;e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(G.keywordCompletion)}if(G.replacementNode&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(D=G.replacementNode),!D&&function(n){var t=e.timestamp(),i=function(n){return(e.isRegularExpressionLiteral(n)||e.isStringTextContainingNode(n))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(n)),o)||o===n.end&&(!!n.isUnterminated||e.isRegularExpressionLiteral(n)))}(n)||function(n){var t=n.parent,r=t.kind;switch(n.kind){case 27:return 253===r||254===(i=n).parent.kind&&!e.isPossiblyTypeArgumentPosition(i,a,d)||236===r||259===r||xe(r)||257===r||201===r||258===r||e.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=n.pos;case 24:case 22:return 201===r;case 58:return 202===r;case 20:return 291===r||xe(r);case 18:return 259===r;case 29:return 256===r||225===r||257===r||258===r||e.isFunctionLikeKind(r);case 124:return 166===r&&!e.isClassLike(t.parent);case 25:return 163===r||!!t.parent&&201===t.parent.kind;case 123:case 121:case 122:return 163===r&&!e.isConstructorDeclaration(t.parent);case 127:return 269===r||274===r||267===r;case 136:case 148:return!ie(n);case 79:if(269===r&&n===t.name&&"type"===n.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return 269!==r;case 41:return e.isFunctionLike(n.parent)&&!e.isMethodDeclaration(n.parent)}var i;if(Z(ee(n))&&ie(n))return!1;if(Te(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(ee(n))||Ae(n)))return!1;switch(ee(n)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(n.parent)}if(e.findAncestor(n.parent,e.isClassLike)&&n===T&&Se(n,o))return!1;var s=e.getAncestor(n.parent,166);if(s&&n!==T&&e.isClassLike(T.parent.parent)&&o<=T.end){if(Se(n,T.end))return!1;if(63!==n.kind&&(e.isInitializedProperty(s)||e.hasType(s)))return!0}return e.isDeclarationName(n)&&!e.isShorthandPropertyAssignment(n.parent)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==T||o>T.end))}(n)||function(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(n)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(279===e.parent.kind)return 279!==M.parent.kind;if(280===e.parent.kind||278===e.parent.kind)return!!e.parent.parent&&277===e.parent.parent.kind}return!1}(n)||e.isBigIntLiteral(n);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-t)),i}(x))return r("Returning an empty list because completion was requested in an invalid position."),P?S(P,v,Ee()):void 0;var B=x.parent;if(24===x.kind||28===x.kind)switch(I=24===x.kind,k=28===x.kind,B.kind){case 205:A=(L=B).expression;var U=e.getLeftmostAccessExpression(L);if(e.nodeIsMissing(U)||(e.isCallExpression(A)||e.isFunctionLike(A))&&A.end===x.pos&&A.getChildCount(a)&&21!==e.last(A.getChildren(a)).kind)return;break;case 160:A=B.left;break;case 260:A=B.name;break;case 199:A=B;break;case 230:A=B.getFirstToken(a),e.Debug.assert(100===A.kind||103===A.kind);break;default:return}else if(!D&&1===a.languageVariant){if(B&&205===B.kind&&(x=B,B=B.parent),f.parent===M)switch(f.kind){case 31:277!==f.parent.kind&&279!==f.parent.kind||(M=f);break;case 43:278===f.parent.kind&&(M=f)}switch(B.kind){case 280:43===x.kind&&(R=!0,M=x);break;case 220:if(!oe(B))break;case 278:case 277:case 279:w=!0,29===x.kind&&(N=!0,M=x);break;case 287:case 286:19===T.kind&&31===f.kind&&(w=!0);break;case 284:if(B.initializer===T&&T.end<o){w=!0;break}switch(T.kind){case 63:O=!0;break;case 79:w=!0,B!==T.parent&&!B.initializer&&e.findChildOfKind(B,63,a)&&(O=T)}}}}var V=e.timestamp(),K=5,W=!1,z=!1,J=[],q=[],X=[],Y=new e.Map,$=function(){return _||!!D&&e.isTypeOnlyImportOrExportDeclaration(M.parent)||(n=x,!(n&&(112===n.kind&&(180===n.parent.kind||e.isTypeOfExpression(n.parent))||128===n.kind&&176===n.parent.kind))&&(e.isPossiblyTypeArgumentPosition(x,a,d)||e.isPartOfTypeNode(M)||function(n){if(n){var t=n.parent.kind;switch(n.kind){case 58:return 166===t||165===t||163===t||253===t||e.isFunctionLikeKind(t);case 63:return 258===t;case 127:return 228===t;case 29:return 177===t||210===t;case 94:return 162===t}}return!1}(x)));var n}(),te=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?l.getPackageJsonAutoImportProvider():n,l)}));if(I||k)!function(){K=2;var n=e.isLiteralImportTypeNode(A),t=_||n&&!A.isTypeOf||e.isPartOfTypeNode(A.parent)||e.isPossiblyTypeArgumentPosition(x,a,d),r=e.isInRightSideOfInternalImportEqualsDeclaration(A);if(e.isEntityName(A)||n||e.isPropertyAccessExpression(A)){var i=e.isModuleDeclaration(A.parent);i&&(F=!0);var o=d.getSymbolAtLocation(A);if(o&&1920&(o=e.skipAlias(o,d)).flags){var c=d.getExportsOfModule(o);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var l=function(e){return d.isValidPropertyAccess(n?A:A.parent,e.name)},u=function(e){return de(e,d)},p=i?function(e){var n;return!!(1920&e.flags)&&!(null===(n=e.declarations)||void 0===n?void 0:n.every((function(e){return e.parent===A.parent})))}:r?function(e){return u(e)||l(e)}:t?u:l,f=0,m=c;f<m.length;f++){var g=m[f];p(g)&&J.push(g)}if(!t&&o.declarations&&o.declarations.some((function(e){return 303!==e.kind&&260!==e.kind&&259!==e.kind}))){var y=!1;if((v=d.getTypeOfSymbolAtLocation(o,A).getNonOptionalType()).isNullableType())((b=I&&!k&&!1!==s.includeAutomaticOptionalChainCompletions)||k)&&(v=v.getNonNullableType(),b&&(y=!0));ge(v,!!(32768&A.flags),y)}return}}if(!t){var h=e.getThisContainer(A,!1);!e.isSourceFile(h)&&h.parent&&d.getTypeAtLocation(h);var v,b;y=!1;if((v=d.getTypeAtLocation(A).getNonOptionalType()).isNullableType())((b=I&&!k&&!1!==s.includeAutomaticOptionalChainCompletions)||k)&&(v=v.getNonNullableType(),b&&(y=!0));ge(v,!!(32768&A.flags),y)}}();else if(N)J=d.getJsxIntrinsicTagNamesAt(M),e.Debug.assertEachIsDefined(J,"getJsxIntrinsicTagNames() should all be defined"),ve(),K=1,P=0;else if(R){var le=x.parent.parent.openingElement.tagName,ue=d.getSymbolAtLocation(le);ue&&(J=[ue]),K=1,P=0}else if(!ve())return P?S(P,v,F):void 0;r("getCompletionData: Semantic work: "+(e.timestamp()-V));var pe=T&&function(n,t,r,a){var i=n.parent;switch(n.kind){case 79:return e.getContextualTypeFromParent(n,a);case 63:switch(i.kind){case 253:return a.getContextualType(i.initializer);case 220:return a.getTypeAtLocation(i.left);case 284:return a.getContextualTypeForJsxAttribute(i);default:return}case 103:return a.getContextualType(i);case 82:return e.getSwitchedType(e.cast(i,e.isCaseClause),a);case 18:return!e.isJsxExpression(i)||e.isJsxElement(i.parent)||e.isJsxFragment(i.parent)?void 0:a.getContextualTypeForJsxAttribute(i.parent);default:var o=e.SignatureHelp.getArgumentInfoForCompletions(n,t,r);return o?a.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===n.kind?1:0)):e.isEqualityOperatorKind(n.kind)&&e.isBinaryExpression(i)&&e.isEqualityOperatorKind(i.operatorToken.kind)?a.getTypeAtLocation(i.left):a.getContextualType(n)}}(T,o,a,d),me=e.mapDefined(pe&&(pe.isUnion()?pe.types:[pe]),(function(e){return!e.isLiteral()||1024&e.flags?void 0:e.value})),_e=T&&pe&&function(n,t,r){return e.firstDefined(t&&(t.isUnion()?t.types:[t]),(function(t){var a=t&&t.symbol;return a&&424&a.flags&&!e.isAbstractConstructorSymbol(a)?j(a,n,r):void 0}))}(T,pe,d);return{kind:0,symbols:J,completionKind:K,isInSnippetScope:g,propertyAccessToConvert:L,isNewIdentifierLocation:F,location:M,keywordFilters:P,literals:me,symbolToOriginInfoMap:q,recommendedCompletion:_e,previousToken:T,contextToken:x,isJsxInitializer:O,insideJsDocTagTypeExpression:_,symbolToSortTextIdMap:X,isTypeOnlyLocation:$,isJsxIdentifierExpected:w,isRightOfOpenTag:N,importCompletionNode:D,hasUnresolvedAutoImports:z};function ge(n,t,r){F=!!n.getStringIndexType(),k&&e.some(n.getCallSignatures())&&(F=!0);var a=199===A.kind?A:A.parent;if(i)J.push.apply(J,e.filter(re(n,d),(function(e){return d.isValidPropertyAccessForCompletions(a,n,e)})));else for(var o=0,c=n.getApparentProperties();o<c.length;o++){var l=c[o];d.isValidPropertyAccessForCompletions(a,n,l)&&ye(l,!1,r)}if(t&&s.includeCompletionsWithInsertText){var u=d.getPromisedTypeOfPromise(n);if(u)for(var p=0,f=u.getApparentProperties();p<f.length;p++){l=f[p];d.isValidPropertyAccessForCompletions(a,u,l)&&ye(l,!0,r)}}}function ye(t,r,i){var o,c=e.firstDefined(t.declarations,(function(n){return e.tryCast(e.getNameOfDeclaration(n),e.isComputedPropertyName)}));if(c){var u=he(c.expression),p=u&&d.getSymbolAtLocation(u),f=p&&j(p,x,d);if(f&&e.addToSeen(Y,e.getSymbolId(f))){var m=J.length;J.push(f);var _=f.parent;if(_&&e.isExternalModuleSymbol(_)&&d.tryGetMemberInModuleExportsAndProperties(f.name,_)===f){var g=e.isExternalModuleNameRelative(e.stripQuotes(_.name))?null===(o=e.getSourceFileOfModule(_))||void 0===o?void 0:o.fileName:void 0,y=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:g,isFromPackageJson:!1,moduleSymbol:_,symbol:f,targetFlags:e.skipAlias(f,d).flags}],a,n,l,s)||{}).moduleSpecifier;if(y){var h={kind:E(6),moduleSymbol:_,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:g,moduleSpecifier:y};q[m]=h}}else q[m]={kind:E(2)}}else s.includeCompletionsWithInsertText&&(b(t),v(t),J.push(t))}else b(t),v(t),J.push(t);function v(n){(function(n){return!!(n.valueDeclaration&&32&e.getEffectiveModifierFlags(n.valueDeclaration)&&e.isClassLike(n.valueDeclaration.parent))})(n)&&(X[e.getSymbolId(n)]=10)}function b(n){s.includeCompletionsWithInsertText&&(r&&e.addToSeen(Y,e.getSymbolId(n))?q[J.length]={kind:E(8)}:i&&(q[J.length]={kind:16}))}function E(e){return i?16|e:e}}function he(n){return e.isIdentifier(n)?n:e.isPropertyAccessExpression(n)?he(n.expression):void 0}function ve(){var n=function(){var n=function(n){if(!n)return;var t=n.parent;switch(n.kind){case 18:if(e.isTypeLiteralNode(t))return t;break;case 26:case 27:case 79:if(165===t.kind&&e.isTypeLiteralNode(t.parent))return t.parent}return}(x);if(!n)return 0;var t=(e.isIntersectionTypeNode(n.parent)?n.parent:void 0)||n,r=ae(t,d);if(!r)return 0;var a=d.getTypeFromTypeNode(t),i=re(r,d),o=re(a,d),s=new e.Set;return o.forEach((function(e){return s.add(e.escapedName)})),J=e.concatenate(J,e.filter(i,(function(e){return!s.has(e.escapedName)}))),K=0,F=!0,1}()||function(){var n,t,r=function(n){if(n){var t=n.parent;switch(n.kind){case 18:case 27:if(e.isObjectLiteralExpression(t)||e.isObjectBindingPattern(t))return t;break;case 41:return e.isMethodDeclaration(t)?e.tryCast(t.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===n.text&&e.isShorthandPropertyAssignment(n.parent)?n.parent.parent:void 0}}return}(x);if(!r)return 0;if(K=0,204===r.kind){var a=function(n,t){var r=t.getContextualType(n);if(r)return r;if(e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind&&n===n.parent.left)return t.getTypeAtLocation(n.parent);return}(r,d);if(void 0===a)return 16777216&r.flags?2:(W=!0,0);var i=d.getContextualType(r,4),o=(i||a).getStringIndexType(),s=(i||a).getNumberIndexType();if(F=!!o||!!s,n=ne(a,i,r,d),t=r.properties,0===n.length&&!s)return W=!0,0}else{e.Debug.assert(200===r.kind),F=!1;var c=e.getRootDeclaration(r.parent);if(!e.isVariableLike(c))return e.Debug.fail("Root declaration is not variable-like.");var l=e.hasInitializer(c)||e.hasType(c)||243===c.parent.parent.kind;if(l||163!==c.kind||(e.isExpression(c.parent)?l=!!d.getContextualType(c.parent):168!==c.parent.kind&&172!==c.parent.kind||(l=e.isExpression(c.parent.parent)&&!!d.getContextualType(c.parent.parent))),l){var u=d.getTypeAtLocation(r);if(!u)return 2;n=d.getPropertiesOfType(u).filter((function(e){return d.isPropertyAccessible(r,!1,!1,u,e)})),t=r.elements}}n&&n.length>0&&(J=e.concatenate(J,function(n,t){if(0===t.length)return n;for(var r=new e.Set,a=new e.Set,i=0,o=t;i<o.length;i++){var s=o[i];if((294===s.kind||295===s.kind||202===s.kind||168===s.kind||171===s.kind||172===s.kind||296===s.kind)&&!Ae(s)){var c=void 0;if(e.isSpreadAssignment(s))Le(s,r);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&a.add(c)}}var u=n.filter((function(e){return!a.has(e.escapedName)}));return Ce(r,u),u}(n,e.Debug.checkDefined(t))));return De(),1}()||(D?(F=!0,be(),1):0)||function(){if(!x)return 0;var n=18===x.kind||27===x.kind?e.tryCast(x.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(x)?e.tryCast(x.parent.parent,e.isNamedImportsOrExports):void 0;if(!n)return 0;e.isTypeKeywordTokenOrIdentifier(x)||(P=8);var t=(268===n.kind?n.parent.parent:n.parent).moduleSpecifier;if(!t)return F=!0,268===n.kind?2:0;var r=d.getSymbolAtLocation(t);if(!r)return F=!0,2;K=3,F=!1;var a=d.getExportsAndPropertiesOfModule(r),i=new e.Set(n.elements.filter((function(e){return!Ae(e)})).map((function(e){return(e.propertyName||e.name).escapedText}))),o=a.filter((function(e){return"default"!==e.escapedName&&!i.has(e.escapedName)}));J=e.concatenate(J,o),o.length||(P=0);return 1}()||function(){var n,t=!x||18!==x.kind&&27!==x.kind?void 0:e.tryCast(x.parent,e.isNamedExports);if(!t)return 0;var r=e.findAncestor(t,e.or(e.isSourceFile,e.isModuleDeclaration));return K=5,F=!1,null===(n=r.locals)||void 0===n||n.forEach((function(n,t){var a,i;J.push(n),(null===(i=null===(a=r.symbol)||void 0===a?void 0:a.exports)||void 0===i?void 0:i.has(t))&&(X[e.getSymbolId(n)]=12)})),1}()||(function(n){if(n){var t=n.parent;switch(n.kind){case 20:case 27:return e.isConstructorDeclaration(n.parent)?n.parent:void 0;default:if(Te(n))return t.parent}}}(x)?(K=5,F=!0,P=4,1):0)||function(){var n=function(n,t,r,a){switch(r.kind){case 346:return e.tryCast(r.parent,e.isObjectTypeDeclaration);case 1:var i=e.tryCast(e.lastOrUndefined(e.cast(r.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(i&&!e.findChildOfKind(i,19,n))return i;break;case 79:if(e.isPropertyDeclaration(r.parent)&&r.parent.initializer===r)return;if(ie(r))return e.findAncestor(r,e.isObjectTypeDeclaration)}if(!t)return;if(134===r.kind||e.isIdentifier(t)&&e.isPropertyDeclaration(t.parent)&&e.isClassLike(r))return e.findAncestor(t,e.isClassLike);switch(t.kind){case 63:return;case 26:case 19:return ie(r)&&r.parent.name===r?r.parent.parent:e.tryCast(r,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(t.parent,e.isObjectTypeDeclaration);default:if(!ie(t))return e.getLineAndCharacterOfPosition(n,t.getEnd()).line!==e.getLineAndCharacterOfPosition(n,a).line&&e.isObjectTypeDeclaration(r)?r:void 0;var o=e.isClassLike(t.parent.parent)?Z:Q;return o(t.kind)||41===t.kind||e.isIdentifier(t)&&o(e.stringToToken(t.text))?t.parent.parent:void 0}}(a,x,M,o);if(!n)return 0;if(K=3,F=!0,P=41===x.kind?0:e.isClassLike(n)?2:3,!e.isClassLike(n))return 1;var t=26===x.kind?x.parent.parent:x.parent,r=e.isClassElement(t)?e.getEffectiveModifierFlags(t):0;if(79===x.kind&&!Ae(x))switch(x.getText()){case"private":r|=8;break;case"static":r|=32;break;case"override":r|=16384}e.isClassStaticBlockDeclaration(t)&&(r|=32);if(!(8&r)){var i=e.isClassLike(n)&&16384&r?e.singleElementArray(e.getEffectiveBaseTypeNode(n)):e.getAllSuperTypeNodes(n),s=e.flatMap(i,(function(e){var t=d.getTypeAtLocation(e);return 32&r?(null===t||void 0===t?void 0:t.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(t.symbol,n)):t&&d.getPropertiesOfType(t)}));J=e.concatenate(J,function(n,t,r){for(var a=new e.Set,i=0,o=t;i<o.length;i++){var s=o[i];if((166===s.kind||168===s.kind||171===s.kind||172===s.kind)&&(!Ae(s)&&!e.hasEffectiveModifier(s,8)&&e.isStatic(s)===!!(32&r))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&a.add(c)}}return n.filter((function(n){return!a.has(n.escapedName)&&!!n.declarations&&!(8&e.getDeclarationModifierFlagsFromSymbol(n))&&!(n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))}))}(s,n.members,r))}return 1}()||function(){var n=function(n){if(n){var t=n.parent;switch(n.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if(t&&(278===t.kind||279===t.kind)){if(31===n.kind){var r=e.findPrecedingToken(n.pos,a,void 0);if(!t.typeArguments||r&&43===r.kind)break}return t}if(284===t.kind)return t.parent.parent;break;case 10:if(t&&(284===t.kind||286===t.kind))return t.parent.parent;break;case 19:if(t&&287===t.kind&&t.parent&&284===t.parent.kind)return t.parent.parent.parent;if(t&&286===t.kind)return t.parent.parent}}return}(x),t=n&&d.getContextualType(n.attributes);if(!t)return 0;var r=n&&d.getContextualType(n.attributes,4);return J=e.concatenate(J,function(n,t){for(var r=new e.Set,a=new e.Set,i=0,o=t;i<o.length;i++){var s=o[i];Ae(s)||(284===s.kind?r.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&Le(s,a))}var c=n.filter((function(e){return!r.has(e.escapedName)}));return Ce(a,c),c}(ne(t,r,n.attributes,d),n.attributes.properties)),De(),K=3,F=!1,1}()||(function(){P=function(n){if(n){var t,r=e.findAncestor(n.parent,(function(n){return e.isClassLike(n)?"quit":!(!e.isFunctionLikeDeclaration(n)||t!==n.body)||(t=n,!1)}));return r&&r}}(x)?5:1,K=1,F=Ee(),T!==x&&e.Debug.assert(!!T,"Expected 'contextToken' to be defined when different from 'previousToken'.");var n=T!==x?T.getStart():o,t=function(n,t,r){var a=n;for(;a&&!e.positionBelongsToNode(a,t,r);)a=a.parent;return a}(x,n,a)||a;g=function(n){switch(n.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(n)}}(t);var r=2887656|($?0:111551);J=e.concatenate(J,d.getSymbolsInScope(t,r)),e.Debug.assertEachIsDefined(J,"getSymbolsInScope() should all be defined");for(var i=0,c=J;i<c.length;i++){var l=c[i];d.isArgumentsSymbol(l)||e.some(l.declarations,(function(e){return e.getSourceFile()===a}))||(X[e.getSymbolId(l)]=15)}if(s.includeCompletionsWithInsertText&&303!==t.kind){var u=d.tryGetThisTypeAt(t,!1);if(u&&!function(e,n,t){var r=t.resolveName("self",void 0,111551,!1);if(r&&t.getTypeOfSymbolAtLocation(r,n)===e)return!0;var a=t.resolveName("global",void 0,111551,!1);if(a&&t.getTypeOfSymbolAtLocation(a,n)===e)return!0;var i=t.resolveName("globalThis",void 0,111551,!1);if(i&&t.getTypeOfSymbolAtLocation(i,n)===e)return!0;return!1}(u,a,d))for(var p=0,f=re(u,d);p<f.length;p++){l=f[p];q[J.length]={kind:1},J.push(l),X[e.getSymbolId(l)]=14}}be(),$&&(P=x&&e.isAssertionExpression(x.parent)?6:7)}(),1);return 1===n}function be(){var t,r;if((D||!W&&s.includeCompletionsForModuleExports&&(a.externalModuleIndicator||a.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(n.getCompilerOptions())||e.programContainsModules(n)))&&(e.Debug.assert(!(null===c||void 0===c?void 0:c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!c||c.source)){var i=T===x&&D&&ce(D,x)?"":T&&e.isIdentifier(T)?T.text.toLowerCase():"",o=null===(t=l.getModuleSpecifierCache)||void 0===t?void 0:t.call(l),d=e.getExportInfoMap(a,l,n,u),p=null===(r=l.getPackageJsonAutoImportProvider)||void 0===r?void 0:r.call(l),f=c?void 0:e.createPackageJsonImportFilter(a,s,l);b("collectAutoImports",l,n,a,s,!!D,(function(n){d.forEach(a.path,(function(t,r,a,o){if(e.isIdentifierText(r,e.getEmitScriptTarget(l.getCompilationSettings()))&&(c||!e.isStringANonContextualKeyword(r))&&($||D||111551&t[0].targetFlags)&&(!$||790504&t[0].targetFlags)){var s=c&&e.some(t,(function(n){return c.source===e.stripQuotes(n.moduleSymbol.name)}));if(s||!c&&fe(r,i)){var u=e.find(t,m);if(!u)return;var d=n.tryResolve(t,a)||{},p=d.exportInfo,f=void 0===p?u:p,_=d.moduleSpecifier,g=1===f.exportKind;!function(n,t){var r=e.getSymbolId(n);if(15===X[r])return;q[J.length]=t,X[r]=D?11:16,J.push(n)}(g&&e.getLocalSymbolForExportDefault(f.symbol)||f.symbol,{kind:_?32:4,moduleSpecifier:_,symbolName:r,exportMapKey:o,exportName:2===f.exportKind?"export=":f.symbol.name,fileName:f.moduleFileName,isDefaultExport:g,moduleSymbol:f.moduleSymbol,isFromPackageJson:f.isFromPackageJson})}}})),z=n.resolutionLimitExceeded()}))}function m(t){var r=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!r){var i=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(i)||e.startsWith(i,"node:")===e.shouldUseUriStyleNodeCoreModules(a,n))&&(!f||f.allowsImportingAmbientModule(t.moduleSymbol,te(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?p:n,a,r,s,f,te(t.isFromPackageJson),o)}}function Ee(){if(x){var e=x.parent.kind,n=ee(x);switch(n){case 27:return 207===e||170===e||208===e||203===e||220===e||178===e||204===e;case 20:return 207===e||170===e||208===e||211===e||190===e;case 22:return 203===e||175===e||161===e;case 141:case 142:case 100:return!0;case 24:return 260===e;case 18:return 256===e||204===e;case 63:return 253===e||220===e;case 15:return 222===e;case 16:return 232===e;case 131:return 168===e||295===e;case 41:return 168===e}if(Z(n))return!0}return!1}function Te(n){return!!n.parent&&e.isParameter(n.parent)&&e.isConstructorDeclaration(n.parent.parent)&&(e.isParameterPropertyModifier(n.kind)||e.isDeclarationName(n))}function Se(n,t){return 63!==n.kind&&(26===n.kind||!e.positionsAreOnSameLine(n.end,t,a))}function xe(n){return e.isFunctionLikeKind(n)&&170!==n}function Le(e,n){var t=e.expression,r=d.getSymbolAtLocation(t),a=r&&d.getTypeOfSymbolAtLocation(r,t),i=a&&a.properties;i&&i.forEach((function(e){n.add(e.name)}))}function De(){J.forEach((function(n){var t;if(16777216&n.flags){var r=e.getSymbolId(n);X[r]=null!==(t=X[r])&&void 0!==t?t:12}}))}function Ce(n,t){if(0!==n.size)for(var r=0,a=t;r<a.length;r++){var i=a[r];n.has(i.name)&&(X[e.getSymbolId(i)]=13)}}function Ae(e){return e.getStart(a)<=o&&o<=e.getEnd()}}function H(n,t){var r=e.findPrecedingToken(n,t);return r&&n<=r.end&&(e.isMemberName(r)||e.isKeyword(r.kind))?{contextToken:e.findPrecedingToken(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function W(n,t,r,a){var i=t.isPackageJsonImport?a.getPackageJsonAutoImportProvider():r,o=i.getTypeChecker(),s=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(e.Debug.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(s){var c="export="===t.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(t.exportName,s);if(c)return{symbol:c="default"===t.exportName&&e.getLocalSymbolForExportDefault(c)||c,origin:O(t,n,s)}}}function z(n,t,r,a,i){var o=function(e){return y(e)||h(e)}(r)?r.symbolName:n.name;if(!(void 0===o||1536&n.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(n))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,t,i?1:0)||n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))return s;switch(a){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(a)}}}n.moduleSpecifierResolutionLimit=100,n.moduleSpecifierResolutionCacheAttemptLimit=1e3,(r=t=n.SortText||(n.SortText={})).LocalDeclarationPriority="10",r.LocationPriority="11",r.OptionalMember="12",r.MemberDeclaredBySpreadAssignment="13",r.SuggestedClassMembers="14",r.GlobalsOrKeywords="15",r.AutoImportSuggestions="16",r.JavascriptIdentifiers="17",r.DeprecatedLocalDeclarationPriority="18",r.DeprecatedLocationPriority="19",r.DeprecatedOptionalMember="20",r.DeprecatedMemberDeclaredBySpreadAssignment="21",r.DeprecatedSuggestedClassMembers="22",r.DeprecatedGlobalsOrKeywords="23",r.DeprecatedAutoImportSuggestions="24",(i=a||(a={}))[i.LocalDeclarationPriority=10]="LocalDeclarationPriority",i[i.LocationPriority=11]="LocationPriority",i[i.OptionalMember=12]="OptionalMember",i[i.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",i[i.SuggestedClassMembers=14]="SuggestedClassMembers",i[i.GlobalsOrKeywords=15]="GlobalsOrKeywords",i[i.AutoImportSuggestions=16]="AutoImportSuggestions",i[i._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",i[i._DeprecatedStart=18]="_DeprecatedStart",i[i._First=10]="_First",i[i.DeprecatedOffset=8]="DeprecatedOffset",(s=o=n.CompletionSource||(n.CompletionSource={})).ThisProperty="ThisProperty/",s.ClassMemberSnippet="ClassMemberSnippet/",(l=c||(c={}))[l.ThisType=1]="ThisType",l[l.SymbolMember=2]="SymbolMember",l[l.Export=4]="Export",l[l.Promise=8]="Promise",l[l.Nullable=16]="Nullable",l[l.ResolvedExport=32]="ResolvedExport",l[l.SymbolMemberNoExport=2]="SymbolMemberNoExport",l[l.SymbolMemberExport=6]="SymbolMemberExport",(d=u||(u={}))[d.None=0]="None",d[d.All=1]="All",d[d.ClassElementKeywords=2]="ClassElementKeywords",d[d.InterfaceElementKeywords=3]="InterfaceElementKeywords",d[d.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",d[d.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",d[d.TypeAssertionKeywords=6]="TypeAssertionKeywords",d[d.TypeKeywords=7]="TypeKeywords",d[d.TypeKeyword=8]="TypeKeyword",d[d.Last=7]="Last",(f=p||(p={}))[f.Continue=0]="Continue",f[f.Success=1]="Success",f[f.Fail=2]="Fail",n.getCompletionsAtPosition=function(r,a,i,o,s,c,l,u,d){var p,f=H(s,o).previousToken;if(!l||e.isInString(o,s,f)||function(n,t,r,a){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&e.isStringLiteralOrTemplate(r)&&a===r.getStart(n)+1;case"#":return!!r&&e.isPrivateIdentifier(r)&&!!e.getContainingClass(r);case"<":return!!r&&29===r.kind&&(!e.isBinaryExpression(r.parent)||oe(r.parent));case"/":return!!r&&(e.isStringLiteralLike(r)?!!e.tryGetImportFromModuleSpecifier(r):43===r.kind&&e.isJsxClosingElement(r.parent));case" ":return!!r&&e.isImportKeyword(r)&&303===r.parent.kind;default:return e.Debug.assertNever(t)}}(o,l,f,s)){if(" "===l)return c.includeCompletionsForImportStatements&&c.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var m=a.getCompilerOptions(),_=c.allowIncompleteCompletions?null===(p=r.getIncompleteCompletionsCache)||void 0===p?void 0:p.call(r):void 0;if(_&&3===u&&f&&e.isIdentifier(f)){var g=function(n,t,r,a,i,o,s){var c=n.get();if(!c)return;var l=r.text.toLowerCase(),u=e.getExportInfoMap(t,i,a,s),d=b("continuePreviousIncompleteResponse",i,a,t,o,!1,(function(n){var r=e.mapDefined(c.entries,(function(r){if(!r.hasAction||!r.source||!r.data||E(r.data))return r;if(fe(r.name,l)){var o=e.Debug.checkDefined(W(r.name,r.data,a,i)).origin,s=u.get(t.path,r.data.exportMapKey),c=s&&n.tryResolve(s,!e.isExternalModuleNameRelative(e.stripQuotes(o.moduleSymbol.name)));if(!c)return r;var d=fa(fa({},o),{kind:32,moduleSpecifier:c.moduleSpecifier});return r.data=R(d),r.source=P(d),r.sourceDisplay=[e.textPart(d.moduleSpecifier)],r}}));return n.resolutionLimitExceeded()||(c.isIncomplete=void 0),r}));return c.entries=d,c}(_,o,f,a,r,c,d);if(g)return g}else null===_||void 0===_||_.clear();var y=n.StringCompletions.getStringLiteralCompletions(o,s,f,m,r,a,i,c);if(y)return y;if(f&&e.isBreakOrContinueStatement(f.parent)&&(81===f.kind||86===f.kind||79===f.kind))return function(n){var r=function(n){var r=[],a=new e.Map,i=n;for(;i&&!e.isFunctionLike(i);){if(e.isLabeledStatement(i)){var o=i.label.text;a.has(o)||(a.set(o,!0),r.push({name:o,kindModifiers:"",kind:"label",sortText:t.LocationPriority}))}i=i.parent}return r}(n);if(r.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:r}}(f.parent);var h,v=K(a,i,o,L(o,m),s,c,void 0,r,d);if(v)switch(v.kind){case 0:var S=function(n,r,a,i,o,s,c){var l=s.symbols,u=s.contextToken,d=s.completionKind,p=s.isInSnippetScope,f=s.isNewIdentifierLocation,m=s.location,_=s.propertyAccessToConvert,g=s.keywordFilters,y=s.literals,h=s.symbolToOriginInfoMap,v=s.recommendedCompletion,b=s.isJsxInitializer,E=s.isTypeOnlyLocation,T=s.isJsxIdentifierExpected,S=s.isRightOfOpenTag,C=s.importCompletionNode,I=s.insideJsDocTagTypeExpression,k=s.symbolToSortTextIdMap,N=s.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(n.scriptKind)){var R=function(n,r){var a=e.findAncestor(n,(function(e){switch(e.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}}));if(a){var i=!!e.findChildOfKind(a,31,r),o=a.parent.openingElement.tagName.getText(r)+(i?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(a.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.LocationPriority}]}}return}(m,n);if(R)return R}var O=[];if(L(n,i)){var w=F(l,O,void 0,u,m,n,r,a,e.getEmitScriptTarget(i),o,d,c,i,E,_,T,b,C,v,h,k,T,S);!function(n,r,a,i,o){e.getNameTable(n).forEach((function(n,s){if(n!==r){var c=e.unescapeLeadingUnderscores(s);!a.has(c)&&e.isIdentifierText(c,i)&&(a.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(n,m.pos,w,e.getEmitScriptTarget(i),O)}else{if(!f&&(!l||0===l.length)&&0===g)return;F(l,O,void 0,u,m,n,r,a,e.getEmitScriptTarget(i),o,d,c,i,E,_,T,b,C,v,h,k,T,S)}if(0!==g)for(var M=new e.Set(O.map((function(e){return e.name}))),P=0,G=X(g,!I&&e.isSourceFileJS(n));P<G.length;P++){var B=G[P];M.has(B.name)||O.push(B)}for(var U=0,V=y;U<V.length;U++){var j=V[U];O.push(A(n,c,j))}return{isGlobalCompletion:p,isIncomplete:!(!c.allowIncompleteCompletions||!N)||void 0,isMemberCompletion:D(d),isNewIdentifierLocation:f,optionalReplacementSpan:x(m),entries:O}}(o,r,a,m,i,v,c);return(null===S||void 0===S?void 0:S.isIncomplete)&&(null===_||void 0===_||_.set(S)),S;case 1:return T(e.JsDoc.getJSDocTagNameCompletions());case 2:return T(e.JsDoc.getJSDocTagCompletions());case 3:return T(e.JsDoc.getJSDocParameterNameCompletions(v.tag));case 4:return h=v.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v.isNewIdentifierLocation,entries:h.slice()};default:return e.Debug.assertNever(v)}}},n.getCompletionEntriesFromSymbols=F,n.getCompletionEntryDetails=function(t,r,a,i,s,c,l,u,d){var p=t.getTypeChecker(),f=t.getCompilerOptions(),m=s.name,_=s.source,g=s.data,v=e.findPrecedingToken(i,a);if(e.isInString(a,i,v))return n.StringCompletions.getStringLiteralCompletionDetails(m,a,i,v,p,f,c,d,u);var b=G(t,r,a,i,s,c,u);switch(b.type){case"request":var E=b.request;switch(E.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(m);case 2:return e.JsDoc.getJSDocTagCompletionDetails(m);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(m);case 4:return e.some(E.keywordCompletions,(function(e){return e.name===m}))?B(m,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(E)}case"symbol":var T=b.symbol,S=b.location,x=b.contextToken,L=b.origin,D=b.previousToken,A=function(n,t,r,a,i,s,c,l,u,d,p,f,m,_,g){if(null===_||void 0===_?void 0:_.moduleSpecifier){var v=H(d,u),b=v.contextToken,E=v.previousToken;if(E&&se(b||E).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(_.moduleSpecifier)]}}if(g===o.ClassMemberSnippet){var T=k(c,s,l,m,n,i,t,r).importAdder;if(T)return{sourceDisplay:void 0,codeActions:[{changes:e.textChanges.ChangeTracker.with({host:c,formatContext:f,preferences:m},T.writeFixes),description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,n])}]}}if(!a||!y(a)&&!h(a))return{codeActions:void 0,sourceDisplay:void 0};var S=a.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),x=a.moduleSymbol,L=S.getMergedSymbol(e.skipAlias(i.exportSymbol||i,S)),D=e.codefix.getImportCompletionAction(L,x,u,e.getNameForExportedSymbol(i,e.getEmitScriptTarget(l)),c,s,f,p&&e.isIdentifier(p)?p.getStart(u):d,m),C=D.moduleSpecifier,A=D.codeAction;return e.Debug.assert(!(null===_||void 0===_?void 0:_.moduleSpecifier)||C===_.moduleSpecifier),{sourceDisplay:[e.textPart(C)],codeActions:[A]}}(m,S,x,L,T,t,c,f,a,i,D,l,u,g,_);return U(T,p,a,S,d,A.codeActions,A.sourceDisplay);case"literal":var I=b.literal;return B(C(a,u,I),"string","string"===typeof I?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return q().some((function(e){return e.name===m}))?B(m,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(b)}},n.createCompletionDetailsForSymbol=U,n.createCompletionDetails=V,n.getCompletionEntrySymbol=function(e,n,t,r,a,i,o){var s=G(e,n,t,r,a,i,o);return"symbol"===s.type?s.symbol:void 0},(_=m||(m={}))[_.Data=0]="Data",_[_.JsDocTagName=1]="JsDocTagName",_[_.JsDocTag=2]="JsDocTag",_[_.JsDocParameterName=3]="JsDocParameterName",_[_.Keywords=4]="Keywords",(g=n.CompletionKind||(n.CompletionKind={}))[g.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",g[g.Global=1]="Global",g[g.PropertyAccess=2]="PropertyAccess",g[g.MemberLike=3]="MemberLike",g[g.String=4]="String",g[g.None=5]="None";var J=[],q=e.memoize((function(){for(var n=[],r=81;r<=159;r++)n.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:t.GlobalsOrKeywords});return n}));function X(n,t){if(!t)return Y(n);var r=n+7+1;return J[r]||(J[r]=Y(n).filter((function(n){return!function(e){switch(e){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}}(e.stringToToken(n.name))})))}function Y(n){return J[n]||(J[n]=q().filter((function(t){var r=e.stringToToken(t.name);switch(n){case 0:return!1;case 1:return $(r)||135===r||141===r||151===r||142===r||126===r||e.isTypeKeyword(r)&&152!==r;case 5:return $(r);case 2:return Z(r);case 3:return Q(r);case 4:return e.isParameterPropertyModifier(r);case 6:return e.isTypeKeyword(r)||85===r;case 7:return e.isTypeKeyword(r);case 8:return 151===r;default:return e.Debug.assertNever(n)}})))}function Q(e){return 144===e}function Z(n){switch(n){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(n)}}function $(n){return 131===n||132===n||127===n||!e.isContextualKeyword(n)&&!Z(n)}function ee(n){return e.isIdentifier(n)?n.originalKeywordKind||0:n.kind}function ne(n,t,r,a){var i=t&&t!==n,o=!i||3&t.flags?n:a.getUnionType([n,t]),s=function(n,t,r){return n.isUnion()?r.getAllPossiblePropertiesOfTypes(e.filter(n.types,(function(n){return!(131068&n.flags||r.isArrayLikeType(n)||r.isTypeInvalidDueToUnionDiscriminant(n,t)||e.typeHasCallOrConstructSignatures(n,r)||n.isClass()&&te(n.getApparentProperties()))}))):n.getApparentProperties()}(o,r,a);return o.isClass()&&te(s)?[]:i?e.filter(s,(function(n){return e.some(n.declarations,(function(e){return e.parent!==r}))})):s}function te(n){return e.some(n,(function(n){return!!(24&e.getDeclarationModifierFlagsFromSymbol(n))}))}function re(n,t){return n.isUnion()?e.Debug.checkEachDefined(t.getAllPossiblePropertiesOfTypes(n.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(n.getApparentProperties(),"getApparentProperties() should all be defined")}function ae(n,t){if(n){if(e.isTypeNode(n)&&e.isTypeReferenceType(n.parent))return t.getTypeArgumentConstraint(n);var r=ae(n.parent,t);if(r)switch(n.kind){case 165:return t.getTypeOfPropertyOfContextualType(r,n.symbol.escapedName);case 187:case 181:case 186:return r}}}function ie(n){return n.parent&&e.isClassOrTypeElement(n.parent)&&e.isObjectTypeDeclaration(n.parent.parent)}function oe(n){var t=n.left;return e.nodeIsMissing(t)}function se(n){var t,r=!1,a=function(){var a=n.parent;if(e.isImportEqualsDeclaration(a))return t=151===n.kind?void 0:151,ue(a.moduleReference)?a:void 0;if(ce(a,n)&&le(a.parent))return a;if(e.isNamedImports(a)||e.isNamespaceImport(a)){if(a.parent.isTypeOnly||18!==n.kind&&100!==n.kind&&27!==n.kind||(t=151),le(a)){if(19!==n.kind&&79!==n.kind)return a.parent.parent;r=!0,t=155}return}if(e.isImportKeyword(n)&&e.isSourceFile(a))return t=151,n;if(e.isImportKeyword(n)&&e.isImportDeclaration(a))return t=151,ue(a.moduleSpecifier)?a:void 0;return}();return{isKeywordOnlyCompletion:r,keywordCompletion:t,isNewIdentifierLocation:!(!a&&151!==t),replacementNode:a&&e.rangeIsOnSingleLine(a,a.getSourceFile())?a:void 0}}function ce(n,t){return e.isImportSpecifier(n)&&(n.isTypeOnly||t===n.name&&e.isTypeKeywordTokenOrIdentifier(t))}function le(n){return ue(n.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(n)||n.elements.length<2)&&!n.parent.name}function ue(n){var t;return!!e.nodeIsMissing(n)||!(null===(t=e.tryCast(e.isExternalModuleReference(n)?n.expression:n,e.isStringLiteralLike))||void 0===t?void 0:t.text)}function de(n,t,r){void 0===r&&(r=new e.Map);var a=e.skipAlias(n.exportSymbol||n,t);return!!(788968&a.flags)||t.isUnknownSymbol(a)||!!(1536&a.flags)&&e.addToSeen(r,e.getSymbolId(a))&&t.getExportsOfModule(a).some((function(e){return de(e,t,r)}))}function pe(n,t){var r=e.skipAlias(n,t).declarations;return!!e.length(r)&&e.every(r,e.isDeprecatedDeclaration)}function fe(e,n){if(0===n.length)return!0;for(var t,r=!1,a=0,i=e.length,o=0;o<i;o++){var s=e.charCodeAt(o),c=n.charCodeAt(a);if((s===c||s===me(c))&&(r||(r=void 0===t||97<=t&&t<=122&&65<=s&&s<=90||95===t&&95!==s),r&&a++,a===n.length))return!0;t=s}return!1}function me(e){return 97<=e&&e<=122?e-32:e}n.getPropertiesForObjectExpression=ne}(e.Completions||(e.Completions={}))}(ha||(ha={})),function(e){!function(n){function t(n,t){return{fileName:t.fileName,textSpan:e.createTextSpanFromNode(n,t),kind:"none"}}function r(n){return e.isThrowStatement(n)?[n]:e.isTryStatement(n)?e.concatenate(n.catchClause?r(n.catchClause):n.tryBlock&&r(n.tryBlock),n.finallyBlock&&r(n.finallyBlock)):e.isFunctionLike(n)?void 0:i(n,r)}function a(n){return e.isBreakOrContinueStatement(n)?[n]:e.isFunctionLike(n)?void 0:i(n,a)}function i(n,t){var r=[];return n.forEachChild((function(n){var a=t(n);void 0!==a&&r.push.apply(r,e.toArray(a))})),r}function o(e,n){var t=s(n);return!!t&&t===e}function s(n){return e.findAncestor(n,(function(t){switch(t.kind){case 248:if(244===n.kind)return!1;case 241:case 242:case 243:case 240:case 239:return!n.label||function(n,t){return!!e.findAncestor(n.parent,(function(n){return e.isLabeledStatement(n)?n.label.escapedText===t:"quit"}))}(t,n.label.escapedText);default:return e.isFunctionLike(t)&&"quit"}}))}function c(n,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return!(!t||!e.contains(r,t.kind))&&(n.push(t),!0)}function l(n){var t=[];if(c(t,n.getFirstToken(),97,115,90)&&239===n.kind)for(var r=n.getChildren(),i=r.length-1;i>=0&&!c(t,r[i],115);i--);return e.forEach(a(n.statement),(function(e){o(n,e)&&c(t,e.getFirstToken(),81,86)})),t}function u(e){var n=s(e);if(n)switch(n.kind){case 241:case 242:case 243:case 239:case 240:return l(n);case 248:return d(n)}}function d(n){var t=[];return c(t,n.getFirstToken(),107),e.forEach(n.caseBlock.clauses,(function(r){c(t,r.getFirstToken(),82,88),e.forEach(a(r),(function(e){o(n,e)&&c(t,e.getFirstToken(),81)}))})),t}function p(n,t){var r=[];(c(r,n.getFirstToken(),111),n.catchClause&&c(r,n.catchClause.getFirstToken(),83),n.finallyBlock)&&c(r,e.findChildOfKind(n,96,t),96);return r}function f(n,t){var a=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||303===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(n);if(a){var i=[];return e.forEach(r(a),(function(n){i.push(e.findChildOfKind(n,109,t))})),e.isFunctionBlock(a)&&e.forEachReturnStatement(a,(function(n){i.push(e.findChildOfKind(n,105,t))})),i}}function m(n,t){var a=e.getContainingFunction(n);if(a){var i=[];return e.forEachReturnStatement(e.cast(a.body,e.isBlock),(function(n){i.push(e.findChildOfKind(n,105,t))})),e.forEach(r(a.body),(function(n){i.push(e.findChildOfKind(n,109,t))})),i}}function _(n){var t=e.getContainingFunction(n);if(t){var r=[];return t.modifiers&&t.modifiers.forEach((function(e){c(r,e,131)})),e.forEachChild(t,(function(n){g(n,(function(n){e.isAwaitExpression(n)&&c(r,n.getFirstToken(),132)}))})),r}}function g(n,t){t(n),e.isFunctionLike(n)||e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isModuleDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isTypeNode(n)||e.forEachChild(n,(function(e){return g(e,t)}))}n.getDocumentHighlights=function(n,r,a,i,o){var s=e.getTouchingPropertyName(a,i);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,h=[y.openingElement,y.closingElement].map((function(e){return t(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:h}]}return function(n,t,r,a,i){var o=new e.Set(i.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(n,t,r,i,a,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(n){var t=n[0],a=n[1];if(!o.has(t)){if(!r.redirectTargetsMap.has(e.toPath(t,r.getCurrentDirectory(),l)))return;var s=r.getSourceFile(t);t=e.find(i,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(t))}return{fileName:t,highlightSpans:a}}))}(i,s,n,r,o)||function(n,r){var a=function(n,r){switch(n.kind){case 99:case 91:return e.isIfStatement(n.parent)?function(n,r){for(var a=function(n,t){var r=[];for(;e.isIfStatement(n.parent)&&n.parent.elseStatement===n;)n=n.parent;for(;;){var a=n.getChildren(t);c(r,a[0],99);for(var i=a.length-1;i>=0&&!c(r,a[i],91);i--);if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}(n,r),i=[],o=0;o<a.length;o++){if(91===a[o].kind&&o<a.length-1){for(var s=a[o],l=a[o+1],u=!0,d=l.getStart(r)-1;d>=s.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){u=!1;break}if(u){i.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),l.end),kind:"reference"}),o++;continue}}i.push(t(a[o],r))}return i}(n.parent,r):void 0;case 105:return s(n.parent,e.isReturnStatement,m);case 109:return s(n.parent,e.isThrowStatement,f);case 111:case 83:case 96:return s(83===n.kind?n.parent.parent:n.parent,e.isTryStatement,p);case 107:return s(n.parent,e.isSwitchStatement,d);case 82:case 88:return e.isDefaultClause(n.parent)||e.isCaseClause(n.parent)?s(n.parent.parent.parent,e.isSwitchStatement,d):void 0;case 81:case 86:return s(n.parent,e.isBreakOrContinueStatement,u);case 97:case 115:case 90:return s(n.parent,(function(n){return e.isIterationStatement(n,!0)}),l);case 134:return o(e.isConstructorDeclaration,[134]);case 136:case 148:return o(e.isAccessor,[136,148]);case 132:return s(n.parent,e.isAwaitExpression,_);case 131:return y(_(n));case 125:return y(function(n){var t=e.getContainingFunction(n);if(!t)return;var r=[];return e.forEachChild(t,(function(n){g(n,(function(n){e.isYieldExpression(n)&&c(r,n.getFirstToken(),125)}))})),r}(n));default:return e.isModifierKind(n.kind)&&(e.isDeclaration(n.parent)||e.isVariableStatement(n.parent))?y((a=n.kind,i=n.parent,e.mapDefined(function(n,t){var r=n.parent;switch(r.kind){case 261:case 303:case 234:case 288:case 289:return 128&t&&e.isClassDeclaration(n)?pa(pa([],n.members,!0),[n],!1):r.statements;case 170:case 168:case 255:return pa(pa([],r.parameters,!0),e.isClassLike(r.parent)?r.parent.members:[],!0);case 256:case 225:case 257:case 181:var a=r.members;if(92&t){var i=e.find(r.members,e.isConstructorDeclaration);if(i)return pa(pa([],a,!0),i.parameters,!0)}else if(128&t)return pa(pa([],a,!0),[r],!1);return a;case 204:return;default:e.Debug.assertNever(r,"Invalid container kind.")}}(i,e.modifierToFlag(a)),(function(n){return e.findModifier(n,a)})))):void 0}var a,i;function o(t,a){return s(n.parent,t,(function(n){return e.mapDefined(n.symbol.declarations,(function(n){return t(n)?e.find(n.getChildren(r),(function(n){return e.contains(a,n.kind)})):void 0}))}))}function s(e,n,t){return n(e)?y(t(e,r)):void 0}function y(e){return e&&e.map((function(e){return t(e,r)}))}}(n,r);return a&&[{fileName:r.fileName,highlightSpans:a}]}(s,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(ha||(ha={})),function(e){function n(e){return!!e.sourceFile}function t(t,a,i){void 0===a&&(a="");var o=new e.Map,s=e.createGetCanonicalFileName(!!t);function c(e,n,t,r,a,i,o){return d(e,n,t,r,a,i,!0,o)}function l(e,n,t,r,a,i,o){return d(e,n,t,r,a,i,!1,o)}function u(t,r){var a=n(t)?t:t.get(e.Debug.checkDefined(r,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===r||!a||a.sourceFile.scriptKind===r,"Script kind should match provided ScriptKind:".concat(r," and sourceFile.scriptKind: ").concat(null===a||void 0===a?void 0:a.sourceFile.scriptKind,", !entry: ").concat(!a)),a}function d(t,r,a,s,c,l,d,p){var f=6===(p=e.ensureScriptKind(t,p))?100:e.getEmitScriptTarget(a),m=e.getOrUpdate(o,s,(function(){return new e.Map})),_=m.get(r),g=_&&u(_,p);!g&&i&&((y=i.getDocument(s,r))&&(e.Debug.assert(d),g={sourceFile:y,languageServiceRefCount:0},h()));if(g)g.sourceFile.version!==l&&(g.sourceFile=e.updateLanguageServiceSourceFile(g.sourceFile,c,l,c.getChangeRange(g.sourceFile.scriptSnapshot)),i&&i.setDocument(s,r,g.sourceFile)),d&&g.languageServiceRefCount++;else{var y=e.createLanguageServiceSourceFile(t,c,f,l,!1,p);i&&i.setDocument(s,r,y),g={sourceFile:y,languageServiceRefCount:1},h()}return e.Debug.assert(0!==g.languageServiceRefCount),g.sourceFile;function h(){if(_)if(n(_)){var t=new e.Map;t.set(_.sourceFile.scriptKind,_),t.set(p,g),m.set(r,t)}else _.set(p,g);else m.set(r,g)}}function p(t,r,a){var i=e.Debug.checkDefined(o.get(r)),s=i.get(t),c=u(s,a);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(n(s)?i.delete(t):(s.delete(a),1===s.size&&i.set(t,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:function(n,t,i,o,l){return c(n,e.toPath(n,a,s),t,r(t),i,o,l)},acquireDocumentWithKey:c,updateDocument:function(n,t,i,o,c){return l(n,e.toPath(n,a,s),t,r(t),i,o,c)},updateDocumentWithKey:l,releaseDocument:function(n,t,i){return p(e.toPath(n,a,s),r(t),i)},releaseDocumentWithKey:p,getLanguageServiceRefCounts:function(n,t){return e.arrayFrom(o.entries(),(function(e){var r=e[0],a=e[1].get(n),i=a&&u(a,t);return[r,i&&i.languageServiceRefCount]}))},reportStats:function(){var t=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var t=o.get(e),r=[];return t.forEach((function(e,t){n(e)?r.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,n){return r.push({name:t,scriptKind:n,refCount:e.languageServiceRefCount})}))})),r.sort((function(e,n){return n.refCount-e.refCount})),{bucket:e,sourceFiles:r}}));return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(n){return e.sourceFileAffectingCompilerOptions.map((function(t){return e.getCompilerOptionValue(n,t)})).join("|")}e.createDocumentRegistry=function(e,n){return t(e,n)},e.createDocumentRegistryInternal=t}(ha||(ha={})),function(e){!function(n){var t,r;function a(n,t){return e.forEach(303===n.kind?n.statements:n.body.statements,(function(n){return t(n)||l(n)&&e.forEach(n.body&&n.body.statements,t)}))}function i(n,t){if(n.externalModuleIndicator||void 0!==n.imports)for(var r=0,i=n.imports;r<i.length;r++){var o=i[r];t(e.importFromModuleSpecifier(o),o)}else a(n,(function(n){switch(n.kind){case 271:case 265:(r=n).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&t(r,r.moduleSpecifier);break;case 264:var r;u(r=n)&&t(r,r.moduleReference.expression)}}))}function o(n,t,r){var a=n.parent;if(a){var i=r.getMergedSymbol(a);return e.isExternalModuleSymbol(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}}function s(e,n){return n.getMergedSymbol(c(e).symbol)}function c(n){if(207===n.kind)return n.getSourceFile();var t=n.parent;return 303===t.kind?t:(e.Debug.assert(261===t.kind),e.cast(t.parent,l))}function l(e){return 260===e.kind&&10===e.name.kind}function u(e){return 276===e.moduleReference.kind&&10===e.moduleReference.expression.kind}n.createImportTracker=function(n,t,r,o){var d=function(n,t,r){for(var a=new e.Map,o=0,s=n;o<s.length;o++){var c=s[o];r&&r.throwIfCancellationRequested(),i(c,(function(n,r){var i=t.getSymbolAtLocation(r);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(n)}}))}return a}(n,r,o);return function(i,p,f){var m=function(n,t,r,i,o,u){var d=i.exportingModuleSymbol,p=i.exportKind,f=e.nodeSeenTracker(),m=e.nodeSeenTracker(),_=[],g=!!d.globalExports,y=g?void 0:[];return v(d),{directImports:_,indirectUsers:h()};function h(){if(g)return n;if(d.declarations)for(var r=0,a=d.declarations;r<a.length;r++){var i=a[r];e.isExternalModuleAugmentation(i)&&t.has(i.getSourceFile().fileName)&&S(i)}return y.map(e.getSourceFileOfNode)}function v(n){var t=x(n);if(t)for(var r=0,a=t;r<a.length;r++){var i=a[r];if(f(i))switch(u&&u.throwIfCancellationRequested(),i.kind){case 207:if(e.isImportCall(i)){b(i);break}if(!g){var l=i.parent;if(2===p&&253===l.kind){var d=l.name;if(79===d.kind){_.push(d);break}}}break;case 79:break;case 264:T(i,i.name,e.hasSyntacticModifier(i,1),!1);break;case 265:_.push(i);var m=i.importClause&&i.importClause.namedBindings;m&&267===m.kind?T(i,m.name,!1,!0):!g&&e.isDefaultImport(i)&&S(c(i));break;case 271:i.exportClause?273===i.exportClause.kind?S(c(i),!0):_.push(i):v(s(i,o));break;case 199:i.isTypeOf&&!i.qualifier&&E(i)&&S(i.getSourceFile(),!0),_.push(i);break;default:e.Debug.failBadSyntaxKind(i,"Unexpected import kind.")}}}function b(n){S(e.findAncestor(n,l)||n.getSourceFile(),!!E(n,!0))}function E(n,t){return void 0===t&&(t=!1),e.findAncestor(n,(function(n){return t&&l(n)?"quit":e.some(n.modifiers,(function(e){return 93===e.kind}))}))}function T(n,t,r,i){if(2===p)i||_.push(n);else if(!g){var s=c(n);e.Debug.assert(303===s.kind||260===s.kind),r||function(n,t,r){var i=r.getSymbolAtLocation(t);return!!a(n,(function(n){if(e.isExportDeclaration(n)){var t=n.exportClause;return!n.moduleSpecifier&&t&&e.isNamedExports(t)&&t.elements.some((function(e){return r.getExportSpecifierLocalTargetSymbol(e)===i}))}}))}(s,t,o)?S(s,!0):S(s)}}function S(n,t){if(void 0===t&&(t=!1),e.Debug.assert(!g),m(n)&&(y.push(n),t)){var r=o.getMergedSymbol(n.symbol);if(r){e.Debug.assert(!!(1536&r.flags));var a=x(r);if(a)for(var i=0,s=a;i<s.length;i++){var l=s[i];e.isImportTypeNode(l)||S(c(l),!0)}}}}function x(n){return r.get(e.getSymbolId(n).toString())}}(n,t,d,p,r,o),_=m.directImports,g=m.indirectUsers;return fa({indirectUsers:g},function(n,t,r,a,i){var o=[],s=[];function c(e,n){o.push([e,n])}if(n)for(var l=0,d=n;l<d.length;l++){p(d[l])}return{importSearches:o,singleReferences:s};function p(n){if(264!==n.kind)if(79!==n.kind)if(199!==n.kind){if(10===n.moduleSpecifier.kind)if(271!==n.kind){var o=n.importClause||{name:void 0,namedBindings:void 0},l=o.name,d=o.namedBindings;if(d)switch(d.kind){case 267:f(d.name);break;case 268:0!==r&&1!==r||m(d);break;default:e.Debug.assertNever(d)}if(l&&(1===r||2===r)&&(!i||l.escapedText===e.symbolEscapedNameNoDefault(t)))c(l,a.getSymbolAtLocation(l))}else n.exportClause&&e.isNamedExports(n.exportClause)&&m(n.exportClause)}else if(n.qualifier){var p=e.getFirstIdentifier(n.qualifier);p.escapedText===e.symbolName(t)&&s.push(p)}else 2===r&&s.push(n.argument.literal);else f(n);else u(n)&&f(n.name)}function f(e){2!==r||i&&!_(e.escapedText)||c(e,a.getSymbolAtLocation(e))}function m(e){if(e)for(var n=0,r=e.elements;n<r.length;n++){var o=r[n],l=o.name,u=o.propertyName;if(_((u||l).escapedText))if(u)s.push(u),i&&l.escapedText!==t.escapedName||c(l,a.getSymbolAtLocation(l));else c(l,274===o.kind&&o.propertyName?a.getExportSpecifierLocalTargetSymbol(o):a.getSymbolAtLocation(l))}}function _(e){return e===t.escapedName||0!==r&&"default"===e}}(_,i,p.exportKind,r,f))}},(t=n.ExportKind||(n.ExportKind={}))[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",(r=n.ImportExport||(n.ImportExport={}))[r.Import=0]="Import",r[r.Export=1]="Export",n.findModuleReferences=function(e,n,t){for(var r=[],a=e.getTypeChecker(),o=0,s=n;o<s.length;o++){var c=s[o],l=t.valueDeclaration;if(303===(null===l||void 0===l?void 0:l.kind)){for(var u=0,d=c.referencedFiles;u<d.length;u++){var p=d[u];e.getSourceFileFromReference(c,p)===l&&r.push({kind:"reference",referencingFile:c,ref:p})}for(var f=0,m=c.typeReferenceDirectives;f<m.length;f++){p=m[f];var _=e.getResolvedTypeReferenceDirectives().get(p.fileName);void 0!==_&&_.resolvedFileName===l.fileName&&r.push({kind:"reference",referencingFile:c,ref:p})}}i(c,(function(e,n){a.getSymbolAtLocation(n)===t&&r.push({kind:"import",literal:n})}))}return r},n.getImportOrExportSymbol=function(n,t,r,a){return a?i():i()||function(){if(!function(n){var t=n.parent;switch(t.kind){case 264:return t.name===n&&u(t);case 269:return!t.propertyName;case 266:case 267:return e.Debug.assert(t.name===n),!0;case 202:return e.isInJSFile(n)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t);default:return!1}}(n))return;var a=r.getImmediateAliasedSymbol(t);if(!a)return;a=function(n,t){if(n.declarations)for(var r=0,a=n.declarations;r<a.length;r++){var i=a[r];if(e.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(i);if(e.isPropertyAccessExpression(i)&&e.isModuleExportsAccessExpression(i.expression)&&!e.isPrivateIdentifier(i.name))return t.getSymbolAtLocation(i);if(e.isShorthandPropertyAssignment(i)&&e.isBinaryExpression(i.parent.parent)&&2===e.getAssignmentDeclarationKind(i.parent.parent))return t.getExportSpecifierLocalTargetSymbol(i.name)}return n}(a,r),"export="===a.escapedName&&(a=function(n,t){if(2097152&n.flags)return e.Debug.checkDefined(t.getImmediateAliasedSymbol(n));var r=e.Debug.checkDefined(n.valueDeclaration);if(e.isExportAssignment(r))return e.Debug.checkDefined(r.expression.symbol);if(e.isBinaryExpression(r))return e.Debug.checkDefined(r.right.symbol);if(e.isSourceFile(r))return e.Debug.checkDefined(r.symbol);return e.Debug.fail()}(a,r));var i=e.symbolEscapedNameNoDefault(a);if(void 0===i||"default"===i||i===t.escapedName)return{kind:0,symbol:a}}();function i(){var i,o=n.parent,l=o.parent;if(t.exportSymbol)return 205===o.kind?(null===(i=t.declarations)||void 0===i?void 0:i.some((function(e){return e===o})))&&e.isBinaryExpression(l)?p(l,!1):void 0:s(t.exportSymbol,c(o));var u=function(n,t){var r=e.isVariableDeclaration(n)?n:e.isBindingElement(n)?e.walkUpBindingElementsAndPatterns(n):void 0;return r?n.name!==t||e.isCatchClause(r.parent)?void 0:e.isVariableStatement(r.parent.parent)?r.parent.parent:void 0:n}(o,n);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===n){if(a)return;return{kind:0,symbol:r.getSymbolAtLocation(u.name)}}return s(t,c(u))}if(e.isNamespaceExport(o))return s(t,0);if(e.isExportAssignment(o))return d(o);if(e.isExportAssignment(l))return d(l);if(e.isBinaryExpression(o))return p(o,!0);if(e.isBinaryExpression(l))return p(l,!0);if(e.isJSDocTypedefTag(o))return s(t,0);function d(e){if(e.symbol.parent){var n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}}function p(n,a){var i;switch(e.getAssignmentDeclarationKind(n)){case 1:i=0;break;case 2:i=2;break;default:return}var o=a?r.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(n.left,e.isAccessExpression))):t;return o&&s(o,i)}}function s(e,n){var t=o(e,n,r);return t&&{kind:1,symbol:e,exportInfo:t}}function c(n){return e.hasSyntacticModifier(n,512)?1:0}},n.getExportInfo=o}(e.FindAllReferences||(e.FindAllReferences={}))}(ha||(ha={})),function(e){!function(n){var t,r,a,i;function o(e,n){return void 0===n&&(n=1),{kind:n,node:e.name||e,context:c(e)}}function s(e){return e&&void 0===e.kind}function c(n){if(e.isDeclaration(n))return l(n);if(n.parent){if(!e.isDeclaration(n.parent)&&!e.isExportAssignment(n.parent)){if(e.isInJSFile(n)){var t=e.isBinaryExpression(n.parent)?n.parent:e.isAccessExpression(n.parent)&&e.isBinaryExpression(n.parent.parent)&&n.parent.parent.left===n.parent?n.parent.parent:void 0;if(t&&0!==e.getAssignmentDeclarationKind(t))return l(t)}if(e.isJsxOpeningElement(n.parent)||e.isJsxClosingElement(n.parent))return n.parent.parent;if(e.isJsxSelfClosingElement(n.parent)||e.isLabeledStatement(n.parent)||e.isBreakOrContinueStatement(n.parent))return n.parent;if(e.isStringLiteralLike(n)){var r=e.tryGetImportFromModuleSpecifier(n);if(r){var a=e.findAncestor(r,(function(n){return e.isDeclaration(n)||e.isStatement(n)||e.isJSDocTag(n)}));return e.isDeclaration(a)?l(a):a}}var i=e.findAncestor(n,e.isComputedPropertyName);return i?l(i.parent):void 0}return n.parent.name===n||e.isConstructorDeclaration(n.parent)||e.isExportAssignment(n.parent)||(e.isImportOrExportSpecifier(n.parent)||e.isBindingElement(n.parent))&&n.parent.propertyName===n||88===n.kind&&e.hasSyntacticModifier(n.parent,513)?l(n.parent):void 0}}function l(n){if(n)switch(n.kind){case 253:return e.isVariableDeclarationList(n.parent)&&1===n.parent.declarations.length?e.isVariableStatement(n.parent.parent)?n.parent.parent:e.isForInOrOfStatement(n.parent.parent)?l(n.parent.parent):n.parent:n;case 202:return l(n.parent.parent);case 269:return n.parent.parent.parent;case 274:case 267:return n.parent.parent;case 266:case 273:return n.parent;case 220:return e.isExpressionStatement(n.parent)?n.parent:n;case 243:case 242:return{start:n.initializer,end:n.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)?l(e.findAncestor(n.parent,(function(n){return e.isBinaryExpression(n)||e.isForInOrOfStatement(n)}))):n;default:return n}}function u(e,n,t){if(t){var r=s(t)?h(t.start,n,t.end):h(t,n);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}}function d(n,t,r,a,s){if(303!==a.kind){var c=n.getTypeChecker();if(295===a.parent.kind){var l=[];return i.getReferenceEntriesForShorthandPropertyAssignment(a,c,(function(e){return l.push(o(e))})),l}if(106===a.kind||e.isSuperProperty(a.parent)){var u=c.getSymbolAtLocation(a);return u.valueDeclaration&&[o(u.valueDeclaration)]}return p(s,a,n,r,t,{implementations:!0,use:1})}}function p(n,t,r,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((function(e){return e.fileName})))),f(i.getReferencedSymbolsForNode(n,t,r,a,o,s,c))}function f(n){return n&&e.flatMap(n,(function(e){return e.references}))}function m(n){var t=n.getSourceFile();return{sourceFile:t,textSpan:h(e.isComputedPropertyName(n)?n.expression:n,t)}}function _(n,t,r){var a=i.getIntersectingMeaningFromDeclarations(r,n),o=n.declarations&&e.firstOrUndefined(n.declarations)||r,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,n,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function g(e,n){var t=y(e);if(0===e.kind)return fa(fa({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,a=e.node;return fa(fa({},t),{isWriteAccess:b(a),isDefinition:E(a,n),isInString:2===r||void 0})}function y(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var n=e.node.getSourceFile(),t=h(e.node,n);return fa({textSpan:t,fileName:n.fileName},u(t,n,e.context))}function h(n,t,r){var a=n.getStart(t),i=(r||n).getEnd();return e.isStringLiteralLike(n)&&(e.Debug.assert(void 0===r),a+=1,i-=1),e.createTextSpanFromBounds(a,i)}function v(e){return 0===e.kind?e.textSpan:h(e.node,e.node.getSourceFile())}function b(n){var t=e.getDeclarationFromName(n);return!!t&&function(n){if(8388608&n.flags)return!0;switch(n.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!n.body;case 253:case 166:return!!n.initializer||e.isCatchClause(n.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(n)}}(t)||88===n.kind||e.isWriteAccess(n)}function E(n,t){var r;if(!t)return!1;var a=e.getDeclarationFromName(n)||(88===n.kind?n.parent:e.isLiteralComputedPropertyDeclarationName(n)||134===n.kind&&e.isConstructorDeclaration(n.parent)?n.parent.parent:void 0),i=a&&e.isBinaryExpression(a)?a.left:void 0;return!(!a||!(null===(r=t.declarations)||void 0===r?void 0:r.some((function(e){return e===a||e===i}))))}(t=n.DefinitionKind||(n.DefinitionKind={}))[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",(r=n.EntryKind||(n.EntryKind={}))[r.Span=0]="Span",r[r.Node=1]="Node",r[r.StringLiteral=2]="StringLiteral",r[r.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",r[r.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",n.nodeEntry=o,n.isContextWithStartAndEndNode=s,n.getContextNode=l,n.toContextSpan=u,(a=n.FindReferencesUse||(n.FindReferencesUse={}))[a.Other=0]="Other",a[a.References=1]="References",a[a.Rename=2]="Rename",n.findReferencedSymbols=function(n,t,r,a,o){var s=e.getTouchingPropertyName(a,o),c=i.getReferencedSymbolsForNode(o,s,n,r,t,{use:1}),d=n.getTypeChecker(),p=d.getSymbolAtLocation(s);return c&&c.length?e.mapDefined(c,(function(n){var r=n.definition,a=n.references;return r&&{definition:d.runWithCancellationToken(t,(function(n){return function(n,t,r){var a=function(){switch(n.type){case 0:var a=_(p=n.symbol,t,r),i=a.displayParts,o=a.kind,s=i.map((function(e){return e.text})).join(""),c=p.declarations&&e.firstOrUndefined(p.declarations),u=c?e.getNameOfDeclaration(c)||c:r;return fa(fa({},m(u)),{name:s,kind:o,displayParts:i,context:l(c)});case 1:u=n.node;return fa(fa({},m(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=n.node;var d=e.tokenToString(u.kind);return fa(fa({},m(u)),{name:d,kind:"keyword",displayParts:[{text:d,kind:"keyword"}]});case 3:u=n.node;var p,f=(p=t.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,p,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return fa(fa({},m(u)),{name:"this",kind:"var",displayParts:f});case 4:u=n.node;return fa(fa({},m(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(n.reference),sourceFile:n.file,name:n.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(n.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(n)}}(),i=a.sourceFile,o=a.textSpan,s=a.name,c=a.kind,d=a.displayParts,p=a.context;return fa({containerKind:"",containerName:"",fileName:i.fileName,kind:c,name:s,textSpan:o,displayParts:d},u(o,i,p))}(r,n,s)})),references:a.map((function(e){return g(e,p)}))}})):void 0},n.getImplementationsAtPosition=function(n,t,r,a,i){var o,s=e.getTouchingPropertyName(a,i),c=d(n,t,r,s,i);if(205===s.parent.kind||202===s.parent.kind||206===s.parent.kind||106===s.kind)o=c&&pa([],c,!0);else for(var l=c&&pa([],c,!0),u=new e.Map;l&&l.length;){var p=l.shift();if(e.addToSeen(u,e.getNodeId(p.node))){o=e.append(o,p);var f=d(n,t,r,p.node,p.node.pos);f&&l.push.apply(l,f)}}var m=n.getTypeChecker();return e.map(o,(function(n){return function(n,t){var r=y(n);if(0!==n.kind){var a=n.node;return fa(fa({},r),function(n,t){var r=t.getSymbolAtLocation(e.isDeclaration(n)&&n.name?n.name:n);return r?_(r,t,n):204===n.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:225===n.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(n),displayParts:[]}}(a,t))}return fa(fa({},r),{kind:"",displayParts:[]})}(n,m)}))},n.findReferenceOrRenameEntries=function(n,t,r,a,o,s,c){return e.map(f(i.getReferencedSymbolsForNode(o,a,n,r,t,s)),(function(e){return c(e,a,n.getTypeChecker())}))},n.getReferenceEntriesForNode=p,n.toRenameLocation=function(n,t,r,a){return fa(fa({},y(n)),a&&function(n,t,r){if(0!==n.kind&&e.isIdentifier(t)){var a=n.node,i=n.kind,o=a.parent,s=t.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===a&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===i)return l;if(4===i)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return t===n.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(n.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(n,t,r))},n.toReferenceEntry=g,n.toHighlightSpan=function(e){var n=y(e);if(0===e.kind)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};var t=b(e.node),r=fa({textSpan:n.textSpan,kind:t?"writtenReference":"reference",isInString:2===e.kind||void 0},n.contextSpan&&{contextSpan:n.contextSpan});return{fileName:n.fileName,span:r}},n.getTextSpanOfEntry=v,function(t){function r(n,t,r){for(var a,i=0,o=t.get(n.path)||e.emptyArray;i<o.length;i++){var s=o[i];if(e.isReferencedFile(s)){var c=r.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(r.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(a=e.append(a,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return a}function a(n,t,r){if(n.parent&&e.isNamespaceExportDeclaration(n.parent)){var a=r.getAliasedSymbol(t),i=r.getMergedSymbol(a);if(a!==i)return i}}function i(n,t,r,a,i,o){var c=1536&n.flags&&n.declarations&&e.find(n.declarations,e.isSourceFile);if(c){var u=n.exports.get("export="),p=l(t,n,!!u,r,o);if(!u||!o.has(c.fileName))return p;var f=t.getTypeChecker();return s(t,p,d(n=e.skipAlias(u,f),void 0,r,o,f,a,i))}}function s(n){for(var t,r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];for(var i=0,o=r;i<o.length;i++){var s=o[i];if(s&&s.length)if(t)for(var l=function(r){if(!r.definition||0!==r.definition.type)return t.push(r),"continue";var a=r.definition.symbol,i=e.findIndex(t,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===a}));if(-1===i)return t.push(r),"continue";var o=t[i];t[i]={definition:o.definition,references:o.references.concat(r.references).sort((function(t,r){var a=c(n,t),i=c(n,r);if(a!==i)return e.compareValues(a,i);var o=v(t),s=v(r);return o.start!==s.start?e.compareValues(o.start,s.start):e.compareValues(o.length,s.length)}))}},u=0,d=s;u<d.length;u++){var p=d[u];l(p)}else t=s}return t}function c(e,n){var t=0===n.kind?e.getSourceFile(n.fileName):n.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function l(t,r,a,i,s){e.Debug.assert(!!r.valueDeclaration);var c=e.mapDefined(n.findModuleReferences(t,i,r),(function(n){if("import"===n.kind){var t=n.literal.parent;if(e.isLiteralTypeNode(t)){var r=e.cast(t.parent,e.isImportTypeNode);if(a&&!r.qualifier)return}return o(n.literal)}return{kind:0,fileName:n.referencingFile.fileName,textSpan:e.createTextSpanFromRange(n.ref)}}));if(r.declarations)for(var l=0,u=r.declarations;l<u.length;l++){switch((m=u[l]).kind){case 303:break;case 260:s.has(m.getSourceFile().fileName)&&c.push(o(m.name));break;default:e.Debug.assert(!!(33554432&r.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var d=r.exports.get("export=");if(null===d||void 0===d?void 0:d.declarations)for(var p=0,f=d.declarations;p<f.length;p++){var m,_=(m=f[p]).getSourceFile();if(s.has(_.fileName)){var g=e.isBinaryExpression(m)&&e.isPropertyAccessExpression(m.left)?m.left.expression:e.isExportAssignment(m)?e.Debug.checkDefined(e.findChildOfKind(m,93,_)):e.getNameOfDeclaration(m)||m;c.push(o(g))}}return c.length?[{definition:{type:0,symbol:r},references:c}]:e.emptyArray}function u(n){return 144===n.kind&&e.isTypeOperatorNode(n.parent)&&144===n.parent.operator}function d(n,t,r,a,i,o,s){var c=t&&function(n,t,r,a){var i=t.parent;if(e.isExportSpecifier(i)&&a)return k(t,n,i,r);return e.firstDefined(n.declarations,(function(a){if(!a.parent){if(33554432&n.flags)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(t.kind),": ").concat(e.Debug.formatSymbol(n)))}return e.isTypeLiteralNode(a.parent)&&e.isUnionTypeNode(a.parent.parent)?r.getPropertyOfType(r.getTypeFromTypeNode(a.parent.parent),n.name):void 0}))}(n,t,i,!K(s))||n,l=t?U(t,c):7,u=[],d=new _(r,a,t?function(n){switch(n.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(n.parent))return e.Debug.assert(n.parent.name===n),2;default:return 0}}(t):0,i,o,l,s,u),f=K(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(f)I(f.name,c,f,d.createSearch(t,n,void 0),d,!0,!0);else if(t&&88===t.kind&&"default"===c.escapedName&&c.parent)N(t,c,d),g(t,c,{exportingModuleSymbol:c.parent,exportKind:1},d);else{var m=d.createSearch(t,c,void 0,{allSearchSymbols:t?F(c,t,i,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});p(c,d,m)}return u}function p(n,t,r){var a=function(n){var t=n.declarations,r=n.flags,a=n.parent,i=n.valueDeclaration;if(i&&(212===i.kind||225===i.kind))return i;if(!t)return;if(8196&r){var o=e.find(t,(function(n){return e.hasEffectiveModifier(n,8)||e.isPrivateIdentifierClassElementDeclaration(n)}));return o?e.getAncestor(o,256):void 0}if(t.some(e.isObjectBindingElementWithoutPropertyName))return;var s,c=a&&!(262144&n.flags);if(c&&(!e.isExternalModuleSymbol(a)||a.globalExports))return;for(var l=0,u=t;l<u.length;l++){var d=u[l],p=e.getContainerNode(d);if(s&&s!==p)return;if(!p||303===p.kind&&!e.isExternalOrCommonJsModule(p))return;if(s=p,e.isFunctionExpression(s))for(var f=void 0;f=e.getNextJSDocCommentLocation(s);)s=f}return c?s.getSourceFile():s}(n);if(a)D(a,a.getSourceFile(),r,t,!(e.isSourceFile(a)&&!e.contains(t.sourceFiles,a)));else for(var i=0,o=t.sourceFiles;i<o.length;i++){var s=o[i];t.cancellationToken.throwIfCancellationRequested(),b(s,r,t)}}var f,m;t.getReferencedSymbolsForNode=function(n,t,c,p,f,m,_){var g,y;if(void 0===m&&(m={}),void 0===_&&(_=new e.Set(p.map((function(e){return e.fileName})))),1===m.use?t=e.getAdjustedReferenceLocation(t):2===m.use&&(t=e.getAdjustedRenameLocation(t)),e.isSourceFile(t)){var h=e.GoToDefinition.getReferenceAtPosition(t,n,c);if(!(null===h||void 0===h?void 0:h.file))return;var v=c.getTypeChecker().getMergedSymbol(h.file.symbol);if(v)return l(c,v,!1,p,_);if(!(A=c.getFileIncludeReasons()))return;return[{definition:{type:5,reference:h.reference,file:t},references:r(h.file,A,c)||e.emptyArray}]}if(!m.implementations){var b=function(n,t,r){if(e.isTypeKeyword(n.kind)){if(114===n.kind&&e.isVoidExpression(n.parent))return;if(144===n.kind&&!u(n))return;return function(n,t,r,a){var i=e.flatMap(n,(function(n){return r.throwIfCancellationRequested(),e.mapDefined(T(n,e.tokenToString(t),n),(function(e){if(e.kind===t&&(!a||a(e)))return o(e)}))}));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,n.kind,r,144===n.kind?u:void 0)}if(e.isStaticModifier(n)&&e.isClassStaticBlockDeclaration(n.parent))return[{definition:{type:2,node:n},references:[o(n)]}];if(e.isJumpStatementTarget(n)){var a=e.getTargetLabel(n.parent,n.text);return a&&x(a.parent,a)}if(e.isLabelOfLabeledStatement(n))return x(n.parent,n);if(e.isThis(n))return function(n,t,r){var a=e.getThisContainer(n,!1),i=32;switch(a.kind){case 168:case 167:if(e.isObjectLiteralMethod(a)){i&=e.getSyntacticModifierFlags(a),a=a.parent;break}case 166:case 165:case 170:case 171:case 172:i&=e.getSyntacticModifierFlags(a),a=a.parent;break;case 303:if(e.isExternalModule(a)||P(n))return;case 255:case 212:break;default:return}var s=e.flatMap(303===a.kind?t:[a.getSourceFile()],(function(n){return r.throwIfCancellationRequested(),T(n,"this",e.isSourceFile(a)?n:a).filter((function(n){if(!e.isThis(n))return!1;var t=e.getThisContainer(n,!1);switch(a.kind){case 212:case 255:return a.symbol===t.symbol;case 168:case 167:return e.isObjectLiteralMethod(a)&&a.symbol===t.symbol;case 225:case 256:case 204:return t.parent&&a.symbol===t.parent.symbol&&e.isStatic(t)===!!i;case 303:return 303===t.kind&&!e.isExternalModule(t)&&!P(n)}}))})).map((function(e){return o(e)}));return[{definition:{type:3,node:e.firstDefined(s,(function(n){return e.isParameter(n.node.parent)?n.node:void 0}))||n},references:s}]}(n,t,r);if(106===n.kind)return function(n){var t=e.getSuperContainer(n,!1);if(!t)return;var r=32;switch(t.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:r&=e.getSyntacticModifierFlags(t),t=t.parent;break;default:return}var a=t.getSourceFile(),i=e.mapDefined(T(a,"super",t),(function(n){if(106===n.kind){var a=e.getSuperContainer(n,!1);return a&&e.isStatic(a)===!!r&&a.parent.symbol===t.symbol?o(n):void 0}}));return[{definition:{type:0,symbol:t.symbol},references:i}]}(n);return}(t,p,f);if(b)return b}var E=c.getTypeChecker(),S=E.getSymbolAtLocation(e.isConstructorDeclaration(t)&&t.parent.name||t);if(S){if("export="===S.escapedName)return l(c,S.parent,!1,p,_);var L=i(S,c,p,f,m,_);if(L&&!(33554432&S.flags))return L;var D=a(t,S,E),C=D&&i(D,c,p,f,m,_);return s(c,L,d(S,t,p,_,E,f,m),C)}if(!m.implementations&&e.isStringLiteralLike(t)){if(e.isModuleSpecifierLike(t)){var A=c.getFileIncludeReasons(),I=null===(y=null===(g=t.getSourceFile().resolvedModules)||void 0===g?void 0:g.get(t.text,e.getModeForUsageLocation(t.getSourceFile(),t)))||void 0===y?void 0:y.resolvedFileName,k=I?c.getSourceFile(I):void 0;if(k)return[{definition:{type:4,node:t},references:r(k,A,c)||e.emptyArray}]}return function(n,t,r,a){var i=e.getContextualTypeFromParentOrAncestorTypeNode(n,r),s=e.flatMap(t,(function(t){return a.throwIfCancellationRequested(),e.mapDefined(T(t,n.text),(function(t){if(e.isStringLiteralLike(t)&&t.text===n.text){if(!i)return o(t,2);var a=e.getContextualTypeFromParentOrAncestorTypeNode(t,r);if(i!==r.getStringType()&&i===a)return o(t,2)}}))}));return[{definition:{type:4,node:n},references:s}]}(t,p,E,f)}},t.getReferencesForFileName=function(n,t,a,i){var o,s;void 0===i&&(i=new e.Set(a.map((function(e){return e.fileName}))));var c=null===(o=t.getSourceFile(n))||void 0===o?void 0:o.symbol;if(c)return(null===(s=l(t,c,!1,a,i)[0])||void 0===s?void 0:s.references)||e.emptyArray;var u=t.getFileIncludeReasons(),d=t.getSourceFile(n);return d&&u&&r(d,u,t)||e.emptyArray},(m=f||(f={}))[m.None=0]="None",m[m.Constructor=1]="Constructor",m[m.Class=2]="Class";var _=function(){function t(n,t,r,a,i,o,s,c){this.sourceFiles=n,this.sourceFilesSet=t,this.specialSearchKind=r,this.checker=a,this.cancellationToken=i,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return t.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},t.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=n.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)},t.prototype.createSearch=function(n,t,r,a){void 0===a&&(a={});var i=a.text,o=void 0===i?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(t)||function(n){if(33555968&n.flags){var t=n.declarations&&e.find(n.declarations,(function(n){return!e.isSourceFile(n)&&!e.isModuleDeclaration(n)}));return t&&t.symbol}}(t)||t)):i,s=a.allSearchSymbols,c=void 0===s?[t]:s,l=e.escapeLeadingUnderscores(o),u=this.options.implementations&&n?function(n,t,r){var a=e.isRightSideOfPropertyAccess(n)?n.parent:void 0,i=a&&r.getTypeAtLocation(a.expression),o=e.mapDefined(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0}));return 0===o.length?void 0:o}(n,t,this.checker):void 0;return{symbol:t,comingFrom:r,text:o,escapedText:l,parents:u,allSearchSymbols:c,includes:function(n){return e.contains(c,n)}}},t.prototype.referenceAdder=function(n){var t=e.getSymbolId(n),r=this.symbolIdToReferences[t];return r||(r=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:n},references:r})),function(e,n){return r.push(o(e,n))}},t.prototype.addStringOrCommentReference=function(e,n){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:n}]})},t.prototype.markSearchedSymbols=function(n,t){for(var r=e.getNodeId(n),a=this.sourceFileToSeenSymbols[r]||(this.sourceFileToSeenSymbols[r]=new e.Set),i=!1,o=0,s=t;o<s.length;o++){var c=s[o];i=e.tryAddToSet(a,e.getSymbolId(c))||i}return i},t}();function g(e,n,t,r){var a=r.getImportSearches(n,t),i=a.importSearches,o=a.singleReferences,s=a.indirectUsers;if(o.length)for(var c=r.referenceAdder(n),l=0,u=o;l<u.length;l++){var d=u[l];y(d,r)&&c(d)}for(var p=0,f=i;p<f.length;p++){var m=f[p],_=m[0],g=m[1];L(_.getSourceFile(),r.createSearch(_,g,1),r)}if(s.length){var h=void 0;switch(t.exportKind){case 0:h=r.createSearch(e,n,1);break;case 1:h=2===r.options.use?void 0:r.createSearch(e,n,1,{text:"default"})}if(h)for(var v=0,E=s;v<E.length;v++){b(E[v],h,r)}}}function y(n,t){return!!C(n,t)&&(2!==t.options.use||!!e.isIdentifier(n)&&!(e.isImportOrExportSpecifier(n.parent)&&"default"===n.escapedText))}function h(e,n){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t],i=a.getSourceFile();L(i,n.createSearch(a,e,0),n,n.includesSourceFile(i))}}function b(n,t,r){void 0!==e.getNameTable(n).get(t.escapedText)&&L(n,t,r)}function E(n,t,r,a,i){void 0===i&&(i=r);var o=e.isParameterPropertyDeclaration(n.parent,n.parent.parent)?e.first(t.getSymbolsOfParameterPropertyDeclaration(n.parent,n.text)):t.getSymbolAtLocation(n);if(o)for(var s=0,c=T(r,o.name,i);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==n&&l.escapedText===n.escapedText){var u=t.getSymbolAtLocation(l);if(u===o||t.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&k(l,u,l.parent,t)===o){var d=a(l);if(d)return d}}}}function T(n,t,r){return void 0===r&&(r=n),S(n,t,r).map((function(t){return e.getTouchingPropertyName(n,t)}))}function S(n,t,r){void 0===r&&(r=n);var a=[];if(!t||!t.length)return a;for(var i=n.text,o=i.length,s=t.length,c=i.indexOf(t,r.pos);c>=0&&!(c>r.end);){var l=c+s;0!==c&&e.isIdentifierPart(i.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(i.charCodeAt(l),99)||a.push(c),c=i.indexOf(t,c+s+1)}return a}function x(n,t){var r=n.getSourceFile(),a=t.text,i=e.mapDefined(T(r,a,n),(function(n){return n===t||e.isJumpStatementTarget(n)&&e.getTargetLabel(n,a)===t?o(n):void 0}));return[{definition:{type:1,node:t},references:i}]}function L(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),D(e,e,n,t,r)}function D(e,n,t,r,a){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var i=0,o=S(n,t.text,e);i<o.length;i++){A(n,o[i],t,r,a)}}function C(n,t){return!!(e.getMeaningFromLocation(n)&t.searchMeaning)}function A(t,r,a,i,o){var s=e.getTouchingPropertyName(t,r);if(function(n,t){switch(n.kind){case 80:if(e.isJSDocMemberName(n.parent))return!0;case 79:return n.text.length===t.length;case 14:case 10:var r=n;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||e.isNameOfModuleDeclaration(n)||e.isExpressionOfExternalModuleImportEqualsDeclaration(n)||e.isCallExpression(n.parent)&&e.isBindableObjectDefinePropertyCall(n.parent)&&n.parent.arguments[1]===n)&&r.text.length===t.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)&&n.text.length===t.length;case 88:return"default".length===t.length;default:return!1}}(s,a.text)){if(C(s,i)){var c=i.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void I(s,c,l,a,i,o);var u=function(n,t,r,a){var i=a.checker;return G(t,r,i,!1,2!==a.options.use||!!a.options.providePrefixAndSuffixTextForRename,(function(r,a,i,o){return i&&B(t)!==B(i)&&(i=void 0),n.includes(i||a||r)?{symbol:!a||6&e.getCheckFlags(r)?r:a,kind:o}:void 0}),(function(e){return!(n.parents&&!n.parents.some((function(n){return M(e.parent,n,a.inheritsFromCache,i)})))}))}(a,c,s,i);if(u){switch(i.specialSearchKind){case 0:o&&N(s,u,i);break;case 1:!function(n,t,r,a){e.isNewExpressionTarget(n)&&N(n,r.symbol,a);var i=function(){return a.referenceAdder(r.symbol)};if(e.isClassLike(n.parent))e.Debug.assert(88===n.kind||n.parent.name===n),function(n,t,r){var a=R(n);if(a&&a.declarations)for(var i=0,o=a.declarations;i<o.length;i++){var s=o[i],c=e.findChildOfKind(s,134,t);e.Debug.assert(170===s.kind&&!!c),r(c)}n.exports&&n.exports.forEach((function(n){var t=n.valueDeclaration;if(t&&168===t.kind){var a=t.body;a&&j(a,108,(function(n){e.isNewExpressionTarget(n)&&r(n)}))}}))}(r.symbol,t,i());else{var o=(s=n,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(s).parent));o&&(function(n,t){var r=R(n.symbol);if(!r||!r.declarations)return;for(var a=0,i=r.declarations;a<i.length;a++){var o=i[a];e.Debug.assert(170===o.kind);var s=o.body;s&&j(s,106,(function(n){e.isCallExpressionTarget(n)&&t(n)}))}}(o,i()),function(e,n){if(function(e){return!!R(e.symbol)}(e))return;var t=e.symbol,r=n.createSearch(void 0,t,void 0);p(t,n,r)}(o,a))}var s}(s,t,a,i);break;case 2:!function(n,t,r){N(n,t.symbol,r);var a=n.parent;if(2===r.options.use||!e.isClassLike(a))return;e.Debug.assert(a.name===n);for(var i=r.referenceAdder(t.symbol),o=0,s=a.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&(c.body&&c.body.forEachChild((function n(t){108===t.kind?i(t):e.isFunctionLike(t)||e.isClassLike(t)||t.forEachChild(n)})))}}(s,a,i);break;default:e.Debug.assertNever(i.specialSearchKind)}e.isInJSFile(s)&&202===s.parent.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(s.parent)&&!(c=s.parent.symbol)||function(e,t,r,a){var i=n.getImportOrExportSymbol(e,t,a.checker,1===r.comingFrom);if(!i)return;var o=i.symbol;0===i.kind?K(a.options)||h(o,a):g(e,o,i.exportInfo,a)}(s,c,a,i)}else!function(n,t,r){var a=n.flags,i=n.valueDeclaration,o=r.checker.getShorthandAssignmentValueSymbol(i),s=i&&e.getNameOfDeclaration(i);33554432&a||!s||!t.includes(o)||N(s,o,r)}(c,a,i)}}}}else!i.options.implementations&&(i.options.findInStrings&&e.isInString(t,r)||i.options.findInComments&&e.isInNonReferenceComment(t,r))&&i.addStringOrCommentReference(t.fileName,e.createTextSpan(r,a.text.length))}function I(t,r,a,i,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=a.parent,u=a.propertyName,d=a.name,p=l.parent,f=k(t,r,a,o.checker);if(c||i.includes(f)){if(u?t===u?(p.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(d)&&N(d,e.Debug.checkDefined(a.symbol),o)):o.markSeenReExportRHS(t)&&b():2===o.options.use&&"default"===d.escapedText||b(),!K(o.options)||c){var m=88===t.originalKeywordKind||88===a.name.originalKeywordKind?1:0,_=e.Debug.checkDefined(a.symbol),y=n.getExportInfo(_,m,o.checker);y&&g(t,_,y,o)}if(1!==i.comingFrom&&p.moduleSpecifier&&!u&&!K(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(a);v&&h(v,o)}}function b(){s&&N(t,f,o)}}function k(n,t,r,a){return function(n,t){var r=t.parent,a=t.propertyName,i=t.name;return e.Debug.assert(a===n||i===n),a?a===n:!r.parent.moduleSpecifier}(n,r)&&a.getExportSpecifierLocalTargetSymbol(r)||t}function N(n,t,r){var a="kind"in t?t:{kind:void 0,symbol:t},i=a.kind,o=a.symbol,s=r.referenceAdder(o);r.options.implementations?function(n,t,r){if(e.isDeclarationName(n)&&(a=n.parent,8388608&a.flags?!e.isInterfaceDeclaration(a)&&!e.isTypeAliasDeclaration(a):e.isVariableLike(a)?e.hasInitializer(a):e.isFunctionLikeDeclaration(a)?a.body:e.isClassLike(a)||e.isModuleOrEnumDeclaration(a)))return void t(n);var a;if(79!==n.kind)return;295===n.parent.kind&&V(n,r.checker,t);var i=O(n);if(i)return void t(i);var o=e.findAncestor(n,(function(n){return!e.isQualifiedName(n.parent)&&!e.isTypeNode(n.parent)&&!e.isTypeElement(n.parent)})),s=o.parent;if(e.hasType(s)&&s.type===o&&r.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;234===c.kind?e.forEachReturnStatement(c,(function(e){e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression);function l(e){w(e)&&t(e)}}(n,s,r):s(n,i)}function R(e){return e.members&&e.members.get("__constructor")}function O(n){return e.isIdentifier(n)||e.isPropertyAccessExpression(n)?O(n.parent):e.isExpressionWithTypeArguments(n)?e.tryCast(n.parent.parent,e.isClassLike):void 0}function w(e){switch(e.kind){case 211:return w(e.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function M(n,t,r,a){if(n===t)return!0;var i=e.getSymbolId(n)+","+e.getSymbolId(t),o=r.get(i);if(void 0!==o)return o;r.set(i,!1);var s=!!n.declarations&&n.declarations.some((function(n){return e.getAllSuperTypeNodes(n).some((function(e){var n=a.getTypeAtLocation(e);return!!n&&!!n.symbol&&M(n.symbol,t,r,a)}))}));return r.set(i,s),s}function P(e){return 79===e.kind&&163===e.parent.kind&&e.parent.name===e}function F(e,n,t,r,a,i){var o=[];return G(e,n,t,r,!(r&&a),(function(n,t,r){r&&B(e)!==B(r)&&(r=void 0),o.push(r||t||n)}),(function(){return!i})),o}function G(n,t,r,i,o,s,c){var l=e.getContainingObjectLiteralElement(t);if(l){var u=r.getShorthandAssignmentValueSymbol(t.parent);if(u&&i)return s(u,void 0,void 0,3);var d=r.getContextualType(l.parent),p=d&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,r,d,!0),(function(e){return x(e,4)}));if(p)return p;var f=function(n,t){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(n):void 0}(t,r),m=f&&s(f,void 0,void 0,4);if(m)return m;var _=u&&s(u,void 0,void 0,3);if(_)return _}var g=a(t,n,r);if(g){var y=s(g,void 0,void 0,1);if(y)return y}var h=x(n);if(h)return h;if(n.valueDeclaration&&e.isParameterPropertyDeclaration(n.valueDeclaration,n.valueDeclaration.parent)){var v=r.getSymbolsOfParameterPropertyDeclaration(e.cast(n.valueDeclaration,e.isParameter),n.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),x(1&n.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(n,274);if(!i||b&&!b.propertyName){var E=b&&r.getExportSpecifierLocalTargetSymbol(b);if(E){var T=s(E,void 0,void 0,1);if(T)return T}}if(!i){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(t.parent)?e.getPropertySymbolFromBindingElement(r,t.parent):void 0:L(n,r))&&x(S,4)}if(e.Debug.assert(i),o)return(S=L(n,r))&&x(S,4);function x(n,t){return e.firstDefined(r.getRootSymbols(n),(function(a){return s(n,a,void 0,t)||(a.parent&&96&a.parent.flags&&c(a)?function(n,t,r,a){var i=new e.Map;return o(n);function o(n){if(96&n.flags&&e.addToSeen(i,e.getSymbolId(n)))return e.firstDefined(n.declarations,(function(n){return e.firstDefined(e.getAllSuperTypeNodes(n),(function(n){var i=r.getTypeAtLocation(n),s=i&&i.symbol&&r.getPropertyOfType(i,t);return i&&s&&(e.firstDefined(r.getRootSymbols(s),a)||o(i.symbol))}))}))}}(a.parent,a.name,r,(function(e){return s(n,a,e,t)})):void 0)}))}function L(n,t){var r=e.getDeclarationOfKind(n,202);if(r&&e.isObjectBindingElementWithoutPropertyName(r))return e.getPropertySymbolFromBindingElement(t,r)}}function B(n){return!!n.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(n.valueDeclaration))}function U(n,t){var r=e.getMeaningFromLocation(n),a=t.declarations;if(a){var i=void 0;do{i=r;for(var o=0,s=a;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&r&&(r|=l)}}while(r!==i)}return r}function V(n,t,r){var a=t.getSymbolAtLocation(n),i=t.getShorthandAssignmentValueSymbol(a.valueDeclaration);if(i)for(var o=0,s=i.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&r(c)}}function j(n,t,r){e.forEachChild(n,(function(e){e.kind===t&&r(e),j(e,t,r)}))}function K(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}t.eachExportReference=function(t,r,a,i,o,s,c,l){for(var u=n.createImportTracker(t,new e.Set(t.map((function(e){return e.fileName}))),r,a)(i,{exportKind:c?1:0,exportingModuleSymbol:o},!1),d=u.importSearches,p=u.indirectUsers,f=0,m=d;f<m.length;f++){l(m[f][0])}for(var _=0,g=p;_<g.length;_++)for(var y=0,h=T(g[_],c?"default":s);y<h.length;y++){var v=h[y],b=r.getSymbolAtLocation(v),E=e.some(null===b||void 0===b?void 0:b.declarations,(function(n){return!!e.tryCast(n,e.isExportAssignment)}));!e.isIdentifier(v)||e.isImportOrExportSpecifier(v.parent)||b!==i&&!E||l(v)}},t.isSymbolReferencedInFile=function(e,n,t,r){return void 0===r&&(r=t),E(e,n,t,(function(){return!0}),r)||!1},t.eachSymbolReferenceInFile=E,t.someSignatureUsage=function(n,t,r,a){if(!n.name||!e.isIdentifier(n.name))return!1;for(var i=e.Debug.checkDefined(r.getSymbolAtLocation(n.name)),o=0,s=t;o<s.length;o++)for(var c=0,l=T(s[o],i.name);c<l.length;c++){var u=l[c];if(e.isIdentifier(u)&&u!==n.name&&u.escapedText===n.name.escapedText){var d=e.climbPastPropertyAccess(u),p=e.isCallExpression(d.parent)&&d.parent.expression===d?d.parent:void 0,f=r.getSymbolAtLocation(u);if(f&&r.getRootSymbols(f).some((function(e){return e===i}))&&a(u,p))return!0}}return!1},t.getIntersectingMeaningFromDeclarations=U,t.getReferenceEntriesForShorthandPropertyAssignment=V}(i=n.Core||(n.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(ha||(ha={})),function(e){!function(n){function t(n){return(e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isClassExpression(n))&&e.isVariableDeclaration(n.parent)&&n===n.parent.initializer&&e.isIdentifier(n.parent.name)&&!!(2&e.getCombinedNodeFlags(n.parent))}function r(n){return e.isSourceFile(n)||e.isModuleDeclaration(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.isClassDeclaration(n)||e.isClassExpression(n)||e.isClassStaticBlockDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isGetAccessorDeclaration(n)||e.isSetAccessorDeclaration(n)}function a(n){return e.isSourceFile(n)||e.isModuleDeclaration(n)&&e.isIdentifier(n.name)||e.isFunctionDeclaration(n)||e.isClassDeclaration(n)||e.isClassStaticBlockDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isGetAccessorDeclaration(n)||e.isSetAccessorDeclaration(n)||function(n){return(e.isFunctionExpression(n)||e.isClassExpression(n))&&e.isNamedDeclaration(n)}(n)||t(n)}function i(n){return e.isSourceFile(n)?n:e.isNamedDeclaration(n)?n.name:t(n)?n.parent.name:e.Debug.checkDefined(n.modifiers&&e.find(n.modifiers,o))}function o(e){return 88===e.kind}function s(e,n){var t=i(n);return t&&e.getSymbolAtLocation(t)}function c(n,t){if(t.body)return t;if(e.isConstructorDeclaration(t))return e.getFirstConstructorWithBody(t.parent);if(e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)){var r=s(n,t);return r&&r.valueDeclaration&&e.isFunctionLikeDeclaration(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function l(n,t){var r,i=s(n,t);if(i&&i.declarations){var o=e.indicesOf(i.declarations),c=e.map(i.declarations,(function(e){return{file:e.getSourceFile().fileName,pos:e.pos}}));o.sort((function(n,t){return e.compareStringsCaseSensitive(c[n].file,c[t].file)||c[n].pos-c[t].pos}));for(var l=e.map(o,(function(e){return i.declarations[e]})),u=void 0,d=0,p=l;d<p.length;d++){var f=p[d];a(f)&&(u&&u.parent===f.parent&&u.end===f.pos||(r=e.append(r,f)),u=f)}}return r}function u(n,t){var r,a,i;return e.isClassStaticBlockDeclaration(t)?t:e.isFunctionLikeDeclaration(t)?null!==(a=null!==(r=c(n,t))&&void 0!==r?r:l(n,t))&&void 0!==a?a:t:null!==(i=l(n,t))&&void 0!==i?i:t}function d(n,i){for(var o=n.getTypeChecker(),s=!1;;){if(a(i))return u(o,i);var c;if(r(i))return(c=e.findAncestor(i,a))&&u(o,c);if(e.isDeclarationName(i))return a(i.parent)?u(o,i.parent):r(i.parent)?(c=e.findAncestor(i.parent,a))&&u(o,c):e.isVariableDeclaration(i.parent)&&i.parent.initializer&&t(i.parent.initializer)?i.parent.initializer:void 0;if(e.isConstructorDeclaration(i))return a(i.parent)?i.parent:void 0;if(124!==i.kind||!e.isClassStaticBlockDeclaration(i.parent)){if(e.isVariableDeclaration(i)&&i.initializer&&t(i.initializer))return i.initializer;if(!s){var l=o.getSymbolAtLocation(i);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,i=l.valueDeclaration;continue}}return}i=i.parent}}function p(n,r){var a=r.getSourceFile(),i=function(n,r){if(e.isSourceFile(r))return{text:r.fileName,pos:0,end:0};if((e.isFunctionDeclaration(r)||e.isClassDeclaration(r))&&!e.isNamedDeclaration(r)){var a=r.modifiers&&e.find(r.modifiers,o);if(a)return{text:"default",pos:a.getStart(),end:a.getEnd()}}if(e.isClassStaticBlockDeclaration(r)){var i=r.getSourceFile(),s=e.skipTrivia(i.text,e.moveRangePastModifiers(r).pos),c=s+6,l=(d=(u=n.getTypeChecker()).getSymbolAtLocation(r.parent))?"".concat(u.symbolToString(d,r.parent)," "):"";return{text:"".concat(l,"static {}"),pos:s,end:c}}var u,d,p=t(r)?r.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(r),"Expected call hierarchy item to have a name"),f=e.isIdentifier(p)?e.idText(p):e.isStringOrNumericLiteralLike(p)?p.text:e.isComputedPropertyName(p)&&e.isStringOrNumericLiteralLike(p.expression)?p.expression.text:void 0;if(void 0===f&&(d=(u=n.getTypeChecker()).getSymbolAtLocation(p))&&(f=u.symbolToString(d,r)),void 0===f){var m=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});f=e.usingSingleLineStringWriter((function(e){return m.writeNode(4,r,r.getSourceFile(),e)}))}return{text:f,pos:p.getStart(),end:p.getEnd()}}(n,r),s=function(n){var r,a;if(t(n))return e.isModuleBlock(n.parent.parent.parent.parent)&&e.isIdentifier(n.parent.parent.parent.parent.parent.name)?n.parent.parent.parent.parent.parent.name.getText():void 0;switch(n.kind){case 171:case 172:case 168:return 204===n.parent.kind?null===(r=e.getAssignedName(n.parent))||void 0===r?void 0:r.getText():null===(a=e.getNameOfDeclaration(n.parent))||void 0===a?void 0:a.getText();case 255:case 256:case 260:if(e.isModuleBlock(n.parent)&&e.isIdentifier(n.parent.parent.name))return n.parent.parent.name.getText()}}(r),c=e.getNodeKind(r),l=e.getNodeModifiers(r),u=e.createTextSpanFromBounds(e.skipTrivia(a.text,r.getFullStart(),!1,!0),r.getEnd()),d=e.createTextSpanFromBounds(i.pos,i.end);return{file:a.fileName,kind:c,kindModifiers:l,name:i.text,containerName:s,span:u,selectionSpan:d}}function f(e){return void 0!==e}function m(n){if(1===n.kind){var t=n.node;if(e.isCallOrNewExpressionTarget(t,!0,!0)||e.isTaggedTemplateTag(t,!0,!0)||e.isDecoratorTarget(t,!0,!0)||e.isJsxOpeningLikeElementTagName(t,!0,!0)||e.isRightSideOfPropertyAccess(t)||e.isArgumentExpressionOfElementAccess(t)){var r=t.getSourceFile();return{declaration:e.findAncestor(t,a)||r,range:e.createTextRangeFromNode(t,r)}}}}function _(n){return e.getNodeId(n.declaration)}function g(n,t){var r=[],i=function(n,t){function r(r){var a=e.isTaggedTemplateExpression(r)?r.tag:e.isJsxOpeningLikeElement(r)?r.tagName:e.isAccessExpression(r)||e.isClassStaticBlockDeclaration(r)?r:r.expression,i=d(n,a);if(i){var o=e.createTextRangeFromNode(a,r.getSourceFile());if(e.isArray(i))for(var s=0,c=i;s<c.length;s++){var l=c[s];t.push({declaration:l,range:o})}else t.push({declaration:i,range:o})}}return function n(t){if(t&&!(8388608&t.flags))if(a(t)){if(e.isClassLike(t))for(var i=0,o=t.members;i<o.length;i++){var s=o[i];s.name&&e.isComputedPropertyName(s.name)&&n(s.name.expression)}}else{switch(t.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:return void r(t);case 210:case 228:return void n(t.expression);case 253:case 163:return n(t.name),void n(t.initializer);case 207:case 208:return r(t),n(t.expression),void e.forEach(t.arguments,n);case 209:return r(t),n(t.tag),void n(t.template);case 279:case 278:return r(t),n(t.tagName),void n(t.attributes);case 164:return r(t),void n(t.expression);case 205:case 206:r(t),e.forEachChild(t,n)}e.isPartOfTypeNode(t)||e.forEachChild(t,n)}}}(n,r);switch(t.kind){case 303:!function(n,t){e.forEach(n.statements,t)}(t,i);break;case 260:!function(n,t){!e.hasSyntacticModifier(n,2)&&n.body&&e.isModuleBlock(n.body)&&e.forEach(n.body.statements,t)}(t,i);break;case 255:case 212:case 213:case 168:case 171:case 172:!function(n,t,r){var a=c(n,t);a&&(e.forEach(a.parameters,r),r(a.body))}(n.getTypeChecker(),t,i);break;case 256:case 225:!function(n,t){e.forEach(n.decorators,t);var r=e.getClassExtendsHeritageElement(n);r&&t(r.expression);for(var a=0,i=n.members;a<i.length;a++){var o=i[a];e.forEach(o.decorators,t),e.isPropertyDeclaration(o)?t(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,t),t(o.body)):e.isClassStaticBlockDeclaration(o)&&t(o)}}(t,i);break;case 169:!function(e,n){n(e.body)}(t,i);break;default:e.Debug.assertNever(t)}return r}n.resolveCallHierarchyDeclaration=d,n.createCallHierarchyItem=p,n.getIncomingCalls=function(n,t,r){if(e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isClassStaticBlockDeclaration(t))return[];var a=i(t),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(n,r,n.getSourceFiles(),a,0,{use:1},m),f);return o?e.group(o,_,(function(t){return function(n,t){return r=p(n,t[0].declaration),a=e.map(t,(function(n){return e.createTextSpanFromRange(n.range)})),{from:r,fromSpans:a};var r,a}(n,t)})):[]},n.getOutgoingCalls=function(n,t){return 8388608&t.flags||e.isMethodSignature(t)?[]:e.group(g(n,t),_,(function(t){return function(n,t){return r=p(n,t[0].declaration),a=e.map(t,(function(n){return e.createTextSpanFromRange(n.range)})),{to:r,fromSpans:a};var r,a}(n,t)}))}}(e.CallHierarchy||(e.CallHierarchy={}))}(ha||(ha={})),function(e){function n(n,r,a,i){var o=a(n);return function(n){var s=i&&i.tryGetSourcePosition({fileName:n,pos:0}),c=function(n){if(a(n)===o)return r;var t=e.tryRemoveDirectoryPrefix(n,o,a);return void 0===t?void 0:r+"/"+t}(s?s.fileName:n);return s?void 0===c?void 0:function(n,r,a,i){var o=e.getRelativePathFromFile(n,r,i);return t(e.getDirectoryPath(a),o)}(s.fileName,c,n,a):c}}function t(n,t){return e.ensurePathIsNonModuleName(function(n,t){return e.normalizePath(e.combinePaths(n,t))}(n,t))}function r(n,t,r,a){if(t){if(t.resolvedModule){var i=c(t.resolvedModule.resolvedFileName);if(i)return i}var o=e.forEach(t.failedLookupLocations,(function(n){var t=r(n);return t&&e.find(a,(function(e){return e.fileName===t}))?s(n):void 0}))||e.pathIsRelative(n.text)&&e.forEach(t.failedLookupLocations,s);return o||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function s(n){return e.endsWith(n,"/package.json")?void 0:c(n)}function c(e){var n=r(e);return n&&{newFileName:n,updated:!0}}}function a(n,t){return e.createRange(n.getStart(t)+1,n.end-1)}function i(n,t){if(e.isObjectLiteralExpression(n))for(var r=0,a=n.properties;r<a.length;r++){var i=a[r];e.isPropertyAssignment(i)&&e.isStringLiteral(i.name)&&t(i,i.name.text)}}e.getEditsForFileRename=function(o,s,c,l,u,d,p){var f=e.hostUsesCaseSensitiveFileNames(l),m=e.createGetCanonicalFileName(f),_=n(s,c,m,p),g=n(c,s,m,p);return e.textChanges.ChangeTracker.with({host:l,formatContext:u,preferences:d},(function(n){!function(n,r,o,s,c,l,u){var d=n.getCompilerOptions().configFile;if(!d)return;var p=e.getDirectoryPath(d.fileName),f=e.getTsConfigObjectLiteralExpression(d);if(!f)return;function m(n){for(var t=!1,r=0,a=e.isArrayLiteralExpression(n.initializer)?n.initializer.elements:[n.initializer];r<a.length;r++){t=_(a[r])||t}return t}function _(n){if(!e.isStringLiteral(n))return!1;var i=t(p,n.text),s=o(i);return void 0!==s&&(r.replaceRangeWithText(d,a(n,d),g(s)),!0)}function g(n){return e.getRelativePathFromDirectory(p,n,!u)}i(f,(function(n,t){switch(t){case"files":case"include":case"exclude":if(m(n)||"include"!==t||!e.isArrayLiteralExpression(n.initializer))return;var a=e.mapDefined(n.initializer.elements,(function(n){return e.isStringLiteral(n)?n.text:void 0}));if(0===a.length)return;var o=e.getFileMatcherPatterns(p,[],a,u,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(c)&&r.insertNodeAfter(d,e.last(n.initializer.elements),e.factory.createStringLiteral(g(c))));case"compilerOptions":return void i(n.initializer,(function(n,t){var r=e.getOptionFromName(t);r&&(r.isFilePath||"list"===r.type&&r.element.isFilePath)?m(n):"paths"===t&&i(n.initializer,(function(n){if(e.isArrayLiteralExpression(n.initializer))for(var t=0,r=n.initializer.elements;t<r.length;t++){_(r[t])}}))}))}}))}(o,n,_,s,c,l.getCurrentDirectory(),f),function(n,i,o,s,c,l){for(var u=n.getSourceFiles(),d=function(d){var p=o(d.fileName),f=null!==p&&void 0!==p?p:d.fileName,m=e.getDirectoryPath(f),_=s(d.fileName),g=_||d.fileName,y=e.getDirectoryPath(g),h=void 0!==p||void 0!==_;!function(n,t,r,i){for(var o=0,s=n.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(d=r(c.fileName))&&d!==n.text.slice(c.pos,c.end)&&t.replaceRangeWithText(n,c,d)}for(var l=0,u=n.imports;l<u.length;l++){var d,p=u[l];void 0!==(d=i(p))&&d!==p.text&&t.replaceRangeWithText(n,a(p,n),d)}}(d,i,(function(n){if(e.pathIsRelative(n)){var r=t(y,n),a=o(r);return void 0===a?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(m,a,l))}}),(function(t){var a=n.getTypeChecker().getSymbolAtLocation(t);if(!(null===a||void 0===a?void 0:a.declarations)||!a.declarations.some((function(n){return e.isAmbientModule(n)}))){var i=void 0!==_?r(t,e.resolveModuleName(t.text,g,n.getCompilerOptions(),c),o,u):function(n,t,a,i,o,s){if(n){var c=e.find(n.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}var u=e.getModeForUsageLocation(a,t);return r(t,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,a.fileName,u):i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,a.fileName,u),s,i.getSourceFiles())}(a,t,d,n,c,o);return void 0!==i&&(i.updated||h&&e.pathIsRelative(t.text))?e.moduleSpecifiers.updateModuleSpecifier(n.getCompilerOptions(),l(f),i.newFileName,e.createModuleSpecifierResolutionHost(n,c),t.text):void 0}}))},p=0,f=u;p<f.length;p++){d(f[p])}}(o,n,_,g,l,m)}))},e.getPathUpdater=n}(ha||(ha={})),function(e){!function(n){function t(n,t,i){var u,p,f,m=a(t,i,n),_=m&&[(u=m.reference.fileName,p=m.fileName,f=m.unverified,{fileName:p,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0,unverified:f})]||e.emptyArray;if(null===m||void 0===m?void 0:m.file)return _;var g=e.getTouchingPropertyName(t,i);if(g!==t){var y=g.parent,h=n.getTypeChecker();if(158===g.kind||e.isJSDocOverrideTag(g)&&e.rangeContainsPosition(g.tagName,i))return function(n,t){var r=e.findAncestor(t,e.isClassElement);if(!r||!r.name)return;var a=e.findAncestor(r,e.isClassLike);if(!a)return;var i=e.getEffectiveBaseTypeNode(a),o=i?n.getTypeAtLocation(i):void 0;if(!o)return;var c=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r.name)),l=e.hasStaticModifier(r)?n.getPropertyOfType(n.getTypeOfSymbolAtLocation(o.symbol,a),c):n.getPropertyOfType(o,c);if(!l)return;return s(n,l,t)}(h,g)||e.emptyArray;if(e.isJumpStatementTarget(g)){var v=e.getTargetLabel(g.parent,g.text);return v?[l(h,v,"label",g.text,void 0)]:void 0}if(e.isStaticModifier(g)&&e.isClassStaticBlockDeclaration(g.parent)){var b=g.parent.parent,E=o(b,h),T=e.filter(b.members,e.isClassStaticBlockDeclaration),S=E?h.symbolToString(E,b):"",x=g.getSourceFile();return e.map(T,(function(n){var t=e.moveRangePastModifiers(n).pos;return t=e.skipTrivia(x.text,t),l(h,n,"constructor","static {}",S,{start:t,length:"static".length})}))}var L=o(g,h);if(!L)return e.concatenate(_,function(n,t){return e.mapDefined(t.getIndexInfosAtLocation(n),(function(e){return e.declaration&&d(t,e.declaration)}))}(g,h));var D=function(n,t){var r=function(n){var t=e.findAncestor(n,(function(n){return!e.isRightSideOfPropertyAccess(n)})),r=null===t||void 0===t?void 0:t.parent;return r&&e.isCallLikeExpression(r)&&e.getInvokedExpression(r)===t?r:void 0}(t),a=r&&n.getResolvedSignature(r);return e.tryCast(a&&a.declaration,(function(n){return e.isFunctionLike(n)&&!e.isFunctionTypeNode(n)}))}(h,g);if(D&&(!e.isJsxOpeningLikeElement(g.parent)||!function(e){switch(e.kind){case 170:case 179:case 174:return!0;default:return!1}}(D))){var C=d(h,D);if(h.getRootSymbols(L).some((function(n){return function(n,t){return n===t.symbol||n===t.symbol.parent||e.isAssignmentExpression(t.parent)||!e.isCallLikeExpression(t.parent)&&n===t.parent.symbol}(n,D)})))return[C];var A=s(h,L,g,D)||e.emptyArray;return 106===g.kind?pa([C],A,!0):pa(pa([],A,!0),[C],!1)}if(295===g.parent.kind){var I=h.getShorthandAssignmentValueSymbol(L.valueDeclaration),k=(null===I||void 0===I?void 0:I.declarations)?I.declarations.map((function(e){return c(e,h,I,g)})):e.emptyArray;return e.concatenate(k,r(h,g)||e.emptyArray)}if(e.isPropertyName(g)&&e.isBindingElement(y)&&e.isObjectBindingPattern(y.parent)&&g===(y.propertyName||y.name)){var N=e.getNameFromPropertyName(g),R=h.getTypeAtLocation(y.parent);return void 0===N?e.emptyArray:e.flatMap(R.isUnion()?R.types:[R],(function(e){var n=e.getProperty(N);return n&&s(h,n,g)}))}return e.concatenate(_,r(h,g)||s(h,L,g))}}function r(n,t){var r=e.getContainingObjectLiteralElement(t);if(r){var a=r&&n.getContextualType(r.parent);if(a)return e.flatMap(e.getPropertySymbolsFromContextualType(r,n,a,!1),(function(e){return s(n,e,t)}))}}function a(n,t,r){var a,i,o=p(n.referencedFiles,t);if(o)return(l=r.getSourceFileFromReference(n,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=p(n.typeReferenceDirectives,t);if(s){var c=r.getResolvedTypeReferenceDirectives().get(s.fileName);return(l=c&&r.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,u=p(n.libReferenceDirectives,t);if(u)return(l=r.getLibFileFromReference(u))&&{reference:u,fileName:l.fileName,file:l,unverified:!1};if(null===(a=n.resolvedModules)||void 0===a?void 0:a.size()){var d=e.getTokenAtPosition(n,t);if(e.isModuleSpecifierLike(d)&&e.isExternalModuleNameRelative(d.text)&&n.resolvedModules.has(d.text,e.getModeForUsageLocation(n,d))){var f=null===(i=n.resolvedModules.get(d.text,e.getModeForUsageLocation(n,d)))||void 0===i?void 0:i.resolvedFileName,m=f||e.resolvePath(e.getDirectoryPath(n.fileName),d.text);return{file:r.getSourceFile(m),fileName:m,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!f}}}}function i(n,t,r){return e.flatMap(!n.isUnion()||32&n.flags?[n]:n.types,(function(e){return e.symbol&&s(t,e.symbol,r)}))}function o(n,t){var r=t.getSymbolAtLocation(n);if((null===r||void 0===r?void 0:r.declarations)&&2097152&r.flags&&function(n,t){if(79!==n.kind)return!1;if(n.parent===t)return!0;switch(t.kind){case 266:case 264:return!0;case 269:return 268===t.parent.kind;case 202:case 253:return e.isInJSFile(t)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t);default:return!1}}(n,r.declarations[0])){var a=t.getAliasedSymbol(r);if(a.declarations)return a}return r}function s(n,t,r,a){var i=e.filter(t.declarations,(function(n){return n!==a&&(!e.isAssignmentDeclaration(n)||n===t.valueDeclaration)}))||void 0;return function(){if(32&t.flags&&!(19&t.flags)&&(e.isNewExpressionTarget(r)||134===r.kind)){return o((e.find(i,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(e.isCallOrNewExpressionTarget(r)||e.isNameOfFunctionDeclaration(r)?o(i,!1):void 0)||e.map(i,(function(e){return c(e,n,t,r)}));function o(a,i){if(a){var o=a.filter(i?e.isConstructorDeclaration:e.isFunctionLike),s=o.filter((function(e){return!!e.body}));return o.length?0!==s.length?s.map((function(e){return c(e,n,t,r)})):[c(e.last(o),n,t,r)]:void 0}}}function c(n,t,r,a){var i=t.symbolToString(r),o=e.SymbolDisplay.getSymbolKind(t,r,a),s=r.parent?t.symbolToString(r.parent,a):"";return l(t,n,o,i,s)}function l(n,t,r,a,i,o){var s=t.getSourceFile();if(!o){var c=e.getNameOfDeclaration(t)||t;o=e.createTextSpanFromNode(c,s)}return fa(fa({fileName:s.fileName,textSpan:o,kind:r,name:a,containerKind:void 0,containerName:i},e.FindAllReferences.toContextSpan(o,s,e.FindAllReferences.getContextNode(t))),{isLocal:!u(n,t)})}function u(n,t){if(n.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(e.hasInitializer(t.parent)&&t.parent.initializer===t)return u(n,t.parent);switch(t.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(t,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return u(n,t.parent);default:return!1}}function d(e,n){return c(n,e,n.symbol,n)}function p(n,t){return e.find(n,(function(n){return e.textRangeContainsPositionInclusive(n,t)}))}n.getDefinitionAtPosition=t,n.getReferenceAtPosition=a,n.getTypeDefinitionAtPosition=function(n,t,r){var a=e.getTouchingPropertyName(t,r);if(a!==t){var o=n.getSymbolAtLocation(a);if(o){var s=n.getTypeOfSymbolAtLocation(o,a),c=function(n,t,r){if(t.symbol===n||n.valueDeclaration&&t.symbol&&e.isVariableDeclaration(n.valueDeclaration)&&n.valueDeclaration.initializer===t.symbol.valueDeclaration){var a=t.getCallSignatures();if(1===a.length)return r.getReturnTypeOfSignature(e.first(a))}return}(o,s,n),l=c&&i(c,n,a);return l&&0!==l.length?l:i(s,n,a)}}},n.getDefinitionAndBoundSpan=function(n,r,a){var i=t(n,r,a);if(i&&0!==i.length){var o=p(r.referencedFiles,a)||p(r.typeReferenceDirectives,a)||p(r.libReferenceDirectives,a);if(o)return{definitions:i,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,a);return{definitions:i,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},n.findReferenceInPosition=p}(e.GoToDefinition||(e.GoToDefinition={}))}(ha||(ha={})),function(e){!function(n){var t,r,a=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function i(n,t){return e.arraysEqual(n,t,(function(e,n){return e.kind===n.kind&&e.text===n.text}))}function o(n,t){return"string"===typeof n?[e.textPart(n)]:e.flatMap(n,(function(n){return 319===n.kind?[e.textPart(n.text)]:e.buildLinkParts(n,t)}))}function s(n,t){var r=n.comment,a=n.kind,i=function(n){switch(n){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}}(a);switch(a){case 327:case 326:return c(n.class);case 342:return l(n.typeParameters.map((function(e){return e.getText()})).join(", "));case 341:return c(n.typeExpression);case 343:case 336:case 345:case 338:case 344:var s=n.name;return s?c(s):void 0===r?void 0:o(r,t);default:return void 0===r?void 0:o(r,t)}function c(e){return l(e.getText())}function l(n){return r?n.match(/^https?$/)?pa([e.textPart(n)],o(r,t),!0):pa([i(n),e.spacePart()],o(r,t),!0):[e.textPart(n)]}}function c(n){return{name:n,kind:"",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function l(n,t){switch(n.kind){case 255:case 212:case 168:case 170:case 167:case 213:var r=n;return{commentOwner:n,parameters:r.parameters,hasReturn:u(r,t)};case 294:return l(n.initializer,t);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:n};case 236:var a=n.declarationList.declarations,i=1===a.length&&a[0].initializer?function(n){for(;211===n.kind;)n=n.expression;switch(n.kind){case 212:case 213:return n;case 225:return e.find(n.members,e.isConstructorDeclaration)}}(a[0].initializer):void 0;return i?{commentOwner:n,parameters:i.parameters,hasReturn:u(i,t)}:{commentOwner:n};case 303:return"quit";case 260:return 260===n.parent.kind?void 0:{commentOwner:n};case 237:return l(n.expression,t);case 220:var o=n;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:n,parameters:o.right.parameters,hasReturn:u(o.right,t)}:{commentOwner:n};case 166:var s=n.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:n,parameters:s.parameters,hasReturn:u(s,t)}}}function u(n,t){return!!(null===t||void 0===t?void 0:t.generateReturnInDocTemplate)&&(e.isArrowFunction(n)&&e.isExpression(n.body)||e.isFunctionLikeDeclaration(n)&&n.body&&e.isBlock(n.body)&&!!e.forEachReturnStatement(n.body,(function(e){return e})))}n.getJsDocCommentsFromDeclarations=function(n,t){var r=[];return e.forEachUnique(n,(function(n){for(var a=0,s=function(n){switch(n.kind){case 338:case 345:return[n];case 336:case 343:return[n,n.parent];default:return e.getJSDocCommentsAndTags(n)}}(n);a<s.length;a++){var c=s[a];if(!(void 0===c.comment||e.isJSDoc(c)&&343!==n.kind&&336!==n.kind&&c.tags&&c.tags.some((function(e){return 343===e.kind||336===e.kind}))&&!c.tags.some((function(e){return 338===e.kind||339===e.kind})))){var l=o(c.comment,t);e.contains(r,l,i)||r.push(l)}}})),e.flatten(e.intersperse(r,[e.lineBreakPart()]))},n.getJsDocTagsFromDeclarations=function(n,t){var r=[];return e.forEachUnique(n,(function(n){var a=e.getJSDocTags(n);if(!a.some((function(e){return 343===e.kind||336===e.kind}))||a.some((function(e){return 338===e.kind||339===e.kind})))for(var i=0,o=a;i<o.length;i++){var c=o[i];r.push({name:c.tagName.text,text:s(c,t)})}})),r},n.getJSDocTagNameCompletions=function(){return t||(t=e.map(a,(function(n){return{name:n,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},n.getJSDocTagNameCompletionDetails=c,n.getJSDocTagCompletions=function(){return r||(r=e.map(a,(function(n){return{name:"@".concat(n),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},n.getJSDocTagCompletionDetails=c,n.getJSDocParameterNameCompletions=function(n){if(!e.isIdentifier(n.name))return e.emptyArray;var t=n.name.text,r=n.parent,a=r.parent;return e.isFunctionLike(a)?e.mapDefined(a.parameters,(function(a){if(e.isIdentifier(a.name)){var i=a.name.text;if(!r.tags.some((function(t){return t!==n&&e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===i}))&&(void 0===t||e.startsWith(i,t)))return{name:i,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},n.getJSDocParameterNameCompletionDetails=function(n){return{name:n,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(n)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},n.getDocCommentTemplateAtPosition=function(n,t,r,a){var i=e.getTokenAtPosition(t,r),o=e.findAncestor(i,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=i.getStart(t);if(o||!(s<r)){var c=function(n,t){return e.forEachAncestor(n,(function(e){return l(e,t)}))}(i,a);if(c){var u=c.commentOwner,d=c.parameters,p=c.hasReturn;if(!(u.getStart(t)<r)){var f=function(n,t){for(var r=n.text,a=e.getLineStartPositionForPosition(t,n),i=a;i<=t&&e.isWhiteSpaceSingleLine(r.charCodeAt(i));i++);return r.slice(a,i)}(t,r),m=e.hasJSFileExtension(t.fileName),_=(d?function(e,n,t,r){return e.map((function(e,a){var i=e.name,o=e.dotDotDotToken,s=79===i.kind?i.text:"param"+a,c=n?o?"{...any} ":"{any} ":"";return"".concat(t," * @param ").concat(c).concat(s).concat(r)})).join("")}(d||[],m,f,n):"")+(p?function(e,n){return"".concat(e," * @returns").concat(n)}(f,n):"");if(_){var g="/**"+n+f+" * ";return{newText:g+n+_+f+" */"+(s===r?n+f:""),caretOffset:g.length}}return{newText:"/** */",caretOffset:3}}}}}}}(e.JsDoc||(e.JsDoc={}))}(ha||(ha={})),function(e){!function(n){function t(e,n){switch(e.kind){case 266:case 269:case 264:var t=n.getSymbolAtLocation(e.name),r=n.getAliasedSymbol(t);return t.escapedName!==r.escapedName;default:return!0}}function r(n,t){var r=e.getNameOfDeclaration(n);return!!r&&(i(r,t)||161===r.kind&&a(r.expression,t))}function a(n,t){return i(n,t)||e.isPropertyAccessExpression(n)&&(t.push(n.name.text),!0)&&a(n.expression,t)}function i(n,t){return e.isPropertyNameLiteral(n)&&(t.push(e.getTextOfIdentifierOrLiteral(n)),!0)}function o(n){var t=[],i=e.getNameOfDeclaration(n);if(i&&161===i.kind&&!a(i.expression,t))return e.emptyArray;t.shift();for(var o=e.getContainerNode(n);o;){if(!r(o,t))return e.emptyArray;o=e.getContainerNode(o)}return t.reverse()}function s(n,t){return e.compareValues(n.matchKind,t.matchKind)||e.compareStringsCaseSensitiveUI(n.name,t.name)}function c(n){var t=n.declaration,r=e.getContainerNode(t),a=r&&e.getNameOfDeclaration(r);return{name:n.name,kind:e.getNodeKind(t),kindModifiers:e.getNodeModifiers(t),matchKind:e.PatternMatchKind[n.matchKind],isCaseSensitive:n.isCaseSensitive,fileName:n.fileName,textSpan:e.createTextSpanFromNode(t),containerName:a?a.text:"",containerKind:a?e.getNodeKind(r):""}}n.getNavigateToItems=function(n,r,a,i,l,u){var d=e.createPatternMatcher(i);if(!d)return e.emptyArray;for(var p=[],f=function(e){if(a.throwIfCancellationRequested(),u&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach((function(n,a){!function(e,n,r,a,i,s){var c=e.getMatchForLastSegmentOfPattern(n);if(!c)return;for(var l=0,u=r;l<u.length;l++){var d=u[l];if(t(d,a))if(e.patternContainsDots){var p=e.getFullMatch(o(d),n);p&&s.push({name:n,fileName:i,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:d})}else s.push({name:n,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}}(d,a,n,r,e.fileName,p)}))},m=0,_=n;m<_.length;m++){f(_[m])}return p.sort(s),(void 0===l?p:p.slice(0,l)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(ha||(ha={})),function(e){!function(n){var t,r,a,i,o,s=/\s+/g,c=[],l=[],u=[];function d(){a=void 0,r=void 0,c=[],i=void 0,u=[]}function p(e){return q(e.getText(a))}function f(e){return e.node.kind}function m(e,n){e.children?e.children.push(n):e.children=[n]}function _(n){e.Debug.assert(!c.length);var t={node:n,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i=t;for(var r=0,a=n.statements;r<a.length;r++){D(a[r])}return T(),e.Debug.assert(!i&&!c.length),t}function g(e,n){m(i,y(e,n))}function y(n,t){return{node:n,name:t||(e.isDeclaration(n)||e.isExpression(n)?e.getNameOfDeclaration(n):void 0),additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function h(n){o||(o=new e.Map),o.set(n,!0)}function v(e){for(var n=0;n<e;n++)T()}function b(n,t){for(var r=[];!e.isPropertyNameLiteral(t);){var a=e.getNameOrArgument(t),i=e.getElementOrPropertyAccessName(t);t=t.expression,"prototype"===i||e.isPrivateIdentifier(a)||r.push(a)}r.push(t);for(var o=r.length-1;o>0;o--){E(n,a=r[o])}return[r.length-1,r[0]]}function E(e,n){var t=y(e,n);m(i,t),c.push(i),l.push(o),o=void 0,i=t}function T(){i.children&&(C(i.children,i),O(i.children)),i=c.pop(),o=l.pop()}function S(e,n,t){E(e,t),D(n),T()}function x(n){n.initializer&&function(e){switch(e.kind){case 213:case 212:case 225:return!0;default:return!1}}(n.initializer)?(E(n),e.forEachChild(n.initializer,D),T()):S(n,n.initializer)}function L(n){return!e.hasDynamicName(n)||220!==n.kind&&e.isPropertyAccessExpression(n.name.expression)&&e.isIdentifier(n.name.expression.expression)&&"Symbol"===e.idText(n.name.expression.expression)}function D(n){var t;if(r.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 170:var a=n;S(a,a.body);for(var i=0,s=a.parameters;i<s.length;i++){var c=s[i];e.isParameterPropertyDeclaration(c,a)&&g(c)}break;case 168:case 171:case 172:case 167:L(n)&&S(n,n.body);break;case 166:L(n)&&x(n);break;case 165:L(n)&&g(n);break;case 266:var l=n;l.name&&g(l.name);var u=l.namedBindings;if(u)if(267===u.kind)g(u);else for(var d=0,p=u.elements;d<p.length;d++){g(p[d])}break;case 295:S(n,n.name);break;case 296:var f=n.expression;e.isIdentifier(f)?g(n,f):g(n);break;case 202:case 294:case 253:var m=n;e.isBindingPattern(m.name)?D(m.name):x(m);break;case 255:var _=n.name;_&&e.isIdentifier(_)&&h(_.text),S(n,n.body);break;case 213:case 212:S(n,n.body);break;case 259:E(n);for(var y=0,C=n.members;y<C.length;y++){K(k=C[y])||g(k)}T();break;case 256:case 225:case 257:E(n);for(var A=0,I=n.members;A<I.length;A++){var k;D(k=I[A])}T();break;case 260:S(n,j(n).body);break;case 270:var N=n.expression;(m=e.isObjectLiteralExpression(N)||e.isCallExpression(N)?N:e.isArrowFunction(N)||e.isFunctionExpression(N)?N.body:void 0)?(E(n),D(m),T()):g(n);break;case 274:case 264:case 175:case 173:case 174:case 258:g(n);break;case 207:case 220:var R=e.getAssignmentDeclarationKind(n);switch(R){case 1:case 2:return void S(n,n.right);case 6:case 3:var O=(U=n).left,w=3===R?O.expression:O,M=0,P=void 0;return e.isIdentifier(w.expression)?(h(w.expression.text),P=w.expression):(M=(t=b(U,w.expression))[0],P=t[1]),6===R?e.isObjectLiteralExpression(U.right)&&U.right.properties.length>0&&(E(U,P),e.forEachChild(U.right,D),T()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(n,U.right,P):(E(U,P),S(n,U.right,O.name),T()),void v(M);case 7:case 9:var F=n,G=(P=7===R?F.arguments[0]:F.arguments[0].expression,F.arguments[1]),B=b(n,P);M=B[0];return E(n,B[1]),E(n,e.setTextRange(e.factory.createIdentifier(G.text),G)),D(n.arguments[2]),T(),T(),void v(M);case 5:var U,V=(O=(U=n).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(O)&&o&&o.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(n,U.right,V):e.isBindableStaticAccessExpression(O)&&(E(U,V),S(U.left,U.right,e.getNameOrArgument(O)),T()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(R)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,(function(n){e.forEach(n.tags,(function(n){e.isJSDocTypeAlias(n)&&g(n)}))})),e.forEachChild(n,D)}}function C(n,t){var r=new e.Map;e.filterMutate(n,(function(n,a){var i=n.name||e.getNameOfDeclaration(n.node),o=i&&p(i);if(!o)return!0;var s=r.get(o);if(!s)return r.set(o,n),!0;if(s instanceof Array){for(var c=0,l=s;c<l.length;c++){var u;if(I(u=l[c],n,a,t))return!1}return s.push(n),!0}return!I(u=s,n,a,t)&&(r.set(o,[u,n]),!0)}))}n.getNavigationBarItems=function(n,t){r=t,a=n;try{return e.map(function(e){var n=[];function t(e){if(r(e)&&(n.push(e),e.children))for(var a=0,i=e.children;a<i.length;a++){t(i[a])}}return t(e),n;function r(e){if(e.children)return!0;switch(f(e)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return n(e);default:return!1}function n(e){if(!e.node.body)return!1;switch(f(e.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}}}}(_(n)),G)}finally{d()}},n.getNavigationTree=function(e,n){r=n,a=e;try{return F(_(e))}finally{d()}};var A=((t={})[5]=!0,t[3]=!0,t[7]=!0,t[9]=!0,t[0]=!1,t[1]=!1,t[2]=!1,t[8]=!1,t[6]=!0,t[4]=!1,t);function I(n,t,r,a){return!!function(n,t,r,a){function i(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)||e.isVariableDeclaration(n)}var o=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0,s=e.isBinaryExpression(n.node)||e.isCallExpression(n.node)?e.getAssignmentDeclarationKind(n.node):0;if(A[o]&&A[s]||i(n.node)&&A[o]||i(t.node)&&A[s]||e.isClassDeclaration(n.node)&&k(n.node)&&A[o]||e.isClassDeclaration(t.node)&&A[s]||e.isClassDeclaration(n.node)&&k(n.node)&&i(t.node)||e.isClassDeclaration(t.node)&&i(n.node)&&k(n.node)){var c=n.additionalNodes&&e.lastOrUndefined(n.additionalNodes)||n.node;if(!e.isClassDeclaration(n.node)&&!e.isClassDeclaration(t.node)||i(n.node)||i(t.node)){var l=i(n.node)?n.node:i(t.node)?t.node:void 0;if(void 0!==l){var u=y(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),l));u.indent=n.indent+1,u.children=n.node===l?n.children:t.children,n.children=n.node===l?e.concatenate([u],t.children||[t]):e.concatenate(n.children||[fa({},n)],[u])}else(n.children||t.children)&&(n.children=e.concatenate(n.children||[fa({},n)],t.children||[t]),n.children&&(C(n.children,n),O(n.children)));c=n.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,n.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),n.node)}else n.children=e.concatenate(n.children,t.children),n.children&&C(n.children,n);var d=t.node;return a.children[r-1].node.end===c.end?e.setTextRange(c,{pos:c.pos,end:d.end}):(n.additionalNodes||(n.additionalNodes=[]),n.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,n.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(n,t,r,a)||!!function(n,t,r){if(n.kind!==t.kind||n.parent!==t.parent&&(!N(n,r)||!N(t,r)))return!1;switch(n.kind){case 166:case 168:case 171:case 172:return e.isStatic(n)===e.isStatic(t);case 260:return R(n,t)&&V(n)===V(t);default:return!0}}(n.node,t.node,a)&&(function(n,t){var r;n.additionalNodes=n.additionalNodes||[],n.additionalNodes.push(t.node),t.additionalNodes&&(r=n.additionalNodes).push.apply(r,t.additionalNodes);n.children=e.concatenate(n.children,t.children),n.children&&(C(n.children,n),O(n.children))}(n,t),!0)}function k(e){return!!(8&e.flags)}function N(n,t){var r=e.isModuleBlock(n.parent)?n.parent.parent:n.parent;return r===t.node||e.contains(t.additionalNodes,r)}function R(e,n){return e.body&&n.body?e.body.kind===n.body.kind&&(260!==e.body.kind||R(e.body,n.body)):e.body===n.body}function O(e){e.sort(w)}function w(n,t){return e.compareStringsCaseSensitiveUI(M(n.node),M(t.node))||e.compareValues(f(n),f(t))}function M(n){if(260===n.kind)return U(n);var t=e.getNameOfDeclaration(n);if(t&&e.isPropertyName(t)){var r=e.getPropertyNameForPropertyNameNode(t);return r&&e.unescapeLeadingUnderscores(r)}switch(n.kind){case 212:case 213:case 225:return z(n);default:return}}function P(n,t){if(260===n.kind)return q(U(n));if(t){var r=e.isIdentifier(t)?t.text:e.isElementAccessExpression(t)?"[".concat(p(t.argumentExpression),"]"):p(t);if(r.length>0)return q(r)}switch(n.kind){case 303:var a=n;return e.isExternalModule(a)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(n)&&n.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return 512&e.getSyntacticModifierFlags(n)?"default":z(n);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function F(n){return{text:P(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:W(n.node),spans:B(n),nameSpan:n.name&&H(n.name),childItems:e.map(n.children,F)}}function G(n){return{text:P(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:W(n.node),spans:B(n),childItems:e.map(n.children,(function(n){return{text:P(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:e.getNodeModifiers(n.node),spans:B(n),childItems:u,indent:0,bolded:!1,grayed:!1}}))||u,indent:n.indent,bolded:!1,grayed:!1}}function B(e){var n=[H(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t<r.length;t++){var a=r[t];n.push(H(a))}return n}function U(n){return e.isAmbientModule(n)?e.getTextOfNode(n.name):V(n)}function V(n){for(var t=[e.getTextOfIdentifierOrLiteral(n.name)];n.body&&260===n.body.kind;)n=n.body,t.push(e.getTextOfIdentifierOrLiteral(n.name));return t.join(".")}function j(n){return n.body&&e.isModuleDeclaration(n.body)?j(n.body):n}function K(e){return!e.name||161===e.name.kind}function H(n){return 303===n.kind?e.createTextSpanFromRange(n):e.createTextSpanFromNode(n,a)}function W(n){return n.parent&&253===n.parent.kind&&(n=n.parent),e.getNodeModifiers(n)}function z(n){var t=n.parent;if(n.name&&e.getFullWidth(n.name)>0)return q(e.declarationNameToString(n.name));if(e.isVariableDeclaration(t))return q(e.declarationNameToString(t.name));if(e.isBinaryExpression(t)&&63===t.operatorToken.kind)return p(t.left).replace(s,"");if(e.isPropertyAssignment(t))return p(t.name);if(512&e.getSyntacticModifierFlags(n))return"default";if(e.isClassLike(n))return"<class>";if(e.isCallExpression(t)){var r=J(t.expression);if(void 0!==r){if((r=q(r)).length>150)return"".concat(r," callback");var i=q(e.mapDefined(t.arguments,(function(n){return e.isStringLiteralLike(n)?n.getText(a):void 0})).join(", "));return"".concat(r,"(").concat(i,") callback")}}return"<function>"}function J(n){if(e.isIdentifier(n))return n.text;if(e.isPropertyAccessExpression(n)){var t=J(n.expression),r=n.name.text;return void 0===t?r:"".concat(t,".").concat(r)}}function q(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(ha||(ha={})),function(e){!function(n){function t(n,t){var r=e.isStringLiteral(t)&&t.text;return e.isString(r)&&e.some(n.moduleAugmentations,(function(n){return e.isStringLiteral(n)&&n.text===r}))}function r(n){return void 0!==n&&e.isStringLiteralLike(n)?n.text:void 0}function a(n){var t;if(0===n.length)return n;var r=function(n){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},a={defaultImports:[],namespaceImports:[],namedImports:[]},i=0,o=n;i<o.length;i++){var s=o[i];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?r:a,l=s.importClause,u=l.name,d=l.namedBindings;u&&c.defaultImports.push(s),d&&(e.isNamespaceImport(d)?c.namespaceImports.push(s):c.namedImports.push(s))}else t=t||s}return{importWithoutClause:t,typeOnlyImports:r,regularImports:a}}(n),a=r.importWithoutClause,i=r.typeOnlyImports,c=r.regularImports,l=[];a&&l.push(a);for(var d=0,p=[c,i];d<p.length;d++){var f=p[d],m=f===i,_=f.defaultImports,g=f.namespaceImports,y=f.namedImports;if(m||1!==_.length||1!==g.length||0!==y.length){for(var h=0,v=e.stableSort(g,(function(e,n){return u(e.importClause.namedBindings.name,n.importClause.namedBindings.name)}));h<v.length;h++){var b=v[h];l.push(o(b,void 0,b.importClause.namedBindings))}if(0!==_.length||0!==y.length){var E=void 0,T=[];if(1===_.length)E=_[0].importClause.name;else for(var S=0,x=_;S<x.length;S++){A=x[S];T.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),A.importClause.name))}T.push.apply(T,e.flatMap(y,(function(e){return e.importClause.namedBindings.elements})));var L=s(T),D=_.length>0?_[0]:y[0],C=0===L.length?E?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(L):e.factory.updateNamedImports(y[0].importClause.namedBindings,L);m&&E&&C?(l.push(o(D,E,void 0)),l.push(o(null!==(t=y[0])&&void 0!==t?t:D,void 0,C))):l.push(o(D,E,C))}}else{var A=_[0];l.push(o(A,A.importClause.name,g[0].importClause.namedBindings))}}return l}function i(n){if(0===n.length)return n;var t=function(e){for(var n,t=[],r=[],a=0,i=e;a<i.length;a++){var o=i[a];void 0===o.exportClause?n=n||o:o.isTypeOnly?r.push(o):t.push(o)}return{exportWithoutClause:n,namedExports:t,typeOnlyExports:r}}(n),r=t.exportWithoutClause,a=t.namedExports,i=t.typeOnlyExports,o=[];r&&o.push(r);for(var c=0,l=[a,i];c<l.length;c++){var u=l[c];if(0!==u.length){var d=[];d.push.apply(d,e.flatMap(u,(function(n){return n.exportClause&&e.isNamedExports(n.exportClause)?n.exportClause.elements:e.emptyArray})));var p=s(d),f=u[0];o.push(e.factory.updateExportDeclaration(f,f.decorators,f.modifiers,f.isTypeOnly,f.exportClause&&(e.isNamedExports(f.exportClause)?e.factory.updateNamedExports(f.exportClause,p):e.factory.updateNamespaceExport(f.exportClause,f.exportClause.name)),f.moduleSpecifier,f.assertClause))}}return o}function o(n,t,r){return e.factory.updateImportDeclaration(n,n.decorators,n.modifiers,e.factory.updateImportClause(n.importClause,n.importClause.isTypeOnly,t,r),n.moduleSpecifier,n.assertClause)}function s(n){return e.stableSort(n,c)}function c(n,t){return e.compareBooleans(n.isTypeOnly,t.isTypeOnly)||u(n.propertyName||n.name,t.propertyName||t.name)||u(n.name,t.name)}function l(n,t){var a=void 0===n?void 0:r(n),i=void 0===t?void 0:r(t);return e.compareBooleans(void 0===a,void 0===i)||e.compareBooleans(e.isExternalModuleNameRelative(a),e.isExternalModuleNameRelative(i))||e.compareStringsCaseInsensitive(a,i)}function u(n,t){return e.compareStringsCaseInsensitive(n.text,t.text)}function d(n){var t;switch(n.kind){case 264:return null===(t=e.tryCast(n.moduleReference,e.isExternalModuleReference))||void 0===t?void 0:t.expression;case 265:return n.moduleSpecifier;case 236:return n.declarationList.declarations[0].initializer.arguments[0]}}function p(n,t){return l(d(n),d(t))||function(n,t){return e.compareValues(f(n),f(t))}(n,t)}function f(e){var n;switch(e.kind){case 265:return e.importClause?e.importClause.isTypeOnly?1:267===(null===(n=e.importClause.namedBindings)||void 0===n?void 0:n.kind)?2:e.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}n.organizeImports=function(n,s,c,u,d,f){var m=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s,preferences:d}),_=function(r){return e.stableSort(a(function(n,r,a,i){if(i)return n;for(var s=a.getTypeChecker(),c=s.getJsxNamespace(r),l=s.getJsxFragmentFactory(r),u=!!(2&r.transformFlags),d=[],p=0,f=n;p<f.length;p++){var m=f[p],_=m.importClause,g=m.moduleSpecifier;if(_){var y=_.name,h=_.namedBindings;if(y&&!b(y)&&(y=void 0),h)if(e.isNamespaceImport(h))b(h.name)||(h=void 0);else{var v=h.elements.filter((function(e){return b(e.name)}));v.length<h.elements.length&&(h=v.length?e.factory.updateNamedImports(h,v):void 0)}y||h?d.push(o(m,y,h)):t(r,g)&&(r.isDeclarationFile?d.push(e.factory.createImportDeclaration(m.decorators,m.modifiers,void 0,g,void 0)):d.push(m))}else d.push(m)}return d;function b(n){return u&&(n.text===c||l&&n.text===l)||e.FindAllReferences.Core.isSymbolReferencedInFile(n,s,r)}}(r,n,u,f)),(function(e,n){return p(e,n)}))};v(n.statements.filter(e.isImportDeclaration),_),v(n.statements.filter(e.isExportDeclaration),i);for(var g=0,y=n.statements.filter(e.isAmbientModule);g<y.length;g++){var h=y[g];if(h.body)v(h.body.statements.filter(e.isImportDeclaration),_),v(h.body.statements.filter(e.isExportDeclaration),i)}return m.getChanges();function v(t,a){if(0!==e.length(t)){e.suppressLeadingTrivia(t[0]);var i=e.group(t,(function(e){return r(e.moduleSpecifier)})),o=e.stableSort(i,(function(e,n){return l(e[0].moduleSpecifier,n[0].moduleSpecifier)})),u=e.flatMap(o,(function(e){return r(e[0].moduleSpecifier)?a(e):e}));if(0===u.length)m.deleteNodes(n,t,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var d={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)};m.replaceNodeWithNodes(n,t[0],u,d);var p=m.nodeHasTrailingComment(n,t[0],d);m.deleteNodes(n,t.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},p)}}}},n.coalesceImports=a,n.coalesceExports=i,n.compareImportOrExportSpecifiers=c,n.compareModuleSpecifiers=l,n.importsAreSorted=function(n){return e.arrayIsSorted(n,p)},n.importSpecifiersAreSorted=function(n){return e.arrayIsSorted(n,c)},n.getImportDeclarationInsertionIndex=function(n,t){var r=e.binarySearch(n,t,e.identity,p);return r<0?~r:r},n.getImportSpecifierInsertionIndex=function(n,t){var r=e.binarySearch(n,t,e.identity,c);return r<0?~r:r},n.compareImportsOrRequireStatements=p}(e.OrganizeImports||(e.OrganizeImports={}))}(ha||(ha={})),function(e){!function(n){n.collectElements=function(n,t){var l=[];return function(n,t,r){var l=40,u=0,d=pa(pa([],n.statements,!0),[n.endOfFileToken],!1),p=d.length;for(;u<p;){for(;u<p&&!e.isAnyImportSyntax(d[u]);)_(d[u]),u++;if(u===p)break;for(var f=u;u<p&&e.isAnyImportSyntax(d[u]);)i(d[u],n,t,r),u++;var m=u-1;m!==f&&r.push(o(e.findChildOfKind(d[f],100,n).getStart(n),d[m].getEnd(),"imports"))}function _(u){var d;if(0!==l){t.throwIfCancellationRequested(),(e.isDeclaration(u)||e.isVariableStatement(u)||e.isReturnStatement(u)||1===u.kind)&&i(u,n,t,r),e.isFunctionLike(u)&&e.isBinaryExpression(u.parent)&&e.isPropertyAccessExpression(u.parent.left)&&i(u.parent.left,n,t,r),(e.isBlock(u)||e.isModuleBlock(u))&&a(u.statements.end,n,t,r),(e.isClassLike(u)||e.isInterfaceDeclaration(u))&&a(u.members.end,n,t,r);var p=function(n,t){switch(n.kind){case 234:if(e.isFunctionLike(n.parent))return function(n,t,r){var a=function(n,t,r){if(e.isNodeArrayMultiLine(n.parameters,r)){var a=e.findChildOfKind(n,20,r);if(a)return a}return e.findChildOfKind(t,18,r)}(n,t,r),i=e.findChildOfKind(t,19,r);return a&&i&&s(a,i,n,r,213!==n.kind)}(n.parent,n,t);switch(n.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return _(n.parent);case 251:var r=n.parent;if(r.tryBlock===n)return _(n.parent);if(r.finallyBlock===n){var a=e.findChildOfKind(r,96,t);if(a)return _(a)}default:return c(e.createTextSpanFromNode(n,t),"code")}case 261:return _(n.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return _(n);case 183:return _(n,!1,!e.isTupleTypeNode(n.parent),22);case 288:case 289:return g(n.statements);case 204:return m(n);case 203:return m(n,22);case 277:return u(n);case 281:return d(n);case 278:case 279:return p(n.attributes);case 222:case 14:return f(n);case 201:return _(n,!1,!e.isBindingElement(n.parent),22);case 213:return l(n);case 207:return i(n)}function i(n){if(n.arguments.length){var r=e.findChildOfKind(n,20,t),a=e.findChildOfKind(n,21,t);if(r&&a&&!e.positionsAreOnSameLine(r.pos,a.pos,t))return s(r,a,n,t,!1,!0)}}function l(n){if(!e.isBlock(n.body)&&!e.positionsAreOnSameLine(n.body.getFullStart(),n.body.getEnd(),t))return c(e.createTextSpanFromBounds(n.body.getFullStart(),n.body.getEnd()),"code",e.createTextSpanFromNode(n))}function u(n){var r=e.createTextSpanFromBounds(n.openingElement.getStart(t),n.closingElement.getEnd()),a=n.openingElement.tagName.getText(t);return c(r,"code",r,!1,"<"+a+">...</"+a+">")}function d(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd());return c(r,"code",r,!1,"<>...</>")}function p(e){if(0!==e.properties.length)return o(e.getStart(t),e.getEnd(),"code")}function f(e){if(14!==e.kind||0!==e.text.length)return o(e.getStart(t),e.getEnd(),"code")}function m(n,t){return void 0===t&&(t=18),_(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function _(r,a,i,o,c){void 0===a&&(a=!1),void 0===i&&(i=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var l=e.findChildOfKind(n,o,t),u=e.findChildOfKind(n,c,t);return l&&u&&s(l,u,r,t,a,i)}function g(n){return n.length?c(e.createTextSpanFromRange(n),"code"):void 0}}(u,n);p&&r.push(p),l--,e.isCallExpression(u)?(l++,_(u.expression),l--,u.arguments.forEach(_),null===(d=u.typeArguments)||void 0===d||d.forEach(_)):e.isIfStatement(u)&&u.elseStatement&&e.isIfStatement(u.elseStatement)?(_(u.expression),_(u.thenStatement),l++,_(u.elseStatement),l--):u.forEachChild(_),l++}}}(n,t,l),function(n,t){for(var a=[],i=n.getLineStarts(),o=0,s=i;o<s.length;o++){var l=s[o],u=n.getLineEndOfPosition(l),d=r(n.text.substring(l,u));if(d&&!e.isInComment(n,l))if(d[1]){var p=a.pop();p&&(p.textSpan.length=u-p.textSpan.start,p.hintSpan.length=u-p.textSpan.start,t.push(p))}else{var f=e.createTextSpanFromBounds(n.text.indexOf("//",l),u);a.push(c(f,"region",f,!1,d[2]||"#region"))}}}(n,l),l.sort((function(e,n){return e.textSpan.start-n.textSpan.start}))};var t=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function r(n){return n=e.trimStringStart(n),e.startsWith(n,"//")?(n=e.trimString(n.slice(2)),t.exec(n)):null}function a(n,t,a,i){var s=e.getLeadingCommentRanges(t.text,n);if(s){for(var c=-1,l=-1,u=0,d=t.getFullText(),p=0,f=s;p<f.length;p++){var m=f[p],_=m.kind,g=m.pos,y=m.end;switch(a.throwIfCancellationRequested(),_){case 2:if(r(d.slice(g,y))){h(),u=0;break}0===u&&(c=g),l=y,u++;break;case 3:h(),i.push(o(g,y,"comment")),u=0;break;default:e.Debug.assertNever(_)}}h()}function h(){u>1&&i.push(o(c,l,"comment"))}}function i(n,t,r,i){e.isJsxText(n)||a(n.pos,t,r,i)}function o(n,t,r){return c(e.createTextSpanFromBounds(n,t),r)}function s(n,t,r,a,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?n.getFullStart():n.getStart(a),t.getEnd()),"code",e.createTextSpanFromNode(r,a),i)}function c(e,n,t,r,a){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===a&&(a="..."),{textSpan:e,kind:n,hintSpan:t,bannerText:a,autoCollapse:r}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(ha||(ha={})),function(e){var n,t;function r(e,n){return{kind:e,isCaseSensitive:n}}function a(e,n){var t=n.get(e);return t||n.set(e,t=v(e)),t}function i(t,i,o){var s=function(e,n){for(var t=e.length-n.length,r=function(t){if(D(n,(function(n,r){return f(e.charCodeAt(r+t))===n})))return{value:t}},a=0;a<=t;a++){var i=r(a);if("object"===typeof i)return i.value}return-1}(t,i.textLowerCase);if(0===s)return r(i.text.length===t.length?n.exact:n.prefix,e.startsWith(t,i.text));if(i.isLowerCase){if(-1===s)return;for(var c=0,p=a(t,o);c<p.length;c++){var m=p[c];if(l(t,m,i.text,!0))return r(n.substring,l(t,m,i.text,!1))}if(i.text.length<t.length&&d(t.charCodeAt(s)))return r(n.substring,!1)}else{if(t.indexOf(i.text)>0)return r(n.substring,!0);if(i.characterSpans.length>0){var _=a(t,o),g=!!u(t,_,i,!1)||!u(t,_,i,!0)&&void 0;if(void 0!==g)return r(n.camelCase,g)}}}function o(e,n,t){if(D(n.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var r=i(e,n.totalTextChunk,t);if(r)return r}for(var a,o=0,c=n.subWordTextChunks;o<c.length;o++){a=s(a,i(e,c[o],t))}return a}function s(n,t){return e.min(n,t,c)}function c(n,t){return void 0===n?1:void 0===t?-1:e.compareValues(n.kind,t.kind)||e.compareBooleans(!n.isCaseSensitive,!t.isCaseSensitive)}function l(e,n,t,r,a){return void 0===a&&(a={start:0,length:t.length}),a.length<=n.length&&L(0,a.length,(function(i){return function(e,n,t){return t?f(e)===f(n):e===n}(t.charCodeAt(a.start+i),e.charCodeAt(n.start+i),r)}))}function u(n,t,r,a){for(var i,o,s=r.characterSpans,c=0,u=0;;){if(u===s.length)return!0;if(c===t.length)return!1;for(var p=t[c],f=!1;u<s.length;u++){var m=s[u];if(f&&(!d(r.text.charCodeAt(s[u-1].start))||!d(r.text.charCodeAt(s[u].start))))break;if(!l(n,p,r.text,a,m))break;f=!0,i=void 0===i?c:i,o=void 0===o||o,p=e.createTextSpan(p.start+m.length,p.length-m.length)}f||void 0===o||(o=!1),c++}}function d(n){if(n>=65&&n<=90)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toUpperCase()}function p(n){if(n>=97&&n<=122)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toLowerCase()}function f(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function m(e){return e>=48&&e<=57}function _(e){return d(e)||p(e)||m(e)||95===e||36===e}function g(e){for(var n=[],t=0,r=0,a=0;a<e.length;a++){_(e.charCodeAt(a))?(0===r&&(t=a),r++):r>0&&(n.push(y(e.substr(t,r))),r=0)}return r>0&&n.push(y(e.substr(t,r))),n}function y(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:h(e)}}function h(e){return b(e,!1)}function v(e){return b(e,!0)}function b(n,t){for(var r=[],a=0,i=1;i<n.length;i++){var o=m(n.charCodeAt(i-1)),s=m(n.charCodeAt(i)),c=x(n,t,i),l=t&&S(n,i,a);(E(n.charCodeAt(i-1))||E(n.charCodeAt(i))||o!==s||c||l)&&(T(n,a,i)||r.push(e.createTextSpan(a,i-a)),a=i)}return T(n,a,n.length)||r.push(e.createTextSpan(a,n.length-a)),r}function E(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 T(e,n,t){return D(e,(function(e){return E(e)&&95!==e}),n,t)}function S(e,n,t){return n!==t&&n+1<e.length&&d(e.charCodeAt(n))&&p(e.charCodeAt(n+1))&&D(e,d,t,n)}function x(e,n,t){var r=d(e.charCodeAt(t-1));return d(e.charCodeAt(t))&&(!n||!r)}function L(e,n,t){for(var r=e;r<n;r++)if(!t(r))return!1;return!0}function D(e,n,t,r){return void 0===t&&(t=0),void 0===r&&(r=e.length),L(t,r,(function(t){return n(e.charCodeAt(t),t)}))}(t=n=e.PatternMatchKind||(e.PatternMatchKind={}))[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",e.createPatternMatcher=function(n){var t=new e.Map,r=n.trim().split(".").map((function(e){return{totalTextChunk:y(n=e.trim()),subWordTextChunks:g(n)};var n}));if(!r.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(n,a){return function(n,t,r,a){var i;if(!o(t,e.last(r),a))return;if(r.length-1>n.length)return;for(var c=r.length-2,l=n.length-1;c>=0;c-=1,l-=1)i=s(i,o(n[l],r[c],a));return i}(n,a,r,t)},getMatchForLastSegmentOfPattern:function(n){return o(n,e.last(r),t)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=h,e.breakIntoWordSpans=v}(ha||(ha={})),function(e){e.preProcessFile=function(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var a,i,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return i=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var n=e.scanner.getTokenValue(),t=e.scanner.getTokenPos();return{fileName:n,pos:t,end:t+n.length}}function f(){c.push(p()),m()}function m(){0===l&&(u=!0)}function _(){var n=e.scanner.getToken();return 135===n&&(141===(n=d())&&10===(n=d())&&(a||(a=[]),a.push({ref:p(),depth:l})),!0)}function g(){if(24===i)return!1;var n=e.scanner.getToken();if(100===n){if(20===(n=d())){if(10===(n=d())||14===n)return f(),!0}else{if(10===n)return f(),!0;151===n&&e.scanner.lookAhead((function(){var n=e.scanner.scan();return 155!==n&&(41===n||18===n||79===n||e.isKeyword(n))}))&&(n=d());if(79===n||e.isKeyword(n))if(155===(n=d())){if(10===(n=d()))return f(),!0}else if(63===n){if(h(!0))return!0}else{if(27!==n)return!0;n=d()}if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&155===(n=d())&&10===(n=d())&&f()}else 41===n&&127===(n=d())&&(79===(n=d())||e.isKeyword(n))&&155===(n=d())&&10===(n=d())&&f()}return!0}return!1}function y(){var n=e.scanner.getToken();if(93===n){if(m(),151===(n=d()))e.scanner.lookAhead((function(){var n=e.scanner.scan();return 41===n||18===n}))&&(n=d());if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&155===(n=d())&&10===(n=d())&&f()}else if(41===n)155===(n=d())&&10===(n=d())&&f();else if(100===n){if(151===(n=d()))e.scanner.lookAhead((function(){var n=e.scanner.scan();return 79===n||e.isKeyword(n)}))&&(n=d());if((79===n||e.isKeyword(n))&&63===(n=d())&&h(!0))return!0}return!0}return!1}function h(n,t){void 0===t&&(t=!1);var r=n?d():e.scanner.getToken();return 145===r&&(20===(r=d())&&(10===(r=d())||t&&14===r)&&f(),!0)}function v(){var n=e.scanner.getToken();if(79===n&&"define"===e.scanner.getTokenValue()){if(20!==(n=d()))return!0;if(10===(n=d())||14===n){if(27!==(n=d()))return!0;n=d()}if(22!==n)return!0;for(n=d();23!==n&&1!==n;)10!==n&&14!==n||f(),n=d();return!0}return!1}if(t&&function(){for(e.scanner.setText(n),d();1!==e.scanner.getToken();)_()||g()||y()||r&&(h(!1,!0)||v())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,n),e.processPragmasIntoFields(s,e.noop),u){if(a)for(var b=0,E=a;b<E.length;b++){var T=E[b];c.push(T.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(a)for(var x=0,L=a;x<L.length;x++){0===(T=L[x]).depth?(S||(S=[]),S.push(T.ref.fileName)):c.push(T.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}}(ha||(ha={})),function(e){!function(n){function t(e,n,t,r,i,o){return{canRename:!0,fileToRename:void 0,kind:t,displayName:e,fullDisplayName:n,kindModifiers:r,triggerSpan:a(i,o)}}function r(n){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(n)}}function a(n,t){var r=n.getStart(t),a=n.getWidth(t);return e.isStringLiteralLike(n)&&(r+=1,a-=2),e.createTextSpan(r,a)}function i(n){switch(n.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n);default:return!1}}n.getRenameInfo=function(n,a,o,s){var c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(a,o));if(i(c)){var l=function(n,a,i,o,s){var c=a.getSymbolAtLocation(n);if(!c){if(e.isStringLiteralLike(n)){var l=e.getContextualTypeFromParentOrAncestorTypeNode(n,a);if(l&&(128&l.flags||1048576&l.flags&&e.every(l.types,(function(e){return!!(128&e.flags)}))))return t(n.text,n.text,"string","",n,i)}else if(e.isLabelName(n)){var u=e.getTextOfNode(n);return t(u,u,"label","",n,i)}return}var d=c.declarations;if(!d||0===d.length)return;if(d.some((function(n){return function(n,t){var r=t.getSourceFile();return n.isSourceFileDefaultLibrary(r)&&e.fileExtensionIs(r.fileName,".d.ts")}(o,n)})))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(n)&&88===n.originalKeywordKind&&c.parent&&1536&c.parent.flags)return;if(e.isStringLiteralLike(n)&&e.tryGetImportFromModuleSpecifier(n))return s&&s.allowRenameOfImportPath?function(n,t,a){if(!e.isExternalModuleNameRelative(n.text))return r(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var i=a.declarations&&e.find(a.declarations,e.isSourceFile);if(!i)return;var o=e.endsWith(n.text,"/index")||e.endsWith(n.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(i.fileName),"/index"),s=void 0===o?i.fileName:o,c=void 0===o?"module":"directory",l=n.text.lastIndexOf("/")+1,u=e.createTextSpan(n.getStart(t)+1+l,n.text.length-l);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:u}}(n,i,c):void 0;var p=e.SymbolDisplay.getSymbolKind(a,c,n),f=e.isImportOrExportSpecifierName(n)||e.isStringOrNumericLiteralLike(n)&&161===n.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(n)):void 0,m=f||a.symbolToString(c),_=f||a.getFullyQualifiedName(c);return t(m,_,p,e.SymbolDisplay.getSymbolModifiers(a,c),n,i)}(c,n.getTypeChecker(),a,n,s);if(l)return l}return r(e.Diagnostics.You_cannot_rename_this_element)},n.nodeIsEligibleForRename=i}(e.Rename||(e.Rename={}))}(ha||(ha={})),function(e){!function(n){function t(n,t,r){return e.Debug.assert(r.pos<=t),t<r.end||r.getEnd()===t&&e.getTouchingPropertyName(n,t).pos<r.end}n.getSmartSelectionRange=function(n,r){var i,o={textSpan:e.createTextSpanFromBounds(r.getFullStart(),r.getEnd())},s=r;e:for(;;){var d=a(s);if(!d.length)break;for(var p=0;p<d.length;p++){var f=d[p-1],m=d[p],_=d[p+1];if(e.getTokenPosOfNode(m,r,!0)>n)break e;var g=e.singleOrUndefined(e.getTrailingCommentRanges(r.text,m.end));if(g&&2===g.kind&&E(g.pos,g.end),t(r,n,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||f&&e.isTemplateHead(f)||e.isVariableDeclarationList(m)&&e.isVariableStatement(s)||e.isSyntaxList(m)&&e.isVariableDeclarationList(s)||e.isVariableDeclaration(m)&&e.isSyntaxList(s)&&1===d.length||e.isJSDocTypeExpression(m)||e.isJSDocSignature(m)||e.isJSDocTypeLiteral(m)){s=m;break}if(e.isTemplateSpan(s)&&_&&e.isTemplateMiddleOrTemplateTail(_))b(m.getFullStart()-"${".length,_.getStart()+"}".length);var y=e.isSyntaxList(m)&&c(f)&&l(_)&&!e.positionsAreOnSameLine(f.getStart(),_.getStart(),r),h=y?f.getEnd():m.getStart(),v=y?_.getStart():u(r,m);e.hasJSDocNodes(m)&&(null===(i=m.jsDoc)||void 0===i?void 0:i.length)&&b(e.first(m.jsDoc).getStart(),v),b(h,v),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&b(h+1,v-1),s=m;break}if(p===d.length-1)break e}}return o;function b(t,r){if(t!==r){var a=e.createTextSpanFromBounds(t,r);(!o||!e.textSpansEqual(a,o.textSpan)&&e.textSpanIntersectsWithPosition(a,n))&&(o=fa({textSpan:a},o&&{parent:o}))}}function E(e,n){b(e,n);for(var t=e;47===r.text.charCodeAt(t);)t++;b(t,n)}};var r=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(n){if(e.isSourceFile(n))return i(n.getChildAt(0).getChildren(),r);if(e.isMappedTypeNode(n)){var t=n.getChildren(),a=t[0],c=t.slice(1),l=e.Debug.checkDefined(c.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(l.kind,19);var u=i(c,(function(e){return e===n.readonlyToken||144===e.kind||e===n.questionToken||57===e.kind}));return[a,s(o(i(u,(function(e){var n=e.kind;return 22===n||162===n||23===n})),(function(e){return 58===e.kind}))),l]}if(e.isPropertySignature(n))return o(c=i(n.getChildren(),(function(t){return t===n.name||e.contains(n.modifiers,t)})),(function(e){return 58===e.kind}));if(e.isParameter(n)){var d=i(n.getChildren(),(function(e){return e===n.dotDotDotToken||e===n.name}));return o(i(d,(function(e){return e===d[0]||e===n.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(n)?o(n.getChildren(),(function(e){return 63===e.kind})):n.getChildren()}function i(e,n){for(var t,r=[],a=0,i=e;a<i.length;a++){var o=i[a];n(o)?(t=t||[]).push(o):(t&&(r.push(s(t)),t=void 0),r.push(o))}return t&&r.push(s(t)),r}function o(n,t,r){if(void 0===r&&(r=!0),n.length<2)return n;var a=e.findIndex(n,t);if(-1===a)return n;var i=n.slice(0,a),o=n[a],c=e.last(n),l=r&&26===c.kind,u=n.slice(a+1,l?n.length-1:void 0),d=e.compact([i.length?s(i):void 0,o,u.length?s(u):void 0]);return l?d.concat(c):d}function s(n){return e.Debug.assertGreaterThanOrEqual(n.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(n),n[0].pos,e.last(n).end)}function c(e){var n=e&&e.kind;return 18===n||22===n||20===n||279===n}function l(e){var n=e&&e.kind;return 19===n||23===n||21===n||280===n}function u(e,n){switch(n.kind){case 338:case 336:case 345:case 343:case 340:return e.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(ha||(ha={})),function(e){!function(n){var t,r,a,i;function o(n,t,r){for(var a=n.getFullStart(),i=n.parent;i;){var o=e.findPrecedingToken(a,t,i,!0);if(o)return e.rangeContainsRange(r,o);i=i.parent}return e.Debug.fail("Could not find preceding token")}function s(n,t){var r=function(n,t){if(29===n.kind||20===n.kind)return{list:_(n.parent,n,t),argumentIndex:0};var r=e.findContainingList(n);return r&&{list:r,argumentIndex:p(r,n)}}(n,t);if(r){var a=r.list,i=r.argumentIndex,o=function(n){var t=n.getChildren(),r=e.countWhere(t,(function(e){return 27!==e.kind}));t.length>0&&27===e.last(t).kind&&r++;return r}(a);0!==i&&e.Debug.assertLessThan(i,o);var s=function(n,t){var r=n.getFullStart(),a=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,a-r)}(a,t);return{list:a,argumentIndex:i,argumentCount:o,argumentsSpan:s}}}function c(n,t,r){var a=n.parent;if(e.isCallOrNewExpression(a)){var i=a,o=s(n,r);if(!o)return;var c=o.list,l=o.argumentIndex,u=o.argumentCount,d=o.argumentsSpan;return{isTypeParameterList:!!a.typeArguments&&a.typeArguments.pos===c.pos,invocation:{kind:0,node:i},argumentsSpan:d,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(n)&&e.isTaggedTemplateExpression(a))return e.isInsideTemplateLiteral(n,t,r)?f(a,0,r):void 0;if(e.isTemplateHead(n)&&209===a.parent.kind){var p=a,m=p.parent;return e.Debug.assert(222===p.kind),f(m,l=e.isInsideTemplateLiteral(n,t,r)?0:1,r)}if(e.isTemplateSpan(a)&&e.isTaggedTemplateExpression(a.parent.parent)){var _=a;m=a.parent.parent;if(e.isTemplateTail(n)&&!e.isInsideTemplateLiteral(n,t,r))return;l=function(n,t,r,a){if(e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(t))return e.isInsideTemplateLiteral(t,r,a)?0:n+2;return n+1}(_.parent.templateSpans.indexOf(_),n,t,r);return f(m,l,r)}if(e.isJsxOpeningLikeElement(a)){var g=a.attributes.pos,y=e.skipTrivia(r.text,a.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:a},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(n,r);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:i={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(r),n.end),argumentIndex:b,argumentCount:b+1}}}function l(n){return e.isBinaryExpression(n.parent)?l(n.parent):n}function u(n){return e.isBinaryExpression(n.left)?u(n.left)+1:2}function d(n){return"__type"===n.name&&e.firstDefined(n.declarations,(function(n){return e.isFunctionTypeNode(n)?n.parent.symbol:void 0}))||n}function p(e,n){for(var t=0,r=0,a=e.getChildren();r<a.length;r++){var i=a[r];if(i===n)break;27!==i.kind&&t++}return t}function f(n,t,r){var a=e.isNoSubstitutionTemplateLiteral(n.template)?1:n.template.templateSpans.length+1;return 0!==t&&e.Debug.assertLessThan(t,a),{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:m(n,r),argumentIndex:t,argumentCount:a}}function m(n,t){var r=n.template,a=r.getStart(),i=r.getEnd();222===r.kind&&(0===e.last(r.templateSpans).literal.getFullWidth()&&(i=e.skipTrivia(t.text,i,!1)));return e.createTextSpan(a,i-a)}function _(n,t,r){var a=n.getChildren(r),i=a.indexOf(t);return e.Debug.assert(i>=0&&a.length>i+1),a[i+1]}function g(n){return 0===n.kind?e.getInvokedExpression(n.node):n.called}function y(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}(r=t||(t={}))[r.Call=0]="Call",r[r.TypeArgs=1]="TypeArgs",r[r.Contextual=2]="Contextual",n.getSignatureHelpItems=function(n,t,r,a,i){var p=n.getTypeChecker(),f=e.findTokenOnLeftOfPosition(t,r);if(f){var m=!!a&&"characterTyped"===a.kind;if(!m||!e.isInString(t,r,f)&&!e.isInComment(t,r)){var _=!!a&&"invoked"===a.kind,h=function(n,t,r,a,i){for(var o=function(n){e.Debug.assert(e.rangeContainsRange(n.parent,n),"Not a subspan",(function(){return"Child: ".concat(e.Debug.formatSyntaxKind(n.kind),", parent: ").concat(e.Debug.formatSyntaxKind(n.parent.kind))}));var i=function(n,t,r,a){return function(n,t,r,a){var i=function(n,t,r){if(20!==n.kind&&27!==n.kind)return;var a=n.parent;switch(a.kind){case 211:case 168:case 212:case 213:var i=s(n,t);if(!i)return;var o=i.argumentIndex,c=i.argumentCount,d=i.argumentsSpan,p=e.isMethodDeclaration(a)?r.getContextualTypeForObjectLiteralElement(a):r.getContextualType(a);return p&&{contextualType:p,argumentIndex:o,argumentCount:c,argumentsSpan:d};case 220:var f=l(a),m=r.getContextualType(f),_=20===n.kind?0:u(a)-1,g=u(f);return m&&{contextualType:m,argumentIndex:_,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}(n,r,a);if(!i)return;var o=i.contextualType,c=i.argumentIndex,p=i.argumentCount,f=i.argumentsSpan,m=o.getNonNullableType(),_=m.getCallSignatures();return 1!==_.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(_),node:n,symbol:d(m.symbol)},argumentsSpan:f,argumentIndex:c,argumentCount:p}}(n,0,r,a)||c(n,t,r)}(n,t,r,a);if(i)return{value:i}},p=n;!e.isSourceFile(p)&&(i||!e.isBlock(p));p=p.parent){var f=o(p);if("object"===typeof f)return f.value}return}(f,r,t,p,_);if(h){i.throwIfCancellationRequested();var E=function(n,t,r,a,i){var s=n.invocation,c=n.argumentCount;switch(s.kind){case 0:if(i&&!function(n,t,r){if(!e.isCallOrNewExpression(t))return!1;var a=t.getChildren(r);switch(n.kind){case 20:return e.contains(a,n);case 27:var i=e.findContainingList(n);return!!i&&e.contains(a,i);case 29:return o(n,r,t.expression);default:return!1}}(a,s.node,r))return;var l=[],u=t.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(i&&!o(a,r,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,t)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=t.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(h,p,t,f,m);return i.throwIfCancellationRequested(),E?p.runWithCancellationToken(i,(function(e){return 0===E.kind?v(E.candidates,E.resolvedSignature,h,t,e):function(e,n,t,r){var a=n.argumentCount,i=n.argumentsSpan,o=n.invocation,s=n.argumentIndex,c=r.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[b(e,c,r,y(o),t)],applicableSpan:i,selectedItemIndex:0,argumentIndex:s,argumentCount:a}:void 0}(E.symbol,h,t,e)})):e.isSourceFileJS(t)?function(n,t,r){if(2===n.invocation.kind)return;var a=g(n.invocation),i=e.isPropertyAccessExpression(a)?a.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:e.firstDefined(t.getSourceFiles(),(function(t){return e.firstDefined(t.getNamedDeclarations().get(i),(function(e){var a=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),i=a&&a.getCallSignatures();if(i&&i.length)return o.runWithCancellationToken(r,(function(e){return v(i,i[0],n,t,e,!0)}))}))}))}(h,n,i):void 0}}}},(i=a||(a={}))[i.Candidate=0]="Candidate",i[i.Type=1]="Type",n.getArgumentInfoForCompletions=function(e,n,t){var r=c(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var h=70246400;function v(n,t,r,a,i,o){var s,c=r.isTypeParameterList,l=r.argumentCount,u=r.argumentsSpan,d=r.invocation,p=r.argumentIndex,f=y(d),m=2===d.kind?d.symbol:i.getSymbolAtLocation(g(d))||o&&(null===(s=t.declaration)||void 0===s?void 0:s.symbol),_=m?e.symbolToDisplayParts(i,m,o?a:void 0,void 0):e.emptyArray,h=e.map(n,(function(n){return function(n,t,r,a,i,o){var s=(r?T:S)(n,a,i,o);return e.map(s,(function(r){var o=r.isVariadic,s=r.parameters,c=r.prefix,l=r.suffix,u=pa(pa([],t,!0),c,!0),d=pa(pa([],l,!0),function(n,t,r){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var a=r.getTypePredicateOfSignature(n);a?r.writeTypePredicate(a,t,void 0,e):r.writeType(r.getReturnTypeOfSignature(n),t,void 0,e)}))}(n,i,a),!0),p=n.getDocumentationComment(a),f=n.getJsDocTags();return{isVariadic:o,prefixDisplayParts:u,suffixDisplayParts:d,separatorDisplayParts:E,parameters:s,documentation:p,tags:f}}))}(n,_,c,i,f,a)}));0!==p&&e.Debug.assertLessThan(p,l);for(var v=0,b=0,x=0;x<h.length;x++){var L=h[x];if(n[x]===t&&(v=b,L.length>1))for(var D=0,C=0,A=L;C<A.length;C++){var I=A[C];if(I.isVariadic||I.parameters.length>=l){v=b+D;break}D++}b+=L.length}e.Debug.assert(-1!==v);var k={items:e.flatMapToMutable(h,e.identity),applicableSpan:u,selectedItemIndex:v,argumentIndex:p,argumentCount:l},N=k.items[v];if(N.isVariadic){var R=e.findIndex(N.parameters,(function(e){return!!e.isRest}));-1<R&&R<N.parameters.length-1?k.argumentIndex=N.parameters.length:k.argumentIndex=Math.min(k.argumentIndex,N.parameters.length-1)}return k}function b(n,t,r,a,i){var o=e.symbolToDisplayParts(r,n),s=e.createPrinter({removeComments:!0}),c=t.map((function(e){return x(e,r,a,i,s)})),l=n.getDocumentationComment(r),u=n.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:pa(pa([],o,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:E,parameters:c,documentation:l,tags:u}}var E=[e.punctuationPart(27),e.spacePart()];function T(n,t,r,a){var i=(n.target||n).typeParameters,o=e.createPrinter({removeComments:!0}),s=(i||e.emptyArray).map((function(e){return x(e,t,r,a,o)})),c=n.thisParameter?[t.symbolToParameterDeclaration(n.thisParameter,r,h)]:[];return t.getExpandedParameters(n).map((function(n){var i=e.factory.createNodeArray(pa(pa([],c,!0),e.map(n,(function(e){return t.symbolToParameterDeclaration(e,r,h)})),!0)),l=e.mapToDisplayParts((function(e){o.writeList(2576,i,a,e)}));return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(29)],suffix:pa([e.punctuationPart(31)],l,!0)}}))}function S(n,t,r,a){var i=e.createPrinter({removeComments:!0}),o=e.mapToDisplayParts((function(o){if(n.typeParameters&&n.typeParameters.length){var s=e.factory.createNodeArray(n.typeParameters.map((function(e){return t.typeParameterToDeclaration(e,r,h)})));i.writeList(53776,s,a,o)}})),s=t.getExpandedParameters(n),c=t.hasEffectiveRestParameter(n)?1===s.length?function(e){return!0}:function(e){return!!(e.length&&32768&e[e.length-1].checkFlags)}:function(e){return!1};return s.map((function(n){return{isVariadic:c(n),parameters:n.map((function(n){return function(n,t,r,a,i){var o=e.mapToDisplayParts((function(e){var o=t.symbolToParameterDeclaration(n,r,h);i.writeNode(4,o,a,e)})),s=t.isOptionalParameter(n.valueDeclaration),c=!!(32768&n.checkFlags);return{name:n.name,documentation:n.getDocumentationComment(t),displayParts:o,isOptional:s,isRest:c}}(n,t,r,a,i)})),prefix:pa(pa([],o,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}}))}function x(n,t,r,a,i){var o=e.mapToDisplayParts((function(e){var o=t.typeParameterToDeclaration(n,r,h);i.writeNode(4,o,a,e)}));return{name:n.symbol.name,documentation:n.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(ha||(ha={})),function(e){!function(n){function t(e){return"literals"===e.includeInlayParameterNameHints}n.provideInlayHints=function(n){var r=n.file,a=n.program,i=n.span,o=n.cancellationToken,s=n.preferences,c=r.text,l=a.getCompilerOptions(),u=a.getTypeChecker(),d=[];return function n(a){if(!a||0===a.getFullWidth())return;switch(a.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:o.throwIfCancellationRequested()}if(!e.textSpanIntersectsWith(i,a.pos,a.getFullWidth()))return;if(e.isTypeNode(a))return;s.includeInlayVariableTypeHints&&e.isVariableDeclaration(a)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(a)?_(a):s.includeInlayEnumMemberValueHints&&e.isEnumMember(a)?function(e){if(e.initializer)return;var n=u.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,d.push({text:"= ".concat(b(t,30)),position:r,kind:"Enum",whitespaceBefore:!0}));var t,r}(a):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(s)&&(e.isCallExpression(a)||e.isNewExpression(a))?function(n){var r=n.arguments;if(!r||!r.length)return;var a=[],i=u.getResolvedSignatureForSignatureHelp(n,a);if(!i||!a.length)return;for(var o=0;o<r.length;++o){var c=r[o],l=e.skipParentheses(c);if(!t(s)||h(l)){var d=u.getParameterIdentifierNameAtPosition(i,o);if(d){var f=d[0],m=d[1];if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!g(l,f))&&!m)continue;var _=e.unescapeLeadingUnderscores(f);if(y(l,_))continue;p(_,c.getStart(),m)}}}}(a):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(a)&&e.hasContextSensitiveParameters(a)&&function(n){var t=u.getSignatureFromDeclaration(n);if(!t)return;for(var r=0;r<n.parameters.length&&r<t.parameters.length;++r){var a=n.parameters[r];if(!e.getEffectiveTypeAnnotationNode(a)){var i=v(t.parameters[r]);i&&f(i,a.name.end)}}}(a),s.includeInlayFunctionLikeReturnTypeHints&&function(n){return e.isArrowFunction(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n)||e.isMethodDeclaration(n)||e.isGetAccessorDeclaration(n)}(a)&&function(n){if(e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r))return;if(e.getEffectiveReturnTypeNode(n)||!n.body)return;var t=u.getSignatureFromDeclaration(n);if(!t)return;var a=u.getReturnTypeOfSignature(t);if(m(a))return;var i=E(a);if(!i)return;f(i,function(n){var t=e.findChildOfKind(n,21,r);if(t)return t.end;return n.parameters.end}(n))}(a));return e.forEachChild(a,n)}(r),d;function p(e,n,t){d.push({text:"".concat(t?"...":"").concat(b(e,30),":"),position:n,kind:"Parameter",whitespaceAfter:!0})}function f(e,n){d.push({text:": ".concat(b(e,30)),position:n,kind:"Type",whitespaceBefore:!0})}function m(e){return e.symbol&&1536&e.symbol.flags}function _(n){if(n.initializer&&!e.isBindingPattern(n.name)&&!e.getEffectiveTypeAnnotationNode(n)){var t=u.getTypeAtLocation(n);if(!m(t)){var r=E(t);r&&f(r,n.name.end)}}}function g(n,t){return e.isIdentifier(n)?n.text===t:!!e.isPropertyAccessExpression(n)&&n.name.text===t}function y(n,t){if(!e.isIdentifierText(t,l.target,e.getLanguageVariant(r.scriptKind)))return!1;var a=e.getLeadingCommentRanges(c,n.pos);if(!(null===a||void 0===a?void 0:a.length))return!1;var i=function(e){return new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$"))}(t);return e.some(a,(function(e){return i.test(c.substring(e.pos,e.end))}))}function h(n){switch(n.kind){case 218:var t=n.operand;return e.isLiteralExpression(t)||e.isIdentifier(t)&&e.isInfinityOrNaNString(t.escapedText);case 110:case 95:case 104:case 14:case 222:return!0;case 79:var r=n.escapedText;return function(e){return"undefined"===e}(r)||e.isInfinityOrNaNString(r)}return e.isLiteralExpression(n)}function v(n){var t=n.valueDeclaration;if(t&&e.isParameter(t)){var r=u.getTypeOfSymbolAtLocation(n,t);if(!m(r))return E(r)}}function b(e,n){return e.length>n?e.substr(0,n-"...".length)+"...":e}function E(n){var t=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(a){var i=u.typeToTypeNode(n,void 0,71286784,a);e.Debug.assertIsDefined(i,"should always get typenode"),t.writeNode(4,i,r,a)}))}}}(e.InlayHints||(e.InlayHints={}))}(ha||(ha={})),function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function t(n,t,r){var a=e.tryParseRawSourceMap(t);if(a&&a.sources&&a.file&&a.mappings&&(!a.sourcesContent||!a.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(n,a,r)}e.getSourceMapper=function(n){var t=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),r=n.getCurrentDirectory(),a=new e.Map,i=new e.Map;return{tryGetSourcePosition:function n(t){if(!e.isDeclarationFileName(t.fileName))return;if(!c(t.fileName))return;var r=s(t.fileName).getSourcePosition(t);return r&&r!==t?n(r)||r:void 0},tryGetGeneratedPosition:function(a){if(e.isDeclarationFileName(a.fileName))return;var i=c(a.fileName);if(!i)return;var o=n.getProgram();if(o.isSourceOfProjectReferenceRedirect(i.fileName))return;var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(a.fileName,o.getCompilerOptions(),r,o.getCommonSourceDirectory(),t);if(void 0===d)return;var p=s(d,a.fileName).getGeneratedPosition(a);return p===a?void 0:p},toLineColumnOffset:function(e,n){return u(e).getLineAndCharacterOfPosition(n)},clearCache:function(){a.clear(),i.clear()}};function o(n){return e.toPath(n,r,t)}function s(r,a){var s,c=o(r),l=i.get(c);if(l)return l;if(n.getDocumentPositionMapper)s=n.getDocumentPositionMapper(r,a);else if(n.readFile){var d=u(r);s=d&&e.getDocumentPositionMapper({getSourceFileLike:u,getCanonicalFileName:t,log:function(e){return n.log(e)}},r,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!n.fileExists||n.fileExists(e)?n.readFile(e):void 0}))}return i.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var t=n.getProgram();if(t){var r=o(e),a=t.getSourceFileByPath(r);return a&&a.resolvedPath===r?a:void 0}}function l(t){var r=o(t),i=a.get(r);if(void 0!==i)return i||void 0;if(n.readFile&&(!n.fileExists||n.fileExists(r))){var s=n.readFile(r),c=!!s&&function(n,t){return{text:n,lineMap:t,getLineAndCharacterOfPosition:function(n){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),n)}}}(s);return a.set(r,c),c||void 0}a.set(r,!1)}function u(e){return n.getSourceFileLike?n.getSourceFileLike(e):c(e)||l(e)}},e.getDocumentPositionMapper=function(r,a,i,o){var s=e.tryGetSourceMappingURL(i);if(s){var c=n.exec(s);if(c){if(c[1]){var l=c[1];return t(r,e.base64decode(e.sys,l),a)}s=void 0}}var u=[];s&&u.push(s),u.push(a+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(a)),p=0,f=u;p<f.length;p++){var m=f[p],_=e.getNormalizedAbsolutePath(m,e.getDirectoryPath(a)),g=o(_,d);if(e.isString(g))return t(r,g,_);if(void 0!==g)return g||void 0}}}(ha||(ha={})),function(e){var n=new e.Map;function t(n){return e.isPropertyAccessExpression(n)?t(n.expression):n}function r(n){switch(n.kind){case 265:var t=n.importClause,r=n.moduleSpecifier;return t&&!t.name&&t.namedBindings&&267===t.namedBindings.kind&&e.isStringLiteral(r)?t.namedBindings.name:void 0;case 264:return n.name;default:return}}function a(e,n){var t=n.getSignatureFromDeclaration(e),r=t?n.getReturnTypeOfSignature(t):void 0;return!!r&&!!n.getPromisedTypeOfPromise(r)}function i(n,t){return e.isReturnStatement(n)&&!!n.expression&&o(n.expression,t)}function o(n,t){if(!s(n)||!c(n)||!n.arguments.every((function(e){return l(e,t)})))return!1;for(var r=n.expression.expression;s(r)||e.isPropertyAccessExpression(r);)if(e.isCallExpression(r)){if(!c(r)||!r.arguments.every((function(e){return l(e,t)})))return!1;r=r.expression.expression}else r=r.expression;return!0}function s(n){return e.isCallExpression(n)&&(e.hasPropertyAccessExpressionWithName(n,"then")||e.hasPropertyAccessExpressionWithName(n,"catch")||e.hasPropertyAccessExpressionWithName(n,"finally"))}function c(n){var t=n.expression.name.text,r="then"===t?2:"catch"===t||"finally"===t?1:0;return!(n.arguments.length>r)&&(n.arguments.length<r||(1===r||e.some(n.arguments,(function(n){return 104===n.kind||e.isIdentifier(n)&&"undefined"===n.text}))))}function l(t,r){switch(t.kind){case 255:case 212:if(1&e.getFunctionFlags(t))return!1;case 213:n.set(u(t),!0);case 104:return!0;case 79:case 205:var a=r.getSymbolAtLocation(t);return!!a&&(r.isUndefinedSymbol(a)||e.some(e.skipAlias(a,r).declarations,(function(n){return e.isFunctionLike(n)||e.hasInitializer(n)&&!!n.initializer&&e.isFunctionLike(n.initializer)})));default:return!1}}function u(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function d(e){switch(e.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.computeSuggestionDiagnostics=function(o,s,c){s.getSemanticDiagnostics(o,c);var l,p=[],f=s.getTypeChecker();!(o.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(o.fileName,[".cts",".cjs"]))&&o.commonJsModuleIndicator&&(e.programContainsEsModules(s)||e.compilerOptionsIndicateEsModules(s.getCompilerOptions()))&&function(n){return n.statements.some((function(n){switch(n.kind){case 236:return n.declarationList.declarations.some((function(n){return!!n.initializer&&e.isRequireCall(t(n.initializer),!0)}));case 237:var r=n.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var a=e.getAssignmentDeclarationKind(r);return 1===a||2===a;default:return!1}}))}(o)&&p.push(e.createDiagnosticForNode((l=o.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var m=e.isSourceFileJS(o);if(n.clear(),function t(r){if(m)(function(n,t){var r,a,i,o;if(212===n.kind){if(e.isVariableDeclaration(n.parent)&&(null===(r=n.symbol.members)||void 0===r?void 0:r.size))return!0;var s=t.getSymbolOfExpando(n,!1);return!(!s||!(null===(a=s.exports)||void 0===a?void 0:a.size)&&!(null===(i=s.members)||void 0===i?void 0:i.size))}if(255===n.kind)return!!(null===(o=n.symbol.members)||void 0===o?void 0:o.size);return!1})(r,f)&&p.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(r)&&r.parent===o&&2&r.declarationList.flags&&1===r.declarationList.declarations.length){var s=r.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&p.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(r)&&p.push(e.createDiagnosticForNode(r.name||r,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}d(r)&&function(t,r,o){(function(n,t){return!e.isAsyncFunction(n)&&n.body&&e.isBlock(n.body)&&function(n,t){return!!e.forEachReturnStatement(n,(function(e){return i(e,t)}))}(n.body,t)&&a(n,t)})(t,r)&&!n.has(u(t))&&o.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}(r,f,p);r.forEachChild(t)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var _=0,g=o.imports;_<g.length;_++){var y=g[_],h=r(e.importFromModuleSpecifier(y));if(h){var v=e.getResolvedModule(o,y.text,e.getModeForUsageLocation(o,y)),b=v&&s.getSourceFile(v.resolvedFileName);b&&b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&p.push(e.createDiagnosticForNode(h,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(p,o.bindSuggestionDiagnostics),e.addRange(p,s.getSuggestionDiagnostics(o,c)),p.sort((function(e,n){return e.start-n.start}))},e.returnsPromise=a,e.isReturnStatementWithFixablePromiseHandler=i,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=d}(ha||(ha={})),function(e){!function(n){var t=70246400;function r(n,t,r){var i=a(n,t,r);if(""!==i)return i;var o=e.getCombinedLocalAndExportSymbolFlags(t);return 32&o?e.getDeclarationOfKind(t,225)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":i}function a(n,t,r){var a=n.getRootSymbols(t);if(1===a.length&&8192&e.first(a).flags&&0!==n.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length)return"method";if(n.isUndefinedSymbol(t))return"var";if(n.isArgumentsSymbol(t))return"local var";if(108===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(t);if(3&i)return e.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&e.isVarConst(t.valueDeclaration)?"const":e.forEach(t.declarations,e.isLet)?"let":o(t)?"local var":"var";if(16&i)return o(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&t.checkFlags){var s=e.forEach(n.getRootSymbols(t),(function(e){if(98311&e.getFlags())return"property"}));return s||(n.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}switch(r.parent&&r.parent.kind){case 279:case 277:case 278:return 79===r.kind?"property":"JSX attribute";case 284:return"JSX attribute";default:return"property"}}return""}function i(n){if(n.declarations&&n.declarations.length){var t=n.declarations,r=t[0],a=t.slice(1),i=e.length(a)&&e.isDeprecatedDeclaration(r)&&e.some(a,(function(n){return!e.isDeprecatedDeclaration(n)}))?8192:0,o=e.getNodeModifiers(r,i);if(o)return o.split(",")}return[]}function o(n){return!n.parent&&e.forEach(n.declarations,(function(n){if(212===n.kind)return!0;if(253!==n.kind&&255!==n.kind)return!1;for(var t=n.parent;!e.isFunctionBlock(t);t=t.parent)if(303===t.kind||261===t.kind)return!1;return!0}))}n.getSymbolKind=r,n.getSymbolModifiers=function(n,t){if(!t)return"";var r=new e.Set(i(t));if(2097152&t.flags){var a=n.getAliasedSymbol(t);a!==t&&e.forEach(i(a),(function(e){r.add(e)}))}return 16777216&t.flags&&r.add("optional"),r.size>0?e.arrayFrom(r.values()).join(","):""},n.getSymbolDisplayPartsDocumentationAndSymbolKind=function n(i,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var f,m,_,g,y=[],h=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),E=1&u?a(i,o,l):"",T=!1,S=108===l.kind&&e.isInExpressionContext(l),x=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==E||32&b||2097152&b){"getter"!==E&&"setter"!==E||(E="property");var L=void 0;if(f=S?i.getTypeAtLocation(l):i.getTypeOfSymbolAtLocation(o,l),l.parent&&205===l.parent.kind){var D=l.parent.name;(D===l||D&&0===D.getFullWidth())&&(l=l.parent)}var C=void 0;if(e.isCallOrNewExpression(l)?C=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(C=l.parent),C){L=i.getResolvedSignature(C);var A=208===C.kind||e.isCallExpression(C)&&106===C.expression.kind,I=A?f.getConstructSignatures():f.getCallSignatures();if(!L||e.contains(I,L.target)||e.contains(I,L)||(L=I.length?I[0]:void 0),L){switch(A&&32&b?(E="constructor",Q(f.symbol,E)):2097152&b?(Z(E="alias"),y.push(e.spacePart()),A&&(4&L.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Y(o)):Q(o,E),E){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(f)||!f.symbol||(e.addRange(y,e.symbolToDisplayParts(i,f.symbol,c,void 0,5)),y.push(e.lineBreakPart())),A&&(4&L.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),$(L,I,262144);break;default:$(L,I)}T=!0,x=I.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||134===l.kind&&170===l.parent.kind){var k=l.parent;if(o.declarations&&e.find(o.declarations,(function(e){return e===(134===l.kind?k.parent:k)}))){I=170===k.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures();L=i.isImplementationOfOverload(k)?I[0]:i.getSignatureFromDeclaration(k),170===k.kind?(E="constructor",Q(f.symbol,E)):Q(173!==k.kind||2048&f.symbol.flags||4096&f.symbol.flags?o:f.symbol,E),L&&$(L,I),T=!0,x=I.length>1}}}if(32&b&&!T&&!S&&(q(),e.getDeclarationOfKind(o,225)?Z("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),Y(o),ee(o,s)),64&b&&2&u&&(J(),y.push(e.keywordPart(118)),y.push(e.spacePart()),Y(o),ee(o,s)),524288&b&&2&u&&(J(),y.push(e.keywordPart(151)),y.push(e.spacePart()),Y(o),ee(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(J(),e.some(o.declarations,(function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),Y(o)),1536&b&&!S){J();var N=(H=e.getDeclarationOfKind(o,260))&&H.name&&79===H.name.kind;y.push(e.keywordPart(N?142:141)),y.push(e.spacePart()),Y(o)}if(262144&b&&2&u)if(J(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),Y(o),o.parent)X(),Y(o.parent,c),ee(o.parent,c);else{var R=e.getDeclarationOfKind(o,162);if(void 0===R)return e.Debug.fail();if(H=R.parent)if(e.isFunctionLikeKind(H.kind)){X();L=i.getSignatureFromDeclaration(H);174===H.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):173!==H.kind&&H.name&&Y(H.symbol),e.addRange(y,e.signatureToDisplayParts(i,L,s,32))}else 258===H.kind&&(X(),y.push(e.keywordPart(151)),y.push(e.spacePart()),Y(H.symbol),ee(H.symbol,s))}if(8&b&&(E="enum member",Q(o,"enum member"),297===(null===(H=null===(p=o.declarations)||void 0===p?void 0:p[0])||void 0===H?void 0:H.kind))){var O=i.getConstantValue(H);void 0!==O&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(O),"number"===typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(J(),!T){var w=i.getAliasedSymbol(o);if(w!==o&&w.declarations&&w.declarations.length>0){var M=w.declarations[0],P=e.getNameOfDeclaration(M);if(P){var F=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),G="default"!==o.name&&!F,B=n(i,w,e.getSourceFileOfNode(M),M,P,u,G?o:w);y.push.apply(y,B.displayParts),y.push(e.lineBreakPart()),_=B.documentation,g=B.tags}else _=w.getContextualDocumentationComment(M,i),g=w.getJsDocTags(i)}}if(o.declarations)switch(o.declarations[0].kind){case 263:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(142));break;case 270:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 274:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),Y(o),e.forEach(o.declarations,(function(n){if(264===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(145)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(t)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var r=i.getSymbolAtLocation(t.moduleReference);r&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),Y(r,c))}return!0}}))}if(!T)if(""!==E){if(f)if(S?(J(),y.push(e.keywordPart(108))):Q(o,E),"property"===E||"JSX attribute"===E||3&b||"local var"===E||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var U=e.mapToDisplayParts((function(n){var r=i.typeParameterToDeclaration(f,c,t);z().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)}));e.addRange(y,U)}else e.addRange(y,e.typeToDisplayParts(i,f,c));if(o.target&&o.target.tupleLabelDeclaration){var V=o.target.tupleLabelDeclaration;e.Debug.assertNode(V.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(V.name))),y.push(e.punctuationPart(21))}}else if(16&b||8192&b||16384&b||131072&b||98304&b||"method"===E){(I=f.getNonNullableType().getCallSignatures()).length&&($(I[0],I),x=I.length>1)}}else E=r(i,o,l);if(0!==h.length||x||(h=o.getContextualDocumentationComment(c,i)),0===h.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 303===e.kind})))for(var j=0,K=o.declarations;j<K.length;j++){var H;if((H=K[j]).parent&&220===H.parent.kind){var W=i.getSymbolAtLocation(H.parent.right);if(W&&(h=W.getDocumentationComment(i),v=W.getJsDocTags(i),h.length>0))break}}return 0!==v.length||x||(v=o.getJsDocTags(i)),0===h.length&&_&&(h=_),0===v.length&&g&&(v=g),{displayParts:y,documentation:h,symbolKind:E,tags:0===v.length?void 0:v};function z(){return m||(m=e.createPrinter({removeComments:!0})),m}function J(){y.length&&y.push(e.lineBreakPart()),q()}function q(){d&&(Z("alias"),y.push(e.spacePart()))}function X(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function Y(n,t){d&&n===o&&(n=d);var r=e.symbolToDisplayParts(i,n,t||s,void 0,7);e.addRange(y,r),16777216&o.flags&&y.push(e.punctuationPart(57))}function Q(n,t){J(),t&&(Z(t),n&&!e.some(n.declarations,(function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name}))&&(y.push(e.spacePart()),Y(n)))}function Z(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(n));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(n)),void y.push(e.punctuationPart(21))}}function $(n,t,r){void 0===r&&(r=0),e.addRange(y,e.signatureToDisplayParts(i,n,c,32|r)),t.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),y.push(e.displayPart((t.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===t.length?"overload":"overloads")),y.push(e.punctuationPart(21))),h=n.getDocumentationComment(i),v=n.getJsDocTags(),t.length>1&&0===h.length&&0===v.length&&(h=t[0].getDocumentationComment(i),v=t[0].getJsDocTags())}function ee(n,r){var a=e.mapToDisplayParts((function(a){var o=i.symbolToTypeParameterDeclarations(n,r,t);z().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(r)),a)}));e.addRange(y,a)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(ha||(ha={})),function(e){function n(n,t){var a=[],i=t.compilerOptions?r(t.compilerOptions,a):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===i[s]&&(i[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var u=l[c];i[u.name]=u.transpileOptionValue}i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;var d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=e.createSourceFile(d,n,e.getEmitScriptTarget(i));t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new e.Map(e.getEntries(t.renamedDependencies)));var f,m,_=e.getNewLineCharacter(i),g={getSourceFile:function(n){return n===e.normalizePath(d)?p:void 0},writeFile:function(n,t){e.fileExtensionIs(n,".map")?(e.Debug.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",n),m=t):(e.Debug.assertEqual(f,void 0,"Unexpected multiple outputs, file:",n),f=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return _},fileExists:function(e){return e===d},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},y=e.createProgram([d],i,g);return t.reportDiagnostics&&(e.addRange(a,y.getSyntacticDiagnostics(p)),e.addRange(a,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===f?e.Debug.fail("Output generation failed"):{outputText:f,diagnostics:a,sourceMapText:m}}var t;function r(n,r){t=t||e.filter(e.optionDeclarations,(function(n){return"object"===typeof n.type&&!e.forEachEntry(n.type,(function(e){return"number"!==typeof e}))})),n=e.cloneCompilerOptions(n);for(var a=function(t){if(!e.hasProperty(n,t.name))return"continue";var a=n[t.name];e.isString(a)?n[t.name]=e.parseCustomTypeOption(t,a,r):e.forEachEntry(t.type,(function(e){return e===a}))||r.push(e.createCompilerDiagnosticForInvalidCustomType(t))},i=0,o=t;i<o.length;i++){a(o[i])}return n}e.transpileModule=n,e.transpile=function(t,r,a,i,o){var s=n(t,{compilerOptions:r,fileName:a,reportDiagnostics:!!i,moduleName:o});return e.addRange(i,s.diagnostics),s.outputText},e.fixupCompilerOptions=r}(ha||(ha={})),function(e){!function(n){var t;(t=n.FormattingRequestKind||(n.FormattingRequestKind={}))[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var r=function(){function n(e,n,t){this.sourceFile=e,this.formattingRequestKind=n,this.options=t}return n.prototype.updateContext=function(n,t,r,a,i){this.currentTokenSpan=e.Debug.checkDefined(n),this.currentTokenParent=e.Debug.checkDefined(t),this.nextTokenSpan=e.Debug.checkDefined(r),this.nextTokenParent=e.Debug.checkDefined(a),this.contextNode=e.Debug.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},n.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},n.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},n.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}return this.tokensAreOnSameLine},n.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},n.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},n.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},n.prototype.BlockIsOnOneLine=function(n){var t=e.findChildOfKind(n,18,this.sourceFile),r=e.findChildOfKind(n,19,this.sourceFile);return!(!t||!r)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line},n}();n.FormattingContext=r}(e.formatting||(e.formatting={}))}(ha||(ha={})),function(e){!function(n){var t,r,a=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1);(r=t||(t={}))[r.Scan=0]="Scan",r[r.RescanGreaterThanToken=1]="RescanGreaterThanToken",r[r.RescanSlashToken=2]="RescanSlashToken",r[r.RescanTemplateToken=3]="RescanTemplateToken",r[r.RescanJsxIdentifier=4]="RescanJsxIdentifier",r[r.RescanJsxText=5]="RescanJsxText",r[r.RescanJsxAttributeValue=6]="RescanJsxAttributeValue",n.getFormattingScanner=function(t,r,o,s,c){var l=1===r?i:a;l.setText(t),l.setTextPos(o);var u,d,p,f,m,_=!0,g=c({advance:function(){m=void 0,l.getStartPos()!==o?_=!!d&&4===e.last(d).kind:l.scan();u=void 0,d=void 0;var n=l.getStartPos();for(;n<s;){var t=l.getToken();if(!e.isTrivia(t))break;l.scan();var r={pos:n,end:l.getStartPos(),kind:t};n=l.getStartPos(),u=e.append(u,r)}p=l.getStartPos()},readTokenInfo:function(t){e.Debug.assert(y());var r=function(e){switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}(t)?1:(i=t,13===i.kind?2:function(e){return 16===e.kind||17===e.kind}(t)?3:function(n){if(n.parent)switch(n.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(n.kind)||79===n.kind}return!1}(t)?4:(a=t,e.isJsxText(a)?5:function(n){return n.parent&&e.isJsxAttribute(n.parent)&&n.parent.initializer===n}(t)?6:0));var a;var i;if(m&&r===f)return v(m,t);l.getStartPos()!==p&&(e.Debug.assert(void 0!==m),l.setTextPos(p),l.scan());var o=function(n,t){var r=l.getToken();switch(f=0,t){case 1:if(31===r){f=1;var a=l.reScanGreaterToken();return e.Debug.assert(n.kind===a),a}break;case 2:if(43===(i=r)||68===i){f=2;a=l.reScanSlashToken();return e.Debug.assert(n.kind===a),a}break;case 3:if(19===r)return f=3,l.reScanTemplateToken(!1);break;case 4:return f=4,l.scanJsxIdentifier();case 5:return f=5,l.reScanJsxToken(!1);case 6:return f=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(t)}var i;return r}(t,r),c=n.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),o);d&&(d=void 0);for(;l.getStartPos()<s&&(o=l.scan(),e.isTrivia(o));){var _=n.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),o);if(d||(d=[]),d.push(_),4===o){l.scan();break}}return v(m={leadingTrivia:u,trailingTrivia:d,token:c},t)},readEOFTokenRange:function(){return e.Debug.assert(h()),n.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)},isOnToken:y,isOnEOF:h,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return _},skipToEndOf:function(e){l.setTextPos(e.end),p=l.getStartPos(),f=void 0,m=void 0,_=!1,u=void 0,d=void 0},skipToStartOf:function(e){l.setTextPos(e.pos),p=l.getStartPos(),f=void 0,m=void 0,_=!1,u=void 0,d=void 0}});return m=void 0,l.setText(void 0),g;function y(){var n=m?m.token.kind:l.getToken();return(m?m.token.pos:l.getStartPos())<s&&1!==n&&!e.isTrivia(n)}function h(){return 1===(m?m.token.kind:l.getToken())}function v(n,t){return e.isToken(t)&&n.token.kind!==t.kind&&(n.token.kind=t.kind),n}}}(e.formatting||(e.formatting={}))}(ha||(ha={})),function(e){!function(n){var t,r;n.anyContext=e.emptyArray,(t=n.RuleAction||(n.RuleAction={}))[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",(r=n.RuleFlags||(n.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"}(e.formatting||(e.formatting={}))}(ha||(ha={})),function(e){!function(n){function t(e,n,t,r,i,o){return void 0===o&&(o=0),{leftTokenRange:a(n),rightTokenRange:a(t),rule:{debugName:e,context:r,action:i,flags:o}}}function r(e){return{tokens:e,isSpecific:!0}}function a(n){return"number"===typeof n?r([n]):e.isArray(n)?r(n):n}function i(n,t,a){void 0===a&&(a=[]);for(var i=[],o=n;o<=t;o++)e.contains(a,o)||i.push(o);return r(i)}function o(e,n){return function(t){return t.options&&t.options[e]===n}}function s(e){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!!n.options[e]}}function c(e){return function(n){return n.options&&n.options.hasOwnProperty(e)&&!n.options[e]}}function l(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]}}function u(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!n.options[e]||n.TokensAreOnSameLine()}}function d(e){return function(n){return!n.options||!n.options.hasOwnProperty(e)||!!n.options[e]}}function p(e){return 241===e.contextNode.kind}function f(e){return!p(e)}function m(e){switch(e.contextNode.kind){case 220:return 27!==e.contextNode.operatorToken.kind;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 242:case 162:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 243:return 159===e.currentTokenSpan.kind||159===e.nextTokenSpan.kind}return!1}function _(e){return!m(e)}function g(e){return!y(e)}function y(n){var t=n.contextNode.kind;return 166===t||165===t||163===t||253===t||e.isFunctionLikeKind(t)}function h(e){return 221===e.contextNode.kind||188===e.contextNode.kind}function v(e){return e.TokensAreOnSameLine()||x(e)}function b(e){return 200===e.contextNode.kind||194===e.contextNode.kind||function(e){return S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function E(e){return x(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function T(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return L(e.contextNode)}function x(e){return L(e.nextTokenParent)}function L(e){if(k(e))return!0;switch(e.kind){case 234:case 262:case 204:case 261:return!0}return!1}function D(e){switch(e.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function C(e){return!D(e)}function A(e){return 255===e.contextNode.kind||212===e.contextNode.kind}function I(e){return k(e.contextNode)}function k(e){switch(e.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function N(e){switch(e.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:var n=e.currentTokenParent.parent;if(!n||213!==n.kind&&212!==n.kind)return!0}return!1}function R(e){switch(e.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function O(e){return 204===e.contextNode.kind}function w(e){return function(e){return 207===e.contextNode.kind}(e)||function(e){return 208===e.contextNode.kind}(e)}function M(e){return 27!==e.currentTokenSpan.kind}function P(e){return 23!==e.nextTokenSpan.kind}function F(e){return 21!==e.nextTokenSpan.kind}function G(e){return 213===e.contextNode.kind}function B(e){return 199===e.contextNode.kind}function U(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function V(e){return 11!==e.contextNode.kind}function j(e){return 277!==e.contextNode.kind&&281!==e.contextNode.kind}function K(e){return 287===e.contextNode.kind||286===e.contextNode.kind}function H(e){return 284===e.nextTokenParent.kind}function W(e){return 284===e.contextNode.kind}function z(e){return 278===e.contextNode.kind}function J(e){return!D(e)&&!x(e)}function q(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&X(e.currentTokenParent)&&!X(e.nextTokenParent)}function X(n){for(;e.isExpressionNode(n);)n=n.parent;return 164===n.kind}function Y(e){return 254===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Q(e){return 2!==e.formattingRequestKind}function Z(e){return 260===e.contextNode.kind}function $(e){return 181===e.contextNode.kind}function ee(e){return 174===e.contextNode.kind}function ne(e,n){if(29!==e.kind&&31!==e.kind)return!1;switch(n.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function te(e){return ne(e.currentTokenSpan,e.currentTokenParent)||ne(e.nextTokenSpan,e.nextTokenParent)}function re(e){return 210===e.contextNode.kind}function ae(e){return 114===e.currentTokenSpan.kind&&216===e.currentTokenParent.kind}function ie(e){return 223===e.contextNode.kind&&void 0!==e.contextNode.expression}function oe(e){return 229===e.contextNode.kind}function se(e){return!function(e){switch(e.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}}(e)}function ce(n){var t=n.nextTokenSpan.kind,r=n.nextTokenSpan.pos;if(e.isTrivia(t)){var a=n.nextTokenParent===n.currentTokenParent?e.findNextToken(n.currentTokenParent,e.findAncestor(n.currentTokenParent,(function(e){return!e.parent})),n.sourceFile):n.nextTokenParent.getFirstToken(n.sourceFile);if(!a)return!0;t=a.kind,r=a.getStart(n.sourceFile)}return n.sourceFile.getLineAndCharacterOfPosition(n.currentTokenSpan.pos).line===n.sourceFile.getLineAndCharacterOfPosition(r).line?19===t||1===t:233!==t&&26!==t&&(257===n.contextNode.kind||258===n.contextNode.kind?!e.isPropertySignature(n.currentTokenParent)||!!n.currentTokenParent.type||20!==t:e.isPropertyDeclaration(n.currentTokenParent)?!n.currentTokenParent.initializer:241!==n.currentTokenParent.kind&&235!==n.currentTokenParent.kind&&233!==n.currentTokenParent.kind&&22!==t&&20!==t&&39!==t&&40!==t&&43!==t&&13!==t&&27!==t&&222!==t&&15!==t&&14!==t&&24!==t)}function le(n){return e.positionIsASICandidate(n.currentTokenSpan.end,n.currentTokenParent,n.sourceFile)}n.getAllRules=function(){for(var a=[],S=0;S<=159;S++)1!==S&&a.push(S);function L(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return{tokens:a.filter((function(n){return!e.some((function(e){return e===n}))})),isSpecific:!1}}var k={tokens:a,isSpecific:!1},X=r(pa(pa([],a,!0),[3],!1)),ne=r(pa(pa([],a,!0),[1],!1)),ue=i(81,159),de=i(29,78),pe=[101,102,159,127,139],fe=pa([79],e.typeKeywords,!0),me=X,_e=r([79,3,84,93,100]),ge=r([21,3,90,111,96,91]),ye=[t("IgnoreBeforeComment",k,[2,3],n.anyContext,1),t("IgnoreAfterLineComment",2,k,n.anyContext,1),t("NotSpaceBeforeColon",k,58,[U,_,g],16),t("SpaceAfterColon",58,k,[U,_],4),t("NoSpaceBeforeQuestionMark",k,57,[U,_,g],16),t("SpaceAfterQuestionMarkInConditionalOperator",57,k,[U,h],4),t("NoSpaceAfterQuestionMark",57,k,[U],16),t("NoSpaceBeforeDot",k,[24,28],[U],16),t("NoSpaceAfterDot",[24,28],k,[U],16),t("NoSpaceBetweenImportParenInImportType",100,20,[U,B],16),t("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[U,_],16),t("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[U],16),t("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[U],16),t("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[U,se],16),t("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[U,se],16),t("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[U,m],4),t("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[U,m],4),t("SpaceAfterAddWhenFollowedByPreincrement",39,45,[U,m],4),t("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[U,m],4),t("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[U,m],4),t("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[U,m],4),t("NoSpaceAfterCloseBrace",19,[27,26],[U],16),t("NewLineBeforeCloseBraceInBlockContext",X,19,[T],8),t("SpaceAfterCloseBrace",19,L(21),[U,N],4),t("SpaceBetweenCloseBraceAndElse",19,91,[U],4),t("SpaceBetweenCloseBraceAndWhile",19,115,[U],4),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[U,O],16),t("SpaceAfterConditionalClosingParen",21,22,[R],4),t("NoSpaceBetweenFunctionKeywordAndStar",98,41,[A],16),t("SpaceAfterStarInGeneratorDeclaration",41,79,[A],4),t("SpaceAfterFunctionInFuncDecl",98,k,[D],4),t("NewLineAfterOpenBraceInBlockContext",18,k,[T],8),t("SpaceAfterGetSetInMember",[136,148],79,[D],4),t("NoSpaceBetweenYieldKeywordAndStar",125,41,[U,ie],16),t("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],k,[U,ie],4),t("NoSpaceBetweenReturnAndSemicolon",105,26,[U],16),t("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],k,[U],4),t("SpaceAfterLetConstInVariableDeclaration",[119,85],k,[U,Y],4),t("NoSpaceBeforeOpenParenInFuncCall",k,20,[U,w,M],16),t("SpaceBeforeBinaryKeywordOperator",k,pe,[U,m],4),t("SpaceAfterBinaryKeywordOperator",pe,k,[U,m],4),t("SpaceAfterVoidOperator",114,k,[U,ae],4),t("SpaceBetweenAsyncAndOpenParen",131,20,[G,U],4),t("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[U],4),t("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[U],16),t("SpaceBeforeJsxAttribute",k,79,[H,U],4),t("SpaceBeforeSlashInJsxOpeningElement",k,43,[z,U],4),t("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[z,U],16),t("NoSpaceBeforeEqualInJsxAttribute",k,63,[W,U],16),t("NoSpaceAfterEqualInJsxAttribute",63,k,[W,U],16),t("NoSpaceAfterModuleImport",[141,145],20,[U],16),t("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],k,[U],4),t("SpaceBeforeCertainTypeScriptKeywords",k,[94,117,155],[U],4),t("SpaceAfterModuleName",10,18,[Z],4),t("SpaceBeforeArrow",k,38,[U],4),t("SpaceAfterArrow",38,k,[U],4),t("NoSpaceAfterEllipsis",25,79,[U],16),t("NoSpaceAfterOptionalParameters",57,[21,27],[U,_],16),t("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[U,$],16),t("NoSpaceBeforeOpenAngularBracket",fe,29,[U,te],16),t("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[U,te],16),t("NoSpaceAfterOpenAngularBracket",29,k,[U,te],16),t("NoSpaceBeforeCloseAngularBracket",k,31,[U,te],16),t("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[U,te,C],16),t("SpaceBeforeAt",[21,79],59,[U],4),t("NoSpaceAfterAt",59,k,[U],16),t("SpaceAfterDecorator",k,[126,79,93,88,84,124,123,121,122,136,148,22,41],[q],4),t("NoSpaceBeforeNonNullAssertionOperator",k,53,[U,oe],16),t("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[U,ee],16),t("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[U],4)],he=[t("SpaceAfterConstructor",134,20,[s("insertSpaceAfterConstructor"),U],4),t("NoSpaceAfterConstructor",134,20,[l("insertSpaceAfterConstructor"),U],16),t("SpaceAfterComma",27,k,[s("insertSpaceAfterCommaDelimiter"),U,j,P,F],4),t("NoSpaceAfterComma",27,k,[l("insertSpaceAfterCommaDelimiter"),U,j],16),t("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[s("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),D],4),t("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),D],16),t("SpaceAfterKeywordInControl",ue,20,[s("insertSpaceAfterKeywordsInControlFlowStatements"),R],4),t("NoSpaceAfterKeywordInControl",ue,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),R],16),t("SpaceAfterOpenParen",20,k,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],4),t("SpaceBeforeCloseParen",k,21,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],4),t("SpaceBetweenOpenParens",20,20,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],4),t("NoSpaceBetweenParens",20,21,[U],16),t("NoSpaceAfterOpenParen",20,k,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],16),t("NoSpaceBeforeCloseParen",k,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],16),t("SpaceAfterOpenBracket",22,k,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],4),t("SpaceBeforeCloseBracket",k,23,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],4),t("NoSpaceBetweenBrackets",22,23,[U],16),t("NoSpaceAfterOpenBracket",22,k,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],16),t("NoSpaceBeforeCloseBracket",k,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],16),t("SpaceAfterOpenBrace",18,k,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],4),t("SpaceBeforeCloseBrace",k,19,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],4),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[U,O],16),t("NoSpaceAfterOpenBrace",18,k,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),U],16),t("NoSpaceBeforeCloseBrace",k,19,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),U],16),t("SpaceBetweenEmptyBraceBrackets",18,19,[s("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),t("NoSpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),U],16),t("SpaceAfterTemplateHeadAndMiddle",[15,16],k,[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4,1),t("SpaceBeforeTemplateMiddleAndTail",k,[16,17],[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),U],4),t("NoSpaceAfterTemplateHeadAndMiddle",[15,16],k,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16,1),t("NoSpaceBeforeTemplateMiddleAndTail",k,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),U],16),t("SpaceAfterOpenBraceInJsxExpression",18,k,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],4),t("SpaceBeforeCloseBraceInJsxExpression",k,19,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],4),t("NoSpaceAfterOpenBraceInJsxExpression",18,k,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],16),t("NoSpaceBeforeCloseBraceInJsxExpression",k,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],16),t("SpaceAfterSemicolonInFor",26,k,[s("insertSpaceAfterSemicolonInForStatements"),U,p],4),t("NoSpaceAfterSemicolonInFor",26,k,[l("insertSpaceAfterSemicolonInForStatements"),U,p],16),t("SpaceBeforeBinaryOperator",k,de,[s("insertSpaceBeforeAndAfterBinaryOperators"),U,m],4),t("SpaceAfterBinaryOperator",de,k,[s("insertSpaceBeforeAndAfterBinaryOperators"),U,m],4),t("NoSpaceBeforeBinaryOperator",k,de,[l("insertSpaceBeforeAndAfterBinaryOperators"),U,m],16),t("NoSpaceAfterBinaryOperator",de,k,[l("insertSpaceBeforeAndAfterBinaryOperators"),U,m],16),t("SpaceBeforeOpenParenInFuncDecl",k,20,[s("insertSpaceBeforeFunctionParenthesis"),U,D],4),t("NoSpaceBeforeOpenParenInFuncDecl",k,20,[l("insertSpaceBeforeFunctionParenthesis"),U,D],16),t("NewLineBeforeOpenBraceInControl",ge,18,[s("placeOpenBraceOnNewLineForControlBlocks"),R,E],8,1),t("NewLineBeforeOpenBraceInFunction",me,18,[s("placeOpenBraceOnNewLineForFunctions"),D,E],8,1),t("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_e,18,[s("placeOpenBraceOnNewLineForFunctions"),I,E],8,1),t("SpaceAfterTypeAssertion",31,k,[s("insertSpaceAfterTypeAssertion"),U,re],4),t("NoSpaceAfterTypeAssertion",31,k,[l("insertSpaceAfterTypeAssertion"),U,re],16),t("SpaceBeforeTypeAnnotation",k,[57,58],[s("insertSpaceBeforeTypeAnnotation"),U,y],4),t("NoSpaceBeforeTypeAnnotation",k,[57,58],[l("insertSpaceBeforeTypeAnnotation"),U,y],16),t("NoOptionalSemicolon",26,ne,[o("semicolons",e.SemicolonPreference.Remove),ce],32),t("OptionalSemicolon",k,ne,[o("semicolons",e.SemicolonPreference.Insert),le],64)],ve=[t("NoSpaceBeforeSemicolon",k,26,[U],16),t("SpaceBeforeOpenBraceInControl",ge,18,[u("placeOpenBraceOnNewLineForControlBlocks"),R,Q,v],4,1),t("SpaceBeforeOpenBraceInFunction",me,18,[u("placeOpenBraceOnNewLineForFunctions"),D,x,Q,v],4,1),t("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_e,18,[u("placeOpenBraceOnNewLineForFunctions"),I,Q,v],4,1),t("NoSpaceBeforeComma",k,27,[U],16),t("NoSpaceBeforeOpenBracket",L(131,82),22,[U],16),t("NoSpaceAfterCloseBracket",23,k,[U,J],16),t("SpaceAfterSemicolon",26,k,[U],4),t("SpaceBetweenForAndAwaitKeyword",97,132,[U],4),t("SpaceBetweenStatements",[21,90,91,82],k,[U,j,f],4),t("SpaceAfterTryCatchFinally",[111,83,96],18,[U],4)];return pa(pa(pa([],ye,!0),he,!0),ve,!0)}}(e.formatting||(e.formatting={}))}(ha||(ha={})),function(e){!function(n){var t;function r(){return void 0===t&&(t=function(n){var t=function(e){for(var n=new Array(l*l),t=new Array(n.length),r=0,a=e;r<a.length;r++)for(var o=a[r],s=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,c=0,d=o.leftTokenRange.tokens;c<d.length;c++)for(var p=d[c],f=0,m=o.rightTokenRange.tokens;f<m.length;f++){var _=i(p,m[f]),g=n[_];void 0===g&&(g=n[_]=[]),u(g,o.rule,s,t,_)}return n}(n);return function(n){var r=t[i(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(r){for(var o=[],s=0,c=0,l=r;c<l.length;c++){var u=l[c],d=~a(s);u.action&d&&e.every(u.context,(function(e){return e(n)}))&&(o.push(u),s|=u.action)}if(o.length)return o}}}(n.getAllRules())),t}function a(e){var n=0;return 1&e&&(n|=28),2&e&&(n|=96),28&e&&(n|=28),96&e&&(n|=96),n}function i(n,t){return e.Debug.assert(n<=159&&t<=159,"Must compute formatting context from tokens"),n*l+t}n.getFormatContext=function(e,n){return{options:e,getRules:r(),host:n}};var o,s,c=31,l=160;function u(t,r,a,i,s){var l=3&r.action?a?o.StopRulesSpecific:o.StopRulesAny:r.context!==n.anyContext?a?o.ContextRulesSpecific:o.ContextRulesAny:a?o.NoContextRulesSpecific:o.NoContextRulesAny,u=i[s]||0;t.splice(function(e,n){for(var t=0,r=0;r<=n;r+=5)t+=31&e,e>>=5;return t}(u,l),0,r),i[s]=function(n,t){var r=1+(n>>t&c);return e.Debug.assert((r&c)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),n&~(c<<t)|r<<t}(u,l)}(s=o||(o={}))[s.StopRulesSpecific=0]="StopRulesSpecific",s[s.StopRulesAny=5]="StopRulesAny",s[s.ContextRulesSpecific=10]="ContextRulesSpecific",s[s.ContextRulesAny=15]="ContextRulesAny",s[s.NoContextRulesSpecific=20]="NoContextRulesSpecific",s[s.NoContextRulesAny=25]="NoContextRulesAny"}(e.formatting||(e.formatting={}))}(ha||(ha={})),function(e){!function(n){var t,r,a,i,o,s,c;function l(n,t,r){var a=e.findPrecedingToken(n,r);return a&&a.kind===t&&n===a.getEnd()?a:void 0}function u(e){for(var n=e;n&&n.parent&&n.parent.end===e.end&&!d(n.parent,n);)n=n.parent;return n}function d(n,t){switch(n.kind){case 256:case 257:return e.rangeContainsRange(n.members,t);case 260:var r=n.body;return!!r&&261===r.kind&&e.rangeContainsRange(r.statements,t);case 303:case 234:case 261:return e.rangeContainsRange(n.statements,t);case 291:return e.rangeContainsRange(n.block.statements,t)}return!1}function p(n,t,r,a){return n?f({pos:e.getLineStartPositionForPosition(n.getStart(t),t),end:n.end},t,r,a):[]}function f(t,r,a,i){var o=function(n,t){return function r(a){var i=e.forEachChild(a,(function(r){return e.startEndContainsRange(r.getStart(t),r.end,n)&&r}));if(i){var o=r(i);if(o)return o}return a}(t)}(t,r);return n.getFormattingScanner(r.text,r.languageVariant,function(n,t,r){var a=n.getStart(r);if(a===t.pos&&n.end===t.end)return a;var i=e.findPrecedingToken(t.pos,r);return i?i.end>=t.pos?n.pos:i.end:n.pos}(o,t,r),t.end,(function(s){return m(t,o,n.SmartIndenter.getIndentationForNode(o,t,r,a.options),function(e,t,r){for(var a,i=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&o!==i)break;if(n.SmartIndenter.shouldIndentChildNode(t,e,a,r))return t.indentSize;i=o,a=e,e=e.parent}return 0}(o,a.options,r),s,a,i,function(n,t){if(!n.length)return i;var r=n.filter((function(n){return e.rangeOverlapsWithStartEnd(t,n.start,n.start+n.length)})).sort((function(e,n){return e.start-n.start}));if(!r.length)return i;var a=0;return function(n){for(;;){if(a>=r.length)return!1;var t=r[a];if(n.end<=t.start)return!1;if(e.startEndOverlapsWithStartEnd(n.pos,n.end,t.start,t.start+t.length))return!0;a++}};function i(){return!1}}(r.parseDiagnostics,t),r)}))}function m(t,r,a,i,o,s,c,l,u){var d,p,f,m,g=s.options,y=s.getRules,h=s.host,v=new n.FormattingContext(u,c,g),b=-1,E=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(r.getStart(u)).line,S=T;r.decorators&&(S=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),function r(a,i,s,c,_,y){if(!e.rangeOverlapsWithStartEnd(t,a.getStart(u),a.getEnd()))return;var h=D(a,s,_,y),v=i;e.forEachChild(a,(function(e){S(e,-1,a,h,s,c,!1)}),(function(e){x(e,a,s,h)}));for(;o.isOnToken();){var E=o.readTokenInfo(a);if(E.token.end>a.end)break;L(E,a,h,a)}if(!a.parent&&o.isOnEOF()){var T=o.readEOFTokenRange();T.end<=a.end&&d&&k(T,u.getLineAndCharacterOfPosition(T.pos).line,a,d,f,p,i,h)}function S(i,s,c,l,d,p,f,_){var y=i.getStart(u),h=u.getLineAndCharacterOfPosition(y).line,E=h;i.decorators&&(E=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(i,u)).line);var T=-1;if(f&&e.rangeContainsRange(t,c)&&(T=function(t,r,a,i,o){if(e.rangeOverlapsWithStartEnd(i,t,r)||e.rangeContainsStartEnd(i,t,r)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(t).line,c=e.getLineStartPositionForPosition(t,u),l=n.SmartIndenter.findFirstNonWhitespaceColumn(c,t,u,g);if(s!==a||t===l){var d=n.SmartIndenter.getBaseIndentation(g);return d>l?d:l}}return-1}(y,i.end,d,t,s),-1!==T&&(s=T)),!e.rangeOverlapsWithStartEnd(t,i.pos,i.end))return i.end<t.pos&&o.skipToEndOf(i),s;if(0===i.getFullWidth())return s;for(;o.isOnToken();){if((S=o.readTokenInfo(a)).token.end>y){S.token.pos>y&&o.skipToStartOf(i);break}L(S,a,l,a)}if(!o.isOnToken())return s;if(e.isToken(i)){var S=o.readTokenInfo(i);if(11!==i.kind)return e.Debug.assert(S.token.end===i.end,"Token end is child end"),L(S,a,l,i),s}var x=164===i.kind?h:p,D=function(e,t,r,a,i,o){var s=n.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===t?{indentation:t===m?b:i.getIndentation(),delta:Math.min(g.indentSize,i.getDelta(e)+s)}:-1===r?20===e.kind&&t===m?{indentation:b,delta:i.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,t,u)||n.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(a,e,t,u)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(a,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:r,delta:s}}(i,h,T,a,l,x);return r(i,v,h,E,D.indentation,D.delta),v=a,_&&203===c.kind&&-1===s&&(s=D.indentation),s}function x(t,r,i,s){e.Debug.assert(e.isNodeArray(t));var c=function(e,n){switch(e.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(e.typeParameters===n)return 29;if(e.parameters===n)return 20;break;case 207:case 208:if(e.typeArguments===n)return 29;if(e.arguments===n)return 20;break;case 177:if(e.typeArguments===n)return 29;break;case 181:return 18}return 0}(r,t),l=s,d=i;if(0!==c)for(;o.isOnToken();){if((h=o.readTokenInfo(r)).token.end>t.pos)break;if(h.token.kind===c){d=u.getLineAndCharacterOfPosition(h.token.pos).line,L(h,r,s,r);var p=void 0;if(-1!==b)p=b;else{var f=e.getLineStartPositionForPosition(h.token.pos,u);p=n.SmartIndenter.findFirstNonWhitespaceColumn(f,h.token.pos,u,g)}l=D(r,i,p,g.indentSize)}else L(h,r,s,r)}for(var m=-1,_=0;_<t.length;_++){m=S(t[_],m,a,l,d,d,!0,0===_)}var y=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==y&&o.isOnToken()){var h;if(27===(h=o.readTokenInfo(r)).token.kind&&e.isCallLikeExpression(r))d!==u.getLineAndCharacterOfPosition(h.token.pos).line&&(o.advance(),h=o.isOnToken()?o.readTokenInfo(r):void 0);h&&h.token.kind===y&&e.rangeContainsRange(r,h.token)&&L(h,r,l,r,!0)}}function L(n,r,a,i,s){e.Debug.assert(e.rangeContainsRange(r,n.token));var c=o.lastTrailingTriviaWasNewLine(),p=!1;n.leadingTrivia&&A(n.leadingTrivia,r,v,a);var f=0,_=e.rangeContainsRange(t,n.token),g=u.getLineAndCharacterOfPosition(n.token.pos);if(_){var y=l(n.token),h=d;if(f=I(n.token,g,r,v,a),!y)if(0===f){var E=h&&u.getLineAndCharacterOfPosition(h.end).line;p=c&&g.line!==E}else p=1===f}if(n.trailingTrivia&&A(n.trailingTrivia,r,v,a),p){var T=_&&!l(n.token)?a.getIndentationForToken(g.line,n.token.kind,i,!!s):-1,S=!0;if(n.leadingTrivia){var x=a.getIndentationForComment(n.token.kind,T,i);S=C(n.leadingTrivia,x,S,(function(e){return N(e.pos,x,!1)}))}-1!==T&&S&&(N(n.token.pos,T,1===f),m=g.line,b=T)}o.advance(),v=r}}(r,r,T,S,a,i)}if(!o.isOnToken()){var x=n.SmartIndenter.nodeWillIndentChild(g,r,void 0,u,!1)?a+g.indentSize:a,L=o.getCurrentLeadingTrivia();L&&(C(L,x,!1,(function(e){return I(e,u.getLineAndCharacterOfPosition(e.pos),r,r,void 0)})),!1!==g.trimTrailingWhitespace&&function(n){for(var r=d?d.end:t.pos,a=0,i=n;a<i.length;a++){var o=i[a];e.isComment(o.kind)&&(r<o.pos&&M(r,o.pos-1,d),r=o.end+1)}r<t.end&&M(r,t.end,d)}(L))}return E;function D(t,r,a,i){return{getIndentationForComment:function(e,n,t){switch(e){case 19:case 23:case 21:return a+o(t)}return-1!==n?n:a},getIndentationForToken:function(n,i,s,c){return!c&&function(n,a,i){switch(a){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(i.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(194!==i.kind)return!1}return r!==n&&!(t.decorators&&a===function(n){if(n.modifiers&&n.modifiers.length)return n.modifiers[0].kind;switch(n.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(n.asteriskToken)return 41;case 166:case 163:var t=e.getNameOfDeclaration(n);if(t)return t.kind}}(t))}(n,i,s)?a+o(s):a},getIndentation:function(){return a},getDelta:o,recomputeIndentation:function(e,r){n.SmartIndenter.shouldIndentChildNode(g,r,t,u)&&(a+=e?g.indentSize:-g.indentSize,i=n.SmartIndenter.shouldIndentChildNode(g,t)?g.indentSize:0)}};function o(e){return n.SmartIndenter.nodeWillIndentChild(g,t,e,u,!0)?i:0}}function C(n,r,a,i){for(var o=0,s=n;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(t,c);switch(c.kind){case 3:l&&R(c,r,!a),a=!1;break;case 2:a&&l&&i(c),a=!1;break;case 4:a=!0}}return a}function A(n,r,a,i){for(var o=0,s=n;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(t,c))I(c,u.getLineAndCharacterOfPosition(c.pos),r,a,i)}}function I(e,n,r,a,i){var o=0;l(e)||(d?o=k(e,n.line,r,d,f,p,a,i):O(u.getLineAndCharacterOfPosition(t.pos).line,n.line));return d=e,p=r,f=n.line,o}function k(n,t,r,a,i,o,s,c){v.updateContext(a,o,n,r,s);var l=y(v),d=!1!==v.options.trimTrailingWhitespace,p=0;return l?e.forEachRight(l,(function(o){switch(p=function(n,t,r,a,i){var o=i!==r;switch(n.action){case 1:return 0;case 16:if(t.end!==a.pos)return P(t.end,a.pos-t.end),o?2:0;break;case 32:P(t.pos,t.end-t.pos);break;case 8:if(1!==n.flags&&r!==i)return 0;if(1!==i-r)return F(t.end,a.pos-t.end,e.getNewLineOrDefaultFromHost(h,g)),o?0:1;break;case 4:if(1!==n.flags&&r!==i)return 0;if(1!==a.pos-t.end||32!==u.text.charCodeAt(t.end))return F(t.end,a.pos-t.end," "),o?2:0;break;case 64:s=t.end,(c=";")&&E.push(e.createTextChangeFromStartLength(s,0,c))}var s,c;return 0}(o,a,i,n,t),p){case 2:r.getStart(u)===n.pos&&c.recomputeIndentation(!1,s);break;case 1:r.getStart(u)===n.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===p)}d=d&&!(16&o.action)&&1!==o.flags})):d=d&&1!==n.kind,t!==i&&d&&O(i,t,a),p}function N(n,t,r){var a=_(t,g);if(r)F(n,0,a);else{var i=u.getLineAndCharacterOfPosition(n),o=e.getStartPositionOfLine(i.line,u);(t!==function(e,n){for(var t=0,r=0;r<n;r++)9===u.text.charCodeAt(e+r)?t+=g.tabSize-t%g.tabSize:t++;return t}(o,i.character)||function(e,n){return e!==u.text.substr(n,e.length)}(a,o))&&F(o,i.character,a)}}function R(t,r,a,i){void 0===i&&(i=!0);var o=u.getLineAndCharacterOfPosition(t.pos).line,s=u.getLineAndCharacterOfPosition(t.end).line;if(o!==s){for(var c=[],l=t.pos,d=o;d<s;d++){var p=e.getEndLinePosition(d,u);c.push({pos:l,end:p}),l=e.getStartPositionOfLine(d+1,u)}if(i&&c.push({pos:l,end:t.end}),0!==c.length){var f=e.getStartPositionOfLine(o,u),m=n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,u,g),y=0;a&&(y=1,o++);for(var h=r-m.column,v=y;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,u),E=0===v?m:n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,u,g),T=E.column+h;if(T>0){var S=_(T,g);F(b,E.character,S)}else P(b,E.character)}}}else a||N(t.pos,r,!1)}function O(n,t,r){for(var a=n;a<t;a++){var i=e.getStartPositionOfLine(a,u),o=e.getEndLinePosition(a,u);if(!(r&&(e.isComment(r.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o)){var s=w(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),P(s,o+1-s))}}}function w(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function M(e,n,t){O(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(n).line+1,t)}function P(n,t){t&&E.push(e.createTextChangeFromStartLength(n,t,""))}function F(n,t,r){(t||r)&&E.push(e.createTextChangeFromStartLength(n,t,r))}}function _(n,t){if((!o||o.tabSize!==t.tabSize||o.indentSize!==t.indentSize)&&(o={tabSize:t.tabSize,indentSize:t.indentSize},s=c=void 0),t.convertTabsToSpaces){var r=void 0,a=Math.floor(n/t.indentSize),i=n%t.indentSize;return c||(c=[]),void 0===c[a]?(r=e.repeatString(" ",t.indentSize*a),c[a]=r):r=c[a],i?r+e.repeatString(" ",i):r}var l=Math.floor(n/t.tabSize),u=n-l*t.tabSize,d=void 0;return s||(s=[]),void 0===s[l]?s[l]=d=e.repeatString("\t",l):d=s[l],u?d+e.repeatString(" ",u):d}n.createTextRangeWithKind=function(n,t,r){var a={pos:n,end:t,kind:r};return e.Debug.isDebugging&&Object.defineProperty(a,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(r)}}),a},(r=t||(t={}))[r.Unknown=-1]="Unknown",n.formatOnEnter=function(n,t,r){var a=t.getLineAndCharacterOfPosition(n).line;if(0===a)return[];for(var i=e.getEndLinePosition(a,t);e.isWhiteSpaceSingleLine(t.text.charCodeAt(i));)i--;return e.isLineBreak(t.text.charCodeAt(i))&&i--,f({pos:e.getStartPositionOfLine(a-1,t),end:i+1},t,r,2)},n.formatOnSemicolon=function(e,n,t){return p(u(l(e,26,n)),n,t,3)},n.formatOnOpeningCurly=function(n,t,r){var a=l(n,18,t);if(!a)return[];var i=u(a.parent);return f({pos:e.getLineStartPositionForPosition(i.getStart(t),t),end:n},t,r,4)},n.formatOnClosingCurly=function(e,n,t){return p(u(l(e,19,n)),n,t,5)},n.formatDocument=function(e,n){return f({pos:0,end:e.text.length},e,n,0)},n.formatSelection=function(n,t,r,a){return f({pos:e.getLineStartPositionForPosition(n,r),end:t},r,a,1)},n.formatNodeGivenIndentation=function(e,t,r,a,i,o){var s={pos:0,end:t.text.length};return n.getFormattingScanner(t.text,r,s.pos,s.end,(function(n){return m(s,e,a,i,n,o,1,(function(e){return!1}),t)}))},(i=a||(a={}))[i.None=0]="None",i[i.LineAdded=1]="LineAdded",i[i.LineRemoved=2]="LineRemoved",n.getRangeOfEnclosingComment=function(n,t,r,a){void 0===a&&(a=e.getTokenAtPosition(n,t));var i=e.findAncestor(a,e.isJSDoc);if(i&&(a=i.parent),!(a.getStart(n)<=t&&t<a.getEnd())){var o=(r=null===r?void 0:void 0===r?e.findPrecedingToken(t,n):r)&&e.getTrailingCommentRanges(n.text,r.end),s=e.getLeadingCommentRangesOfNode(a,n),c=e.concatenate(o,s);return c&&e.find(c,(function(r){return e.rangeContainsPositionExclusive(r,t)||t===r.end&&(2===r.kind||t===n.getFullWidth())}))}},n.getIndentationString=_}(e.formatting||(e.formatting={}))}(ha||(ha={})),function(e){var n;(function(t){var r,a,i,o;function s(e){return e.baseIndentSize||0}function c(e,n,t,r,a,i,o){for(var c,d=e.parent;d;){var g=!0;if(t){var y=e.getStart(a);g=y<t.pos||y>t.end}var v=l(d,e,a),b=v.line===n.line||m(d,e,n.line,a);if(g){var E=null===(c=_(e,a))||void 0===c?void 0:c[0],T=h(e,a,o,!!E&&p(E,a).line>v.line);if(-1!==T)return T+r;if(-1!==(T=u(e,d,n,b,a,o)))return T+r}x(o,d,e,a,i)&&!b&&(r+=o.indentSize);var S=f(d,e,n.line,a);d=(e=d).parent,n=S?a.getLineAndCharacterOfPosition(e.getStart(a)):v}return r+s(o)}function l(e,n,t){var r=_(n,t),a=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(a)}function u(n,t,r,a,i,o){return!e.isDeclaration(n)&&!e.isStatementButNotDeclaration(n)||303!==t.kind&&a?-1:b(r,i,o)}function d(n,t,r,a){var i=e.findNextToken(n,t,a);return i?18===i.kind?1:19===i.kind&&r===p(i,a).line?2:0:0}function p(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function f(n,t,r,a){if(!e.isCallExpression(n)||!e.contains(n.arguments,t))return!1;var i=n.expression.getEnd();return e.getLineAndCharacterOfPosition(a,i).line===r}function m(n,t,r,a){if(238===n.kind&&n.elseStatement===t){var i=e.findChildOfKind(n,91,a);return e.Debug.assert(void 0!==i),p(i,a).line===r}return!1}function _(e,n){return e.parent&&g(e.getStart(n),e.getEnd(),e.parent,n)}function g(n,t,r,a){switch(r.kind){case 177:return i(r.typeArguments);case 204:return i(r.properties);case 203:case 268:case 272:case 200:case 201:return i(r.elements);case 181:return i(r.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return i(r.typeParameters)||i(r.parameters);case 256:case 225:case 257:case 258:case 342:return i(r.typeParameters);case 208:case 207:return i(r.typeArguments)||i(r.arguments);case 254:return i(r.declarations)}function i(i){return i&&e.rangeContainsStartEnd(function(e,n,t){for(var r=e.getChildren(t),a=1;a<r.length-1;a++)if(r[a].pos===n.pos&&r[a].end===n.end)return{pos:r[a-1].end,end:r[a+1].getStart(t)};return n}(r,i,a),n,t)?i:void 0}}function y(e,n,t){return e?b(n.getLineAndCharacterOfPosition(e.pos),n,t):-1}function h(e,n,t,r){if(e.parent&&254===e.parent.kind)return-1;var a=_(e,n);if(a){var i=a.indexOf(e);if(-1!==i){var o=v(a,i,n,t);if(-1!==o)return o}return y(a,n,t)+(r?t.indentSize:0)}return-1}function v(n,t,r,a){e.Debug.assert(t>=0&&t<n.length);for(var i=p(n[t],r),o=t-1;o>=0;o--)if(27!==n[o].kind){if(r.getLineAndCharacterOfPosition(n[o].end).line!==i.line)return b(i,r,a);i=p(n[o],r)}return-1}function b(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return T(r,r+e.character,n,t)}function E(n,t,r,a){for(var i=0,o=0,s=n;s<t;s++){var c=r.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=a.tabSize+o%a.tabSize:o++,i++}return{column:o,character:i}}function T(e,n,t,r){return E(e,n,t,r).column}function S(n,t,r,a,i){var o=r?r.kind:0;switch(t.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!n.indentMultiLineObjectLiteralBeginningOnBlankLine&&a&&204===o)return L(a,r);if(220===t.kind&&a&&r&&277===o)return a.getLineAndCharacterOfPosition(e.skipTrivia(a.text,t.pos)).line!==a.getLineAndCharacterOfPosition(e.skipTrivia(a.text,r.pos)).line;if(220!==t.kind)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return 234!==o;case 213:return a&&211===o?L(a,r):234!==o;case 271:return 272!==o;case 265:return 266!==o||!!r.namedBindings&&268!==r.namedBindings.kind;case 277:return 280!==o;case 281:return 283!==o;case 187:case 186:if(181===o||183===o)return!1}return i}function x(e,n,t,r,a){return void 0===a&&(a=!1),S(e,n,t,r,!1)&&!(a&&t&&function(e,n){switch(e){case 246:case 250:case 244:case 245:return 234!==n.kind;default:return!1}}(t.kind,n))}function L(n,t){var r=e.skipTrivia(n.text,t.pos);return n.getLineAndCharacterOfPosition(r).line===n.getLineAndCharacterOfPosition(t.end).line}(a=r||(r={}))[a.Unknown=-1]="Unknown",t.getIndentation=function(t,r,a,i){if(void 0===i&&(i=!1),t>r.text.length)return s(a);if(a.indentStyle===e.IndentStyle.None)return 0;var o=e.findPrecedingToken(t,r,void 0,!0),l=n.getRangeOfEnclosingComment(r,t,o||null);if(l&&3===l.kind)return function(n,t,r,a){var i=e.getLineAndCharacterOfPosition(n,t).line-1,o=e.getLineAndCharacterOfPosition(n,a.pos).line;if(e.Debug.assert(o>=0),i<=o)return T(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(i,n),c=E(s,t,n,r),l=c.column,u=c.character;return 0===l?l:42===n.text.charCodeAt(s+u)?l-1:l}(r,t,a,l);if(!o)return s(a);if(e.isStringOrRegularExpressionOrTemplateLiteral(o.kind)&&o.getStart(r)<=t&&t<o.end)return 0;var u=r.getLineAndCharacterOfPosition(t).line;if(a.indentStyle===e.IndentStyle.Block)return function(n,t,r){for(var a=t;a>0;){var i=n.text.charCodeAt(a);if(!e.isWhiteSpaceLike(i))break;a--}return T(e.getLineStartPositionForPosition(a,n),a,n,r)}(r,t,a);if(27===o.kind&&220!==o.parent.kind){var f=function(n,t,r){var a=e.findListItemInfo(n);return a&&a.listItemIndex>0?v(a.list.getChildren(),a.listItemIndex-1,t,r):-1}(o,r,a);if(-1!==f)return f}var m=function(e,n,t){return n&&g(e,e,n,t)}(t,o.parent,r);return m&&!e.rangeContainsRange(m,o)?y(m,r,a)+a.indentSize:function(n,t,r,a,i,o){for(var l,u=r;u;){if(e.positionBelongsToNode(u,t,n)&&x(o,u,l,n,!0)){var f=p(u,n),m=d(r,u,a,n);return c(u,f,void 0,0!==m?i&&2===m?o.indentSize:0:a!==f.line?o.indentSize:0,n,!0,o)}var _=h(u,n,o,!0);if(-1!==_)return _;l=u,u=u.parent}return s(o)}(r,t,o,u,i,a)},t.getIndentationForNode=function(e,n,t,r){var a=t.getLineAndCharacterOfPosition(e.getStart(t));return c(e,a,n,0,t,!1,r)},t.getBaseIndentation=s,(o=i||(i={}))[o.Unknown=0]="Unknown",o[o.OpenBrace=1]="OpenBrace",o[o.CloseBrace=2]="CloseBrace",t.isArgumentAndStartLineOverlapsExpressionBeingCalled=f,t.childStartsOnTheSameLineWithElseInIfStatement=m,t.childIsUnindentedBranchOfConditionalExpression=function(n,t,r,a){if(e.isConditionalExpression(n)&&(t===n.whenTrue||t===n.whenFalse)){var i=e.getLineAndCharacterOfPosition(a,n.condition.end).line;if(t===n.whenTrue)return r===i;var o=p(n.whenTrue,a).line,s=e.getLineAndCharacterOfPosition(a,n.whenTrue.end).line;return i===o&&s===r}return!1},t.argumentStartsOnSameLineAsPreviousArgument=function(n,t,r,a){if(e.isCallOrNewExpression(n)){if(!n.arguments)return!1;var i=e.find(n.arguments,(function(e){return e.pos===t.pos}));if(!i)return!1;var o=n.arguments.indexOf(i);if(0===o)return!1;var s=n.arguments[o-1];if(r===e.getLineAndCharacterOfPosition(a,s.getEnd()).line)return!0}return!1},t.getContainingList=_,t.findFirstNonWhitespaceCharacterAndColumn=E,t.findFirstNonWhitespaceColumn=T,t.nodeWillIndentChild=S,t.shouldIndentChildNode=x})((n=e.formatting||(e.formatting={})).SmartIndenter||(n.SmartIndenter={}))}(ha||(ha={})),function(e){!function(n){function t(n){var t=n.__pos;return e.Debug.assert("number"===typeof t),t}function r(n,t){e.Debug.assert("number"===typeof t),n.__pos=t}function a(n){var t=n.__end;return e.Debug.assert("number"===typeof t),t}function i(n,t){e.Debug.assert("number"===typeof t),n.__end=t}var o,s,c,l;function u(n,t){return e.skipTrivia(n,t,!1,!0)}(s=o=n.LeadingTriviaOption||(n.LeadingTriviaOption={}))[s.Exclude=0]="Exclude",s[s.IncludeAll=1]="IncludeAll",s[s.JSDoc=2]="JSDoc",s[s.StartLine=3]="StartLine",(l=c=n.TrailingTriviaOption||(n.TrailingTriviaOption={}))[l.Exclude=0]="Exclude",l[l.ExcludeWhitespace=1]="ExcludeWhitespace",l[l.Include=2]="Include";var d,p,f={leadingTriviaOption:o.Exclude,trailingTriviaOption:c.Exclude};function m(e,n,t,r){return{pos:_(e,n,r),end:y(e,t,r)}}function _(n,t,r,a){var i,s;void 0===a&&(a=!1);var c=r.leadingTriviaOption;if(c===o.Exclude)return t.getStart(n);if(c===o.StartLine){var l=t.getStart(n),d=e.getLineStartPositionForPosition(l,n);return e.rangeContainsPosition(t,d)?d:l}if(c===o.JSDoc){var p=e.getJSDocCommentRanges(t,n.text);if(null===p||void 0===p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,n)}var f=t.getFullStart(),m=t.getStart(n);if(f===m)return m;var _=e.getLineStartPositionForPosition(f,n);if(e.getLineStartPositionForPosition(m,n)===_)return c===o.IncludeAll?f:m;if(a){var g=(null===(i=e.getLeadingCommentRanges(n.text,f))||void 0===i?void 0:i[0])||(null===(s=e.getTrailingCommentRanges(n.text,f))||void 0===s?void 0:s[0]);if(g)return e.skipTrivia(n.text,g.end,!0,!0)}var y=f>0?1:0,h=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,_)+y,n);return h=u(n.text,h),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,h),n)}function g(n,t,r){var a=t.end;if(r.trailingTriviaOption===c.Include){var i=e.getTrailingCommentRanges(n.text,a);if(i)for(var o=e.getLineOfLocalPosition(n,t.end),s=0,l=i;s<l.length;s++){var u=l[s];if(2===u.kind||e.getLineOfLocalPosition(n,u.pos)>o)break;if(e.getLineOfLocalPosition(n,u.end)>o)return e.skipTrivia(n.text,u.end,!0,!0)}}}function y(n,t,r){var a,i=t.end,o=r.trailingTriviaOption;if(o===c.Exclude)return i;if(o===c.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(n.text,i),e.getLeadingCommentRanges(n.text,i)),l=null===(a=null===s||void 0===s?void 0:s[s.length-1])||void 0===a?void 0:a.end;return l||i}var u=g(n,t,r);if(u)return u;var d=e.skipTrivia(n.text,i,!0);return d===i||o!==c.Include&&!e.isLineBreak(n.text.charCodeAt(d-1))?i:d}function h(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.kind&&204===e.parent.kind)}(p=d||(d={}))[p.Remove=0]="Remove",p[p.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",p[p.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",p[p.Text=3]="Text",n.isThisTypeAnnotatable=function(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)};var v,b,E=function(){function n(n,t){this.newLineCharacter=n,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(n,t){e.Debug.assertEqual(n.fileName,t.fileName);for(var r=0,a=t.textChanges;r<a.length;r++){var i=a[r];this.changes.push({kind:d.Text,sourceFile:n,text:i.newText,range:e.createTextRangeFromSpan(i.span)})}},n.prototype.deleteRange=function(e,n){this.changes.push({kind:d.Remove,sourceFile:e,range:n})},n.prototype.delete=function(e,n){this.deletedNodes.push({sourceFile:e,node:n})},n.prototype.deleteNode=function(e,n,t){void 0===t&&(t={leadingTriviaOption:o.IncludeAll}),this.deleteRange(e,m(e,n,n,t))},n.prototype.deleteNodes=function(e,n,t,r){void 0===t&&(t={leadingTriviaOption:o.IncludeAll});for(var a=0,i=n;a<i.length;a++){var s=i[a],c=_(e,s,t,r),l=y(e,s,t);this.deleteRange(e,{pos:c,end:l}),r=!!g(e,s,t)}},n.prototype.deleteModifier=function(n,t){this.deleteRange(n,{pos:t.getStart(n),end:e.skipTrivia(n.text,t.end,!0)})},n.prototype.deleteNodeRange=function(e,n,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});var a=_(e,n,r),i=y(e,t,r);this.deleteRange(e,{pos:a,end:i})},n.prototype.deleteNodeRangeExcludingEnd=function(e,n,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});var a=_(e,n,r),i=void 0===t?e.text.length:_(e,t,r);this.deleteRange(e,{pos:a,end:i})},n.prototype.replaceRange=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:n,options:r,node:t})},n.prototype.replaceNode=function(e,n,t,r){void 0===r&&(r=f),this.replaceRange(e,m(e,n,n,r),t,r)},n.prototype.replaceNodeRange=function(e,n,t,r,a){void 0===a&&(a=f),this.replaceRange(e,m(e,n,t,a),r,a)},n.prototype.replaceRangeWithNodes=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:n,options:r,nodes:t})},n.prototype.replaceNodeWithNodes=function(e,n,t,r){void 0===r&&(r=f),this.replaceRangeWithNodes(e,m(e,n,n,r),t,r)},n.prototype.replaceNodeWithText=function(e,n,t){this.replaceRangeWithText(e,m(e,n,n,f),t)},n.prototype.replaceNodeRangeWithNodes=function(e,n,t,r,a){void 0===a&&(a=f),this.replaceRangeWithNodes(e,m(e,n,t,a),r,a)},n.prototype.nodeHasTrailingComment=function(e,n,t){return void 0===t&&(t=f),!!g(e,n,t)},n.prototype.nextCommaToken=function(n,t){var r=e.findNextToken(t,t.parent,n);return r&&27===r.kind?r:void 0},n.prototype.replacePropertyAssignment=function(e,n,t){var r=this.nextCommaToken(e,n)?"":","+this.newLineCharacter;this.replaceNode(e,n,t,{suffix:r})},n.prototype.insertNodeAt=function(n,t,r,a){void 0===a&&(a={}),this.replaceRange(n,e.createRange(t),r,a)},n.prototype.insertNodesAt=function(n,t,r,a){void 0===a&&(a={}),this.replaceRangeWithNodes(n,e.createRange(t),r,a)},n.prototype.insertNodeAtTopOfFile=function(e,n,t){this.insertAtTopOfFile(e,n,t)},n.prototype.insertNodesAtTopOfFile=function(e,n,t){this.insertAtTopOfFile(e,n,t)},n.prototype.insertAtTopOfFile=function(n,t,r){var a=function(n){for(var t,r=0,a=n.statements;r<a.length;r++){var i=a[r];if(!e.isPrologueDirective(i))break;t=i}var o=0,s=n.text;if(t)return o=t.end,_(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,_());var l,u,d=e.getLeadingCommentRanges(s,o);if(!d)return o;for(var p=0,f=d;p<f.length;p++){var m=f[p];if(3===m.kind){if(e.isPinnedComment(s,m.pos)){l={range:m,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,m.pos,m.end)){l={range:m,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(n.getLineAndCharacterOfPosition(m.pos).line>=n.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(n.statements.length)if(void 0===u&&(u=n.getLineAndCharacterOfPosition(n.statements[0].getStart()).line),u<n.getLineAndCharacterOfPosition(m.end).line+2)break;l={range:m,pinnedOrTripleSlash:!1}}l&&(o=l.range.end,_());return o;function _(){if(o<s.length){var n=s.charCodeAt(o);e.isLineBreak(n)&&++o<s.length&&13===n&&10===s.charCodeAt(o)&&o++}}}(n),i={prefix:0===a?void 0:this.newLineCharacter,suffix:(e.isLineBreak(n.text.charCodeAt(a))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};e.isArray(t)?this.insertNodesAt(n,a,t,i):this.insertNodeAt(n,a,t,i)},n.prototype.insertFirstParameter=function(n,t,r){var a=e.firstOrUndefined(t);a?this.insertNodeBefore(n,a,r):this.insertNodeAt(n,t.pos,r)},n.prototype.insertNodeBefore=function(e,n,t,r,a){void 0===r&&(r=!1),void 0===a&&(a={}),this.insertNodeAt(e,_(e,n,a),t,this.getOptionsForInsertNodeBefore(n,t,r))},n.prototype.insertModifierAt=function(n,t,r,a){void 0===a&&(a={}),this.insertNodeAt(n,t,e.factory.createToken(r),a)},n.prototype.insertModifierBefore=function(e,n,t){return this.insertModifierAt(e,t.getStart(e),n,{suffix:" "})},n.prototype.insertCommentBeforeLine=function(n,t,r,a){var i=e.getStartPositionOfLine(t,n),o=e.getFirstNonSpaceCharacterPosition(n.text,i),s=C(n,o),c=e.getTouchingToken(n,s?o:r),l=n.text.slice(i,o),u="".concat(s?"":this.newLineCharacter,"//").concat(a).concat(this.newLineCharacter).concat(l);this.insertText(n,c.getStart(n),u)},n.prototype.insertJsdocCommentBefore=function(n,t,r){var a=t.getStart(n);if(t.jsDoc)for(var i=0,o=t.jsDoc;i<o.length;i++){var s=o[i];this.deleteRange(n,{pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:y(n,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(n.text,a-1),l=n.text.slice(c,a);this.insertNodeAt(n,a,r,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+l})},n.prototype.replaceRangeWithText=function(e,n,t){this.changes.push({kind:d.Text,sourceFile:e,range:n,text:t})},n.prototype.insertText=function(n,t,r){this.replaceRangeWithText(n,e.createRange(t),r)},n.prototype.tryInsertTypeAnnotation=function(n,t,r){var a,i;if(e.isFunctionLike(t)){if(!(i=e.findChildOfKind(t,21,n))){if(!e.isArrowFunction(t))return!1;i=e.first(t.parameters)}}else i=null!==(a=253===t.kind?t.exclamationToken:t.questionToken)&&void 0!==a?a:t.name;return this.insertNodeAt(n,i.end,r,{prefix:": "}),!0},n.prototype.tryInsertThisTypeAnnotation=function(n,t,r){var a=e.findChildOfKind(t,20,n).getStart(n)+1,i=t.parameters.length?", ":"";this.insertNodeAt(n,a,r,{prefix:"this: ",suffix:i})},n.prototype.insertTypeParameters=function(n,t,r){var a=(e.findChildOfKind(t,20,n)||e.first(t.parameters)).getStart(n);this.insertNodesAt(n,a,r,{prefix:"<",suffix:">",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(n,t,r){return e.isStatement(n)||e.isClassElement(n)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?e.isParameter(t)?{suffix:", "}:{}:e.isStringLiteral(n)&&e.isImportDeclaration(n.parent)||e.isNamedImports(n)?{suffix:", "}:e.isImportSpecifier(n)?{suffix:","+(r?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(n)},n.prototype.insertNodeAtConstructorStart=function(n,t,r){var a=e.firstOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeBefore(n,a,r):this.replaceConstructorBody(n,t,pa([r],t.body.statements,!0))},n.prototype.insertNodeAtConstructorStartAfterSuperCall=function(n,t,r){var a=e.find(t.body.statements,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}));a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,pa(pa([],t.body.statements,!0),[r],!1))},n.prototype.insertNodeAtConstructorEnd=function(n,t,r){var a=e.lastOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,pa(pa([],t.body.statements,!0),[r],!1))},n.prototype.replaceConstructorBody=function(n,t,r){this.replaceNode(n,t.body,e.factory.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(n,t,r){var a=_(n,t.getLastToken(),{});this.insertNodeAt(n,a,r,{prefix:e.isLineBreak(n.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtObjectStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtStartWorker=function(e,n,t){var r,a=null!==(r=this.guessIndentationFromExistingMembers(e,n))&&void 0!==r?r:this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,S(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,a))},n.prototype.guessIndentationFromExistingMembers=function(n,t){for(var r,a=t,i=0,o=S(t);i<o.length;i++){var s=o[i];if(e.rangeStartPositionsAreOnSameLine(a,s,n))return;var c=s.getStart(n),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,n),c,n,this.formatContext.options);if(void 0===r)r=l;else if(l!==r)return;a=s}return r},n.prototype.computeIndentationForNewMember=function(n,t){var r,a=t.getStart(n);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,n),a,n,this.formatContext.options)+(null!==(r=this.formatContext.options.indentSize)&&void 0!==r?r:4)},n.prototype.getInsertNodeAtStartInsertOptions=function(n,t,r){var a=0===S(t).length,i=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(t),{node:t,sourceFile:n}),o=e.isObjectLiteralExpression(t)&&(!e.isJsonSourceFile(n)||!a);return{indentation:r,prefix:(e.isObjectLiteralExpression(t)&&e.isJsonSourceFile(n)&&a&&!i?",":"")+this.newLineCharacter,suffix:o?",":""}},n.prototype.insertNodeAfterComma=function(e,n,t){var r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,n)||n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},n.prototype.insertNodeAfter=function(e,n,t){var r=this.insertNodeAfterWorker(e,n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},n.prototype.insertNodeAtEndOfList=function(e,n,t){this.insertNodeAt(e,n.end,t,{prefix:", "})},n.prototype.insertNodesAfter=function(n,t,r){var a=this.insertNodeAfterWorker(n,t,e.first(r));this.insertNodesAt(n,a,r,this.getInsertNodeAfterOptions(n,t))},n.prototype.insertNodeAfterWorker=function(n,t,r){var a,i;return a=t,i=r,((e.isPropertySignature(a)||e.isPropertyDeclaration(a))&&e.isClassOrTypeElement(i)&&161===i.name.kind||e.isStatementButNotDeclaration(a)&&e.isStatementButNotDeclaration(i))&&59!==n.text.charCodeAt(t.end-1)&&this.replaceRange(n,e.createRange(t.end),e.factory.createToken(26)),y(n,t,{})},n.prototype.getInsertNodeAfterOptions=function(n,t){var r=this.getInsertNodeAfterOptionsWorker(t);return fa(fa({},r),{prefix:t.end===n.end&&e.isStatement(t)?r.prefix?"\n".concat(r.prefix):"\n":r.prefix})},n.prototype.getInsertNodeAfterOptionsWorker=function(n){switch(n.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(n)||e.isClassOrTypeElement(n)),{suffix:this.newLineCharacter}}},n.prototype.insertName=function(n,t,r){if(e.Debug.assert(!t.name),213===t.kind){var a=e.findChildOfKind(t,38,n),i=e.findChildOfKind(t,20,n);i?(this.insertNodesAt(n,i.getStart(n),[e.factory.createToken(98),e.factory.createIdentifier(r)],{joiner:" "}),A(this,n,a)):(this.insertText(n,e.first(t.parameters).getStart(n),"function ".concat(r,"(")),this.replaceRange(n,a,e.factory.createToken(21))),234!==t.body.kind&&(this.insertNodesAt(n,t.body.getStart(n),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,t.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(t,212===t.kind?98:84,n).end;this.insertNodeAt(n,o,e.factory.createIdentifier(r),{prefix:" "})}},n.prototype.insertExportModifier=function(e,n){this.insertText(e,n.getStart(e),"export ")},n.prototype.insertNodeInListAfter=function(n,t,r,a){if(void 0===a&&(a=e.formatting.SmartIndenter.getContainingList(t,n)),a){var i=e.indexOfNode(a,t);if(!(i<0)){var o=t.getEnd();if(i!==a.length-1){var s=e.getTokenAtPosition(n,t.end);if(s&&h(t,s)){var c=a[i+1],l=u(n.text,c.getFullStart()),d="".concat(e.tokenToString(s.kind)).concat(n.text.substring(s.end,l));this.insertNodesAt(n,l,[r],{suffix:d})}}else{var p=t.getStart(n),f=e.getLineStartPositionForPosition(p,n),m=void 0,_=!1;if(1===a.length)m=27;else{var g=e.findPrecedingToken(t.pos,n);m=h(t,g)?g.kind:27,_=e.getLineStartPositionForPosition(a[i-1].getStart(n),n)!==f}if(function(n,t){for(var r=t;r<n.length;){var a=n.charCodeAt(r);if(!e.isWhiteSpaceSingleLine(a))return 47===a;r++}return!1}(n.text,t.end)&&(_=!0),_){this.replaceRange(n,e.createRange(o),e.factory.createToken(m));for(var y=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(f,p,n,this.formatContext.options),v=e.skipTrivia(n.text,o,!0,!1);v!==o&&e.isLineBreak(n.text.charCodeAt(v-1));)v--;this.replaceRange(n,e.createRange(v),r,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(n,e.createRange(o),r,{prefix:"".concat(e.tokenToString(m)," ")})}}}else e.Debug.fail("node is not a list element")},n.prototype.parenthesizeExpression=function(n,t){this.replaceRange(n,e.rangeOfNode(t),e.factory.createParenthesizedExpression(t))},n.prototype.finishClassesWithNodesInsertedAtStart=function(){var n=this;this.classesWithNodesInsertedAtStart.forEach((function(t){var r=t.node,a=t.sourceFile,i=function(n,t){var r=e.findChildOfKind(n,18,t),a=e.findChildOfKind(n,19,t);return[null===r||void 0===r?void 0:r.end,null===a||void 0===a?void 0:a.end]}(r,a),o=i[0],s=i[1];if(void 0!==o&&void 0!==s){var c=0===S(r).length,l=e.positionsAreOnSameLine(o,s,a);c&&l&&o!==s-1&&n.deleteRange(a,e.createRange(o,s-1)),l&&n.insertText(a,s-1,n.newLineCharacter)}}))},n.prototype.finishDeleteDeclarations=function(){for(var n=this,t=new e.Set,r=function(n,r){a.deletedNodes.some((function(t){return t.sourceFile===n&&e.rangeContainsRangeExclusive(t.node,r)}))||(e.isArray(r)?a.deleteRange(n,e.rangeOfTypeParameters(n,r)):b.deleteDeclaration(a,t,n,r))},a=this,i=0,o=this.deletedNodes;i<o.length;i++){var s=o[i];r(s.sourceFile,s.node)}t.forEach((function(r){var a=r.getSourceFile(),i=e.formatting.SmartIndenter.getContainingList(r,a);if(r===e.last(i)){var o=e.findLastIndex(i,(function(e){return!t.has(e)}),i.length-2);-1!==o&&n.deleteRange(a,{pos:i[o].end,end:T(a,i[o+1])})}}))},n.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var n=v.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),t=0,r=this.newFiles;t<r.length;t++){var a=r[t],i=a.oldFile,o=a.fileName,s=a.statements;n.push(v.newFileChanges(i,o,s,this.newLineCharacter,this.formatContext))}return n},n.prototype.createNewFile=function(e,n,t){this.newFiles.push({oldFile:e,fileName:n,statements:t})},n}();function T(n,t){return e.skipTrivia(n.text,_(n,t,{leadingTriviaOption:o.IncludeAll}),!1,!0)}function S(n){return e.isObjectLiteralExpression(n)?n.properties:n.members}function x(n,t){for(var r=t.length-1;r>=0;r--){var a=t[r],i=a.span,o=a.newText;n="".concat(n.substring(0,i.start)).concat(o).concat(n.substring(e.textSpanEnd(i)))}return n}function L(n){var r=e.visitEachChild(n,L,e.nullTransformationContext,D,L),i=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(i,t(n),a(n)),i}function D(n,r,i,o,s){var c=e.visitNodes(n,r,i,o,s);if(!c)return c;var l=c===n?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,t(n),a(n)),l}function C(n,t){return!e.isInComment(n,t)&&!e.isInString(n,t)&&!e.isInTemplateString(n,t)&&!e.isInJSXText(n,t)}function A(e,n,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});var a=_(n,t,r),i=y(n,t,r);e.deleteRange(n,{pos:a,end:i})}function I(n,t,r,a){var i=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(a,r)),o=e.indexOfNode(i,a);e.Debug.assert(-1!==o),1!==i.length?(e.Debug.assert(!t.has(a),"Deleting a node twice"),t.add(a),n.deleteRange(r,{pos:T(r,a),end:o===i.length-1?y(r,a,{}):T(r,i[o+1])})):A(n,r,a)}n.ChangeTracker=E,n.getNewFileText=function(e,n,t,r){return v.newFileChangesWorker(void 0,n,e,t,r)},function(n){function t(n,t,r,i,o){var s=r.map((function(e){return 4===e?"":a(e,n,i).text})).join(i),c=e.createSourceFile("any file name",s,99,!0,t);return x(s,e.formatting.formatDocument(c,o))+i}function a(n,t,a){var o=function(n){var t=0,a=e.createTextWriter(n),o=function(e){e&&r(e,t)},s=function(e){e&&i(e,t)},c=function(e){e&&r(e,t)},l=function(e){e&&i(e,t)};function u(n,r){if(r||!function(n){return e.skipTrivia(n,0)===n.length}(n)){t=a.getTextPos();for(var i=0;e.isWhiteSpaceLike(n.charCodeAt(n.length-i-1));)i++;t-=i}}function d(e){a.write(e),u(e,!1)}function p(e){a.writeComment(e)}function f(e){a.writeKeyword(e),u(e,!1)}function m(e){a.writeOperator(e),u(e,!1)}function _(e){a.writePunctuation(e),u(e,!1)}function g(e){a.writeTrailingSemicolon(e),u(e,!1)}function y(e){a.writeParameter(e),u(e,!1)}function h(e){a.writeProperty(e),u(e,!1)}function v(e){a.writeSpace(e),u(e,!1)}function b(e){a.writeStringLiteral(e),u(e,!1)}function E(e,n){a.writeSymbol(e,n),u(e,!1)}function T(e){a.writeLine(e)}function S(){a.increaseIndent()}function x(){a.decreaseIndent()}function L(){return a.getText()}function D(e){a.rawWrite(e),u(e,!1)}function C(e){a.writeLiteral(e),u(e,!0)}function A(){return a.getTextPos()}function I(){return a.getLine()}function k(){return a.getColumn()}function N(){return a.getIndent()}function R(){return a.isAtStartOfLine()}function O(){a.clear(),t=0}return{onBeforeEmitNode:o,onAfterEmitNode:s,onBeforeEmitNodeArray:function(e){e&&r(e,t)},onAfterEmitNodeArray:function(e){e&&i(e,t)},onBeforeEmitToken:c,onAfterEmitToken:l,write:d,writeComment:p,writeKeyword:f,writeOperator:m,writePunctuation:_,writeTrailingSemicolon:g,writeParameter:y,writeProperty:h,writeSpace:v,writeStringLiteral:b,writeSymbol:E,writeLine:T,increaseIndent:S,decreaseIndent:x,getText:L,rawWrite:D,writeLiteral:C,getTextPos:A,getLine:I,getColumn:k,getIndent:N,isAtStartOfLine:R,hasTrailingComment:function(){return a.hasTrailingComment()},hasTrailingWhitespace:function(){return a.hasTrailingWhitespace()},clear:O}}(a),s=e.getNewLineKind(a);return e.createPrinter({newLine:s,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},o).writeNode(4,n,t,o),{text:o.getText(),node:L(n)}}n.getTextChangesFromChanges=function(n,t,r,i){return e.mapDefined(e.group(n,(function(e){return e.sourceFile.path})),(function(n){for(var o=n[0].sourceFile,s=e.stableSort(n,(function(e,n){return e.range.pos-n.range.pos||e.range.end-n.range.end})),c=function(n){e.Debug.assert(s[n].range.end<=s[n+1].range.pos,"Changes overlap",(function(){return"".concat(JSON.stringify(s[n].range)," and ").concat(JSON.stringify(s[n+1].range))}))},l=0;l<s.length-1;l++)c(l);var u=e.mapDefined(s,(function(n){var s=e.createTextSpanFromRange(n.range),c=function(n,t,r,i,o){var s;if(n.kind===d.Remove)return"";if(n.kind===d.Text)return n.text;var c=n.options,l=void 0===c?{}:c,u=n.range.pos,p=function(n){return function(n,t,r,i,o,s,c){var l=i.indentation,u=i.prefix,d=i.delta,p=a(n,t,o),f=p.node,m=p.text;c&&c(f,m);var _=function(n,t){var r=n.options,a=!r.semicolons||r.semicolons===e.SemicolonPreference.Ignore,i=r.semicolons===e.SemicolonPreference.Remove||a&&!e.probablyUsesSemicolons(t);return fa(fa({},r),{semicolons:i?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(s,t),g=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(r,t,_,u===o||e.getLineStartPositionForPosition(r,t)===r);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(_,n)&&_.indentSize||0);var y={text:m,getLineAndCharacterOfPosition:function(n){return e.getLineAndCharacterOfPosition(this,n)}},h=e.formatting.formatNodeGivenIndentation(f,y,t.languageVariant,g,d,fa(fa({},s),{options:_}));return x(m,h)}(n,t,u,l,r,i,o)},f=n.kind===d.ReplaceWithMultipleNodes?n.nodes.map((function(n){return e.removeSuffix(p(n),r)})).join((null===(s=n.options)||void 0===s?void 0:s.joiner)||r):p(n.node),m=l.preserveLeadingWhitespace||void 0!==l.indentation||e.getLineStartPositionForPosition(u,t)===u?f:f.replace(/^\s+/,"");return(l.prefix||"")+m+(!l.suffix||e.endsWith(m,l.suffix)?"":l.suffix)}(n,o,t,r,i);if(s.length!==c.length||!e.stringContainsAt(o.text,c,s.start))return e.createTextChange(s,c)}));return u.length>0?{fileName:o.fileName,textChanges:u}:void 0}))},n.newFileChanges=function(n,r,a,i,o){var s=t(n,e.getScriptKindFromFileName(r),a,i,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},n.newFileChangesWorker=t,n.getNonformattedText=a}(v||(v={})),n.applyChanges=x,n.isValidLocationToAddComment=C,function(n){function t(n,t,r){if(r.parent.name){var a=e.Debug.checkDefined(e.getTokenAtPosition(t,r.pos-1));n.deleteRange(t,{pos:a.getStart(t),end:r.end})}else{A(n,t,e.getAncestor(r,265))}}n.deleteDeclaration=function(n,r,a,i){switch(i.kind){case 163:var s=i.parent;e.isArrowFunction(s)&&1===s.parameters.length&&!e.findChildOfKind(s,20,a)?n.replaceNodeWithText(a,i,"()"):I(n,r,a,i);break;case 265:case 264:A(n,a,i,{leadingTriviaOption:a.imports.length&&i===e.first(a.imports).parent||i===e.find(a.statements,e.isAnyImportSyntax)?o.Exclude:e.hasJSDocNodes(i)?o.JSDoc:o.StartLine});break;case 202:var l=i.parent;201===l.kind&&i!==e.last(l.elements)?A(n,a,i):I(n,r,a,i);break;case 253:!function(n,t,r,a){var i=a.parent;if(291===i.kind)return void n.deleteNodeRange(r,e.findChildOfKind(i,20,r),e.findChildOfKind(i,21,r));if(1!==i.declarations.length)return void I(n,t,r,a);var s=i.parent;switch(s.kind){case 243:case 242:n.replaceNode(r,a,e.factory.createObjectLiteralExpression());break;case 241:A(n,r,i);break;case 236:A(n,r,s,{leadingTriviaOption:e.hasJSDocNodes(s)?o.JSDoc:o.StartLine});break;default:e.Debug.assertNever(s)}}(n,r,a,i);break;case 162:I(n,r,a,i);break;case 269:var u=i.parent;1===u.elements.length?t(n,a,u):I(n,r,a,i);break;case 267:t(n,a,i);break;case 26:A(n,a,i,{trailingTriviaOption:c.Exclude});break;case 98:A(n,a,i,{leadingTriviaOption:o.Exclude});break;case 256:case 255:A(n,a,i,{leadingTriviaOption:e.hasJSDocNodes(i)?o.JSDoc:o.StartLine});break;default:i.parent?e.isImportClause(i.parent)&&i.parent.name===i?function(n,t,r){if(r.namedBindings){var a=r.name.getStart(t),i=e.getTokenAtPosition(t,r.name.end);if(i&&27===i.kind){var o=e.skipTrivia(t.text,i.end,!1,!0);n.deleteRange(t,{pos:a,end:o})}else A(n,t,r.name)}else A(n,t,r.parent)}(n,a,i.parent):e.isCallExpression(i.parent)&&e.contains(i.parent.arguments,i)?I(n,r,a,i):A(n,a,i):A(n,a,i)}}}(b||(b={})),n.deleteNode=A}(e.textChanges||(e.textChanges={}))}(ha||(ha={})),function(e){!function(n){var t=e.createMultiMap(),r=new e.Map;function a(e,n,t,r,a,i){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:a,commands:i?[i]:void 0}}function i(e,n){return{changes:e,commands:n}}function o(n,t,r){for(var a=0,i=s(n);a<i.length;a++){var o=i[a];e.contains(t,o.code)&&r(o)}}function s(n){var t=n.program,r=n.sourceFile,a=n.cancellationToken;return pa(pa(pa([],t.getSemanticDiagnostics(r,a),!0),t.getSyntacticDiagnostics(r,a),!0),e.computeSuggestionDiagnostics(r,t,a),!0)}n.createCodeFixActionWithoutFixAll=function(n,t,r){return a(n,e.diagnosticToString(r),t,void 0,void 0)},n.createCodeFixAction=function(n,t,r,i,o,s){return a(n,e.diagnosticToString(r),t,i,e.diagnosticToString(o),s)},n.createCodeFixActionMaybeFixAll=function(n,t,r,i,o,s){return a(n,e.diagnosticToString(r),t,i,o&&e.diagnosticToString(o),s)},n.registerCodeFix=function(n){for(var a=0,i=n.errorCodes;a<i.length;a++){var o=i[a];t.add(String(o),n)}if(n.fixIds)for(var s=0,c=n.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!r.has(l)),r.set(l,n)}},n.getSupportedErrorCodes=function(){return e.arrayFrom(t.keys())},n.getFixes=function(n){var r=s(n),a=t.get(String(n.errorCode));return e.flatMap(a,(function(t){return e.map(t.getCodeActions(n),function(n,t){for(var r=n.errorCodes,a=0,i=0,o=t;i<o.length;i++){var s=o[i];if(e.contains(r,s.code)&&a++,a>1)break}var c=a<2;return function(e){var n=e.fixId,t=e.fixAllDescription,r=ga(e,["fixId","fixAllDescription"]);return c?r:fa(fa({},r),{fixId:n,fixAllDescription:t})}}(t,r))}))},n.getAllFixes=function(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)},n.createCombinedCodeActions=i,n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var a=[];return i(e.textChanges.ChangeTracker.with(n,(function(e){return o(n,t,(function(n){return r(e,n,a)}))})),0===a.length?void 0:a)},n.eachDiagnostic=o}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=new e.Map;n.registerRefactor=function(e,n){t.set(e,n)},n.getApplicableRefactors=function(r){return e.arrayFrom(e.flatMapIterator(t.values(),(function(e){var t;return r.cancellationToken&&r.cancellationToken.isCancellationRequested()||!(null===(t=e.kinds)||void 0===t?void 0:t.some((function(e){return n.refactorKindBeginsWith(e,r.kind)})))?void 0:e.getAvailableActions(r)})))},n.getEditsForRefactor=function(e,n,r){var a=t.get(n);return a&&a.getEditsForAction(e,r)}}(e.refactor||(e.refactor={}))}(ha||(ha={})),function(e){!function(n){var t="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.Debug.checkDefined(e.findAncestor(a,(function(n){return e.isAsExpression(n)||e.isTypeAssertionExpression(n)})),"Expected to find an assertion expression"),o=e.isAsExpression(i)?e.factory.createAsExpression(i.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),i.expression);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,t,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){var n;(n=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){var r=t.sourceFile,a=e.textChanges.ChangeTracker.with(t,(function(n){var t=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);n.insertNodeAtEndOfScope(r,r,t)}));return[n.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",a,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(ha||(ha={})),function(e){!function(n){var t="addMissingAsync",r=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function a(r,a,i,o){var s=i((function(n){return function(n,t,r,a){if(a&&a.has(e.getNodeId(r)))return;null===a||void 0===a||a.add(e.getNodeId(r));var i=e.factory.updateModifiers(e.getSynthesizedDeepClone(r,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(r))));n.replaceNode(t,r,i)}(n,r.sourceFile,a,o)}));return n.createCodeFixAction(t,s,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)}function i(n,t){if(t){var r=e.getTokenAtPosition(n,t.start);return e.findAncestor(r,(function(r){return r.getStart(n)<t.start||r.getEnd()>e.textSpanEnd(t)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(t,e.createTextSpanFromNode(r,n))}))}}n.registerCodeFix({fixIds:[t],errorCodes:r,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,o=n.cancellationToken,s=n.program,c=n.span,l=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(t,o),function(n,t){return function(r){var a=r.start,i=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},n)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,r)),u=i(t,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u){return[a(n,u,(function(t){return e.textChanges.ChangeTracker.with(n,t)}))]}},getAllCodeActions:function(t){var o=t.sourceFile,s=new e.Set;return n.codeFixAll(t,r,(function(n,r){var c=r.relatedInformation&&e.find(r.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=i(o,c);if(l){return a(t,l,(function(e){return e(n),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addMissingAwait",r=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],i=pa([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,r],a,!0);function o(n,t,r,a,i){var o=e.getFixableErrorSpanExpression(n,r);return o&&function(n,t,r,a,i){var o=i.getDiagnosticsProducingTypeChecker().getDiagnostics(n,a);return e.some(o,(function(n){var a=n.start,i=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},r)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(n,t,r,a,i)&&l(o)?o:void 0}function s(t,r,a,o,s,c){var d=t.sourceFile,p=t.program,f=t.cancellationToken,m=function(n,t,r,a,o){var s=function(n,t){if(e.isPropertyAccessExpression(n.parent)&&e.isIdentifier(n.parent.expression))return{identifiers:[n.parent.expression],isCompleteFix:!0};if(e.isIdentifier(n))return{identifiers:[n],isCompleteFix:!0};if(e.isBinaryExpression(n)){for(var r=void 0,a=!0,i=0,o=[n.left,n.right];i<o.length;i++){var s=o[i],c=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){a=!1;continue}(r||(r=[])).push(s)}}return r&&{identifiers:r,isCompleteFix:a}}}(n,o);if(!s)return;for(var c,u=s.isCompleteFix,d=function(n){var s=o.getSymbolAtLocation(n);if(!s)return"continue";var d=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),p=d&&e.tryCast(d.name,e.isIdentifier),f=e.getAncestor(d,236);if(!d||!f||d.type||!d.initializer||f.getSourceFile()!==t||e.hasSyntacticModifier(f,1)||!p||!l(d.initializer))return u=!1,"continue";var m=a.getSemanticDiagnostics(t,r),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(p,o,t,(function(r){return n!==r&&!function(n,t,r,a){var o=e.isPropertyAccessExpression(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)?n.parent:n,s=e.find(t,(function(e){return e.start===o.getStart(r)&&e.start+e.length===o.getEnd()}));return s&&e.contains(i,s.code)||1&a.getTypeAtLocation(o).flags}(r,m,t,o)}));if(_)return u=!1,"continue";(c||(c=[])).push({expression:d.initializer,declarationSymbol:s})},p=0,f=s.identifiers;p<f.length;p++){d(f[p])}return c&&{initializers:c,needsSecondPassForFixAll:!u}}(r,d,f,p,o);if(m){var _=s((function(n){e.forEach(m.initializers,(function(e){var t=e.expression;return u(n,a,d,o,t,c)})),c&&m.needsSecondPassForFixAll&&u(n,a,d,o,r,c)}));return n.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",_,1===m.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,m.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(r,a,i,o,s,c){var l=s((function(e){return u(e,i,r.sourceFile,o,a,c)}));return n.createCodeFixAction(t,l,e.Diagnostics.Add_await,t,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(n){return 32768&n.kind||!!e.findAncestor(n,(function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n||e.isBlock(n)&&(255===n.parent.kind||212===n.parent.kind||213===n.parent.kind||168===n.parent.kind)}))}function u(n,t,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l<u.length;l++){var p=u[l];if(c&&e.isIdentifier(p))if((_=o.getSymbolAtLocation(p))&&c.has(e.getSymbolId(_)))continue;var f=o.getTypeAtLocation(p),m=o.getPromisedTypeOfPromise(f)?e.factory.createAwaitExpression(p):p;n.replaceNode(i,p,m)}else if(t===r&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression))if((_=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(_)))return;n.replaceNode(i,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),d(n,s.parent.expression,i)}else if(e.contains(a,t)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s))if((_=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(_)))return;n.replaceNode(i,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),d(n,s,i)}else{var _;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name))if((_=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(_)))return;n.replaceNode(i,s,e.factory.createAwaitExpression(s))}}function d(n,t,r){var a=e.findPrecedingToken(t.pos,r);a&&e.positionIsASICandidate(a.end,a.parent,r)&&n.insertText(r,t.getStart(r),";")}n.registerCodeFix({fixIds:[t],errorCodes:i,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,a=o(t,r,n.span,n.cancellationToken,n.program);if(a){var i=n.program.getTypeChecker(),l=function(t){return e.textChanges.ChangeTracker.with(n,t)};return e.compact([s(n,a,r,i,l),c(n,a,r,i,l)])}},getAllCodeActions:function(t){var r=t.sourceFile,a=t.program,l=t.cancellationToken,u=t.program.getTypeChecker(),d=new e.Set;return n.codeFixAll(t,i,(function(e,n){var i=o(r,n.code,n,l,a);if(i){var p=function(n){return n(e),[]};return s(t,i,n.code,u,p,d)||c(t,i,n.code,u,p,d)}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addMissingConst",r=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function a(n,t,r,a,s){var c=e.getTokenAtPosition(t,r),l=e.findAncestor(c,(function(n){return e.isForInOrOfStatement(n.parent)?n.parent.initializer===n:!function(e){switch(e.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}}(n)&&"quit"}));if(l)return i(n,l,t,s);var u=c.parent;if(e.isBinaryExpression(u)&&63===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return i(n,c,t,s);if(e.isArrayLiteralExpression(u)){var d=a.getTypeChecker();if(!e.every(u.elements,(function(n){return function(n,t){var r=e.isIdentifier(n)?n:e.isAssignmentExpression(n,!0)&&e.isIdentifier(n.left)?n.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}(n,d)})))return;return i(n,u,t,s)}var p=e.findAncestor(c,(function(n){return!!e.isExpressionStatement(n.parent)||!function(e){switch(e.kind){case 79:case 220:case 27:return!0;default:return!1}}(n)&&"quit"}));if(p){if(!o(p,a.getTypeChecker()))return;return i(n,p,t,s)}}function i(n,t,r,a){a&&!e.tryAddToSet(a,t)||n.insertModifierBefore(r,85,t)}function o(n,t){return!!e.isBinaryExpression(n)&&(27===n.operatorToken.kind?e.every([n.left,n.right],(function(e){return o(e,t)})):63===n.operatorToken.kind&&e.isIdentifier(n.left)&&!t.getSymbolAtLocation(n.left))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start,r.program)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Add_const_to_unresolved_variable,t,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.Set;return n.codeFixAll(t,r,(function(e,n){return a(e,n.file,n.start,t.program,i)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addMissingDeclareProperty",r=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function a(n,t,r,a){var i=e.getTokenAtPosition(t,r);if(e.isIdentifier(i)){var o=i.parent;166!==o.kind||a&&!e.tryAddToSet(a,o)||n.insertModifierBefore(t,135,o)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Prefix_with_declare,t,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.Set;return n.codeFixAll(t,r,(function(e,n){return a(e,n.file,n.start,i)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.findAncestor(a,e.isDecorator);e.Debug.assert(!!i,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(i.expression,void 0,void 0);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Call_decorator_expression,t,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=a.parent;if(!e.isParameter(i))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(a.kind));var o=i.parent.parameters.indexOf(i);e.Debug.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(i.name,void 0),c=e.factory.createParameterDeclaration(void 0,i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken?e.factory.createArrayTypeNode(s):s,i.initializer);n.replaceNode(t,i,c)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Add_parameter_name,t,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addOptionalPropertyUndefined",r=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function a(n,t){var r;if(n){if(e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind)return{source:n.parent.right,target:n.parent.left};if(e.isVariableDeclaration(n.parent)&&n.parent.initializer)return{source:n.parent.initializer,target:n.parent.name};if(e.isCallExpression(n.parent)){var i=t.getSymbolAtLocation(n.parent.expression);if(!(null===i||void 0===i?void 0:i.valueDeclaration)||!e.isFunctionLikeKind(i.valueDeclaration.kind))return;if(!e.isExpression(n))return;var o=n.parent.arguments.indexOf(n);if(-1===o)return;var s=i.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:n,target:s}}else if(e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)||e.isShorthandPropertyAssignment(n.parent)){var c=a(n.parent.parent,t);if(!c)return;var l=t.getPropertyOfType(t.getTypeAtLocation(c.target),n.parent.name.text),u=null===(r=null===l||void 0===l?void 0:l.declarations)||void 0===r?void 0:r[0];if(!u)return;return{source:e.isPropertyAssignment(n.parent)?n.parent.initializer:n.parent.name,target:u}}}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.program.getTypeChecker(),o=function(n,t,r){var i,o,s=a(e.getFixableErrorSpanExpression(n,t),r);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=function(n,t,r){return e.isPropertyAccessExpression(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(n)===r.getUndefinedType()}(c,l,r)?r.getTypeAtLocation(l.expression):r.getTypeAtLocation(l);if(null===(o=null===(i=u.symbol)||void 0===i?void 0:i.declarations)||void 0===o?void 0:o.some((function(n){return e.getSourceFileOfNode(n).fileName.match(/\.d\.ts$/)})))return e.emptyArray;return r.getExactOptionalProperties(u)}(r.sourceFile,r.span,i);if(o.length){var s=e.textChanges.ChangeTracker.with(r,(function(n){return function(n,t){for(var r=0,a=t;r<a.length;r++){var i=a[r].valueDeclaration;if(i&&(e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&i.type){var o=e.factory.createUnionTypeNode(pa(pa([],186===i.type.kind?i.type.types:[i.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));n.replaceNode(i.getSourceFile(),i.type,o)}}}(n,o)}));return[n.createCodeFixActionWithoutFixAll(t,s,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[t]})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,i)}function i(n){return function(n){return e.isFunctionLikeDeclaration(n)||253===n.kind||165===n.kind||166===n.kind}(n)&&o(n)}function o(n){return e.isFunctionLikeDeclaration(n)?n.parameters.some(o)||!n.type&&!!e.getJSDocReturnType(n):!n.type&&!!e.getJSDocType(n)}function s(n,t,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some((function(n){return!!e.getJSDocType(n)})))){if(!r.typeParameters){var a=e.getJSDocTypeParameterDeclarations(r);a.length&&n.insertTypeParameters(t,r,a)}var i=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,t);i&&n.insertNodeBefore(t,e.first(r.parameters),e.factory.createToken(20));for(var o=0,s=r.parameters;o<s.length;o++){var l=s[o];if(!l.type){var u=e.getJSDocType(l);u&&n.tryInsertTypeAnnotation(t,l,c(u))}}if(i&&n.insertNodeAfter(t,e.last(r.parameters),e.factory.createToken(21)),!r.type){var d=e.getJSDocReturnType(r);d&&n.tryInsertTypeAnnotation(t,r,c(d))}}else{var p=e.Debug.checkDefined(e.getJSDocType(r),"A JSDocType for this declaration should exist");e.Debug.assert(!r.type,"The JSDocType decl should have a type"),n.tryInsertTypeAnnotation(t,r,c(p))}}function c(n){switch(n.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return function(n){return e.factory.createUnionTypeNode([e.visitNode(n.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}(n);case 313:return c(n.type);case 312:return function(n){return e.factory.createUnionTypeNode([e.visitNode(n.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)])}(n);case 316:return function(n){return e.factory.createArrayTypeNode(e.visitNode(n.type,c))}(n);case 315:return function(n){var t;return e.factory.createFunctionTypeNode(e.emptyArray,n.parameters.map(l),null!==(t=n.type)&&void 0!==t?t:e.factory.createKeywordTypeNode(130))}(n);case 177:return function(n){var t=n.typeName,r=n.typeArguments;if(e.isIdentifier(n.typeName)){if(e.isJSDocIndexSignature(n))return function(n){var t=e.factory.createParameterDeclaration(void 0,void 0,void 0,146===n.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(146===n.typeArguments[0].kind?"number":"string",[]),void 0),r=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[t],n.typeArguments[1])]);return e.setEmitFlags(r,1),r}(n);var a=n.typeName.text;switch(n.typeName.text){case"String":case"Boolean":case"Object":case"Number":a=a.toLowerCase();break;case"array":case"date":case"promise":a=a[0].toUpperCase()+a.slice(1)}t=e.factory.createIdentifier(a),r="Array"!==a&&"Promise"!==a||n.typeArguments?e.visitNodes(n.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(t,r)}(n);default:var t=e.visitEachChild(n,c,e.nullTransformationContext);return e.setEmitFlags(t,1),t}}function l(n){var t=n.parent.parameters.indexOf(n),r=316===n.type.kind&&t===n.parent.parameters.length-1,a=n.name||(r?"rest":"arg"+t),i=r?e.factory.createToken(25):n.dotDotDotToken;return e.factory.createParameterDeclaration(n.decorators,n.modifiers,i,a,n.questionToken,e.visitNode(n.type,c),n.initializer)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=a(r.sourceFile,r.span.start);if(i){var o=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,i)}));return[n.createCodeFixAction(t,o,e.Diagnostics.Annotate_with_type_from_JSDoc,t,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&s(e,n.file,t)}))}}),n.parameterShouldGetTypeFromJSDoc=i}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="convertFunctionToEs6Class",r=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function a(n,t,r,a,s,c){var l=a.getSymbolAtLocation(e.getTokenAtPosition(t,r));if(l&&l.valueDeclaration&&19&l.flags){var u=l.valueDeclaration;if(e.isFunctionDeclaration(u))n.replaceNode(t,u,function(n){var t=f(l);n.body&&t.unshift(e.factory.createConstructorDeclaration(void 0,void 0,n.parameters,n.body));var r=i(n,93);return e.factory.createClassDeclaration(void 0,r,n.name,void 0,void 0,t)}(u));else if(e.isVariableDeclaration(u)){var d=function(n){var t=n.initializer;if(!t||!e.isFunctionExpression(t)||!e.isIdentifier(n.name))return;var r=f(n.symbol);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var a=i(n.parent.parent,93);return e.factory.createClassDeclaration(void 0,a,n.name,void 0,void 0,r)}(u);if(!d)return;var p=u.parent.parent;e.isVariableDeclarationList(u.parent)&&u.parent.declarations.length>1?(n.delete(t,u),n.insertNodeAfter(t,p,d)):n.replaceNode(t,p,d)}}function f(r){var a=[];return r.members&&r.members.forEach((function(e,r){if("constructor"===r&&e.valueDeclaration)n.delete(t,e.valueDeclaration.parent);else{var i=l(e,void 0);i&&a.push.apply(a,i)}})),r.exports&&r.exports.forEach((function(n){if("prototype"===n.name&&n.declarations){var t=n.declarations[0];if(1===n.declarations.length&&e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isObjectLiteralExpression(t.parent.right))(r=l(t.parent.right.symbol,void 0))&&a.push.apply(a,r)}else{var r;(r=l(n,[e.factory.createToken(124)]))&&a.push.apply(a,r)}})),a;function l(r,a){var l=[];if(!(8192&r.flags)&&!(4096&r.flags))return l;var u,d,p=r.valueDeclaration,f=p.parent,m=f.right;if(u=p,d=m,!(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(n){return!(!e.isMethodDeclaration(n)&&!e.isGetOrSetAccessorDeclaration(n))||!!(e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)&&n.name)||!!o(n)}))))return l;var _=f.parent&&237===f.parent.kind?f.parent:f;if(n.delete(t,_),!m)return l.push(e.factory.createPropertyDeclaration([],a,r.name,void 0,void 0,void 0)),l;if(e.isAccessExpression(p)&&(e.isFunctionExpression(m)||e.isArrowFunction(m))){var g=e.getQuotePreference(t,s),y=function(n,t,r){if(e.isPropertyAccessExpression(n))return n.name;var a=n.argumentExpression;if(e.isNumericLiteral(a))return a;if(e.isStringLiteralLike(a))return e.isIdentifierText(a.text,e.getEmitScriptTarget(t))?e.factory.createIdentifier(a.text):e.isNoSubstitutionTemplateLiteral(a)?e.factory.createStringLiteral(a.text,0===r):a;return}(p,c,g);return y?v(l,m,y):l}if(e.isObjectLiteralExpression(m))return e.flatMap(m.properties,(function(n){return e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)?l.concat(n):e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)?v(l,n.initializer,n.name):o(n)?l:[]}));if(e.isSourceFileJS(t))return l;if(!e.isPropertyAccessExpression(p))return l;var h=e.factory.createPropertyDeclaration(void 0,a,p.name,void 0,void 0,m);return e.copyLeadingComments(f.parent,h,t),l.push(h),l;function v(n,r,o){return e.isFunctionExpression(r)?function(n,r,o){var s=e.concatenate(a,i(r,131)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,r.parameters,void 0,r.body);return e.copyLeadingComments(f,c,t),n.concat(c)}(n,r,o):function(n,r,o){var s,c=r.body;s=234===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(a,i(r,131)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,r.parameters,void 0,s);return e.copyLeadingComments(f,u,t),n.concat(u)}(n,r,o)}}}}function i(n,t){return e.filter(n.modifiers,(function(e){return e.kind===t}))}function o(n){return!!n.name&&!(!e.isIdentifier(n.name)||"constructor"!==n.name.text)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r.preferences,r.program.getCompilerOptions())}));return[n.createCodeFixAction(t,i,e.Diagnostics.Convert_function_to_an_ES2015_class,t,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return a(n,t.file,t.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t,r,a="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(n,t,r,a){var i,o=e.getTokenAtPosition(t,r);if(i=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(t,r)),e.canBeConvertedToAsync)){var s=new e.Map,l=e.isInJSFile(i),u=function(n,t){if(!n.body)return new e.Set;var r=new e.Set;return e.forEachChild(n.body,(function n(a){c(a,t,"then")?(r.add(e.getNodeId(a)),e.forEach(a.arguments,n)):c(a,t,"catch")||c(a,t,"finally")?(r.add(e.getNodeId(a)),e.forEachChild(a,n)):d(a,t)?r.add(e.getNodeId(a)):e.forEachChild(a,n)})),r}(i,a),m=function(n,t,r){var a=new e.Map,i=e.createMultiMap();return e.forEachChild(n,(function n(o){if(e.isIdentifier(o)){var s=t.getSymbolAtLocation(o);if(s){var c=x(t.getTypeAtLocation(o),t),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||r.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,d=i.get(u);if(d&&d.some((function(e){return e!==s}))){var f=p(o,i);a.set(l,f.identifier),r.set(l,f),i.add(u,s)}else{var m=e.getSynthesizedDeepClone(o);r.set(l,A(m)),i.add(u,s)}}}else{var _=e.firstOrUndefined(c.parameters),g=(null===_||void 0===_?void 0:_.valueDeclaration)&&e.isParameter(_.valueDeclaration)&&e.tryCast(_.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),y=p(g,i);r.set(l,y),i.add(g.text,s)}}}else e.forEachChild(o,n)})),e.getSynthesizedDeepCloneWithReplacements(n,!0,(function(n){if(e.isBindingElement(n)&&e.isIdentifier(n.name)&&e.isObjectBindingPattern(n.parent)){if((i=(r=t.getSymbolAtLocation(n.name))&&a.get(String(e.getSymbolId(r))))&&i.text!==(n.name||n.propertyName).getText())return e.factory.createBindingElement(n.dotDotDotToken,n.propertyName||n.name,i,n.initializer)}else if(e.isIdentifier(n)){var r,i;if(i=(r=t.getSymbolAtLocation(n))&&a.get(String(e.getSymbolId(r))))return e.factory.createIdentifier(i.text)}}))}(i,a,s);if(e.returnsPromise(m,a)){var g=m.body&&e.isBlock(m.body)?function(n,t){var r=[];return e.forEachReturnStatement(n,(function(n){e.isReturnStatementWithFixablePromiseHandler(n,t)&&r.push(n)})),r}(m.body,a):e.emptyArray,y={checker:a,synthNamesMap:s,setOfExpressionsToReturn:u,isInJSFile:l};if(g.length){var h=i.modifiers?i.modifiers.end:i.decorators?e.skipTrivia(t.text,i.decorators.end):i.getStart(t),v=i.modifiers?{prefix:" "}:{suffix:" "};n.insertModifierAt(t,h,131,v);for(var b=function(r){if(e.forEachChild(r,(function a(i){if(e.isCallExpression(i)){var o=_(i,i,y,!1);if(f())return!0;n.replaceNodeWithNodes(t,r,o)}else if(!e.isFunctionLike(i)&&(e.forEachChild(i,a),f()))return!0})),f())return{value:void 0}},E=0,T=g;E<T.length;E++){var S=b(T[E]);if("object"===typeof S)return S.value}}}}}function c(n,t,r){if(!e.isCallExpression(n))return!1;var a=e.hasPropertyAccessExpressionWithName(n,r)&&t.getTypeAtLocation(n);return!(!a||!t.getPromisedTypeOfPromise(a))}function l(n,t){return 0!==(4&e.getObjectFlags(n))&&n.target===t}function u(n,t,r){if("finally"!==n.expression.name.escapedText){var a=r.getTypeAtLocation(n.expression.expression);if(l(a,r.getPromiseType())||l(a,r.getPromiseLikeType())){if("then"!==n.expression.name.escapedText)return e.elementAt(n.typeArguments,0);if(t===e.elementAt(n.arguments,0))return e.elementAt(n.typeArguments,0);if(t===e.elementAt(n.arguments,1))return e.elementAt(n.typeArguments,1)}}}function d(n,t){return!!e.isExpression(n)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(n))}function p(n,t){var r=(t.get(n.text)||e.emptyArray).length;return A(0===r?n:e.factory.createIdentifier(n.text+"_"+r))}function f(){return!o}function m(){return o=!1,e.emptyArray}function _(n,t,r,a,i){if(c(t,r.checker,"then"))return function(n,t,r,a,i,o){if(!t||g(a,t))return v(n,r,a,i,o);if(r&&!g(a,r))return m();var s=D(t,a),c=_(n.expression.expression,n.expression.expression,a,!0,s);if(f())return m();var l=T(t,i,o,s,n,a);return f()?m():e.concatenate(c,l)}(t,e.elementAt(t.arguments,0),e.elementAt(t.arguments,1),r,a,i);if(c(t,r.checker,"catch"))return v(t,e.elementAt(t.arguments,0),r,a,i);if(c(t,r.checker,"finally"))return function(n,t,r,a,i){if(!t||g(r,t))return _(n,n.expression.expression,r,a,i);var o=y(n,r,i),s=_(n,n.expression.expression,r,!0,o);if(f())return m();var c=T(t,a,void 0,void 0,n,r);if(f())return m();var l=e.factory.createBlock(s),u=e.factory.createBlock(c),d=e.factory.createTryStatement(l,void 0,u);return h(n,r,d,o,i)}(t,e.elementAt(t.arguments,0),r,a,i);if(e.isPropertyAccessExpression(t))return _(n,t.expression,r,a,i);var o=r.checker.getTypeAtLocation(t);return o&&r.checker.getPromisedTypeOfPromise(o)?(e.Debug.assertNode(e.getOriginalNode(t).parent,e.isPropertyAccessExpression),function(n,t,r,a,i){if(w(n,r)){var o=e.getSynthesizedDeepClone(t);return a&&(o=e.factory.createAwaitExpression(o)),[e.factory.createReturnStatement(o)]}return b(i,e.factory.createAwaitExpression(t),void 0)}(n,t,r,a,i)):m()}function g(n,t){var r=n.checker;if(104===t.kind)return!0;if(e.isIdentifier(t)&&!e.isGeneratedIdentifier(t)&&"undefined"===e.idText(t)){var a=r.getSymbolAtLocation(t);return!a||r.isUndefinedSymbol(a)}return!1}function y(n,t,r){var a;return r&&!w(n,t)&&(O(r)?(a=r,t.synthNamesMap.forEach((function(n,a){if(n.identifier.text===r.identifier.text){var i=(o=r,A(e.factory.createUniqueName(o.identifier.text,16)));t.synthNamesMap.set(a,i)}var o}))):a=A(e.factory.createUniqueName("result",16),r.types),R(a)),a}function h(n,t,r,a,i){var o,s=[];if(a&&!w(n,t)){o=e.getSynthesizedDeepClone(R(a));var c=a.types,l=t.checker.getUnionType(c,2),u=t.isInJSFile?void 0:t.checker.typeToTypeNode(l,void 0,void 0),d=[e.factory.createVariableDeclaration(o,void 0,u)],p=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(d,1));s.push(p)}return s.push(r),i&&o&&1===i.kind&&s.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(N(i)),void 0,void 0,o)],2))),s}function v(n,t,r,a,i){if(!t||g(r,t))return _(n,n.expression.expression,r,a,i);var o=D(t,r),s=y(n,r,i),c=_(n,n.expression.expression,r,!0,s);if(f())return m();var l=T(t,a,s,o,n,r);if(f())return m();var u=e.factory.createBlock(c),d=e.factory.createCatchClause(o&&e.getSynthesizedDeepClone(k(o)),e.factory.createBlock(l));return h(n,r,e.factory.createTryStatement(u,d,void 0),s,i)}function b(n,t,r){return!n||C(n)?[e.factory.createExpressionStatement(t)]:O(n)&&n.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(I(n)),t))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(k(n)),void 0,r,t)],2))]}function E(n,t){if(t&&n){var r=e.factory.createUniqueName("result",16);return pa(pa([],b(A(r),n,t),!0),[e.factory.createReturnStatement(r)],!1)}return[e.factory.createReturnStatement(n)]}function T(n,t,r,a,i,o){var s;switch(n.kind){case 104:break;case 205:case 79:if(!a)break;var c=e.factory.createCallExpression(e.getSynthesizedDeepClone(n),void 0,O(a)?[I(a)]:[]);if(w(i,o))return E(c,u(i,n,o.checker));var l=o.checker.getTypeAtLocation(n),p=o.checker.getSignaturesOfType(l,0);if(!p.length)return m();var f=p[0].getReturnType(),_=b(r,e.factory.createAwaitExpression(c),u(i,n,o.checker));return r&&r.types.push(o.checker.getAwaitedType(f)||f),_;case 212:case 213:var g=n.body,y=null===(s=x(o.checker.getTypeAtLocation(n),o.checker))||void 0===s?void 0:s.getReturnType();if(e.isBlock(g)){for(var h=[],v=!1,T=0,D=g.statements;T<D.length;T++){var C=D[T];if(e.isReturnStatement(C))if(v=!0,e.isReturnStatementWithFixablePromiseHandler(C,o.checker))h=h.concat(L(o,C,t,r));else{var A=y&&C.expression?S(o.checker,y,C.expression):C.expression;h.push.apply(h,E(A,u(i,n,o.checker)))}else{if(t&&e.forEachReturnStatement(C,e.returnTrue))return m();h.push(C)}}return w(i,o)?h.map((function(n){return e.getSynthesizedDeepClone(n)})):function(n,t,r,a){for(var i=[],o=0,s=n;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=d(c.expression,r.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===t?i.push(e.factory.createExpressionStatement(l)):O(t)&&t.hasBeenDeclared?i.push(e.factory.createExpressionStatement(e.factory.createAssignment(I(t),l))):i.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(k(t),void 0,void 0,l)],2)))}}else i.push(e.getSynthesizedDeepClone(c))}a||void 0===t||i.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(k(t),void 0,void 0,e.factory.createIdentifier("undefined"))],2)));return i}(h,r,o,v)}var N=e.isFixablePromiseHandler(g,o.checker)?L(o,e.factory.createReturnStatement(g),t,r):e.emptyArray;if(N.length>0)return N;if(y){A=S(o.checker,y,g);if(w(i,o))return E(A,u(i,n,o.checker));var R=b(r,A,void 0);return r&&r.types.push(o.checker.getAwaitedType(y)||y),R}return m();default:return m()}return e.emptyArray}function S(n,t,r){var a=e.getSynthesizedDeepClone(r);return n.getPromisedTypeOfPromise(t)?e.factory.createAwaitExpression(a):a}function x(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function L(n,t,r,a){var i=[];return e.forEachChild(t,(function t(o){if(e.isCallExpression(o)){var s=_(o,o,n,r,a);if((i=i.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,t)})),i}function D(n,t){var r,a=[];e.isFunctionLikeDeclaration(n)?n.parameters.length>0&&(r=function n(t){if(e.isIdentifier(t))return i(t);var r=e.flatMap(t.elements,(function(t){return e.isOmittedExpression(t)?[]:[n(t.name)]}));return function(n,t,r){void 0===t&&(t=e.emptyArray);void 0===r&&(r=[]);return{kind:1,bindingPattern:n,elements:t,types:r}}(t,r)}(n.parameters[0].name)):e.isIdentifier(n)?r=i(n):e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&(r=i(n.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(n){var r,i=function(e){return e.symbol?e.symbol:t.checker.getSymbolAtLocation(e)}((r=n).original?r.original:r);return i&&t.synthNamesMap.get(e.getSymbolId(i).toString())||A(n,a)}}function C(n){return!n||(O(n)?!n.identifier.text:e.every(n.elements,C))}function A(e,n){return void 0===n&&(n=[]),{kind:0,identifier:e,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function I(e){return e.hasBeenReferenced=!0,e.identifier}function k(e){return O(e)?R(e):N(e)}function N(e){for(var n=0,t=e.elements;n<t.length;n++){k(t[n])}return e.bindingPattern}function R(e){return e.hasBeenDeclared=!0,e.identifier}function O(e){return 0===e.kind}function w(n,t){return!!n.original&&t.setOfExpressionsToReturn.has(e.getNodeId(n.original))}n.registerCodeFix({errorCodes:i,getCodeActions:function(t){o=!0;var r=e.textChanges.ChangeTracker.with(t,(function(e){return s(e,t.sourceFile,t.span.start,t.program.getTypeChecker())}));return o?[n.createCodeFixAction(a,r,e.Diagnostics.Convert_to_async_function,a,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[a],getAllCodeActions:function(e){return n.codeFixAll(e,i,(function(n,t){return s(n,t.file,t.start,e.program.getTypeChecker())}))}}),(r=t||(t={}))[r.Identifier=0]="Identifier",r[r.BindingPattern=1]="BindingPattern"}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){function t(n,t,r,a){for(var i=0,o=n.imports;i<o.length;i++){var s=o[i],c=e.getResolvedModule(n,s.text,e.getModeForUsageLocation(n,s));if(c&&c.resolvedFileName===t.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 264:r.replaceNode(n,l,e.makeImport(l.name,void 0,s,a));break;case 207:e.isRequireCall(l,!1)&&r.replaceNode(n,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function r(n,t){n.forEachChild((function r(a){if(e.isPropertyAccessExpression(a)&&e.isExportsOrModuleExportsOrAlias(n,a.expression)&&e.isIdentifier(a.name)){var i=a.parent;t(a,e.isBinaryExpression(i)&&i.left===a&&63===i.operatorToken.kind)}a.forEachChild(r)}))}function a(n,t,r,a,l,u,d,f,m){switch(t.kind){case 236:return i(n,t,a,r,l,u,m),!1;case 237:var y=t.expression;switch(y.kind){case 207:return e.isRequireCall(y,!0)&&a.replaceNode(n,t,e.makeImport(void 0,void 0,y.arguments[0],m)),!1;case 220:return 63===y.operatorToken.kind&&function(n,t,r,a,i,l){var u=r.left,d=r.right;if(!e.isPropertyAccessExpression(u))return!1;if(e.isExportsOrModuleExportsOrAlias(n,u)){if(!e.isExportsOrModuleExportsOrAlias(n,d)){var f=e.isObjectLiteralExpression(d)?function(n,t){var r=e.mapAllOrFail(n.properties,(function(n){switch(n.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(n.name)?function(n,t,r){var a=[e.factory.createToken(93)];switch(t.kind){case 212:var i=t.name;if(i&&i.text!==n)return o();case 213:return p(n,a,t,r);case 225:return function(n,t,r,a){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),c(r.members,a))}(n,a,t,r);default:return o()}function o(){return _(a,e.factory.createIdentifier(n),c(t,r))}}(n.name.text,n.initializer,t):void 0;case 168:return e.isIdentifier(n.name)?p(n.name.text,[e.factory.createToken(93)],n,t):void 0;default:e.Debug.assertNever(n,"Convert to ES6 got invalid prop kind ".concat(n.kind))}}));return r&&[r,!1]}(d,l):e.isRequireCall(d,!0)?function(n,t){var r=n.text,a=t.getSymbolAtLocation(n),i=a?a.exports:e.emptyMap;return i.has("export=")?[[s(r)],!0]:i.has("default")?i.size>1?[[o(r),s(r)],!0]:[[s(r)],!0]:[[o(r)],!1]}(d.arguments[0],t):void 0;return f?(a.replaceNodeWithNodes(n,r.parent,f[0]),f[1]):(a.replaceRangeWithText(n,e.createRange(u.getStart(n),d.pos),"export default"),!0)}a.delete(n,r.parent)}else e.isExportsOrModuleExportsOrAlias(n,u.expression)&&function(n,t,r,a){var i=t.left.name.text,o=a.get(i);if(void 0!==o){var s=[_(void 0,o,t.right),g([e.factory.createExportSpecifier(!1,o,i)])];r.replaceNodeWithNodes(n,t.parent,s)}else!function(n,t,r){var a=n.left,i=n.right,o=n.parent,s=a.name.text;if(!(e.isFunctionExpression(i)||e.isArrowFunction(i)||e.isClassExpression(i))||i.name&&i.name.text!==s)r.replaceNodeRangeWithNodes(t,a.expression,e.findChildOfKind(a,24,t),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:a.getStart(t),end:i.getStart(t)},e.factory.createToken(93),{suffix:" "}),i.name||r.insertName(t,i,s);var c=e.findChildOfKind(o,26,t);c&&r.delete(t,c)}}(t,n,r)}(n,r,a,i);return!1}(n,r,y,a,d,f)}default:return!1}}function i(t,r,a,i,o,s,c){var u,d=r.declarationList,p=!1,g=e.map(d.declarations,(function(r){var a=r.name,u=r.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(t,u))return p=!0,y([]);if(e.isRequireCall(u,!0))return p=!0,function(t,r,a,i,o,s){switch(t.kind){case 200:var c=e.mapAllOrFail(t.elements,(function(n){return n.dotDotDotToken||n.initializer||n.propertyName&&!e.isIdentifier(n.propertyName)||!e.isIdentifier(n.name)?void 0:m(n.propertyName&&n.propertyName.text,n.name.text)}));if(c)return y([e.makeImport(void 0,c,r,s)]);case 201:var u=l(n.moduleSpecifierToValidIdentifier(r.text,o),i);return y([e.makeImport(e.factory.createIdentifier(u),void 0,r,s),_(void 0,e.getSynthesizedDeepClone(t),e.factory.createIdentifier(u))]);case 79:return function(n,t,r,a,i){for(var o,s=r.getSymbolAtLocation(n),c=new e.Map,u=!1,d=0,p=a.original.get(n.text);d<p.length;d++){var f=p[d];if(r.getSymbolAtLocation(f)===s&&f!==n){var m=f.parent;if(e.isPropertyAccessExpression(m)){var _=m.name.text;if("default"===_){u=!0;var g=f.getText();(null!==o&&void 0!==o?o:o=new e.Map).set(m,e.factory.createIdentifier(g))}else{e.Debug.assert(m.expression===f,"Didn't expect expression === use");var h=c.get(_);void 0===h&&(h=l(_,a),c.set(_,h)),(null!==o&&void 0!==o?o:o=new e.Map).set(m,e.factory.createIdentifier(h))}}else u=!0}}var v=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(n){var t=n[0],r=n[1];return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))})));v||(u=!0);return y([e.makeImport(u?e.getSynthesizedDeepClone(n):void 0,v,t,i)],o)}(t,r,a,i,s);default:return e.Debug.assertNever(t,"Convert to ES module got invalid name kind ".concat(t.kind))}}(a,u.arguments[0],i,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return p=!0,function(n,t,r,a,i){switch(n.kind){case 200:case 201:var o=l(t,a);return y([f(o,t,r,i),_(void 0,n,e.factory.createIdentifier(o))]);case 79:return y([f(n.text,t,r,i)]);default:return e.Debug.assertNever(n,"Convert to ES module got invalid syntax form ".concat(n.kind))}}(a,u.name.text,u.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([r],d.flags))])}));if(p)return a.replaceNodeWithNodes(t,r,e.flatMap(g,(function(e){return e.newImports}))),e.forEach(g,(function(n){n.useSitesToUnqualify&&e.copyEntries(n.useSitesToUnqualify,null!==u&&void 0!==u?u:u=new e.Map)})),u}function o(e){return g(void 0,e)}function s(n){return g([e.factory.createExportSpecifier(!1,void 0,"default")],n)}function c(n,t){return t&&e.some(e.arrayFrom(t.keys()),(function(t){return e.rangeContainsRange(n,t)}))?e.isArray(n)?e.getSynthesizedDeepClonesWithReplacements(n,!0,r):e.getSynthesizedDeepCloneWithReplacements(n,!0,r):n;function r(e){if(205===e.kind){var n=t.get(e);return t.delete(e),n}}}function l(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_".concat(e);return n.additional.add(e),e}function u(n){var t=e.createMultiMap();return d(n,(function(e){return t.add(e.text,e)})),t}function d(n,t){e.isIdentifier(n)&&function(e){var n=e.parent;switch(n.kind){case 205:return n.name!==e;case 202:case 269:return n.propertyName!==e;default:return!0}}(n)&&t(n),n.forEachChild((function(e){return d(e,t)}))}function p(n,t,r,a){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.factory.converters.convertToFunctionBlock(c(r.body,a)))}function f(n,t,r,a){return"default"===t?e.makeImport(e.factory.createIdentifier(n),void 0,r,a):e.makeImport(void 0,[m(t,n)],r,a)}function m(n,t){return e.factory.createImportSpecifier(!1,void 0!==n&&n!==t?e.factory.createIdentifier(n):void 0,e.factory.createIdentifier(t))}function _(n,t,r){return e.factory.createVariableStatement(n,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,void 0,r)],2))}function g(n,t){return e.factory.createExportDeclaration(void 0,void 0,!1,n&&e.factory.createNamedExports(n),void 0===t?void 0:e.factory.createStringLiteral(t))}function y(e,n){return{newImports:e,useSitesToUnqualify:n}}n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,d=o.preferences,p=e.textChanges.ChangeTracker.with(o,(function(n){var o=function(n,t,o,s,c){var d={original:u(n),additional:new e.Set},p=function(n,t,a){var i=new e.Map;return r(n,(function(n){var r=n.name,o=r.text,s=r.originalKeywordKind;!i.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||t.resolveName(o,n,111551,!0))&&i.set(o,l("_".concat(o),a))})),i}(n,t,d);!function(n,t,a){r(n,(function(r,i){if(!i){var o=r.name.text;a.replaceNode(n,r,e.factory.createIdentifier(t.get(o)||o))}}))}(n,p,o);for(var f,m=!1,_=0,g=e.filter(n.statements,e.isVariableStatement);_<g.length;_++){var y=g[_],h=i(n,y,o,t,d,s,c);h&&e.copyEntries(h,null!==f&&void 0!==f?f:f=new e.Map)}for(var v=0,b=e.filter(n.statements,(function(n){return!e.isVariableStatement(n)}));v<b.length;v++){y=b[v];var E=a(n,y,t,o,d,s,p,f,c);m=m||E}return null===f||void 0===f||f.forEach((function(e,t){o.replaceNode(n,t,e)})),m}(s,c.getTypeChecker(),n,e.getEmitScriptTarget(c.getCompilerOptions()),e.getQuotePreference(s,d));if(o)for(var p=0,f=c.getSourceFiles();p<f.length;p++){var m=f[p];t(m,s,n,e.getQuotePreference(m,d))}}));return[n.createCodeFixActionWithoutFixAll("convertToEsModule",p,e.Diagnostics.Convert_to_ES_module)]}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="correctQualifiedNameToIndexedAccessType",r=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function a(n,t){var r=e.findAncestor(e.getTokenAtPosition(n,t),e.isQualifiedName);return e.Debug.assert(!!r,"Expected position to be owned by a qualified name."),e.isIdentifier(r.left)?r:void 0}function i(n,t,r){var a=r.right.text,i=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(r.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(a)));n.replaceNode(t,r,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=a(r.sourceFile,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,o)})),c="".concat(o.left.text,'["').concat(o.right.text,'"]');return[n.createCodeFixAction(t,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],t,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],r="convertToTypeOnlyExport";function a(n,t){return e.tryCast(e.getTokenAtPosition(t,n.start).parent,e.isExportSpecifier)}function i(n,r,a){if(r){var i=r.parent,o=i.parent,s=function(n,r){var a=n.parent;if(1===a.elements.length)return a.elements;var i=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(a),r.program.getSemanticDiagnostics(r.sourceFile,r.cancellationToken));return e.filter(a.elements,(function(r){var a;return r===n||(null===(a=e.findDiagnosticForNode(r,i))||void 0===a?void 0:a.code)===t[0]}))}(r,a);if(s.length===i.elements.length)n.insertModifierBefore(a.sourceFile,151,i);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(i,e.filter(i.elements,(function(n){return!e.contains(s,n)}))),o.moduleSpecifier,void 0),l=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier,void 0);n.replaceNode(a.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),n.insertNodeAfter(a.sourceFile,o,l)}}}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return i(e,a(t.span,t.sourceFile),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Convert_to_type_only_export,r,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return n.codeFixAll(r,t,(function(n,t){var s=a(t,r.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&i(n,s,r)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],r="convertToTypeOnlyImport";function a(n,t){return e.tryCast(e.getTokenAtPosition(t,n.start).parent,e.isImportDeclaration)}function i(n,t,r){if(null===t||void 0===t?void 0:t.importClause){var a=t.importClause;n.insertText(r.sourceFile,t.getStart()+"import".length," type"),a.name&&a.namedBindings&&(n.deleteNodeRangeExcludingEnd(r.sourceFile,a.name,t.importClause.namedBindings),n.insertNodeBefore(r.sourceFile,t,e.factory.updateImportDeclaration(t,void 0,void 0,e.factory.createImportClause(!0,a.name,void 0),t.moduleSpecifier,void 0)))}}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){i(e,a(t.span,t.sourceFile),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Convert_to_type_only_import,r,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){i(n,a(t,e.sourceFile),e)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="convertLiteralTypeToMappedType",r=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function a(n,t){var r=e.getTokenAtPosition(n,t);if(e.isIdentifier(r)){var a=e.cast(r.parent.parent,e.isPropertySignature),i=r.getText(n);return{container:e.cast(a.parent,e.isTypeLiteralNode),typeNode:a.type,constraint:i,name:"K"===i?"P":"K"}}}function i(n,t,r){var a=r.container,i=r.typeNode,o=r.constraint,s=r.name;n.replaceNode(t,a,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(s,e.factory.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start);if(c){var l=c.name,u=c.constraint,d=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)}));return[n.createCodeFixAction(t,d,[e.Diagnostics.Convert_0_to_1_in_0,u,l],t,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],r="fixClassIncorrectlyImplementsInterface";function a(n,t){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(n,t)),"There should be a containing class")}function i(n){return!n.valueDeclaration||!(8&e.getEffectiveModifierFlags(n.valueDeclaration))}function o(t,r,a,o,s,c){var l=t.program.getTypeChecker(),u=function(n,t){var r=e.getEffectiveBaseTypeNode(n);if(!r)return e.createSymbolTable();var a=t.getTypeAtLocation(r),o=t.getPropertiesOfType(a);return e.createSymbolTable(o.filter(i))}(o,l),d=l.getTypeAtLocation(r),p=l.getPropertiesOfType(d).filter(e.and(i,(function(e){return!u.has(e.escapedName)}))),f=l.getTypeAtLocation(o),m=e.find(o.members,(function(n){return e.isConstructorDeclaration(n)}));f.getNumberIndexType()||g(d,1),f.getStringIndexType()||g(d,0);var _=n.createImportAdder(a,t.program,c,t.host);function g(e,r){var i=l.getIndexInfoOfType(e,r);i&&y(a,o,l.indexInfoToIndexSignatureDeclaration(i,o,void 0,n.getNoopSymbolTrackerWithResolver(t)))}function y(e,n,t){m?s.insertNodeAfter(e,m,t):s.insertNodeAtClassStart(e,n,t)}n.createMissingMemberNodes(o,p,a,t,c,_,(function(e){return y(a,o,e)})),_.writeFixes(s)}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var i=t.sourceFile,s=t.span,c=a(i,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(function(a){var s=e.textChanges.ChangeTracker.with(t,(function(e){return o(t,a,i,c,e,t.preferences)}));return 0===s.length?void 0:n.createCodeFixAction(r,s,[e.Diagnostics.Implement_interface_0,a.getText(i)],r,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[r],getAllCodeActions:function(r){var i=new e.Map;return n.codeFixAll(r,t,(function(n,t){var s=a(t.file,t.start);if(e.addToSeen(i,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var u=l[c];o(r,u,t.file,s,n,r.preferences)}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){n.importFixName="import";var t,r,a,i,o="fixMissingImport",s=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function c(n,t,r,a,i){var o=t.getCompilerOptions(),s=[],c=[],u=new e.Map,d=new e.Map;return{addImportFromDiagnostic:function(e,n){var t=y(n,e.code,e.start,r);if(!t||!t.fixes.length)return;f(t)},addImportFromExportedSymbol:function(s,c){var u=e.Debug.checkDefined(s.parent),d=e.getNameForExportedSymbol(s,e.getEmitScriptTarget(o)),m=t.getTypeChecker(),g=m.getMergedSymbol(e.skipAlias(s,m)),y=p(n,g,u,d,i,t,a,r),h=_(n,t),v=l(n,y,u,d,t,void 0,!!c,h,i,a);v&&f({fixes:[v],symbolName:d})},writeFixes:function(t){for(var r,i=e.getQuotePreference(n,a),l=0,p=s;l<p.length;l++){var f=p[l];x(t,n,f)}for(var m=0,_=c;m<_.length;m++){f=_[m];L(t,n,f,i)}u.forEach((function(r){var a=r.importClauseOrBindingPattern,i=r.defaultImport,s=r.namedImports;S(t,n,a,i,e.arrayFrom(s.entries(),(function(e){var n=e[0];return{addAsTypeOnly:e[1],name:n}})),o)})),d.forEach((function(n,t){var a=n.useRequire,o=n.defaultImport,s=n.namedImports,c=n.namespaceLikeImport,l=(a?I:A)(t.slice(2),i,o,s&&e.arrayFrom(s.entries(),(function(e){var n=e[0];return{addAsTypeOnly:e[1],name:n}})),c);r=e.combine(r,l)})),r&&e.insertImports(t,n,r,!0)},hasFixes:function(){return s.length>0||c.length>0||u.size>0||d.size>0}};function f(n){var t,r,a=n.fixes,i=n.symbolName,o=e.first(a);switch(o.kind){case 0:s.push(o);break;case 1:c.push(o);break;case 2:var l=o.importClauseOrBindingPattern,p=o.importKind,f=o.addAsTypeOnly,m=String(e.getNodeId(l));if((h=u.get(m))||u.set(m,h={importClauseOrBindingPattern:l,defaultImport:void 0,namedImports:new e.Map}),0===p){var _=null===h||void 0===h?void 0:h.namedImports.get(i);h.namedImports.set(i,v(_,f))}else e.Debug.assert(void 0===h.defaultImport||h.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),h.defaultImport={name:i,addAsTypeOnly:v(null===(t=h.defaultImport)||void 0===t?void 0:t.addAsTypeOnly,f)};break;case 3:var g=o.moduleSpecifier,y=(p=o.importKind,o.useRequire),h=function(e,n,t,r){var a=b(e,!0),i=b(e,!1),o=d.get(a),s=d.get(i),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:t};if(1===n&&2===r)return o||(d.set(a,c),c);if(1===r&&(o||s))return o||s;if(s)return s;return d.set(i,c),c}(g,p,y,f=o.addAsTypeOnly);switch(e.Debug.assert(h.useRequire===y,"(Add new) Tried to add an `import` and a `require` for the same module"),p){case 1:e.Debug.assert(void 0===h.defaultImport||h.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),h.defaultImport={name:i,addAsTypeOnly:v(null===(r=h.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,f)};break;case 0:_=(h.namedImports||(h.namedImports=new e.Map)).get(i);h.namedImports.set(i,v(_,f));break;case 3:case 2:e.Debug.assert(void 0===h.namespaceLikeImport||h.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),h.namespaceLikeImport={importKind:p,name:i,addAsTypeOnly:f}}break;default:e.Debug.assertNever(o,"fix wasn't never - got kind ".concat(o.kind))}function v(e,n){return Math.max(null!==e&&void 0!==e?e:0,n)}function b(e,n){return"".concat(n?1:0,"|").concat(e)}}}function l(n,t,r,a,i,o,s,c,l,u){return e.Debug.assert(t.some((function(e){return e.moduleSymbol===r||e.symbol.parent===r})),"Some exportInfo should match the specified moduleSymbol"),v(f(t,a,o,s,c,i,n,l,u),n,i,l,u)}function u(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(n,t,r,a){var i,o,s=r.getCompilerOptions(),c=u(r.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(i=a.getPackageJsonAutoImportProvider)||void 0===i?void 0:i.call(a))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(r,a){var i=e.getDefaultLikeExportInfo(t,r,s);if(i&&e.skipAlias(i.symbol,r)===n)return{symbol:i.symbol,moduleSymbol:t,moduleFileName:void 0,exportKind:i.exportKind,targetFlags:e.skipAlias(n,r).flags,isFromPackageJson:a};var o=r.tryGetMemberInModuleExportsAndProperties(n.name,t);return o&&e.skipAlias(o,r)===n?{symbol:o,moduleSymbol:t,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(n,r).flags,isFromPackageJson:a}:void 0}}function p(n,t,r,a,i,o,s,c){var l=[],u=o.getCompilerOptions(),d=e.memoizeOne((function(n){return e.createModuleSpecifierResolutionHost(n?i.getPackageJsonAutoImportProvider():o,i)}));return e.forEachExternalModuleToImportFrom(o,i,c,(function(i,o,s,c){var d=s.getTypeChecker();if(!o||i===r||!e.startsWith(n.fileName,e.getDirectoryPath(o.fileName))){var f=e.getDefaultLikeExportInfo(i,d,u);f&&(f.name===a||R(i,e.getEmitScriptTarget(u))===a)&&e.skipAlias(f.symbol,d)===t&&p(s,o,c)&&l.push({symbol:f.symbol,moduleSymbol:i,moduleFileName:null===o||void 0===o?void 0:o.fileName,exportKind:f.exportKind,targetFlags:e.skipAlias(f.symbol,d).flags,isFromPackageJson:c});for(var m=0,_=d.getExportsAndPropertiesOfModule(i);m<_.length;m++){var g=_[m];g.name===a&&d.getMergedSymbol(e.skipAlias(g,d))===t&&p(s,o,c)&&l.push({symbol:g,moduleSymbol:i,moduleFileName:null===o||void 0===o?void 0:o.fileName,exportKind:0,targetFlags:e.skipAlias(g,d).flags,isFromPackageJson:c})}}})),l;function p(t,r,a){var o;return!r||e.isImportableFile(t,n,r,s,void 0,d(a),null===(o=i.getModuleSpecifierCache)||void 0===o?void 0:o.call(i))}}function f(n,t,r,a,i,o,s,c,l){var u=o.getTypeChecker(),d=e.flatMap(n,(function(n){return function(n,t,r,a){var i=n.moduleSymbol,o=n.exportKind,s=n.targetFlags,c=n.symbol;if(!(111551&s)&&e.isSourceFileJS(r))return e.emptyArray;var l=E(r,o,a);return e.mapDefined(r.imports,(function(n){var r=e.importFromModuleSpecifier(n);return e.isVariableDeclarationInitializedToRequire(r.parent)?t.resolveExternalModuleName(n)===i?{declaration:r.parent,importKind:l,symbol:c,targetFlags:s}:void 0:(265===r.kind||264===r.kind)&&t.getSymbolAtLocation(n)===i?{declaration:r,importKind:l,symbol:c,targetFlags:s}:void 0}))}(n,u,s,o.getCompilerOptions())})),p=void 0===r?void 0:function(n,t,r,a){return e.firstDefined(n,(function(n){var i=n.declaration,o=function(n){var t,r,a;switch(n.kind){case 253:return null===(t=e.tryCast(n.name,e.isIdentifier))||void 0===t?void 0:t.text;case 264:return n.name.text;case 265:return null===(a=e.tryCast(null===(r=n.importClause)||void 0===r?void 0:r.namedBindings,e.isNamespaceImport))||void 0===a?void 0:a.name.text;default:return e.Debug.assertNever(n)}}(i),s=e.tryGetModuleSpecifierFromDeclaration(i);if(o&&s){var c=function(n,t){var r;switch(n.kind){case 253:return t.resolveExternalModuleName(n.initializer.arguments[0]);case 264:return t.getAliasedSymbol(n.symbol);case 265:var a=e.tryCast(null===(r=n.importClause)||void 0===r?void 0:r.namedBindings,e.isNamespaceImport);return a&&t.getAliasedSymbol(a.symbol);default:return e.Debug.assertNever(n)}}(i,a);if(c&&c.exports.has(e.escapeLeadingUnderscores(t)))return{kind:0,namespacePrefix:o,position:r,moduleSpecifier:s}}}))}(d,t,r,u),f=function(n,t,r,a){return e.firstDefined(n,(function(n){var i=n.declaration,o=n.importKind,s=n.symbol,c=n.targetFlags;if(3!==o&&2!==o&&264!==i.kind){if(253===i.kind)return 0!==o&&1!==o||200!==i.name.kind?void 0:{kind:2,importClauseOrBindingPattern:i.name,importKind:o,moduleSpecifier:i.initializer.arguments[0].text,addAsTypeOnly:4};var l=i.importClause;if(l&&e.isStringLiteralLike(i.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var p=m(t,!1,s,c,r,a);if((1!==o||!(u||2===p&&d))&&(0!==o||267!==(null===d||void 0===d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:i.moduleSpecifier.text,addAsTypeOnly:p}}}}}))}(d,a,u,o.getCompilerOptions()),_=f?[f]:function(n,t,r,a,i,o,s,c,l){var u=e.firstDefined(t,(function(n){return function(n,t,r,a,i){var o=n.declaration,s=n.importKind,c=n.symbol,l=n.targetFlags,u=e.tryGetModuleSpecifierFromDeclaration(o);if(u){return{kind:3,moduleSpecifier:u,importKind:s,addAsTypeOnly:r?4:m(t,!0,c,l,a,i),useRequire:r}}}(n,o,s,r.getTypeChecker(),r.getCompilerOptions())}));return u?[u]:g(r,a,i,o,s,n,c,l).fixes}(n,d,o,s,r,a,i,c,l);return pa(pa([],p?[p]:e.emptyArray,!0),_,!0)}function m(e,n,t,r,a,i){return e?n&&2===i.importsNotUsedAsValues?2:!i.isolatedModules||!i.preserveValueImports||111551&r&&!a.getTypeOnlyAliasDeclaration(t)?1:2:4}function _(n,t){if(!e.isSourceFileJS(n))return!1;if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1;var r=t.getCompilerOptions();if(r.configFile)return e.getEmitModuleKind(r)<e.ModuleKind.ES2015;for(var a=0,i=t.getSourceFiles();a<i.length;a++){var o=i[a];if(o!==n&&e.isSourceFileJS(o)&&!t.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function g(n,t,r,a,i,o,s,c,l){var u=e.isSourceFileJS(t),d=n.getCompilerOptions(),p=e.createModuleSpecifierResolutionHost(n,s),f=e.memoizeOne((function(e){return e?s.getPackageJsonAutoImportProvider().getTypeChecker():n.getTypeChecker()})),_=l?function(n){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(n,t,p,c),computedWithoutCache:!1}}:function(n,r){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(n,r,d,t,p,c)},g=0,y=e.flatMap(o,(function(e){var n=f(e.isFromPackageJson),o=_(e.moduleSymbol,n),s=o.computedWithoutCache,c=o.moduleSpecifiers,l=!!(111551&e.targetFlags),p=m(a,!0,e.symbol,e.targetFlags,n,d);return g+=s?1:0,null===c||void 0===c?void 0:c.map((function(n){return!l&&u&&void 0!==r?{kind:1,moduleSpecifier:n,position:r,exportInfo:e}:{kind:3,moduleSpecifier:n,importKind:E(t,e.exportKind,d),useRequire:i,addAsTypeOnly:p,exportInfo:e}}))}));return{computedWithoutCacheCount:g,fixes:y}}function y(n,t,r,a){var i=e.getTokenAtPosition(n.sourceFile,r),o=t===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(n,t){var r=n.sourceFile,a=n.program,i=n.host,o=n.preferences,s=a.getTypeChecker(),c=function(n,t){var r=e.isIdentifier(n)?t.getSymbolAtLocation(n):void 0;if(e.isUMDExportSymbol(r))return r;var a=n.parent;return e.isJsxOpeningLikeElement(a)&&a.tagName===n||e.isJsxOpeningFragment(a)?e.tryCast(t.resolveName(t.getJsxNamespace(a),e.isJsxOpeningLikeElement(a)?n:a,111551,!1),e.isUMDExportSymbol):void 0}(t,s);if(!c)return;var l=s.getAliasedSymbol(c),u=c.name,d=[{symbol:c,moduleSymbol:l,moduleFileName:void 0,exportKind:3,targetFlags:l.flags,isFromPackageJson:!1}],p=_(r,a);return{fixes:f(d,u,e.isIdentifier(t)?t.getStart(r):void 0,!1,p,a,r,i,o),symbolName:u}}(n,i):e.isIdentifier(i)?function(n,t,r){var a=n.sourceFile,i=n.program,o=n.cancellationToken,s=n.host,c=n.preferences,l=i.getTypeChecker(),u=i.getCompilerOptions(),d=function(n,t,r,a){var i=r.parent;if((e.isJsxOpeningLikeElement(i)||e.isJsxClosingElement(i))&&i.tagName===r&&(s=a.jsx,2===s||3===s)){var o=t.getJsxNamespace(n);if(e.isIntrinsicJsxName(r.text)||!t.resolveName(o,i,111551,!0))return o}var s;return r.text}(a,l,t,u);e.Debug.assert("default"!==d,"'default' isn't a legal identifier and couldn't occur here");var p=e.isValidTypeOnlyAliasUseSite(t),m=_(a,i),g=function(n,t,r,a,i,o,s,c){var l,u=e.createMultiMap(),d=e.createPackageJsonImportFilter(a,c,s),p=null===(l=s.getModuleSpecifierCache)||void 0===l?void 0:l.call(s),f=e.memoizeOne((function(n){return e.createModuleSpecifierResolutionHost(n?s.getPackageJsonAutoImportProvider():i,s)}));function m(n,t,r,i,o,s){var l=f(s);if(t&&e.isImportableFile(o,a,t,c,d,l,p)||!t&&d.allowsImportingAmbientModule(n,l)){var m=o.getTypeChecker();u.add(e.getUniqueSymbolId(r,m).toString(),{symbol:r,moduleSymbol:n,moduleFileName:null===t||void 0===t?void 0:t.fileName,exportKind:i,targetFlags:e.skipAlias(r,m).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(i,s,o,(function(a,i,o,s){var c=o.getTypeChecker();r.throwIfCancellationRequested();var l=o.getCompilerOptions(),u=e.getDefaultLikeExportInfo(a,c,l);u&&(u.name===n||R(a,e.getEmitScriptTarget(l))===n)&&N(u.symbolForMeaning,t)&&m(a,i,u.symbol,u.exportKind,o,s);var d=c.tryGetMemberInModuleExportsAndProperties(n,a);d&&N(d,t)&&m(a,i,d,0,o,s)})),u}(d,e.getMeaningFromLocation(t),o,a,i,r,s,c);return{fixes:e.arrayFrom(e.flatMapIterator(g.entries(),(function(e){e[0];return f(e[1],d,t.getStart(a),p,m,i,a,s,c)}))),symbolName:d}}(n,i,a):void 0;return o&&fa(fa({},o),{fixes:h(o.fixes,n.sourceFile,n.program,n.host,n.preferences)})}function h(n,t,r,a,i){var o=e.createPackageJsonImportFilter(t,i,a).allowsImportingSpecifier;return e.sort(n,(function(n,a){return e.compareValues(n.kind,a.kind)||b(n,a,t,r,o)}))}function v(n,t,r,a,i){if(e.some(n)){if(0===n[0].kind||2===n[0].kind)return n[0];var o=e.createPackageJsonImportFilter(t,i,a).allowsImportingSpecifier;return n.reduce((function(e,n){return-1===b(n,e,t,r,o)?n:e}))}}function b(n,t,r,a,i){return 0!==n.kind&&0!==t.kind?e.compareBooleans(i(t.moduleSpecifier),i(n.moduleSpecifier))||function(n,t,r,a){return e.startsWith(n,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(r,a)?-1:1:e.startsWith(t,"node:")&&!e.startsWith(n,"node:")?e.shouldUseUriStyleNodeCoreModules(r,a)?1:-1:0}(n.moduleSpecifier,t.moduleSpecifier,r,a)||e.compareNumberOfDirectorySeparators(n.moduleSpecifier,t.moduleSpecifier):0}function E(n,t,r,a){switch(t){case 0:return 0;case 1:return 1;case 2:return function(n,t,r){var a=e.getAllowSyntheticDefaultImports(t),i=e.isInJSFile(n);if(!i&&e.getEmitModuleKind(t)>=e.ModuleKind.ES2015)return a?1:2;if(i)return e.isExternalModule(n)||r?a?1:2:3;for(var o=0,s=n.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return a?1:3}(n,r,!!a);case 3:return function(n,t,r){if(e.getAllowSyntheticDefaultImports(t))return 1;var a=e.getEmitModuleKind(t);switch(a){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(n)&&(e.isExternalModule(n)||r)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return n.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(a,"Unexpected moduleKind ".concat(a))}}(n,r,!!a);default:return e.Debug.assertNever(t)}}function T(t,r,a,i,s,c){var l,u=e.textChanges.ChangeTracker.with(t,(function(n){l=function(n,t,r,a,i,o){switch(a.kind){case 0:return x(n,t,a),[e.Diagnostics.Change_0_to_1,r,"".concat(a.namespacePrefix,".").concat(r)];case 1:return L(n,t,a,i),[e.Diagnostics.Change_0_to_1,r,D(a.moduleSpecifier,i)+r];case 2:var s=a.importClauseOrBindingPattern,c=a.importKind,l=a.addAsTypeOnly,u=a.moduleSpecifier;S(n,t,s,1===c?{name:r,addAsTypeOnly:l}:void 0,0===c?[{name:r,addAsTypeOnly:l}]:e.emptyArray,o);var d=e.stripQuotes(u);return[1===c?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,r,d];case 3:c=a.importKind,u=a.moduleSpecifier,l=a.addAsTypeOnly;var p=a.useRequire?I:A,f=1===c?{name:r,addAsTypeOnly:l}:void 0,m=0===c?[{name:r,addAsTypeOnly:l}]:void 0,_=2===c||3===c?{importKind:c,name:r,addAsTypeOnly:l}:void 0;return e.insertImports(n,t,p(u,i,f,m,_),!0),[1===c?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,r,u];default:return e.Debug.assertNever(a,"Unexpected fix kind ".concat(a.kind))}}(n,r,a,i,s,c)}));return n.createCodeFixAction(n.importFixName,u,l,o,e.Diagnostics.Add_all_missing_imports)}function S(n,t,r,a,i,o){var s;if(200!==r.kind){var c=r.isTypeOnly&&e.some(pa([a],i,!0),(function(e){return 4===(null===e||void 0===e?void 0:e.addAsTypeOnly)})),l=r.namedBindings&&(null===(s=e.tryCast(r.namedBindings,e.isNamedImports))||void 0===s?void 0:s.elements),u=c&&o.preserveValueImports&&o.isolatedModules;if(a&&(e.Debug.assert(!r.name,"Cannot add a default import to an import clause that already has one"),n.insertNodeAt(t,r.getStart(t),e.factory.createIdentifier(a.name),{suffix:", "})),i.length){var d=e.stableSort(i.map((function(n){return e.factory.createImportSpecifier((!r.isTypeOnly||c)&&C(n),void 0,e.factory.createIdentifier(n.name))})),e.OrganizeImports.compareImportOrExportSpecifiers);if((null===l||void 0===l?void 0:l.length)&&e.OrganizeImports.importSpecifiersAreSorted(l))for(var p=0,f=d;p<f.length;p++){var m=f[p],_=u&&!m.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(l,m),g=r.namedBindings.elements[_-1];g?n.insertNodeInListAfter(t,g,m):n.insertNodeBefore(t,l[0],m,!e.positionsAreOnSameLine(l[0].getStart(),r.parent.getStart(),t))}else if(null===l||void 0===l?void 0:l.length)for(var y=0,h=d;y<h.length;y++){m=h[y];n.insertNodeInListAfter(t,e.last(l),m,l)}else if(d.length){var v=e.factory.createNamedImports(d);r.namedBindings?n.replaceNode(t,r.namedBindings,v):n.insertNodeAfter(t,e.Debug.checkDefined(r.name,"Import clause must have either named imports or a default import"),v)}}if(c&&(n.delete(t,e.getTypeKeywordOfTypeOnlyImport(r,t)),u&&l))for(var b=0,E=l;b<E.length;b++){x=E[b];n.insertModifierBefore(t,151,x)}}else{a&&L(r,a.name,"default");for(var T=0,S=i;T<S.length;T++){var x=S[T];L(r,x.name,void 0)}}function L(r,a,i){var o=e.factory.createBindingElement(void 0,i,a);r.elements.length?n.insertNodeInListAfter(t,e.last(r.elements),o):n.replaceNode(t,r,e.factory.createObjectBindingPattern([o]))}}function x(e,n,t){var r=t.namespacePrefix,a=t.position;e.insertText(n,a,r+".")}function L(e,n,t,r){var a=t.moduleSpecifier,i=t.position;e.insertText(n,i,D(a,r))}function D(n,t){var r=e.getQuoteFromPreference(t);return"import(".concat(r).concat(n).concat(r,").")}function C(e){return 2===e.addAsTypeOnly}function A(n,t,r,a,i){var o,s=e.makeStringLiteral(n,t);if(void 0!==r||(null===a||void 0===a?void 0:a.length)){var c=(!r||C(r))&&e.every(a,C);o=e.combine(o,e.makeImport(r&&e.factory.createIdentifier(r.name),null===a||void 0===a?void 0:a.map((function(n){var t=n.addAsTypeOnly,r=n.name;return e.factory.createImportSpecifier(!c&&2===t,void 0,e.factory.createIdentifier(r))})),n,t,c))}if(i){var l=3===i.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,C(i),e.factory.createIdentifier(i.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(C(i),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(i.name))),s,void 0);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function I(n,t,r,a,i){var o,s=e.makeStringLiteral(n,t);if(r||(null===a||void 0===a?void 0:a.length)){var c=(null===a||void 0===a?void 0:a.map((function(n){var t=n.name;return e.factory.createBindingElement(void 0,void 0,t)})))||[];r&&c.unshift(e.factory.createBindingElement(void 0,"default",r.name));var l=k(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}if(i){l=k(i.name,s);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function k(n,t){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"===typeof n?e.factory.createIdentifier(n):n,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t]))],2))}function N(n,t){var r=n.declarations;return e.some(r,(function(n){return!!(e.getMeaningFromDeclaration(n)&t)}))}function R(n,t){return O(e.removeFileExtension(e.stripQuotes(n.name)),t)}function O(n,t){var r=e.getBaseFileName(e.removeSuffix(n,"/index")),a="",i=!0,o=r.charCodeAt(0);e.isIdentifierStart(o,t)?a+=String.fromCharCode(o):i=!1;for(var s=1;s<r.length;s++){var c=r.charCodeAt(s),l=e.isIdentifierPart(c,t);if(l){var u=String.fromCharCode(c);i||(u=u.toUpperCase()),a+=u}i=l}return e.isStringANonContextualKeyword(a)?"_".concat(a):a||"_"}n.registerCodeFix({errorCodes:s,getCodeActions:function(n){var t=n.errorCode,r=n.preferences,a=n.sourceFile,i=n.span,o=n.program,s=y(n,t,i.start,!0);if(s){var c=s.fixes,l=s.symbolName,u=e.getQuotePreference(a,r);return c.map((function(e){return T(n,a,l,e,u,o.getCompilerOptions())}))}},fixIds:[o],getAllCodeActions:function(t){var r=c(t.sourceFile,t.program,!0,t.preferences,t.host);return n.eachDiagnostic(t,s,(function(e){return r.addImportFromDiagnostic(e,t)})),n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,r.writeFixes))}}),n.createImportAdder=function(e,n,t,r){return c(e,n,!1,t,r)},(r=t||(t={}))[r.UseNamespace=0]="UseNamespace",r[r.JsdocTypeImport=1]="JsdocTypeImport",r[r.AddToExisting=2]="AddToExisting",r[r.AddNew=3]="AddNew",(i=a||(a={}))[i.Allowed=1]="Allowed",i[i.Required=2]="Required",i[i.NotAllowed=4]="NotAllowed",n.getImportCompletionAction=function(n,t,r,a,i,o,s,c,f){var m=o.getCompilerOptions(),g=e.pathIsBareSpecifier(e.stripQuotes(t.name))?[d(n,t,o,i)]:p(r,n,t,a,i,o,f,!0),y=_(r,o),h=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(r,c)),v=e.Debug.checkDefined(l(r,g,t,a,o,c,h,y,i,f));return{moduleSpecifier:v.moduleSpecifier,codeAction:u(T({host:i,formatContext:s,preferences:f},r,a,v,e.getQuotePreference(r,f),m))}},n.getModuleSpecifierForBestExportInfo=function(e,n,t,r,a,i){var o=g(t,n,void 0,!1,!1,e,r,a,i),s=o.fixes,c=o.computedWithoutCacheCount,l=v(s,n,t,r,a);return l&&fa(fa({},l),{computedWithoutCacheCount:c})},n.getImportKind=E,n.moduleSymbolToValidIdentifier=R,n.moduleSpecifierToValidIdentifier=O}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t,r="fixOverrideModifier",a="fixAddOverrideModifier",i="fixRemoveOverrideModifier",o=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],s=((t={})[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,a,e.Diagnostics.Add_all_missing_override_modifiers],t[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,i,e.Diagnostics.Remove_all_unnecessary_override_modifiers],t[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,a,e.Diagnostics.Add_all_missing_override_modifiers],t[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],t[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,i,e.Diagnostics.Remove_all_unnecessary_override_modifiers],t);function c(n,t,r,a){switch(r){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return function(n,t,r){var a=u(t,r),i=a.modifiers||e.emptyArray,o=e.find(i,e.isStaticModifier),s=e.find(i,e.isAbstractModifier),c=e.find(i,(function(n){return e.isAccessibilityModifier(n.kind)})),l=s?s.end:o?o.end:c?c.end:a.decorators?e.skipTrivia(t.text,a.decorators.end):a.getStart(t),d=c||o||s?{prefix:" "}:{suffix:" "};n.insertModifierAt(t,l,158,d)}(n,t.sourceFile,a);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return function(n,t,r){var a=u(t,r),i=a.modifiers&&e.find(a.modifiers,(function(e){return 158===e.kind}));e.Debug.assertIsDefined(i),n.deleteModifier(t,i)}(n,t.sourceFile,a);default:e.Debug.fail("Unexpected error code: "+r)}}function l(n){switch(n.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(n,n.parent);default:return!1}}function u(n,t){var r=e.getTokenAtPosition(n,t),a=e.findAncestor(r,(function(n){return e.isClassLike(n)?"quit":l(n)}));return e.Debug.assert(a&&l(a)),a}n.registerCodeFix({errorCodes:o,getCodeActions:function(t){var a=t.errorCode,i=t.span,o=t.sourceFile,l=s[a];if(!l)return e.emptyArray;var u=l[0],d=l[1],p=l[2];if(e.isSourceFileJS(o))return e.emptyArray;var f=e.textChanges.ChangeTracker.with(t,(function(e){return c(e,t,a,i.start)}));return[n.createCodeFixActionMaybeFixAll(r,f,u,d,p)]},fixIds:[r,a,i],getAllCodeActions:function(t){return n.codeFixAll(t,o,(function(n,r){var a=r.code,i=r.start,o=r.file,l=s[a];l&&l[1]===t.fixId&&!e.isSourceFileJS(o)&&c(n,t,a,i)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixNoPropertyAccessFromIndexSignature",r=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function a(n,t,r,a){var i=e.getQuotePreference(t,a),o=e.factory.createStringLiteral(r.name.text,0===i);n.replaceNode(t,r,e.isPropertyAccessChain(r)?e.factory.createElementAccessChain(r.expression,r.questionDotToken,o):e.factory.createElementAccessExpression(r.expression,o))}function i(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isPropertyAccessExpression)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=r.preferences,l=i(o,s.start),u=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,l,c)}));return[n.createCodeFixAction(t,u,[e.Diagnostics.Use_element_access_for_0,l.name.text],t,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return a(n,t.file,i(t.file,t.start),e.preferences)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixImplicitThis",r=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function a(n,t,r,a){var i=e.getTokenAtPosition(t,r);e.Debug.assert(108===i.kind);var o=e.getThisContainer(i,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.assertDefined(e.findChildOfKind(o,98,t)),c=o.name,l=e.Debug.assertDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,a,t,l))return;return n.delete(t,s),c&&n.delete(t,c),n.insertText(t,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return n.replaceNode(t,s,e.factory.createToken(85)),n.insertText(t,c.end," = "),n.insertText(t,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i,o=r.sourceFile,s=r.program,c=r.span,l=e.textChanges.ChangeTracker.with(r,(function(e){i=a(e,o,c.start,s.getTypeChecker())}));return i?[n.createCodeFixAction(t,l,i,t,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){a(n,t.file,t.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixIncorrectNamedTupleSyntax",r=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,i=r.span,o=function(n,t){var r=e.getTokenAtPosition(n,t);return e.findAncestor(r,(function(e){return 196===e.kind}))}(a,i.start),s=e.textChanges.ChangeTracker.with(r,(function(n){return function(n,t,r){if(!r)return;var a=r.type,i=!1,o=!1;for(;184===a.kind||185===a.kind||190===a.kind;)184===a.kind?i=!0:185===a.kind&&(o=!0),a=a.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(i?e.factory.createToken(57):void 0),a);if(s===r)return;n.replaceNode(t,r,s)}(n,a,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,t,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[t]})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixSpelling",r=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function a(n,t,r,a){var i=e.getTokenAtPosition(n,t),o=i.parent;if(a!==e.Diagnostics.No_overload_matches_this_call.code&&a!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=r.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===i){e.Debug.assert(e.isMemberName(i),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(i,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===i&&e.isPrivateIdentifier(i)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(i,u)}else if(e.isQualifiedName(o)&&o.right===i){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===i){e.Debug.assertNode(i,e.isIdentifier,"Expected an identifier for spelling (import)");var p=function(n,t,r){if(!r||!e.isStringLiteralLike(r.moduleSpecifier))return;var a=e.getResolvedModule(n,r.moduleSpecifier.text,e.getModeForUsageLocation(n,r.moduleSpecifier));return a?t.program.getSourceFile(a.resolvedFileName):void 0}(n,r,e.findAncestor(i,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(i,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===i){e.Debug.assertNode(i,e.isIdentifier,"Expected an identifier for JSX attribute");var f=e.findAncestor(i,e.isJsxOpeningLikeElement),m=c.getContextualTypeForArgumentAtIndex(f,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(i,m)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===i){var _=e.findAncestor(i,e.isClassLike),g=_?e.getEffectiveBaseTypeNode(_):void 0,y=g?c.getTypeAtLocation(g):void 0;y&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(i),y))}else{var h=e.getMeaningFromLocation(i),v=e.getTextOfNode(i);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(i,v,function(e){var n=0;4&e&&(n|=1920);2&e&&(n|=788968);1&e&&(n|=111551);return n}(h))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}}function i(n,t,r,a,i){var o=e.symbolName(a);if(!e.isIdentifierText(o,i)&&e.isPropertyAccessExpression(r.parent)){var s=a.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?n.replaceNode(t,r,e.factory.createIdentifier(o)):n.replaceNode(t,r.parent,e.factory.createElementAccessExpression(r.parent.expression,e.factory.createStringLiteral(o)))}else n.replaceNode(t,r,e.factory.createIdentifier(o))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.errorCode,c=a(o,r.span.start,r,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(r.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,l,u,d)}));return[n.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],t,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[t],getAllCodeActions:function(t){return n.codeFixAll(t,r,(function(n,r){var o=a(r.file,r.start,t,r.code),s=e.getEmitScriptTarget(t.host.getCompilationSettings());o&&i(n,t.sourceFile,o.node,o.suggestedSymbol,s)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t,r,a="returnValueCorrect",i="fixAddReturnStatement",o="fixRemoveBracesFromArrowFunctionBody",s="fixWrapTheBlockWithParen",c=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function l(n,t,r){var a=n.createSymbol(4,t.escapedText);a.type=n.getTypeAtLocation(r);var i=e.createSymbolTable([a]);return n.createAnonymousType(void 0,i,[],[],[])}function u(n,r,a,i){if(r.body&&e.isBlock(r.body)&&1===e.length(r.body.statements)){var o=e.first(r.body.statements);if(e.isExpressionStatement(o)&&d(n,r,n.getTypeAtLocation(o.expression),a,i))return{declaration:r,kind:t.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(d(n,r,l(n,o.label,o.statement.expression),a,i))return e.isArrowFunction(r)?{declaration:r,kind:t.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var c=e.first(o.statements);if(e.isLabeledStatement(c)&&e.isExpressionStatement(c.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(c.label,c.statement.expression)]);if(d(n,r,l(n,c.label,c.statement.expression),a,i))return{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:c}}}}}function d(n,t,r,a,i){if(i){var o=n.getSignatureFromDeclaration(t);if(o){e.hasSyntacticModifier(t,256)&&(r=n.createPromiseType(r));var s=n.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=n.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else r=n.getAnyType()}return n.isTypeAssignableTo(r,a)}function p(n,t,r,a){var i=e.getTokenAtPosition(t,r);if(i.parent){var o=e.findAncestor(i.parent,e.isFunctionLikeDeclaration);switch(a){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!o||!o.body||!o.type||!e.rangeContainsRange(o.type,i))return;return u(n,o,n.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=n.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return u(n,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(i)||!e.isVariableLike(i.parent)&&!e.isJsxAttribute(i.parent))return;var l=function(n){switch(n.kind){case 253:case 163:case 202:case 166:case 294:return n.initializer;case 284:return n.initializer&&(e.isJsxExpression(n.initializer)?n.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}(i.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return u(n,l,n.getTypeAtLocation(i.parent),!0)}}}function f(n,t,r,a){e.suppressLeadingAndTrailingTrivia(r);var i=e.probablyUsesSemicolons(t);n.replaceNode(t,a,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function m(n,t,r,a,i,o){var s=o||e.needsParentheses(a)?e.factory.createParenthesizedExpression(a):a;e.suppressLeadingAndTrailingTrivia(i),e.copyComments(i,s),n.replaceNode(t,r.body,s)}function _(n,t,r,a){n.replaceNode(t,r.body,e.factory.createParenthesizedExpression(a))}function g(t,r,o){var s=e.textChanges.ChangeTracker.with(t,(function(e){return f(e,t.sourceFile,r,o)}));return n.createCodeFixAction(a,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function y(t,r,i){var o=e.textChanges.ChangeTracker.with(t,(function(e){return _(e,t.sourceFile,r,i)}));return n.createCodeFixAction(a,o,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,s,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}(r=t||(t={}))[r.MissingReturnStatement=0]="MissingReturnStatement",r[r.MissingParentheses=1]="MissingParentheses",n.registerCodeFix({errorCodes:c,fixIds:[i,o,s],getCodeActions:function(r){var i=r.program,s=r.sourceFile,c=r.span.start,l=r.errorCode,u=p(i.getTypeChecker(),s,c,l);if(u)return u.kind===t.MissingReturnStatement?e.append([g(r,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(t,r,i,s){var c=e.textChanges.ChangeTracker.with(t,(function(e){return m(e,t.sourceFile,r,i,s,!1)}));return n.createCodeFixAction(a,c,e.Diagnostics.Remove_braces_from_arrow_function_body,o,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(r,u.declaration,u.expression,u.commentSource):void 0):[y(r,u.declaration,u.expression)]},getAllCodeActions:function(t){return n.codeFixAll(t,c,(function(n,r){var a=p(t.program.getTypeChecker(),r.file,r.start,r.code);if(a)switch(t.fixId){case i:f(n,r.file,a.expression,a.statement);break;case o:if(!e.isArrowFunction(a.declaration))return;m(n,r.file,a.declaration,a.expression,a.commentSource,!1);break;case s:if(!e.isArrowFunction(a.declaration))return;_(n,r.file,a.declaration,a.expression);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t,r,a="fixMissingMember",i="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function l(n,t,r,a,i){var o=e.getTokenAtPosition(n,t),s=o.parent;if(r===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==o.kind||!e.isObjectLiteralExpression(s)||!e.isCallExpression(s.parent))return;var c=e.findIndex(s.parent.arguments,(function(e){return e===s}));if(c<0)return;var l=e.singleOrUndefined(a.getSignaturesOfType(a.getTypeAtLocation(s.parent.expression),0));if(!(l&&l.declaration&&l.parameters[c]))return;var d=l.parameters[c].valueDeclaration;if(!(d&&e.isParameter(d)&&e.isIdentifier(d.name)))return;var p=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(s),a.getTypeAtLocation(d),!1,!1));if(!e.length(p))return;return{kind:3,token:d.name,properties:p,indentation:0,parentDeclaration:s}}if(e.isMemberName(o)){if(e.isIdentifier(o)&&e.hasInitializer(s)&&s.initializer&&e.isObjectLiteralExpression(s.initializer)){p=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(s.initializer),a.getTypeAtLocation(o),!1,!1));if(!e.length(p))return;return{kind:3,token:o,properties:p,indentation:void 0,parentDeclaration:s.initializer}}if(e.isIdentifier(o)&&e.isJsxOpeningLikeElement(o.parent)){var f=function(n,t){var r=n.getContextualType(t.attributes);if(void 0===r)return e.emptyArray;var a=r.getProperties();if(!e.length(a))return e.emptyArray;for(var i=new e.Set,o=0,s=t.attributes.properties;o<s.length;o++){var c=s[o];if(e.isJsxAttribute(c)&&i.add(c.name.escapedText),e.isJsxSpreadAttribute(c))for(var l=0,u=n.getTypeAtLocation(c.expression).getProperties();l<u.length;l++){var d=u[l];i.add(d.escapedName)}}return e.filter(a,(function(n){return!(16777216&n.flags||48&e.getCheckFlags(n)||i.has(n.escapedName))}))}(a,o.parent);if(!e.length(f))return;return{kind:4,token:o,attributes:f,parentDeclaration:o.parent}}if(e.isIdentifier(o)&&e.isCallExpression(s))return{kind:2,token:o,call:s,sourceFile:n,modifierFlags:0,parentDeclaration:n};if(e.isPropertyAccessExpression(s)){var m=e.skipConstraint(a.getTypeAtLocation(s.expression)),_=m.symbol;if(_&&_.declarations){if(e.isIdentifier(o)&&e.isCallExpression(s.parent)){var g=e.find(_.declarations,e.isModuleDeclaration),y=null===g||void 0===g?void 0:g.getSourceFile();if(g&&y&&!u(i,y))return{kind:2,token:o,call:s.parent,sourceFile:n,modifierFlags:1,parentDeclaration:g};var h=e.find(_.declarations,e.isSourceFile);if(n.commonJsModuleIndicator)return;if(h&&!u(i,h))return{kind:2,token:o,call:s.parent,sourceFile:h,modifierFlags:1,parentDeclaration:h}}var v=e.find(_.declarations,e.isClassLike);if(v||!e.isPrivateIdentifier(o)){var b=v||e.find(_.declarations,e.isInterfaceDeclaration);if(b&&!u(i,b.getSourceFile())){var E=(m.target||m)!==a.getDeclaredTypeOfSymbol(_);if(E&&(e.isPrivateIdentifier(o)||e.isInterfaceDeclaration(b)))return;var T=b.getSourceFile(),S=(E?32:0)|(e.startsWithUnderscore(o.text)?8:0),x=e.isSourceFileJS(T);return{kind:1,token:o,call:e.tryCast(s.parent,e.isCallExpression),modifierFlags:S,parentDeclaration:b,declSourceFile:T,isJSFile:x}}var L=e.find(_.declarations,e.isEnumDeclaration);return!L||e.isPrivateIdentifier(o)||u(i,L.getSourceFile())?void 0:{kind:0,token:o,parentDeclaration:L}}}}}}function u(e,n){return e.isSourceFileFromExternalLibrary(n)||e.isSourceFileDefaultLibrary(n)}function d(n,t,r,a,i){var o=a.text;if(i){if(225===r.kind)return;var s=r.name.getText(),c=p(e.factory.createIdentifier(s),o);n.insertNodeAfter(t,r,c)}else if(e.isPrivateIdentifier(a)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=_(r);u?n.insertNodeAfter(t,u,l):n.insertNodeAtClassStart(t,r,l)}else{var d=e.getFirstConstructorWithBody(r);if(!d)return;var f=p(e.factory.createThis(),o);n.insertNodeAtConstructorEnd(t,d,f)}}function p(n,t){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(n,t),T()))}function f(n,t,r){var a;if(220===r.parent.parent.kind){var i=r.parent.parent,o=r.parent===i.left?i.right:i.left,s=n.getWidenedType(n.getBaseTypeOfLiteralType(n.getTypeAtLocation(o)));a=n.typeToTypeNode(s,t,1)}else{var c=n.getContextualType(r.parent);a=c?n.typeToTypeNode(c,void 0,1):void 0}return a||e.factory.createKeywordTypeNode(130)}function m(n,t,r,a,i,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,a,void 0,i,void 0),c=_(r);c?n.insertNodeAfter(t,c,s):n.insertNodeAtClassStart(t,r,s)}function _(n){for(var t,r=0,a=n.members;r<a.length;r++){var i=a[r];if(!e.isPropertyDeclaration(i))break;t=i}return t}function g(t,r,a,i,o,s,c){var l=n.createImportAdder(c,t.program,t.preferences,t.host),u=n.createSignatureDeclarationFromCallExpression(168,t,l,a,i,o,s),d=e.findAncestor(a,(function(n){return e.isMethodDeclaration(n)||e.isConstructorDeclaration(n)}));d&&d.parent===s?r.insertNodeAfter(c,d,u):r.insertNodeAtClassStart(c,s,u),l.writeFixes(r)}function y(n,t,r){var a=r.token,i=r.parentDeclaration,o=e.some(i.members,(function(e){var n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),s=e.factory.createEnumMember(a,o?e.factory.createStringLiteral(a.text):void 0);n.replaceNode(i.getSourceFile(),i,e.factory.updateEnumDeclaration(i,i.decorators,i.modifiers,i.name,e.concatenate(i.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function h(t,r,a){var i=n.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),o=n.createSignatureDeclarationFromCallExpression(255,r,i,a.call,e.idText(a.token),a.modifierFlags,a.parentDeclaration);t.insertNodeAtEndOfScope(a.sourceFile,a.parentDeclaration,o)}function v(t,r,a){var i=n.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),o=e.getQuotePreference(r.sourceFile,r.preferences),s=r.program.getTypeChecker(),c=a.parentDeclaration.attributes,l=e.some(c.properties,e.isJsxSpreadAttribute),u=e.map(a.attributes,(function(n){var t=n.valueDeclaration?E(r,s,i,o,s.getTypeAtLocation(n.valueDeclaration)):T();return e.factory.createJsxAttribute(e.factory.createIdentifier(n.name),e.factory.createJsxExpression(void 0,t))})),d=e.factory.createJsxAttributes(l?pa(pa([],u,!0),c.properties,!0):pa(pa([],c.properties,!0),u,!0)),p={prefix:c.pos===c.end?" ":void 0};t.replaceNode(r.sourceFile,c,d,p)}function b(t,r,a){var i=n.createImportAdder(r.sourceFile,r.program,r.preferences,r.host),o=e.getQuotePreference(r.sourceFile,r.preferences),s=r.program.getTypeChecker(),c=e.map(a.properties,(function(n){var t=n.valueDeclaration?E(r,s,i,o,s.getTypeAtLocation(n.valueDeclaration)):T();return e.factory.createPropertyAssignment(n.name,t)})),l={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:a.indentation};t.replaceNode(r.sourceFile,a.parentDeclaration,e.factory.createObjectLiteralExpression(pa(pa([],a.parentDeclaration.properties,!0),c,!0),!0),l)}function E(t,r,a,i,o){if(3&o.flags)return T();if(134217732&o.flags)return e.factory.createStringLiteral("",0===i);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var s=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,c=r.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===s||void 0===c?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(c,r.symbolToString(s))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===i);if(512&o.flags)return o===r.getFalseType()||o===r.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var l=e.firstDefined(o.types,(function(e){return E(t,r,a,i,e)}));return null!==l&&void 0!==l?l:T()}if(r.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if(function(n){return 524288&n.flags&&(128&e.getObjectFlags(n)||n.symbol&&e.tryCast(e.singleOrUndefined(n.symbol.declarations),e.isTypeLiteralNode))}(o)){var u=e.map(r.getPropertiesOfType(o),(function(n){var o=n.valueDeclaration?E(t,r,a,i,r.getTypeAtLocation(n.valueDeclaration)):T();return e.factory.createPropertyAssignment(n.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return T();var d=r.getSignaturesOfType(o,0);if(void 0===d)return T();var p=n.createSignatureDeclarationFromSignature(212,t,i,d[0],n.createStubbedBody(e.Diagnostics.Function_not_implemented.message,i),void 0,void 0,void 0,void 0,a);return null!==p&&void 0!==p?p:T()}if(1&e.getObjectFlags(o)){var f=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===f||e.hasAbstractModifier(f))return T();var m=e.getFirstConstructorWithBody(f);return m&&e.length(m.parameters)?T():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return T()}function T(){return e.factory.createIdentifier("undefined")}n.registerCodeFix({errorCodes:c,getCodeActions:function(t){var r=t.program.getTypeChecker(),c=l(t.sourceFile,t.span.start,t.errorCode,r,t.program);if(c){if(3===c.kind){var u=e.textChanges.ChangeTracker.with(t,(function(e){return b(e,t,c)}));return[n.createCodeFixAction(i,u,e.Diagnostics.Add_missing_properties,i,e.Diagnostics.Add_all_missing_properties)]}if(4===c.kind){u=e.textChanges.ChangeTracker.with(t,(function(e){return v(e,t,c)}));return[n.createCodeFixAction(o,u,e.Diagnostics.Add_missing_attributes,o,e.Diagnostics.Add_all_missing_attributes)]}if(2===c.kind){u=e.textChanges.ChangeTracker.with(t,(function(e){return h(e,t,c)}));return[n.createCodeFixAction(s,u,[e.Diagnostics.Add_missing_function_declaration_0,c.token.text],s,e.Diagnostics.Add_all_missing_function_declarations)]}if(0===c.kind){u=e.textChanges.ChangeTracker.with(t,(function(e){return y(e,t.program.getTypeChecker(),c)}));return[n.createCodeFixAction(a,u,[e.Diagnostics.Add_missing_enum_member_0,c.token.text],a,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(function(t,r){var i=r.parentDeclaration,o=r.declSourceFile,s=r.modifierFlags,c=r.token,l=r.call;if(void 0===l)return;if(e.isPrivateIdentifier(c))return;var u=c.text,d=function(n){return e.textChanges.ChangeTracker.with(t,(function(e){return g(t,e,l,c,n,i,o)}))},p=[n.createCodeFixAction(a,d(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,u],a,e.Diagnostics.Add_all_missing_members)];8&s&&p.unshift(n.createCodeFixActionWithoutFixAll(a,d(8),[e.Diagnostics.Declare_private_method_0,u]));return p}(t,c),function(t,r){return r.isJSFile?e.singleElementArray(function(t,r){var i=r.parentDeclaration,o=r.declSourceFile,s=r.modifierFlags,c=r.token;if(e.isInterfaceDeclaration(i))return;var l=e.textChanges.ChangeTracker.with(t,(function(e){return d(e,o,i,c,!!(32&s))}));if(0===l.length)return;var u=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return n.createCodeFixAction(a,l,[u,c.text],a,e.Diagnostics.Add_all_missing_members)}(t,r)):function(t,r){var i=r.parentDeclaration,o=r.declSourceFile,s=r.modifierFlags,c=r.token,l=c.text,u=32&s,d=f(t.program.getTypeChecker(),i,c),p=function(n){return e.textChanges.ChangeTracker.with(t,(function(e){return m(e,o,i,l,d,n)}))},_=[n.createCodeFixAction(a,p(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],a,e.Diagnostics.Add_all_missing_members)];if(u||e.isPrivateIdentifier(c))return _;8&s&&_.unshift(n.createCodeFixActionWithoutFixAll(a,p(8),[e.Diagnostics.Declare_private_property_0,l]));return _.push(function(t,r,i,o,s){var c=e.factory.createKeywordTypeNode(149),l=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),u=e.factory.createIndexSignature(void 0,void 0,[l],s),d=e.textChanges.ChangeTracker.with(t,(function(e){return e.insertNodeAtClassStart(r,i,u)}));return n.createCodeFixActionWithoutFixAll(a,d,[e.Diagnostics.Add_index_signature_for_property_0,o])}(t,o,i,c.text,d)),_}(t,r)}(t,c))}},fixIds:[a,s,i,o],getAllCodeActions:function(t){var r=t.program,a=t.fixId,u=r.getTypeChecker(),p=new e.Map,_=new e.Map;return n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(t,(function(E){n.eachDiagnostic(t,c,(function(n){var r=l(n.file,n.start,n.code,u,t.program);if(r&&e.addToSeen(p,e.getNodeId(r.parentDeclaration)+"#"+r.token.text))if(a===s&&2===r.kind)h(E,t,r);else if(a===i&&3===r.kind)b(E,t,r);else if(a===o&&4===r.kind)v(E,t,r);else if(0===r.kind&&y(E,u,r),1===r.kind){var c=r.parentDeclaration,d=r.token,f=e.getOrUpdate(_,c,(function(){return[]}));f.some((function(e){return e.token.text===d.text}))||f.push(r)}})),_.forEach((function(a,i){for(var o=n.getAllSupers(i,u),s=function(n){if(o.some((function(e){var t=_.get(e);return!!t&&t.some((function(e){return e.token.text===n.token.text}))})))return"continue";var a=n.parentDeclaration,i=n.declSourceFile,s=n.modifierFlags,c=n.token,l=n.call,u=n.isJSFile;if(l&&!e.isPrivateIdentifier(c))g(t,E,l,c,32&s,a,i);else if(u&&!e.isInterfaceDeclaration(a))d(E,i,a,c,!!(32&s));else{var p=f(r.getTypeChecker(),a,c);m(E,i,a,c.text,p,32&s)}},c=0,l=a;c<l.length;c++){s(l[c])}}))})))}}),(r=t||(t={}))[r.Enum=0]="Enum",r[r.ClassOrInterface=1]="ClassOrInterface",r[r.Function=2]="Function",r[r.ObjectLiteral=3]="ObjectLiteral",r[r.JsxAttributes=4]="JsxAttributes"}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addMissingNewOperator",r=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function a(n,t,r){var a=e.cast(function(n,t){var r=e.getTokenAtPosition(n,t.start),a=e.textSpanEnd(t);for(;r.end<a;)r=r.parent;return r}(t,r),e.isCallExpression),i=e.factory.createNewExpression(a.expression,a.typeArguments,a.arguments);n.replaceNode(t,a,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,o=r.span,s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Add_missing_new_operator_to_call,t,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return a(n,e.sourceFile,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="installTypesPackage",r=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,a=[r,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function i(e,n){return{type:"install package",file:e,packageName:n}}function o(n,t){var r=e.tryCast(e.getTokenAtPosition(n,t),e.isStringLiteral);if(r){var a=r.text,i=e.parsePackageName(a).packageName;return e.isExternalModuleNameRelative(i)?void 0:i}}function s(n,t,a){var i;return a===r?e.JsTyping.nodeCoreModules.has(n)?"@types/node":void 0:(null===(i=t.isKnownTypesPackageName)||void 0===i?void 0:i.call(t,n))?e.getTypesPackageName(n):void 0}n.registerCodeFix({errorCodes:a,getCodeActions:function(r){var a=r.host,c=r.sourceFile,l=o(c,r.span.start);if(void 0!==l){var u=s(l,a,r.errorCode);return void 0===u?[]:[n.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],t,e.Diagnostics.Install_all_missing_types_packages,i(c.fileName,u))]}},fixIds:[t],getAllCodeActions:function(r){return n.codeFixAll(r,a,(function(n,a,c){var l=o(a.file,a.start);if(void 0!==l)if(r.fixId===t){var u=s(l,r.host,a.code);u&&c.push(i(a.file.fileName,u))}else e.Debug.fail("Bad fixId: ".concat(r.fixId))}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],r="fixClassDoesntImplementInheritedAbstractMember";function a(n,t){var r=e.getTokenAtPosition(n,t);return e.cast(r.parent,e.isClassLike)}function i(t,r,a,i,s){var c=e.getEffectiveBaseTypeNode(t),l=a.program.getTypeChecker(),u=l.getTypeAtLocation(c),d=l.getPropertiesOfType(u).filter(o),p=n.createImportAdder(r,a.program,s,a.host);n.createMissingMemberNodes(t,d,r,a,s,p,(function(e){return i.insertNodeAtClassStart(r,t,e)})),p.writeFixes(i)}function o(n){var t=e.getSyntacticModifierFlags(e.first(n.getDeclarations()));return!(8&t)&&!!(128&t)}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var o=t.sourceFile,s=t.span,c=e.textChanges.ChangeTracker.with(t,(function(e){return i(a(o,s.start),o,t,e,t.preferences)}));return 0===c.length?void 0:[n.createCodeFixAction(r,c,e.Diagnostics.Implement_inherited_abstract_class,r,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return n.codeFixAll(r,t,(function(n,t){var s=a(t.file,t.start);e.addToSeen(o,e.getNodeId(s))&&i(s,r.sourceFile,r,n,r.preferences)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="classSuperMustPrecedeThisAccess",r=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function a(e,n,t,r){e.insertNodeAtConstructorStart(n,t,r),e.delete(n,r)}function i(n,t){var r=e.getTokenAtPosition(n,t);if(108===r.kind){var a=e.getContainingFunction(r),i=o(a.body);return i&&!i.expression.arguments.some((function(n){return e.isPropertyAccessExpression(n)&&n.expression===r}))?{constructor:a,superCall:i}:void 0}}function o(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start);if(c){var l=c.constructor,u=c.superCall,d=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,l,u)}));return[n.createCodeFixAction(t,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,t,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[t],getAllCodeActions:function(t){var o=t.sourceFile,s=new e.Map;return n.codeFixAll(t,r,(function(n,t){var r=i(t.file,t.start);if(r){var c=r.constructor,l=r.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&a(n,o,c,l)}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="constructorForDerivedNeedSuperCall",r=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(e.isConstructorDeclaration(r.parent),"token should be at the constructor declaration"),r.parent}function i(n,t,r){var a=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));n.insertNodeAtConstructorStart(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_missing_super_call,t,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,e.sourceFile,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="enableExperimentalDecorators",r=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function a(t,r){n.setJsonCompilerOptionValue(t,r,"experimentalDecorators",e.factory.createTrue())}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.program.getCompilerOptions().configFile;if(void 0!==i){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i)}));return[n.createCodeFixActionWithoutFixAll(t,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n){var t=e.program.getCompilerOptions().configFile;void 0!==t&&a(n,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixEnableJsxFlag",r=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function a(t,r){n.setJsonCompilerOptionValue(t,r,"jsx",e.factory.createStringLiteral("react"))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.program.getCompilerOptions().configFile;if(void 0!==i){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i)}));return[n.createCodeFixActionWithoutFixAll(t,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n){var t=e.program.getCompilerOptions().configFile;void 0!==t&&a(n,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){var n;(n=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){var r=t.program.getCompilerOptions(),a=r.configFile;if(void 0!==a){var i=[],o=e.getEmitModuleKind(r);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(t,(function(t){n.setJsonCompilerOptionValue(t,a,"module",e.factory.createStringLiteral("esnext"))}));i.push(n.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(r);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(t,(function(t){if(e.getTsConfigObjectLiteralExpression(a)){var r=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(t,a,r)}})),i.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),i.length?i:void 0}}})}(ha||(ha={})),function(e){!function(n){var t="fixPropertyAssignment",r=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function a(n,t,r){n.replaceNode(t,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function i(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isShorthandPropertyAssignment)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=i(r.sourceFile,r.span.start),s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,[e.Diagnostics.Change_0_to_1,"=",":"],t,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,i(n.file,n.start))}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingClass(r).heritageClauses,i=a[0].getFirstToken();return 94===i.kind?{extendsToken:i,heritageClauses:a}:void 0}function i(n,t,r,a){if(n.replaceNode(t,r,e.factory.createToken(117)),2===a.length&&94===a[0].token&&117===a[1].token){var i=a[1].getFirstToken(),o=i.getFullStart();n.replaceRange(t,{pos:o,end:o},e.factory.createToken(27));for(var s=t.text,c=i.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;n.deleteRange(t,{pos:i.getStart(),end:c})}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=a(o,r.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,u=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c,l)}));return[n.createCodeFixAction(t,u,e.Diagnostics.Change_extends_to_implements,t,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t.extendsToken,t.heritageClauses)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="forgottenThisPropertyAccess",r=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,a=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,r];function i(n,t,a){var i=e.getTokenAtPosition(n,t);if(e.isIdentifier(i)||e.isPrivateIdentifier(i))return{node:i,className:a===r?e.getContainingClass(i).name.text:void 0}}function o(n,t,r){var a=r.node,i=r.className;e.suppressLeadingAndTrailingTrivia(a),n.replaceNode(t,a,e.factory.createPropertyAccessExpression(i?e.factory.createIdentifier(i):e.factory.createThis(),a))}n.registerCodeFix({errorCodes:a,getCodeActions:function(r){var a=r.sourceFile,s=i(a,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,a,s)}));return[n.createCodeFixAction(t,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],t,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,a,(function(n,t){var r=i(t.file,t.start,t.code);r&&o(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixInvalidJsxCharacters_expression",r="fixInvalidJsxCharacters_htmlEntity",a=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];n.registerCodeFix({errorCodes:a,fixIds:[t,r],getCodeActions:function(a){var i=a.sourceFile,s=a.preferences,c=a.span,l=e.textChanges.ChangeTracker.with(a,(function(e){return o(e,s,i,c.start,!1)})),u=e.textChanges.ChangeTracker.with(a,(function(e){return o(e,s,i,c.start,!0)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,t,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),n.createCodeFixAction(r,u,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,r,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(e){return n.codeFixAll(e,a,(function(n,t){return o(n,e.preferences,t.file,t.start,e.fixId===r)}))}});var i={">":"&gt;","}":"&rbrace;"};function o(n,t,r,a,o){var s=r.getText()[a];if(function(n){return e.hasProperty(i,n)}(s)){var c=o?i[s]:"{".concat(e.quote(r,t,s),"}");n.replaceRangeWithText(r,{pos:a,end:a+1},c)}}}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="unusedIdentifier",r="unusedIdentifier_prefix",a="unusedIdentifier_delete",i="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(n,t,r){n.replaceNode(t,r.parent,e.factory.createKeywordTypeNode(154))}function l(r,i){return n.createCodeFixAction(t,r,i,a,e.Diagnostics.Delete_all_unused_declarations)}function u(n,t,r){n.delete(t,e.Debug.checkDefined(e.cast(r.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(269===e.parent.kind||266===e.parent.kind)}function p(n){return 100===n.kind?e.tryCast(n.parent,e.isImportDeclaration):void 0}function f(n,t){return e.isVariableDeclarationList(t.parent)&&e.first(t.parent.getChildren(n))===t}function m(e,n,t){e.delete(n,236===t.parent.kind?t.parent:t)}function _(n,t,r,a){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===a.kind&&(a=e.cast(a.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(a)&&function(e){switch(e.parent.kind){case 163:case 162:return!0;case 253:switch(e.parent.parent.parent.kind){case 243:case 242:return!0}}return!1}(a)&&(n.replaceNode(r,a,e.factory.createIdentifier("_".concat(a.text))),e.isParameter(a.parent)&&e.getJSDocParameterTags(a.parent).forEach((function(t){e.isIdentifier(t.name)&&n.replaceNode(r,t.name,e.factory.createIdentifier("_".concat(t.name.text)))}))))}function g(n,t,r,a,i,o,s,c){!function(n,t,r,a,i,o,s,c){var l=n.parent;if(e.isParameter(l))!function(n,t,r,a,i,o,s,c){void 0===c&&(c=!1);(function(n,t,r,a,i,o,s){var c=r.parent;switch(c.kind){case 168:case 170:var l=c.parameters.indexOf(r),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,i,a,o);if(d)for(var p=0,f=d;p<f.length;p++)for(var m=0,_=f[p].references;m<_.length;m++){var g=_[m];if(1===g.kind){var y=e.isSuperKeyword(g.node)&&e.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>l,v=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==r.parent&&g.node.parent.parameters.length>l;if(y||v||b)return!1}}return!0;case 255:return!c.name||!function(n,t,r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r,n,t,(function(n){return e.isIdentifier(n)&&e.isCallExpression(n.parent)&&n.parent.arguments.indexOf(n)>=0}))}(n,t,c.name)||h(c,r,s);case 212:case 213:return h(c,r,s);case 172:return!1;default:return e.Debug.failBadSyntaxKind(c)}})(a,t,r,i,o,s,c)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,a,t))?r.modifiers.forEach((function(e){return n.deleteModifier(t,e)})):!r.initializer&&y(r,a,i)&&n.delete(t,r))}(t,r,l,a,i,o,s,c);else if(!(c&&e.isIdentifier(n)&&e.FindAllReferences.Core.isSymbolReferencedInFile(n,a,r))){var u=e.isImportClause(l)?n:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==r,"should not delete whole source file"),t.delete(r,u)}}(t,r,n,a,i,o,s,c),e.isIdentifier(t)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(t,a,n,(function(t){var a;e.isPropertyAccessExpression(t.parent)&&t.parent.name===t&&(t=t.parent),!c&&(a=t,(e.isBinaryExpression(a.parent)&&a.parent.left===a||(e.isPostfixUnaryExpression(a.parent)||e.isPrefixUnaryExpression(a.parent))&&a.parent.operand===a)&&e.isExpressionStatement(a.parent.parent))&&r.delete(n,t.parent.parent)}))}function y(n,t,r){var a=n.parent.parameters.indexOf(n);return!e.FindAllReferences.Core.someSignatureUsage(n.parent,r,t,(function(e,n){return!n||n.arguments.length>a}))}function h(n,t,r){var a=n.parameters,i=a.indexOf(t);return e.Debug.assert(-1!==i,"The parameter should already be in the list"),r?a.slice(i+1).every((function(n){return e.isIdentifier(n.name)&&!n.symbol.isReferenced})):i===a.length-1}n.registerCodeFix({errorCodes:s,getCodeActions:function(a){var s=a.errorCode,y=a.sourceFile,h=a.program,v=a.cancellationToken,b=h.getTypeChecker(),E=h.getSourceFiles(),T=e.getTokenAtPosition(y,a.span.start);if(e.isJSDocTemplateTag(T))return[l(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(y,T)})),e.Diagnostics.Remove_template_tag)];if(29===T.kind)return[l(x=e.textChanges.ChangeTracker.with(a,(function(e){return u(e,y,T)})),e.Diagnostics.Remove_type_parameters)];var S=p(T);if(S){var x=e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(y,S)}));return[n.createCodeFixAction(t,x,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],i,e.Diagnostics.Delete_all_unused_imports)]}if(d(T)&&(I=e.textChanges.ChangeTracker.with(a,(function(e){return g(y,T,e,b,E,h,v,!1)}))).length)return[n.createCodeFixAction(t,I,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(y)],i,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(T.parent)||e.isArrayBindingPattern(T.parent)){if(e.isParameter(T.parent.parent)){var L=T.parent.elements,D=[L.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(L,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(a,(function(n){return function(n,t,r){e.forEach(r.elements,(function(e){return n.delete(t,e)}))}(n,y,T.parent)})),D)]}return[l(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(y,T.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(f(y,T))return[l(e.textChanges.ChangeTracker.with(a,(function(e){return m(e,y,T.parent)})),e.Diagnostics.Remove_variable_statement)];var C=[];if(137===T.kind){x=e.textChanges.ChangeTracker.with(a,(function(e){return c(e,y,T)}));var A=e.cast(T.parent,e.isInferTypeNode).typeParameter.name.text;C.push(n.createCodeFixAction(t,x,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var I;if((I=e.textChanges.ChangeTracker.with(a,(function(e){return g(y,T,e,b,E,h,v,!1)}))).length){A=e.isComputedPropertyName(T.parent)?T.parent:T;C.push(l(I,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(y)]))}}var k=e.textChanges.ChangeTracker.with(a,(function(e){return _(e,s,y,T)}));return k.length&&C.push(n.createCodeFixAction(t,k,[e.Diagnostics.Prefix_0_with_an_underscore,T.getText(y)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),C},fixIds:[r,a,i,o],getAllCodeActions:function(t){var l=t.sourceFile,h=t.program,v=t.cancellationToken,b=h.getTypeChecker(),E=h.getSourceFiles();return n.codeFixAll(t,s,(function(n,s){var T=e.getTokenAtPosition(l,s.start);switch(t.fixId){case r:_(n,s.code,l,T);break;case i:var S=p(T);S?n.delete(l,S):d(T)&&g(l,T,n,b,E,h,v,!0);break;case a:if(137===T.kind||d(T))break;if(e.isJSDocTemplateTag(T))n.delete(l,T);else if(29===T.kind)u(n,l,T);else if(e.isObjectBindingPattern(T.parent)){if(T.parent.parent.initializer)break;e.isParameter(T.parent.parent)&&!y(T.parent.parent,b,E)||n.delete(l,T.parent.parent)}else{if(e.isArrayBindingPattern(T.parent.parent)&&T.parent.parent.parent.initializer)break;f(l,T)?m(n,l,T.parent):g(l,T,n,b,E,h,v,!0)}break;case o:137===T.kind&&c(n,l,T);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function a(n,t,r,a,i){var o=e.getTokenAtPosition(t,r),s=e.findAncestor(o,e.isStatement);if(s.getStart(t)!==o.getStart(t)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:i,start:r,length:a});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 238:if(l.elseStatement){if(e.isBlock(s.parent))break;return void n.replaceNode(t,s,e.factory.createBlock(e.emptyArray))}case 240:case 241:return void n.delete(t,l)}if(e.isBlock(s.parent)){var u=r+a,d=e.Debug.checkDefined(function(e,n){for(var t,r=0,a=e;r<a.length;r++){var i=a[r];if(!n(i))break;t=i}return t}(e.sliceAfter(s.parent.statements,s),(function(e){return e.pos<u})),"Some statement should be last");n.deleteNodeRange(t,s,d)}else n.delete(t,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start,r.span.length,r.errorCode)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unreachable_code,t,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start,n.length,n.code)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixUnusedLabel",r=[e.Diagnostics.Unused_label.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.cast(a.parent,e.isLabeledStatement),o=a.getStart(t),s=i.statement.getStart(t),c=e.positionsAreOnSameLine(o,s,t)?s:e.skipTrivia(t.text,e.findChildOfKind(i,58,t).end,!0);n.deleteRange(t,{pos:o,end:c})}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unused_label,t,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixJSDocTypes_plain",r="fixJSDocTypes_nullable",a=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function i(e,n,t,r,a){e.replaceNode(n,t,a.typeToTypeNode(r,t,void 0))}function o(n,t,r){var a=e.findAncestor(e.getTokenAtPosition(n,t),s),i=a&&a.type;return i&&{typeNode:i,type:r.getTypeFromTypeNode(i)}}function s(e){switch(e.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}n.registerCodeFix({errorCodes:a,getCodeActions:function(a){var s=a.sourceFile,c=a.program.getTypeChecker(),l=o(s,a.span.start,c);if(l){var u=l.typeNode,d=l.type,p=u.getText(s),f=[m(d,t,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 312===u.kind&&f.push(m(c.getNullableType(d,32768),r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),f}function m(t,r,o){var l=e.textChanges.ChangeTracker.with(a,(function(e){return i(e,s,u,t,c)}));return n.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,p,c.typeToString(t)],r,o)}},fixIds:[t,r],getAllCodeActions:function(e){var t=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return n.codeFixAll(e,a,(function(e,n){var a=o(n.file,n.start,l);if(a){var s=a.typeNode,u=a.type,d=312===s.kind&&t===r?l.getNullableType(u,32768):u;i(e,c,s,d,l)}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixMissingCallParentheses",r=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function a(e,n,t){e.replaceNodeWithText(n,t,"".concat(t.text,"()"))}function i(n,t){var r=e.getTokenAtPosition(n,t);if(e.isPropertyAccessExpression(r.parent)){for(var a=r.parent;e.isPropertyAccessExpression(a.parent);)a=a.parent;return a.name}if(e.isIdentifier(r))return r}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=i(r.sourceFile,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Add_missing_call_parentheses,t,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=i(n.file,n.start);t&&a(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixAwaitInSyncFunction",r=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingFunction(r);if(a){var i,o;switch(a.kind){case 168:i=a.name;break;case 255:case 212:i=e.findChildOfKind(a,98,n);break;case 213:var s=a.typeParameters?29:20;i=e.findChildOfKind(a,s,n)||e.first(a.parameters);break;default:return}return i&&{insertBefore:i,returnType:(o=a,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function i(n,t,r){var a=r.insertBefore,i=r.returnType;if(i){var o=e.getEntityNameFromTypeNode(i);o&&79===o.kind&&"Promise"===o.text||n.replaceNode(t,i,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([i])))}n.insertModifierBefore(t,131,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[t],getAllCodeActions:function(t){var o=new e.Map;return n.codeFixAll(t,r,(function(n,r){var s=a(r.file,r.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&i(n,t.sourceFile,s)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],r="fixPropertyOverrideAccessor";function a(t,r,a,i,o){var s,c;if(i===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=r,c=r+a;else if(i===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var l=o.program.getTypeChecker(),u=e.getTokenAtPosition(t,r).parent;e.Debug.assert(e.isAccessor(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");var d=u.parent;e.Debug.assert(e.isClassLike(d),"erroneous accessors should only be inside classes");var p=e.singleOrUndefined(n.getAllSupers(d,l));if(!p)return[];var f=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(u.name)),m=l.getPropertyOfType(l.getTypeAtLocation(p),f);if(!m||!m.valueDeclaration)return[];s=m.valueDeclaration.pos,c=m.valueDeclaration.end,t=e.getSourceFileOfNode(m.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return n.generateAccessorFromProperty(t,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var i=a(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(i)return[n.createCodeFixAction(r,i,e.Diagnostics.Generate_get_and_set_accessors,r,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){var r=a(t.file,t.start,t.length,t.code,e);if(r)for(var i=0,o=r;i<o.length;i++){var s=o[i];n.pushRaw(e.sourceFile,s)}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="inferFromUsage",r=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function a(n,t){switch(n){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(t))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function i(t,r,a,i,d,_,g,y,h){if(e.isParameterPropertyModifier(a.kind)||79===a.kind||25===a.kind||108===a.kind){var v=a.parent,b=n.createImportAdder(r,d,h,y);switch(i=function(n){switch(n){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return n}(i)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(v)&&g(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return o(t,b,r,v,d,y,_),b.writeFixes(t),v;if(e.isPropertyAccessExpression(v)){var E=p(v.name,d,_),T=e.getTypeNodeIfAccessible(E,v,d,y);if(T){var S=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(T),void 0);u(t,r,e.cast(v.parent.parent,e.isExpressionStatement),[S])}return b.writeFixes(t),v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var x=d.getTypeChecker().getSymbolAtLocation(a);return x&&x.valueDeclaration&&e.isVariableDeclaration(x.valueDeclaration)&&g(x.valueDeclaration)?(o(t,b,r,x.valueDeclaration,d,y,_),b.writeFixes(t),x.valueDeclaration):void 0}var L=e.getContainingFunction(a);if(void 0!==L){var D;switch(i){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(L)){s(t,b,r,L,d,y,_),D=L;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(g(L)){var C=e.cast(v,e.isParameter);!function(n,t,r,a,i,o,s,u){if(!e.isIdentifier(a.name))return;var d=function(n,t,r,a){var i=f(n,t,r,a);return i&&m(r,i,a).parameters(n)||n.parameters.map((function(n){return{declaration:n,type:e.isIdentifier(n.name)?p(n.name,r,a):r.getTypeChecker().getAnyType()}}))}(i,r,o,u);if(e.Debug.assert(i.parameters.length===d.length,"Parameter count and inference count should match"),e.isInJSFile(i))l(n,r,d,o,s);else{var _=e.isArrowFunction(i)&&!e.findChildOfKind(i,20,r);_&&n.insertNodeBefore(r,e.first(i.parameters),e.factory.createToken(20));for(var g=0,y=d;g<y.length;g++){var h=y[g],v=h.declaration,b=h.type;!v||v.type||v.initializer||c(n,t,r,v,b,o,s)}_&&n.insertNodeAfter(r,e.last(i.parameters),e.factory.createToken(21))}}(t,b,r,C,L,d,y,_),D=C}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(L)&&e.isIdentifier(L.name)&&(c(t,b,r,L,p(L.name,d,_),d,y),D=L);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(L)&&(s(t,b,r,L,d,y,_),D=L);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(L)&&g(L)&&(!function(n,t,r,a,i,o){var s=f(r,t,a,o);if(!s||!s.length)return;var c=m(a,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,r,a,i);if(!l)return;e.isInJSFile(r)?function(n,t,r,a){u(n,t,r,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(a))])}(n,t,r,l):n.tryInsertThisTypeAnnotation(t,r,l)}(t,r,L,d,y,_),D=L);break;default:return e.Debug.fail(String(i))}return b.writeFixes(t),D}}}function o(n,t,r,a,i,o,s){e.isIdentifier(a.name)&&c(n,t,r,a,p(a.name,i,s),i,o)}function s(n,t,r,a,i,o,s){var u=e.firstOrUndefined(a.parameters);if(u&&e.isIdentifier(a.name)&&e.isIdentifier(u.name)){var d=p(a.name,i,s);d===i.getTypeChecker().getAnyType()&&(d=p(u.name,i,s)),e.isInJSFile(a)?l(n,r,[{declaration:u,type:d}],i,o):c(n,t,r,u,d,i,o)}}function c(t,r,a,i,o,s,c){var l=e.getTypeNodeIfAccessible(o,i,s,c);if(l)if(e.isInJSFile(a)&&165!==i.kind){var d=e.isVariableDeclaration(i)?e.tryCast(i.parent.parent,e.isVariableStatement):i;if(!d)return;var p=e.factory.createJSDocTypeExpression(l);u(t,a,d,[e.isGetAccessorDeclaration(i)?e.factory.createJSDocReturnTag(void 0,p,void 0):e.factory.createJSDocTypeTag(void 0,p,void 0)])}else(function(t,r,a,i,o,s){var c=n.tryGetAutoImportableReferenceFromTypeNode(t,s);if(c&&i.tryInsertTypeAnnotation(a,r,c.typeNode))return e.forEach(c.symbols,(function(e){return o.addImportFromExportedSymbol(e,!0)})),!0;return!1})(l,i,a,t,r,e.getEmitScriptTarget(s.getCompilerOptions()))||t.tryInsertTypeAnnotation(a,i,l)}function l(n,t,r,a,i){var o=r.length&&r[0].declaration.parent;if(o){var s=e.mapDefined(r,(function(n){var t=n.declaration;if(!t.initializer&&!e.getJSDocType(t)&&e.isIdentifier(t.name)){var r=n.type&&e.getTypeNodeIfAccessible(n.type,t,a,i);if(r){var o=e.factory.cloneNode(t.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(t.name),param:t,isOptional:!!n.isOptional,typeNode:r}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,t);c&&n.insertNodeBefore(t,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(function(r){var a=r.typeNode,i=r.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(a)),s=e.factory.createJSDocComment(void 0,[o]);n.insertNodeAt(t,i.getStart(t),s,{suffix:" "})})),c&&n.insertNodeAfter(t,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(function(n){var t=n.name,r=n.typeNode,a=n.isOptional;return e.factory.createJSDocParameterTag(void 0,t,!!a,e.factory.createJSDocTypeExpression(r),!1,void 0)}));u(n,t,o,l)}}}function u(n,t,r,a){var i=e.flatMap(r.jsDoc,(function(n){return"string"===typeof n.comment?e.factory.createJSDocText(n.comment):n.comment})),o=e.flatMapToMutable(r.jsDoc,(function(e){return e.tags})),s=a.filter((function(n){return!o||!o.some((function(t,r){var a=function(n,t){if(n.kind!==t.kind)return;switch(n.kind){case 338:var r=n,a=t;return e.isIdentifier(r.name)&&e.isIdentifier(a.name)&&r.name.escapedText===a.name.escapedText?e.factory.createJSDocParameterTag(void 0,a.name,!1,a.typeExpression,a.isNameFirst,r.comment):void 0;case 339:return e.factory.createJSDocReturnTag(void 0,t.typeExpression,n.comment)}}(t,n);return a&&(o[r]=a),!!a}))})),c=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(i,e.factory.createJSDocText("\n"))),e.factory.createNodeArray(pa(pa([],o||e.emptyArray,!0),s,!0))),l=213===r.kind?function(e){if(166===e.parent.kind)return e.parent;return e.parent.parent}(r):r;l.jsDoc=r.jsDoc,l.jsDocCache=r.jsDocCache,n.insertJsdocCommentBefore(t,l,c)}function d(n,t,r){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r),(function(n){return 0!==n.kind?e.tryCast(n.node,e.isIdentifier):void 0}))}function p(e,n,t){return m(n,d(e,n,t),t).single()}function f(n,t,r,a){var i;switch(n.kind){case 170:i=e.findChildOfKind(n,134,t);break;case 213:case 212:var o=n.parent;i=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:n.name;break;case 255:case 168:case 167:i=n.name}if(i)return d(i,r,a)}function m(n,t,r){var a=n.getTypeChecker(),i={string:function(){return a.getStringType()},number:function(){return a.getNumberType()},Array:function(e){return a.createArrayType(e)},Promise:function(e){return a.createPromiseType(e)}},o=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:function(){return f(c(t))},parameters:function(i){if(0===t.length||!i.parameters)return;for(var o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},s=0,u=t;s<u.length;s++){var p=u[s];r.throwIfCancellationRequested(),l(p,o)}var m=pa(pa([],o.constructs||[],!0),o.calls||[],!0);return i.parameters.map((function(t,o){for(var s=[],l=e.isRestParameter(t),u=!1,p=0,_=m;p<_.length;p++){var g=_[p];if(g.argumentTypes.length<=o)u=e.isInJSFile(i),s.push(a.getUndefinedType());else if(l)for(var y=o;y<g.argumentTypes.length;y++)s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[y]));else s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[o]))}if(e.isIdentifier(t.name)){var h=c(d(t.name,n,r));s.push.apply(s,l?e.mapDefined(h,a.getElementTypeOfArrayType):h)}var v=f(s);return{type:l?a.createArrayType(v):v,isOptional:u&&!l,declaration:t}}))},thisParameter:function(){for(var n={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},a=0,i=t;a<i.length;a++){var o=i[a];r.throwIfCancellationRequested(),l(o,n)}return f(n.candidateThisTypes||e.emptyArray)}};function s(n){for(var t=new e.Map,r=0,a=n;r<a.length;r++){var i=a[r];i.properties&&i.properties.forEach((function(e,n){t.has(n)||t.set(n,[]),t.get(n).push(e)}))}var o=new e.Map;return t.forEach((function(e,n){o.set(n,s(e))})),{isNumber:n.some((function(e){return e.isNumber})),isString:n.some((function(e){return e.isString})),isNumberOrString:n.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(n,(function(e){return e.candidateTypes})),properties:o,calls:e.flatMap(n,(function(e){return e.calls})),constructs:e.flatMap(n,(function(e){return e.constructs})),numberIndex:e.forEach(n,(function(e){return e.numberIndex})),stringIndex:e.forEach(n,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(n,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}function c(e){for(var n={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},t=0,a=e;t<a.length;t++){var i=a[t];r.throwIfCancellationRequested(),l(i,n)}return m(n)}function l(n,t){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;switch(n.parent.kind){case 237:!function(n,t){y(t,e.isCallExpression(n)?a.getVoidType():a.getAnyType())}(n,t);break;case 219:t.isNumber=!0;break;case 218:!function(e,n){switch(e.operator){case 45:case 46:case 40:case 54:n.isNumber=!0;break;case 39:n.isNumberOrString=!0}}(n.parent,t);break;case 220:!function(n,t,r){switch(t.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var i=a.getTypeAtLocation(t.left===n?t.right:t.left);1056&i.flags?y(r,i):r.isNumber=!0;break;case 64:case 39:var o=a.getTypeAtLocation(t.left===n?t.right:t.left);1056&o.flags?y(r,o):296&o.flags?r.isNumber=!0:402653316&o.flags?r.isString=!0:1&o.flags||(r.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:y(r,a.getTypeAtLocation(t.left===n?t.right:t.left));break;case 101:n===t.left&&(r.isString=!0);break;case 56:case 60:n!==t.left||253!==n.parent.parent.kind&&!e.isAssignmentExpression(n.parent.parent,!0)||y(r,a.getTypeAtLocation(t.right))}}(n,n.parent,t);break;case 288:case 289:!function(e,n){y(n,a.getTypeAtLocation(e.parent.parent.expression))}(n.parent,t);break;case 207:case 208:n.parent.expression===n?function(e,n){var t={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var r=0,i=e.arguments;r<i.length;r++){var o=i[r];t.argumentTypes.push(a.getTypeAtLocation(o))}l(e,t.return_),207===e.kind?(n.calls||(n.calls=[])).push(t):(n.constructs||(n.constructs=[])).push(t)}(n.parent,t):u(n,t);break;case 205:!function(n,t){var r=e.escapeLeadingUnderscores(n.name.text);t.properties||(t.properties=new e.Map);var a=t.properties.get(r)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(n,a),t.properties.set(r,a)}(n.parent,t);break;case 206:!function(e,n,t){if(n===e.argumentExpression)return void(t.isNumberOrString=!0);var r=a.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,i),296&r.flags?t.numberIndex=i:t.stringIndex=i}(n.parent,n,t);break;case 294:case 295:!function(n,t){var r=e.isVariableDeclaration(n.parent.parent)?n.parent.parent:n.parent;h(t,a.getTypeAtLocation(r))}(n.parent,t);break;case 166:!function(e,n){h(n,a.getTypeAtLocation(e.parent))}(n.parent,t);break;case 253:var r=n.parent,i=r.name,o=r.initializer;if(n===i){o&&y(t,a.getTypeAtLocation(o));break}default:return u(n,t)}}function u(n,t){e.isExpressionNode(n)&&y(t,a.getContextualType(n))}function p(e){return f(m(e))}function f(n){if(!n.length)return a.getAnyType();var t=a.getUnionType([a.getStringType(),a.getNumberType()]),r=function(n,t){for(var r=[],a=0,i=n;a<i.length;a++)for(var o=i[a],s=0,c=t;s<c.length;s++){var l=c[s],u=l.high,d=l.low;u(o)&&(e.Debug.assert(!d(o),"Priority can't have both low and high"),r.push(d))}return n.filter((function(e){return r.every((function(n){return!n(e)}))}))}(n,[{high:function(e){return e===a.getStringType()||e===a.getNumberType()},low:function(e){return e===t}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(n){return!(114689&n.flags)&&!(16&e.getObjectFlags(n))},low:function(n){return!!(16&e.getObjectFlags(n))}}]),i=r.filter((function(n){return 16&e.getObjectFlags(n)}));return i.length&&(r=r.filter((function(n){return!(16&e.getObjectFlags(n))})),r.push(function(n){if(1===n.length)return n[0];for(var t=[],r=[],i=[],o=[],s=!1,c=!1,l=e.createMultiMap(),u=0,d=n;u<d.length;u++){for(var p=d[u],f=0,m=a.getPropertiesOfType(p);f<m.length;f++){var _=m[f];l.add(_.name,_.valueDeclaration?a.getTypeOfSymbolAtLocation(_,_.valueDeclaration):a.getAnyType())}t.push.apply(t,a.getSignaturesOfType(p,0)),r.push.apply(r,a.getSignaturesOfType(p,1));var g=a.getIndexInfoOfType(p,0);g&&(i.push(g.type),s=s||g.isReadonly);var y=a.getIndexInfoOfType(p,1);y&&(o.push(y.type),c=c||y.isReadonly)}var h=e.mapEntries(l,(function(e,t){var r=t.length<n.length?16777216:0,i=a.createSymbol(4|r,e);return i.type=a.getUnionType(t),[e,i]})),v=[];i.length&&v.push(a.createIndexInfo(a.getStringType(),a.getUnionType(i),s));o.length&&v.push(a.createIndexInfo(a.getNumberType(),a.getUnionType(o),c));return a.createAnonymousType(n[0].symbol,h,t,r,v)}(i))),a.getWidenedType(a.getUnionType(r.map(a.getBaseTypeOfLiteralType),2))}function m(n){var t,r,s,c=[];return n.isNumber&&c.push(a.getNumberType()),n.isString&&c.push(a.getStringType()),n.isNumberOrString&&c.push(a.getUnionType([a.getStringType(),a.getNumberType()])),n.numberIndex&&c.push(a.createArrayType(p(n.numberIndex))),((null===(t=n.properties)||void 0===t?void 0:t.size)||(null===(r=n.calls)||void 0===r?void 0:r.length)||(null===(s=n.constructs)||void 0===s?void 0:s.length)||n.stringIndex)&&c.push(function(n){var t=new e.Map;n.properties&&n.properties.forEach((function(e,n){var r=a.createSymbol(4,n);r.type=p(e),t.set(n,r)}));var r=n.calls?[g(n.calls)]:[],i=n.constructs?[g(n.constructs)]:[],o=n.stringIndex?[a.createIndexInfo(a.getStringType(),p(n.stringIndex),!1)]:[];return a.createAnonymousType(void 0,t,r,i,o)}(n)),c.push.apply(c,(n.candidateTypes||[]).map((function(e){return a.getBaseTypeOfLiteralType(e)}))),c.push.apply(c,function(n){if(!n.properties||!n.properties.size)return[];var t=o.filter((function(t){return function(n,t){return!!t.properties&&!e.forEachEntry(t.properties,(function(t,r){var i,o=a.getTypeOfPropertyOfType(n,r);return!o||(t.calls?!a.getSignaturesOfType(o,0).length||!a.isTypeAssignableTo(o,(i=t.calls,a.createAnonymousType(void 0,e.createSymbolTable(),[g(i)],e.emptyArray,e.emptyArray))):!a.isTypeAssignableTo(o,p(t)))}))}(t,n)}));if(0<t.length&&t.length<3)return t.map((function(t){return function(n,t){if(!(4&e.getObjectFlags(n))||!t.properties)return n;var r=n.target,o=e.singleOrUndefined(r.typeParameters);if(!o)return n;var s=[];return t.properties.forEach((function(n,t){var i=a.getTypeOfPropertyOfType(r,t);e.Debug.assert(!!i,"generic should have all the properties of its reference."),s.push.apply(s,_(i,p(n),o))})),i[n.symbol.escapedName](f(s))}(t,n)}));return[]}(n)),c}function _(n,t,r){if(n===r)return[t];if(3145728&n.flags)return e.flatMap(n.types,(function(e){return _(e,t,r)}));if(4&e.getObjectFlags(n)&&4&e.getObjectFlags(t)){var i=a.getTypeArguments(n),o=a.getTypeArguments(t),s=[];if(i&&o)for(var c=0;c<i.length;c++)o[c]&&s.push.apply(s,_(i[c],o[c],r));return s}var l=a.getSignaturesOfType(n,0),u=a.getSignaturesOfType(t,0);return 1===l.length&&1===u.length?function(n,t,r){for(var i=[],o=0;o<n.parameters.length;o++){var s=n.parameters[o],c=t.parameters[o],l=n.declaration&&e.isRestParameter(n.declaration.parameters[o]);if(!c)break;var u=s.valueDeclaration?a.getTypeOfSymbolAtLocation(s,s.valueDeclaration):a.getAnyType(),d=l&&a.getElementTypeOfArrayType(u);d&&(u=d);var p=c.type||(c.valueDeclaration?a.getTypeOfSymbolAtLocation(c,c.valueDeclaration):a.getAnyType());i.push.apply(i,_(u,p,r))}var f=a.getReturnTypeOfSignature(n),m=a.getReturnTypeOfSignature(t);return i.push.apply(i,_(f,m,r)),i}(l[0],u[0],r):[]}function g(n){for(var t=[],r=Math.max.apply(Math,n.map((function(e){return e.argumentTypes.length}))),i=function(r){var i=a.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(r)));i.type=f(n.map((function(e){return e.argumentTypes[r]||a.getUndefinedType()}))),n.some((function(e){return void 0===e.argumentTypes[r]}))&&(i.flags|=16777216),t.push(i)},o=0;o<r;o++)i(o);var c=p(s(n.map((function(e){return e.return_}))));return a.createSignature(void 0,void 0,void 0,t,c,void 0,r,0)}function y(e,n){!n||1&n.flags||131072&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function h(e,n){!n||1&n.flags||131072&n.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(n)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o,s=r.sourceFile,c=r.program,l=r.span.start,u=r.errorCode,d=r.cancellationToken,p=r.host,f=r.preferences,m=e.getTokenAtPosition(s,l),_=e.textChanges.ChangeTracker.with(r,(function(n){o=i(n,s,m,u,c,d,e.returnTrue,p,f)})),g=o&&e.getNameOfDeclaration(o);return g&&0!==_.length?[n.createCodeFixAction(t,_,[a(u,m),g.getText(s)],t,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[t],getAllCodeActions:function(t){var a=t.sourceFile,o=t.program,s=t.cancellationToken,c=t.host,l=t.preferences,u=e.nodeSeenTracker();return n.codeFixAll(t,r,(function(n,t){i(n,a,e.getTokenAtPosition(t.file,t.start),t.code,o,s,u,c,l)}))}}),n.addJSDocTags=u}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixReturnTypeInAsyncFunction",r=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function a(n,t,r){if(!e.isInJSFile(n)){var a=e.getTokenAtPosition(n,r),i=e.findAncestor(a,e.isFunctionLikeDeclaration),o=null===i||void 0===i?void 0:i.type;if(o){var s=t.getTypeFromTypeNode(o),c=t.getAwaitedType(s)||t.getVoidType(),l=t.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function i(n,t,r,a){n.replaceNode(t,r,e.factory.createTypeReferenceNode("Promise",[a]))}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=r.sourceFile,s=r.program,c=r.span,l=s.getTypeChecker(),u=a(o,s.getTypeChecker(),c.start);if(u){var d=u.returnTypeNode,p=u.returnType,f=u.promisedTypeNode,m=u.promisedType,_=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,d,f)}));return[n.createCodeFixAction(t,_,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(p),l.typeToString(m)],t,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(t.file,e.program.getTypeChecker(),t.start);r&&i(n,t.file,r.returnTypeNode,r.promisedTypeNode)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="disableJsDiagnostics",r="disableJsDiagnostics",a=e.mapDefined(Object.keys(e.Diagnostics),(function(n){var t=e.Diagnostics[n];return t.category===e.DiagnosticCategory.Error?t.code:void 0}));function i(n,t,r,a){var i=e.getLineAndCharacterOfPosition(t,r).line;a&&!e.tryAddToSet(a,i)||n.insertCommentBeforeLine(t,i,r," @ts-ignore")}n.registerCodeFix({errorCodes:a,getCodeActions:function(a){var o=a.sourceFile,s=a.program,c=a.span,l=a.host,u=a.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var d=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,u.options),p=[n.createCodeFixActionWithoutFixAll(t,[n.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(d))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&p.unshift(n.createCodeFixAction(t,e.textChanges.ChangeTracker.with(a,(function(e){return i(e,o,c.start)})),e.Diagnostics.Ignore_this_error_message,r,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),p}},fixIds:[r],getAllCodeActions:function(t){var r=new e.Set;return n.codeFixAll(t,a,(function(n,t){e.textChanges.isValidLocationToAddComment(t.file,t.start)&&i(n,t.file,t.start,r)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){function t(n){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(n.program,n.host)}}var r;function a(n,r,a,o,l,u,d,p,m,g){void 0===m&&(m=3),void 0===g&&(g=!1);var y=n.getDeclarations();if(y&&y.length){var h=o.program.getTypeChecker(),v=e.getEmitScriptTarget(o.program.getCompilerOptions()),b=y[0],E=e.getSynthesizedDeepClone(e.getNameOfDeclaration(b),!1),T=function(n){if(4&n)return e.factory.createToken(123);if(16&n)return e.factory.createToken(122);return}(e.getEffectiveModifierFlags(b)),S=T?e.factory.createNodeArray([T]):void 0,x=h.getWidenedType(h.getTypeOfSymbolAtLocation(n,r)),L=!!(16777216&n.flags),D=!!(8388608&r.flags)||g,C=e.getQuotePreference(a,l);switch(b.kind){case 165:case 166:var A=0===C?268435456:void 0,I=h.typeToTypeNode(x,r,A,t(o));if(u)(k=f(I,v))&&(I=k.typeNode,_(u,k.symbols));d(e.factory.createPropertyDeclaration(void 0,S,E,L&&2&m?e.factory.createToken(57):void 0,I,void 0));break;case 171:case 172:var k,N=h.typeToTypeNode(x,r,void 0,t(o)),R=e.getAllAccessorDeclarations(y,b),O=R.secondAccessor?[R.firstAccessor,R.secondAccessor]:[R.firstAccessor];if(u)(k=f(N,v))&&(N=k.typeNode,_(u,k.symbols));for(var w=0,M=O;w<M.length;w++){var P=M[w];if(e.isGetAccessorDeclaration(P))d(e.factory.createGetAccessorDeclaration(void 0,S,E,e.emptyArray,N,D?void 0:p||c(C)));else{e.Debug.assertNode(P,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var F=e.getSetAccessorValueParameter(P),G=F&&e.isIdentifier(F.name)?e.idText(F.name):void 0;d(e.factory.createSetAccessorDeclaration(void 0,S,E,s(1,[G],[N],1,!1),D?void 0:p||c(C)))}}break;case 167:case 168:var B=h.getSignaturesOfType(x,0);if(!e.some(B))break;if(1===y.length){e.Debug.assert(1===B.length,"One declaration implies one signature"),j(C,B[0],S,E,D?void 0:p||c(C));break}for(var U=0,V=B;U<V.length;U++){j(C,V[U],e.getSynthesizedDeepClones(S,!1),e.getSynthesizedDeepClone(E,!1))}if(!D)if(y.length>B.length)j(C,h.getSignatureFromDeclaration(y[y.length-1]),S,E,p||c(C));else e.Debug.assert(y.length===B.length,"Declarations and signatures should match count"),d(function(n,r,a,i,o,l,u,d,p){for(var f=i[0],m=i[0].minArgumentCount,_=!1,g=0,y=i;g<y.length;g++){var h=y[g];m=Math.min(h.minArgumentCount,m),e.signatureHasRestParameter(h)&&(_=!0),h.parameters.length>=f.parameters.length&&(!e.signatureHasRestParameter(h)||e.signatureHasRestParameter(f))&&(f=h)}var v=f.parameters.length-(e.signatureHasRestParameter(f)?1:0),b=f.parameters.map((function(e){return e.name})),E=s(v,b,void 0,m,!1);if(_){var T=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),S=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),b[v]||"rest",v>=m?e.factory.createToken(57):void 0,T,void 0);E.push(S)}return function(n,t,r,a,i,o,s,l){return e.factory.createMethodDeclaration(void 0,n,void 0,t,r?e.factory.createToken(57):void 0,a,i,o,l||c(s))}(u,o,l,void 0,E,function(n,r,a,i){if(e.length(n)){var o=r.getUnionType(e.map(n,r.getReturnTypeOfSignature));return r.typeToTypeNode(o,i,void 0,t(a))}}(i,n,r,a),d,p)}(h,o,r,B,E,L&&!!(1&m),S,C,p))}}function j(e,n,t,a,s){var c=i(168,o,e,n,s,a,t,L&&!!(1&m),r,u);c&&d(c)}}function i(n,r,a,i,o,s,c,l,u,d){var p=r.program,m=p.getTypeChecker(),g=e.getEmitScriptTarget(p.getCompilerOptions()),y=1073742081|(0===a?268435456:0),h=m.signatureToSignatureDeclaration(i,n,u,y,t(r));if(h){var v=h.typeParameters,b=h.parameters,E=h.type;if(d){if(v){var T=e.sameMap(v,(function(n){var t,r=n.constraint,a=n.default;r&&((t=f(r,g))&&(r=t.typeNode,_(d,t.symbols)));a&&((t=f(a,g))&&(a=t.typeNode,_(d,t.symbols)));return e.factory.updateTypeParameterDeclaration(n,n.name,r,a)}));v!==T&&(v=e.setTextRange(e.factory.createNodeArray(T,v.hasTrailingComma),v))}var S=e.sameMap(b,(function(n){var t=f(n.type,g),r=n.type;return t&&(r=t.typeNode,_(d,t.symbols)),e.factory.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,r,n.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),E){var x=f(E,g);x&&(E=x.typeNode,_(d,x.symbols))}}var L=l?e.factory.createToken(57):void 0,D=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,E,null!==o&&void 0!==o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,E,h.equalsGreaterThanToken,null!==o&&void 0!==o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,void 0,c,D,null!==s&&void 0!==s?s:e.factory.createIdentifier(""),L,v,b,E,o):void 0}}function o(n,t,r,a,i,o,s){var c=n.typeToTypeNode(r,a,o,s);if(c&&e.isImportTypeNode(c)){var l=f(c,i);l&&(_(t,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function s(n,t,r,a,i){for(var o=[],s=0;s<n;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,t&&t[s]||"arg".concat(s),void 0!==a&&s>=a?e.factory.createToken(57):void 0,i?void 0:r&&r[s]||e.factory.createKeywordTypeNode(130),void 0);o.push(c)}return o}function c(n){return l(e.Diagnostics.Method_not_implemented.message,n)}function l(n,t){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(n,0===t)]))],!0)}function u(n,t,r){var a=e.getTsConfigObjectLiteralExpression(t);if(a){var i=p(a,"compilerOptions");if(void 0!==i){var o=i.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=r;s<c.length;s++){var l=c[s],u=l[0],f=l[1],m=p(o,u);void 0===m?n.insertNodeAtObjectStart(t,o,d(u,f)):n.replaceNode(t,m.initializer,f)}}else n.insertNodeAtObjectStart(t,a,d("compilerOptions",e.factory.createObjectLiteralExpression(r.map((function(e){return d(e[0],e[1])})),!0)))}}function d(n,t){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(n),t)}function p(n,t){return e.find(n.properties,(function(n){return e.isPropertyAssignment(n)&&!!n.name&&e.isStringLiteral(n.name)&&n.name.text===t}))}function f(n,t){var r,a=e.visitNode(n,(function n(a){var i;if(e.isLiteralImportTypeNode(a)&&a.qualifier){var o=e.getFirstIdentifier(a.qualifier),s=e.getNameForExportedSymbol(o.symbol,t),c=s!==o.text?m(a.qualifier,e.factory.createIdentifier(s)):a.qualifier;r=e.append(r,o.symbol);var l=null===(i=a.typeArguments)||void 0===i?void 0:i.map(n);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(a,n,e.nullTransformationContext)}));if(r&&a)return{typeNode:a,symbols:r}}function m(n,t){return 79===n.kind?t:e.factory.createQualifiedName(m(n.left,t),n.right)}function _(e,n){n.forEach((function(n){return e.addImportFromExportedSymbol(n,!0)}))}n.createMissingMemberNodes=function(e,n,t,r,i,o,s){for(var c=e.symbol.members,l=0,u=n;l<u.length;l++){var d=u[l];c.has(d.escapedName)||a(d,e,t,r,i,o,s,void 0)}},n.getNoopSymbolTrackerWithResolver=t,(r=n.PreserveOptionalFlags||(n.PreserveOptionalFlags={}))[r.Method=1]="Method",r[r.Property=2]="Property",r[r.All=3]="All",n.addNewNodeForMemberSymbol=a,n.createSignatureDeclarationFromSignature=i,n.createSignatureDeclarationFromCallExpression=function(n,r,a,i,u,d,p){var f=e.getQuotePreference(r.sourceFile,r.preferences),m=e.getEmitScriptTarget(r.program.getCompilerOptions()),_=t(r),g=r.program.getTypeChecker(),y=e.isInJSFile(p),h=i.typeArguments,v=i.arguments,b=i.parent,E=y?void 0:g.getContextualType(i),T=e.map(v,(function(n){return e.isIdentifier(n)?n.text:e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)?n.name.text:void 0})),S=y?[]:e.map(v,(function(e){return o(g,a,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),p,m,void 0,_)})),x=d?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(d)):void 0,L=e.isYieldExpression(b)?e.factory.createToken(41):void 0,D=y||void 0===h?void 0:e.map(h,(function(n,t){return e.factory.createTypeParameterDeclaration(84+h.length-1<=90?String.fromCharCode(84+t):"T".concat(t))})),C=s(v.length,T,S,void 0,y),A=y||void 0===E?void 0:g.typeToTypeNode(E,p,void 0,_);return 168===n?e.factory.createMethodDeclaration(void 0,x,L,u,void 0,D,C,A,e.isInterfaceDeclaration(p)?void 0:c(f)):e.factory.createFunctionDeclaration(void 0,x,L,u,D,C,A,l(e.Diagnostics.Function_not_implemented.message,f))},n.typeToAutoImportableTypeNode=o,n.createStubbedBody=l,n.setJsonCompilerOptionValues=u,n.setJsonCompilerOptionValue=function(e,n,t,r){u(e,n,[[t,r]])},n.createJsonPropertyAssignment=d,n.findJsonProperty=p,n.tryGetAutoImportableReferenceFromTypeNode=f,n.importSymbols=_}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){function t(n){return e.isParameterPropertyDeclaration(n,n.parent)||e.isPropertyDeclaration(n)||e.isPropertyAssignment(n)}function r(n,t){return e.isIdentifier(t)?e.factory.createIdentifier(n):e.factory.createStringLiteral(n)}function a(n,t,r){var a=t?r.name:e.factory.createThis();return e.isIdentifier(n)?e.factory.createPropertyAccessExpression(a,n):e.factory.createElementAccessExpression(a,e.factory.createStringLiteralFromNode(n))}function i(n,a,i,o,c){void 0===c&&(c=!0);var l=e.getTokenAtPosition(n,i),u=i===o&&c,d=e.findAncestor(l.parent,t);if(!d||!e.nodeOverlapsWithStartEnd(d.name,n,i,o)&&!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!function(n){return e.isIdentifier(n)||e.isStringLiteral(n)}(d.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!==(124|e.getEffectiveModifierFlags(d)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var p=d.name.text,f=e.startsWithUnderscore(p),m=r(f?p:e.getUniqueName("_".concat(p),n),d.name),_=r(f?e.getUniqueName(p.substring(1),n):p,d.name);return{isStatic:e.hasStaticModifier(d),isReadonly:e.hasEffectiveReadonlyModifier(d),type:s(d,a),container:163===d.kind?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:m,accessorName:_,renameAccessor:f}}function o(n,t,r,a,i){e.isParameterPropertyDeclaration(a,a.parent)?n.insertNodeAtClassStart(t,i,r):e.isPropertyAssignment(a)?n.insertNodeAfterComma(t,a,r):n.insertNodeAfter(t,a,r)}function s(n,t){var r=e.getTypeAnnotationNode(n);if(e.isPropertyDeclaration(n)&&r&&n.questionToken){var a=t.getTypeChecker(),i=a.getTypeFromTypeNode(r);if(!a.isTypeAssignableTo(a.getUndefinedType(),i)){var o=e.isUnionTypeNode(r)?r.types:[r];return e.factory.createUnionTypeNode(pa(pa([],o,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return r}n.generateAccessorFromProperty=function(n,t,r,s,c,l){var u=i(n,t,r,s);if(u&&!e.refactor.isRefactorErrorInfo(u)){var d,p,f=e.textChanges.ChangeTracker.fromContext(c),m=u.isStatic,_=u.isReadonly,g=u.fieldName,y=u.accessorName,h=u.originalName,v=u.type,b=u.container,E=u.declaration;if(e.suppressLeadingAndTrailingTrivia(g),e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(E),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var T=e.getEffectiveModifierFlags(E);if(e.isSourceFileJS(n)){var S=e.createModifiers(T);d=S,p=S}else d=e.createModifiers(function(e){e&=-65,16&(e&=-9)||(e|=4);return e}(T)),p=e.createModifiers(function(e){return e&=-5,e&=-17,e|=8}(T))}!function(n,t,r,a,i,o){e.isPropertyDeclaration(r)?function(n,t,r,a,i,o){var s=e.factory.updatePropertyDeclaration(r,r.decorators,o,i,r.questionToken||r.exclamationToken,a,r.initializer);n.replaceNode(t,r,s)}(n,t,r,a,i,o):e.isPropertyAssignment(r)?function(n,t,r,a){var i=e.factory.updatePropertyAssignment(r,a,r.initializer);n.replacePropertyAssignment(t,r,i)}(n,t,r,i):n.replaceNode(t,r,e.factory.updateParameterDeclaration(r,r.decorators,o,r.dotDotDotToken,e.cast(i,e.isIdentifier),r.questionToken,r.type,r.initializer))}(f,n,E,v,g,p);var x=function(n,t,r,i,o,s){return e.factory.createGetAccessorDeclaration(void 0,i,t,void 0,r,e.factory.createBlock([e.factory.createReturnStatement(a(n,o,s))],!0))}(g,y,v,d,m,b);if(e.suppressLeadingAndTrailingTrivia(x),o(f,n,x,E,b),_){var L=e.getFirstConstructorWithBody(b);L&&function(n,t,r,a,i){if(!r.body)return;r.body.forEachChild((function r(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===i&&e.isWriteAccess(o)&&n.replaceNode(t,o.argumentExpression,e.factory.createStringLiteral(a)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===i&&e.isWriteAccess(o)&&n.replaceNode(t,o.name,e.factory.createIdentifier(a)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(r)}))}(f,n,L,g.text,h)}else{var D=function(n,t,r,i,o,s){return e.factory.createSetAccessorDeclaration(void 0,i,t,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,r)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(a(n,o,s),e.factory.createIdentifier("value")))],!0))}(g,y,v,d,m,b);e.suppressLeadingAndTrailingTrivia(D),o(f,n,D,E,b)}return f.getChanges()}},n.getAccessorConvertiblePropertyAtPosition=i,n.getAllSupers=function(n,t){for(var r=[];n;){var a=e.getClassExtendsHeritageElement(n),i=a&&t.getSymbolAtLocation(a.expression);if(!i)break;var o=2097152&i.flags?t.getAliasedSymbol(i):i,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;r.push(s),n=s}return r}}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="invalidImportSyntax";function r(r,a,i,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return e.replaceNode(a,i,o)}));return n.createCodeFixActionWithoutFixAll(t,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function a(a,i){var o=a.program.getTypeChecker().getTypeAtLocation(i);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,function(n,t){var a=e.getSourceFileOfNode(t),i=e.getNamespaceDeclarationNode(t),o=n.program.getCompilerOptions(),s=[];return s.push(r(n,a,t,e.makeImport(i.name,void 0,t.moduleSpecifier,e.getQuotePreference(a,n.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(r(n,a,t,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i.name,e.factory.createExternalModuleReference(t.moduleSpecifier)))),s}(a,c)),e.isExpression(i)&&(!e.isNamedDeclaration(i.parent)||i.parent.name!==i)){var l=a.sourceFile,u=e.textChanges.ChangeTracker.with(a,(function(n){return n.replaceNode(l,i,e.factory.createPropertyAccessExpression(i,"default"),{})}));s.push(n.createCodeFixActionWithoutFixAll(t,u,e.Diagnostics.Use_synthetic_default_member))}return s}n.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(n){var t=n.sourceFile,r=e.Diagnostics.This_expression_is_not_callable.code===n.errorCode?207:208,i=e.findAncestor(e.getTokenAtPosition(t,n.span.start),(function(e){return e.kind===r}));if(!i)return[];var o=i.expression;return a(n,o)}}),n.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(n){var t=n.sourceFile,r=e.findAncestor(e.getTokenAtPosition(t,n.span.start),(function(e){return e.getStart()===n.span.start&&e.getEnd()===n.span.start+n.span.length}));if(!r)return[];return a(n,r)}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="strictClassInitialization",r="addMissingPropertyDefiniteAssignmentAssertions",a="addMissingPropertyUndefinedType",i="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(n,t){var r=e.getTokenAtPosition(n,t);return e.isIdentifier(r)?e.cast(r.parent,e.isPropertyDeclaration):void 0}function c(a,i){var o=e.textChanges.ChangeTracker.with(a,(function(e){return l(e,a.sourceFile,i)}));return n.createCodeFixAction(t,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,i.getText()],r,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function l(n,t,r){var a=e.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,e.factory.createToken(53),r.type,r.initializer);n.replaceNode(t,r,a)}function u(r,i){var o=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,i)}));return n.createCodeFixAction(t,o,[e.Diagnostics.Add_undefined_type_to_property_0,i.name.getText()],a,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function d(n,t,r){var a=e.factory.createKeywordTypeNode(152),i=r.type,o=e.isUnionTypeNode(i)?i.types.concat(a):[i,a];n.replaceNode(t,i,e.factory.createUnionTypeNode(o))}function p(n,t,r,a){var i=e.factory.updatePropertyDeclaration(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,a);n.replaceNode(t,r,i)}function f(e,n){return m(e,e.getTypeFromTypeNode(n.type))}function m(n,t){if(512&t.flags)return t===n.getFalseType()||t===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(t.isStringLiteral())return e.factory.createStringLiteral(t.value);if(t.isNumberLiteral())return e.factory.createNumericLiteral(t.value);if(2048&t.flags)return e.factory.createBigIntLiteral(t.value);if(t.isUnion())return e.firstDefined(t.types,(function(e){return m(n,e)}));if(t.isClass()){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);if(!r||e.hasSyntacticModifier(r,128))return;var a=e.getFirstConstructorWithBody(r);if(a&&a.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(t.symbol.name),void 0,void 0)}return n.isArrayLikeType(t)?e.factory.createArrayLiteralExpression():void 0}n.registerCodeFix({errorCodes:o,getCodeActions:function(r){var a=s(r.sourceFile,r.span.start);if(a){var o=[u(r,a),c(r,a)];return e.append(o,function(r,a){var o=f(r.program.getTypeChecker(),a);if(!o)return;var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,a,o)}));return n.createCodeFixAction(t,s,[e.Diagnostics.Add_initializer_to_property_0,a.name.getText()],i,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(r,a)),o}},fixIds:[r,a,i],getAllCodeActions:function(t){return n.codeFixAll(t,o,(function(n,o){var c=s(o.file,o.start);if(c)switch(t.fixId){case r:l(n,o.file,c);break;case a:d(n,o.file,c);break;case i:var u=f(t.program.getTypeChecker(),c);if(!u)return;p(n,o.file,c,u);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="requireInTs",r=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function a(n,t,r){var a=r.allowSyntheticDefaults,i=r.defaultImportName,o=r.namedImports,s=r.statement,c=r.required;n.replaceNode(t,s,i&&!a?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,i,o),c,void 0))}function i(n,t,r){var a=e.getTokenAtPosition(n,r).parent;if(!e.isRequireCall(a,!0))throw e.Debug.failBadSyntaxKind(a);var i=e.cast(a.parent,e.isVariableDeclaration),o=e.tryCast(i.name,e.isIdentifier),s=e.isObjectBindingPattern(i.name)?function(n){for(var t=[],r=0,a=n.elements;r<a.length;r++){var i=a[r];if(!e.isIdentifier(i.name)||i.initializer)return;t.push(e.factory.createImportSpecifier(!1,e.tryCast(i.propertyName,e.isIdentifier),i.name))}if(t.length)return e.factory.createNamedImports(t)}(i.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(t.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(i.parent.parent,e.isVariableStatement),required:e.first(a.arguments)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=i(r.sourceFile,r.program,r.span.start);if(o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Convert_require_to_import,t,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(t.file,e.program,t.start);r&&a(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="useDefaultImport",r=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function a(n,t){var r=e.getTokenAtPosition(n,t);if(e.isIdentifier(r)){var a=r.parent;if(e.isImportEqualsDeclaration(a)&&e.isExternalModuleReference(a.moduleReference))return{importNode:a,name:r,moduleSpecifier:a.moduleReference.expression};if(e.isNamespaceImport(a)){var i=a.parent.parent;return{importNode:i,name:r,moduleSpecifier:i.moduleSpecifier}}}}function i(n,t,r,a){n.replaceNode(t,r.importNode,e.makeImport(r.name,void 0,r.moduleSpecifier,e.getQuotePreference(t,a)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span.start,c=a(o,s);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c,r.preferences)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Convert_to_default_import,t,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(t.file,t.start);r&&i(n,t.file,r,e.preferences)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="useBigintLiteral",r=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function a(n,t,r){var a=e.tryCast(e.getTokenAtPosition(t,r.start),e.isNumericLiteral);if(a){var i=a.getText(t)+"n";n.replaceNode(t,a,e.factory.createBigIntLiteral(i))}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Convert_to_a_bigint_numeric_literal,t,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixAddModuleReferTypeMissingTypeof",r=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(100===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(199===r.parent.kind,"Token parent should be an ImportType"),r.parent}function i(n,t,r){var a=e.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);n.replaceNode(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_missing_typeof,t,e.Diagnostics.Add_missing_typeof)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,e.sourceFile,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function a(n,t){var r=e.getTokenAtPosition(n,t).parent.parent;if((e.isBinaryExpression(r)||(r=r.parent,e.isBinaryExpression(r)))&&e.nodeIsMissing(r.operatorToken))return r}function i(n,t,r){var a=function(n){var t=[],r=n;for(;;){if(e.isBinaryExpression(r)&&e.nodeIsMissing(r.operatorToken)&&27===r.operatorToken.kind){if(t.push(r.left),e.isJsxChild(r.right))return t.push(r.right),t;if(e.isBinaryExpression(r.right)){r=r.right;continue}return}return}}(r);a&&n.replaceNode(t,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),a,e.factory.createJsxJsxClosingFragment()))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Wrap_in_JSX_fragment,t,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(e.sourceFile,t.start);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixConvertToMappedObjectType",r=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(a.parent))return{indexSignature:a,container:e.isInterfaceDeclaration(a.parent)?a.parent:e.cast(a.parent.parent,e.isTypeAliasDeclaration)}}function i(n,t,r){var a,i,o=r.indexSignature,s=r.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter((function(n){return!e.isIndexSignatureDeclaration(n)})),l=e.first(o.parameters),u=e.factory.createTypeParameterDeclaration(e.cast(l.name,e.isIdentifier),l.type),d=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(144):void 0,u,void 0,o.questionToken,o.type,void 0),p=e.factory.createIntersectionTypeNode(pa(pa(pa([],e.getAllSuperTypeNodes(s),!0),[d],!1),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray,!0));n.replaceNode(t,s,(a=s,i=p,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,i)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)})),u=e.idText(c.container.name);return[n.createCodeFixAction(t,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],t,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="removeAccidentalCallParentheses",r=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(a){var i=e.textChanges.ChangeTracker.with(r,(function(e){e.deleteRange(r.sourceFile,{pos:a.expression.end,end:a.end})}));return[n.createCodeFixActionWithoutFixAll(t,i,e.Diagnostics.Remove_parentheses)]}},fixIds:[t]})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function a(n,t,r){var a=e.tryCast(e.getTokenAtPosition(t,r.start),(function(e){return 132===e.kind})),i=a&&e.tryCast(a.parent,e.isAwaitExpression);if(i){var o=i;if(e.isParenthesizedExpression(i.parent)){var s=e.getLeftmostExpression(i.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(i.parent.pos,t);c&&103!==c.kind&&(o=i.parent)}}n.replaceNode(t,o,i.expression)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unnecessary_await,t,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport";function a(n,t){return e.findAncestor(e.getTokenAtPosition(n,t.start),e.isImportDeclaration)}function i(n,t,r){if(t){var a=e.Debug.checkDefined(t.importClause);n.replaceNode(r.sourceFile,t,e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(a,a.isTypeOnly,a.name,void 0),t.moduleSpecifier,t.assertClause)),n.insertNodeAfter(r.sourceFile,t,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(a,a.isTypeOnly,void 0,a.namedBindings),t.moduleSpecifier,t.assertClause))}}n.registerCodeFix({errorCodes:t,fixIds:[r],getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return i(e,a(t.sourceFile,t.span),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Split_into_two_separate_import_declarations,r,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){i(n,a(e.sourceFile,t),e)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixConvertConstToLet",r=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,i=r.span,o=r.program,s=function(n,t,r){var a,i=r.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(n,t)),o=e.tryCast(null===(a=null===i||void 0===i?void 0:i.valueDeclaration)||void 0===a?void 0:a.parent,e.isVariableDeclarationList);if(void 0===o)return;var s=e.findChildOfKind(o,85,n);if(void 0===s)return;return e.createRange(s.pos,s.end)}(a,i.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return function(e,n,t){e.replaceRangeWithText(n,t,"let")}(e,a,s)}));return[n.createCodeFixAction(t,c,e.Diagnostics.Convert_const_to_let,t,e.Diagnostics.Convert_const_to_let)]}},fixIds:[t]})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="fixExpectedComma",r=[e.Diagnostics._0_expected.code];function a(n,t,r){var a=e.getTokenAtPosition(n,t);return 26===a.kind&&a.parent&&(e.isObjectLiteralExpression(a.parent)||e.isArrayLiteralExpression(a.parent))?{node:a}:void 0}function i(n,t,r){var a=r.node,i=e.factory.createToken(27);n.replaceNode(t,a,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=a(o,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,s)}));return[n.createCodeFixAction(t,c,[e.Diagnostics.Change_0_to_1,";",","],t,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(t.file,t.start,t.code);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="addVoidToPromise",r=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function a(n,t,r,a,i){var o=e.getTokenAtPosition(t,r.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=a.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null===c||void 0===c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null===i||void 0===i?void 0:i.has(l))){null===i||void 0===i||i.add(l);var u=function(n){var t;if(!e.isInJSFile(n))return n.typeArguments;if(e.isParenthesizedExpression(n.parent)){var r=null===(t=e.getJSDocTypeTag(n.parent))||void 0===t?void 0:t.typeExpression.type;if(r&&e.isTypeReferenceNode(r)&&e.isIdentifier(r.typeName)&&"Promise"===e.idText(r.typeName))return r.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);p&&n.insertText(t,d.pos,"("),n.insertText(t,d.end,p?") | void":" | void")}else{var f=s.getResolvedSignature(o.parent),m=null===f||void 0===f?void 0:f.parameters[0],_=m&&s.getTypeOfSymbolAtLocation(m,l.parent.parent);e.isInJSFile(l)?(!_||3&_.flags)&&(n.insertText(t,l.parent.parent.end,")"),n.insertText(t,e.skipTrivia(t.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!_||2&_.flags)&&n.insertText(t,l.parent.parent.expression.end,"<void>")}}}}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span,r.program)}));if(i.length>0)return[n.createCodeFixAction("addVoidToPromise",i,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,t,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(t){return n.codeFixAll(t,r,(function(n,r){return a(n,r.file,r,t.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(ha||(ha={})),function(e){!function(n){var t="Convert export",r={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function i(n,t){void 0===t&&(t=!0);var r=n.file,a=n.program,i=e.getRefactorContextSpan(n),o=e.getTokenAtPosition(r,i.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&t?o.parent:e.getParentNodeInSpan(o,r,i);if(!s||!e.isSourceFile(s.parent)&&(!e.isModuleBlock(s.parent)||!e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var d=a.getTypeChecker(),p=function(n){return e.isIdentifier(n)&&d.getSymbolAtLocation(n)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 255:case 256:case 257:case 259:case 258:case 260:if(!(_=s).name)return;return p(_.name)||{exportNode:_,exportName:_.name,wasDefault:u,exportingModuleSymbol:c};case 236:var f=s;if(!(2&f.declarationList.flags)||1!==f.declarationList.declarations.length)return;var m=e.first(f.declarationList.declarations);if(!m.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(m.name)||{exportNode:f,exportName:m.name,wasDefault:u,exportingModuleSymbol:c};case 270:var _;if((_=s).isExportEquals)return;return p(_.expression)||{exportNode:_,exportName:_.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function o(n,t){return e.factory.createImportSpecifier(!1,n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}function s(n,t){return e.factory.createExportSpecifier(!1,n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}n.registerRefactor(t,{kinds:[r.kind,a.kind],getAvailableActions:function(o){var s=i(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!n.isRefactorErrorInfo(s)){var c=s.wasDefault?r:a;return[{name:t,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:t,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[fa(fa({},r),{notApplicableReason:s.error}),fa(fa({},a),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction:function(t,c){e.Debug.assert(c===r.name||c===a.name,"Unexpected action name");var l=i(t);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,a,i){(function(n,t,r,a){var i=t.wasDefault,o=t.exportNode,c=t.exportName;if(i)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=s(l.text,l.text);r.replaceNode(n,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}else r.delete(n,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 255:case 256:case 257:r.insertNodeAfter(n,d,e.factory.createToken(88));break;case 236:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(c,a,n)&&!p.type){r.replaceNode(n,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:r.deleteModifier(n,d),r.insertNodeAfter(n,o,e.factory.createExportDefault(e.factory.createIdentifier(c.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(n,r,a,t.getTypeChecker()),function(n,t,r,a){var i=t.wasDefault,c=t.exportName,l=t.exportingModuleSymbol,u=n.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(c),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(n.getSourceFiles(),u,a,d,l,c.text,i,(function(n){var t=n.getSourceFile();i?function(n,t,r,a){var i=t.parent;switch(i.kind){case 205:r.replaceNode(n,t,e.factory.createIdentifier(a));break;case 269:case 274:var s=i;r.replaceNode(n,s,o(a,s.name.text));break;case 266:var c=i;e.Debug.assert(c.name===t,"Import clause name should match provided ref");s=o(a,t.text);var l=c.namedBindings;if(l)if(267===l.kind){r.deleteRange(n,{pos:t.getStart(n),end:l.getStart(n)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,n):1,d=e.makeImport(void 0,[o(a,t.text)],c.parent.moduleSpecifier,u);r.insertNodeAfter(n,c.parent,d)}else r.delete(n,t),r.insertNodeAtEndOfList(n,l.elements,s);else r.replaceNode(n,t,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(i)}}(t,n,r,c.text):function(n,t,r){var a=t.parent;switch(a.kind){case 205:r.replaceNode(n,t,e.factory.createIdentifier("default"));break;case 269:var i=e.factory.createIdentifier(a.name.text);1===a.parent.elements.length?r.replaceNode(n,a.parent,i):(r.delete(n,a),r.insertNodeBefore(n,a.parent,i));break;case 274:r.replaceNode(n,a,s("default",a.name.text));break;default:e.Debug.assertNever(a,"Unexpected parent kind ".concat(a.kind))}}(t,n,r)}))}(t,r,a,i)}(t.file,t.program,l,n,t.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(ha||(ha={})),function(e){!function(n){var t="Convert import",r={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function i(n,t){void 0===t&&(t=!0);var r=n.file,a=e.getRefactorContextSpan(n),i=e.getTokenAtPosition(r,a.start),o=t?e.findAncestor(i,e.isImportDeclaration):e.getParentNodeInSpan(i,r,a);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var s=a.start+a.length,c=e.findNextToken(o,o.parent,r);if(!(c&&s>c.getStart())){var l=o.importClause;return l?l.namedBindings?l.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function o(n){return e.isPropertyAccessExpression(n)?n.name:n.right}function s(n,t,r){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,t,r&&r.length?e.factory.createNamedImports(r):void 0),n.moduleSpecifier,void 0)}n.registerRefactor(t,{kinds:[r.kind,a.kind],getAvailableActions:function(o){var s=i(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!n.isRefactorErrorInfo(s)){var c=267===s.kind?r:a;return[{name:t,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:t,description:r.description,actions:[fa(fa({},r),{notApplicableReason:s.error})]},{name:t,description:a.description,actions:[fa(fa({},a),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction:function(t,c){e.Debug.assert(c===r.name||c===a.name,"Unexpected action name");var l=i(t);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,a){var i=t.getTypeChecker();267===a.kind?function(n,t,r,a,i){var c=!1,l=[],u=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(a.name,t,n,(function(n){if(e.isPropertyAccessOrQualifiedName(n.parent)){var r=o(n.parent).text;t.resolveName(r,n,67108863,!0)&&u.set(r,!0),e.Debug.assert(function(n){return e.isPropertyAccessExpression(n)?n.expression:n.left}(n.parent)===n,"Parent expression should match id"),l.push(n.parent)}else c=!0}));for(var d=new e.Map,p=0,f=l;p<f.length;p++){var m=f[p],_=o(m).text,g=d.get(_);void 0===g&&d.set(_,g=u.has(_)?e.getUniqueName(_,n):_),r.replaceNode(n,m,e.factory.createIdentifier(g))}var y=[];d.forEach((function(n,t){y.push(e.factory.createImportSpecifier(!1,n===t?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(n)))}));var h=a.parent.parent;c&&!i?r.insertNodeAfter(n,h,s(h,void 0,y)):r.replaceNode(n,h,s(h,c?e.factory.createIdentifier(a.name.text):void 0,y))}(n,i,r,a,e.getAllowSyntheticDefaultImports(t.getCompilerOptions())):function(n,t,r,a){var i=a.parent.parent,o=i.moduleSpecifier,c=new e.Set;a.elements.forEach((function(e){var n=t.getSymbolAtLocation(e.name);n&&c.add(n)}));var l=o&&e.isStringLiteral(o)?e.codefix.moduleSpecifierToValidIdentifier(o.text,99):"module";function u(r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,t,n,(function(n){var r=t.resolveName(l,n,67108863,!0);return!!r&&(!c.has(r)||e.isExportSpecifier(n.parent))}))}for(var d=a.elements.some(u)?e.getUniqueName(l,n):l,p=new e.Set,f=function(a){var i=(a.propertyName||a.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(a.name,t,n,(function(t){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(d),i);e.isShorthandPropertyAssignment(t.parent)?r.replaceNode(n,t.parent,e.factory.createPropertyAssignment(t.text,o)):e.isExportSpecifier(t.parent)?p.add(a):r.replaceNode(n,t,o)}))},m=0,_=a.elements;m<_.length;m++){f(_[m])}if(r.replaceNode(n,a,e.factory.createNamespaceImport(e.factory.createIdentifier(d))),p.size){var g=e.arrayFrom(p.values()).map((function(n){return e.factory.createImportSpecifier(n.isTypeOnly,n.propertyName&&e.factory.createIdentifier(n.propertyName.text),e.factory.createIdentifier(n.name.text))}));r.insertNodeAfter(n,a.parent.parent,s(i,void 0,g))}}(n,i,r,a)}(t.file,t.program,n,l)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Convert to optional chain expression",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),i={name:r,description:a,kind:"refactor.rewrite.expression.optionalChain"};function o(n){return e.isBinaryExpression(n)||e.isConditionalExpression(n)}function s(n){return o(n)||function(n){return e.isExpressionStatement(n)||e.isReturnStatement(n)||e.isVariableStatement(n)}(n)}function c(n,t){void 0===t&&(t=!0);var r=n.file,a=n.program,i=e.getRefactorContextSpan(n),c=0===i.length;if(!c||t){var d=e.getTokenAtPosition(r,i.start),f=e.findTokenOnLeftOfPosition(r,i.start+i.length),m=e.createTextSpanFromBounds(d.pos,f&&f.end>=d.pos?f.getEnd():d.getEnd()),_=c?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}}(d):function(e,n){for(;e.parent;){if(s(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}}(d,m),g=_&&s(_)?function(n){if(o(n))return n;if(e.isVariableStatement(n)){var t=e.getSingleVariableOfVariableStatement(n),r=null===t||void 0===t?void 0:t.initializer;return r&&o(r)?r:void 0}return n.expression&&o(n.expression)?n.expression:void 0}(_):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=a.getTypeChecker();return e.isConditionalExpression(g)?function(n,t){var r=n.condition,a=p(n.whenTrue);if(!a||t.isNullableType(t.getTypeAtLocation(a)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&u(r,a.expression))return{finalExpression:a,occurrences:[r],expression:n};if(e.isBinaryExpression(r)){var i=l(a.expression,r);return i?{finalExpression:a,occurrences:i,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(g,y):function(n){if(55!==n.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=p(n.right);if(!t)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=l(t.expression,n.left);return r?{finalExpression:t,occurrences:r,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(g)}}function l(n,t){for(var r=[];e.isBinaryExpression(t)&&55===t.operatorToken.kind;){var a=u(e.skipParentheses(n),e.skipParentheses(t.right));if(!a)break;r.push(a),n=a,t=t.left}var i=u(n,t);return i&&r.push(i),r.length>0?r:void 0}function u(n,t){if(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))return function(n,t){for(;(e.isCallExpression(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))&&d(n)!==d(t);)n=n.expression;for(;e.isPropertyAccessExpression(n)&&e.isPropertyAccessExpression(t)||e.isElementAccessExpression(n)&&e.isElementAccessExpression(t);){if(d(n)!==d(t))return!1;n=n.expression,t=t.expression}return e.isIdentifier(n)&&e.isIdentifier(t)&&n.getText()===t.getText()}(n,t)?t:void 0}function d(n){return e.isIdentifier(n)||e.isStringOrNumericLiteralLike(n)?n.getText():e.isPropertyAccessExpression(n)?d(n.name):e.isElementAccessExpression(n)?d(n.argumentExpression):void 0}function p(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)?p(n.left):(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)||e.isCallExpression(n))&&!e.isOptionalChain(n)?n:void 0}function f(n,t,r){if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t)){var a=f(n,t.expression,r),i=r.length>0?r[r.length-1]:void 0,o=(null===i||void 0===i?void 0:i.getText())===t.expression.getText();if(o&&r.pop(),e.isCallExpression(t))return o?e.factory.createCallChain(a,e.factory.createToken(28),t.typeArguments,t.arguments):e.factory.createCallChain(a,t.questionDotToken,t.typeArguments,t.arguments);if(e.isPropertyAccessExpression(t))return o?e.factory.createPropertyAccessChain(a,e.factory.createToken(28),t.name):e.factory.createPropertyAccessChain(a,t.questionDotToken,t.name);if(e.isElementAccessExpression(t))return o?e.factory.createElementAccessChain(a,e.factory.createToken(28),t.argumentExpression):e.factory.createElementAccessChain(a,t.questionDotToken,t.argumentExpression)}return t}n.registerRefactor(r,{kinds:[i.kind],getAvailableActions:function(t){var o=c(t,"invoked"===t.triggerReason);return o?n.isRefactorErrorInfo(o)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:a,actions:[fa(fa({},i),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:r,description:a,actions:[i]}]:e.emptyArray},getEditsForAction:function(t,r){var a=c(t);return e.Debug.assert(a&&!n.isRefactorErrorInfo(a),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,a,i){var o=a.finalExpression,s=a.occurrences,c=a.expression,l=s[s.length-1],u=f(t,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?r.replaceNodeRange(n,l,o,u):e.isConditionalExpression(c)&&r.replaceNode(n,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}(t.file,t.program.getTypeChecker(),n,a)})),renameFilename:void 0,renameLocation:void 0}}})})((n=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Convert overload list to single signature",a=e.Diagnostics.Convert_overload_list_to_single_signature.message,i={name:r,description:a,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function s(n,t,r){var a=e.getTokenAtPosition(n,t),i=e.findAncestor(a,o);if(i){var s=r.getTypeChecker(),c=i.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(t){return e.getSourceFileOfNode(t)===n}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(n){return!!n.typeParameters||e.some(n.parameters,(function(n){return!!n.decorators||!!n.modifiers||!e.isIdentifier(n.name)}))}))){var p=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var f=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===f})))return d}}}}}}}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(n){var t=n.file,r=n.startPosition,a=n.program,i=s(t,r,a);if(i){var o=a.getTypeChecker(),c=i[i.length-1],l=c;switch(c.kind){case 167:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(i),c.type);break;case 168:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(i),c.type,c.body);break;case 173:l=e.factory.updateCallSignature(c,c.typeParameters,u(i),c.type);break;case 170:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(i),c.body);break;case 174:l=e.factory.updateConstructSignature(c,c.typeParameters,u(i),c.type);break;case 255:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(i),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(n,(function(e){e.replaceNodeRange(t,i[0],i[i.length-1],l)}))}}function u(n){var t=n[n.length-1];return e.isFunctionLikeDeclaration(t)&&t.body&&(n=n.slice(0,n.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(n,d)))])}function d(n){var t=e.map(n.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(t),e.some(t,(function(n){return!!e.length(e.getSyntheticLeadingComments(n))}))?0:1)}function p(n){e.Debug.assert(e.isIdentifier(n.name));var t=e.setTextRange(e.factory.createNamedTupleMember(n.dotDotDotToken,n.name,n.questionToken,n.type||e.factory.createKeywordTypeNode(130)),n),r=n.symbol&&n.symbol.getDocumentationComment(o);if(r){var a=e.displayPartsToString(r);a.length&&e.setSyntheticLeadingComments(t,[{text:"*\n".concat(a.split("\n").map((function(e){return" * ".concat(e)})).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(n){var t=n.file,o=n.startPosition,c=n.program;return s(t,o,c)?[{name:r,description:a,actions:[i]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(ha||(ha={})),function(e){var n;(function(t){var r,a,i,o,s,c,l,u="Extract Symbol",d={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},p={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function f(t){var r=t.kind,a=_(t.file,e.getRefactorContextSpan(t),"invoked"===t.triggerReason),i=a.targetRange;if(void 0===i){if(!a.errors||0===a.errors.length||!t.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return n.refactorKindBeginsWith(p.kind,r)&&o.push({name:u,description:p.description,actions:[fa(fa({},p),{notApplicableReason:A(a.errors)})]}),n.refactorKindBeginsWith(d.kind,r)&&o.push({name:u,description:d.description,actions:[fa(fa({},d),{notApplicableReason:A(a.errors)})]}),o}var s=function(n,t){var r=h(n,t),a=r.scopes,i=r.readsAndWrites,o=i.functionErrorsPerScope,s=i.constantErrorsPerScope,c=a.map((function(n,t){var r,a,i=function(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}(n),c=function(n){return e.isClassLike(n)?"readonly field":"constant"}(n),l=e.isFunctionLikeDeclaration(n)?function(n){switch(n.kind){case 170:return"constructor";case 212:case 255:return n.name?"function '".concat(n.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(n.name.getText(),"'");case 171:return"'get ".concat(n.name.getText(),"'");case 172:return"'set ".concat(n.name.getText(),"'");default:throw e.Debug.assertNever(n,"Unexpected scope kind ".concat(n.kind))}}(n):e.isClassLike(n)?function(e){return 256===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(n):function(e){return 261===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}(n);return 1===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"global"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"module"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[i,l]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==t||e.isClassLike(n)||(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:a,errors:s[t]}}}));return c}(i,t);if(void 0===s)return e.emptyArray;for(var c,l,f=[],m=new e.Map,g=[],y=new e.Map,v=0,b=0,E=s;b<E.length;b++){var T=E[b],S=T.functionExtraction,x=T.constantExtraction,L=S.description;if(n.refactorKindBeginsWith(p.kind,r)&&(0===S.errors.length?m.has(L)||(m.set(L,!0),f.push({description:L,name:"function_scope_".concat(v),kind:p.kind})):c||(c={description:L,name:"function_scope_".concat(v),notApplicableReason:A(S.errors),kind:p.kind})),n.refactorKindBeginsWith(d.kind,r))if(0===x.errors.length){var D=x.description;y.has(D)||(y.set(D,!0),g.push({description:D,name:"constant_scope_".concat(v),kind:d.kind}))}else l||(l={description:L,name:"constant_scope_".concat(v),notApplicableReason:A(x.errors),kind:d.kind});v++}var C=[];return f.length?C.push({name:u,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:f}):t.preferences.provideRefactorNotApplicableReason&&c&&C.push({name:u,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[c]}),g.length?C.push({name:u,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:g}):t.preferences.provideRefactorNotApplicableReason&&l&&C.push({name:u,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[l]}),C.length?C:e.emptyArray;function A(e){var n=e[0].messageText;return"string"!==typeof n&&(n=n.messageText),n}}function m(n,t){var r=_(n.file,e.getRefactorContextSpan(n)).targetRange,i=/^function_scope_(\d+)$/.exec(t);if(i){var o=+i[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(n,t,r){var i=h(n,t),o=i.scopes,s=i.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,i,o,s){var c,l,u=r.usages,d=r.typeParameterUsages,p=r.substitutions,f=s.program.getTypeChecker(),m=e.getEmitScriptTarget(s.program.getCompilerOptions()),_=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),g=t.getSourceFile(),y=e.getUniqueName(e.isClassLike(t)?"newMethod":"newFunction",g),h=e.isInJSFile(t),S=e.factory.createIdentifier(y),x=[],D=[];u.forEach((function(n,r){var a;if(!h){var i=f.getTypeOfSymbolAtLocation(n.symbol,n.node);i=f.getBaseTypeOfLiteralType(i),a=e.codefix.typeToAutoImportableTypeNode(f,_,i,t,m,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,r,void 0,a);x.push(o),2===n.usage&&(l||(l=[])).push(n),D.push(e.factory.createIdentifier(r))}));var C=e.arrayFrom(d.values()).map((function(e){return{type:e,declaration:v(e)}})).sort(b),A=0===C.length?void 0:C.map((function(e){return e.declaration})),I=void 0!==A?A.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)})):void 0;if(e.isExpression(n)&&!h){var k=f.getContextualType(n);c=f.typeToTypeNode(k,t,1)}var N,R=function(n,t,r,a,i){var o,s=void 0!==r||t.length>0;if(e.isBlock(n)&&!s&&0===a.size)return{body:e.factory.createBlock(n.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.factory.createReturnStatement(e.skipParentheses(n))]);if(s||a.size){var u=e.visitNodes(l,p).slice();if(s&&!i&&e.isStatement(n)){var d=E(t,r);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0};function p(n){if(!c&&e.isReturnStatement(n)&&s){var i=E(t,r);return n.expression&&(o||(o="__return"),i.unshift(e.factory.createPropertyAssignment(o,e.visitNode(n.expression,p)))),1===i.length?e.factory.createReturnStatement(i[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(i))}var l=c;c=c||e.isFunctionLikeDeclaration(n)||e.isClassLike(n);var u=a.get(e.getNodeId(n).toString()),d=u?e.getSynthesizedDeepClone(u):e.visitEachChild(n,p,e.nullTransformationContext);return c=l,d}}(n,i,l,p,!!(o.facts&a.HasReturn)),O=R.body,w=R.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(O),e.isClassLike(t)){var M=h?[]:[e.factory.createModifier(121)];o.facts&a.InStaticRegion&&M.push(e.factory.createModifier(124)),o.facts&a.IsAsyncFunction&&M.push(e.factory.createModifier(131)),N=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,S,void 0,A,x,c,O)}else N=e.factory.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.factory.createToken(131)]:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,S,A,x,c,O);var P=e.textChanges.ChangeTracker.fromContext(s),F=function(n,t){return e.find(function(n){if(e.isFunctionLikeDeclaration(n)){var t=n.body;if(e.isBlock(t))return t.statements}else{if(e.isModuleBlock(n)||e.isSourceFile(n))return n.statements;if(e.isClassLike(n))return n.members;e.assertType(n)}return e.emptyArray}(t),(function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)}))}((T(o.range)?e.last(o.range):o.range).end,t);F?P.insertNodeBefore(s.file,F,N,!0):P.insertNodeAtEndOfScope(s.file,t,N),_.writeFixes(P);var G=[],B=function(n,t,r){var i=e.factory.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&a.InStaticRegion?e.factory.createIdentifier(n.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,i)}return i}(t,o,y),U=e.factory.createCallExpression(B,I,D);if(o.facts&a.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U)),o.facts&a.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U)),L(n)&&(U=e.factory.createJsxExpression(void 0,U)),i.length&&!l)if(e.Debug.assert(!w,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var V=i[0];G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),U)],V.parent.flags)))}else{for(var j=[],K=[],H=i[0].parent.flags,W=!1,z=0,J=i;z<J.length;z++){V=J[z],j.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(V.name)));var q=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(V)),t,1);K.push(e.factory.createPropertySignature(void 0,V.symbol.name,void 0,q)),W=W||void 0!==V.type,H&=V.parent.flags}var X=W?e.factory.createTypeLiteralNode(K):void 0;X&&e.setEmitFlags(X,1),G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(j),void 0,X,U)],H)))}else if(i.length||l){if(i.length)for(var Y=0,Q=i;Y<Q.length;Y++){var Z=(V=Q[Y]).parent.flags;2&Z&&(Z=-3&Z|1),G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(V.symbol.name,void 0,re(V.type))],Z)))}w&&G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(w,void 0,re(c))],1)));var $=E(i,l);w&&$.unshift(e.factory.createShorthandPropertyAssignment(w)),1===$.length?(e.Debug.assert(!w,"Shouldn't have returnValueProperty here"),G.push(e.factory.createExpressionStatement(e.factory.createAssignment($[0].name,U))),o.facts&a.HasReturn&&G.push(e.factory.createReturnStatement())):(G.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression($),U))),w&&G.push(e.factory.createReturnStatement(e.factory.createIdentifier(w))))}else o.facts&a.HasReturn?G.push(e.factory.createReturnStatement(U)):T(o.range)?G.push(e.factory.createExpressionStatement(U)):G.push(U);T(o.range)?P.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),G):P.replaceNodeWithNodes(s.file,o.range,G);var ee=P.getChanges(),ne=(T(o.range)?e.first(o.range):o.range).getSourceFile().fileName,te=e.getRenameLocation(ee,ne,y,!1);return{renameFilename:ne,renameLocation:te,edits:ee};function re(n){if(void 0!==n){for(var t=e.getSynthesizedDeepClone(n),r=t;e.isParenthesizedTypeNode(r);)r=r.type;return e.isUnionTypeNode(r)&&e.find(r.types,(function(e){return 152===e.kind}))?t:e.factory.createUnionTypeNode([t,e.factory.createKeywordTypeNode(152)])}}}(c,o[r],l[r],d,n,t)}(r,n,o)}var s=/^constant_scope_(\d+)$/.exec(t);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(n,t,r){var i=h(n,t),o=i.scopes,s=i.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.constantErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),e.Debug.assert(0===d.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,i,o){var s,c=r.substitutions,l=o.program.getTypeChecker(),u=t.getSourceFile(),d=e.getUniqueName(e.isClassLike(t)?"newProperty":"newLocal",u),p=e.isInJSFile(t),f=p||!l.isContextSensitive(n)?void 0:l.typeToTypeNode(l.getContextualType(n),t,1),m=function(n,t){return t.size?r(n):n;function r(n){var a=t.get(e.getNodeId(n).toString());return a?e.getSynthesizedDeepClone(a):e.visitEachChild(n,r,e.nullTransformationContext)}}(e.skipParentheses(n),c);s=I(f,m),f=s.variableType,m=s.initializer,e.suppressLeadingAndTrailingTrivia(m);var _=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(t)){e.Debug.assert(!p,"Cannot extract to a JS class");var g=[];g.push(e.factory.createModifier(121)),i&a.InStaticRegion&&g.push(e.factory.createModifier(124)),g.push(e.factory.createModifier(144));var h=e.factory.createPropertyDeclaration(void 0,g,d,void 0,f,m),v=e.factory.createPropertyAccessExpression(i&a.InStaticRegion?e.factory.createIdentifier(t.name.getText()):e.factory.createThis(),e.factory.createIdentifier(d));L(n)&&(v=e.factory.createJsxExpression(void 0,v));var b=function(n,t){var r,a=t.members;e.Debug.assert(a.length>0,"Found no members");for(var i=!0,o=0,s=a;o<s.length;o++){var c=s[o];if(c.pos>n)return r||a[0];if(i&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;i=!1}r=c}return void 0===r?e.Debug.fail():r}(n.pos,t);_.insertNodeBefore(o.file,b,h,!0),_.replaceNode(o.file,n,v)}else{var E=e.factory.createVariableDeclaration(d,void 0,f,m),T=function(n,t){for(var r;void 0!==n&&n!==t;){if(e.isVariableDeclaration(n)&&n.initializer===r&&e.isVariableDeclarationList(n.parent)&&n.parent.declarations.length>1)return n;r=n,n=n.parent}}(n,t);if(T)_.insertNodeBefore(o.file,T,E),v=e.factory.createIdentifier(d),_.replaceNode(o.file,n,v);else if(237===n.parent.kind&&t===e.findAncestor(n,y)){var S=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2));_.replaceNode(o.file,n.parent,S)}else S=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2)),b=function(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var a=n;a!==t;a=a.parent)y(a)&&(r=a);for(a=(r||n).parent;;a=a.parent){if(x(a)){for(var i=void 0,o=0,s=a.statements;o<s.length;o++){var c=s[o];if(c.pos>n.pos)break;i=c}return!i&&e.isCaseClause(a)?(e.Debug.assert(e.isSwitchStatement(a.parent.parent),"Grandparent isn't a switch statement"),a.parent.parent):e.Debug.checkDefined(i,"prevStatement failed to get set")}e.Debug.assert(a!==t,"Didn't encounter a block-like before encountering scope")}}(n,t),0===b.pos?_.insertNodeAtTopOfFile(o.file,S,!1):_.insertNodeBefore(o.file,b,S,!1),237===n.parent.kind?_.delete(o.file,n.parent):(v=e.factory.createIdentifier(d),L(n)&&(v=e.factory.createJsxExpression(void 0,v)),_.replaceNode(o.file,n,v))}var D=_.getChanges(),C=n.getSourceFile().fileName,A=e.getRenameLocation(D,C,d,!0);return{renameFilename:C,renameLocation:A,edits:D};function I(r,a){if(void 0===r)return{variableType:r,initializer:a};if(!e.isFunctionExpression(a)&&!e.isArrowFunction(a)||a.typeParameters)return{variableType:r,initializer:a};var i=l.getTypeAtLocation(n),o=e.singleOrUndefined(l.getSignaturesOfType(i,0));if(!o)return{variableType:r,initializer:a};if(o.getTypeParameters())return{variableType:r,initializer:a};for(var s=[],c=!1,u=0,d=a.parameters;u<d.length;u++){var p=d[u];if(p.type)s.push(p);else{var f=l.getTypeAtLocation(p);f===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type||l.typeToTypeNode(f,t,1),p.initializer))}}if(c)return{variableType:r,initializer:a};if(r=void 0,e.isArrowFunction(a))a=e.factory.updateArrowFunction(a,n.modifiers,a.typeParameters,s,a.type||l.typeToTypeNode(o.getReturnType(),t,1),a.equalsGreaterThanToken,a.body);else{if(o&&o.thisParameter){var m=e.firstOrUndefined(s);if(!m||e.isIdentifier(m.name)&&"this"!==m.name.escapedText){var _=l.getTypeOfSymbolAtLocation(o.thisParameter,n);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l.typeToTypeNode(_,t,1)))}}a=e.factory.updateFunctionExpression(a,n.modifiers,a.asteriskToken,a.name,a.typeParameters,s,a.type||l.typeToTypeNode(o.getReturnType(),t,1),a.body)}return{variableType:r,initializer:a}}}(e.isExpression(c)?c:c.statements[0].expression,o[r],l[r],n.facts,t)}(r,n,o);e.Debug.fail("Unrecognized action name")}function _(n,t,i){void 0===i&&(i=!0);var o=t.length;if(0===o&&!i)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractEmpty)]};var s=0===o&&i,c=e.findFirstNonJsxWhitespaceToken(n,t.start),l=e.findTokenOnLeftOfPosition(n,e.textSpanEnd(t)),u=c&&l&&i?function(e,n,t){var r=e.getStart(t),a=n.getEnd();return 59===t.text.charCodeAt(a)&&a++,{start:r,length:a-r}}(c,l,n):t,d=s?function(n){return e.findAncestor(n,(function(n){return n.parent&&S(n)&&!e.isBinaryExpression(n.parent)}))}(c):e.getParentNodeInSpan(c,n,u),p=s?d:e.getParentNodeInSpan(l,n,u),f=[],m=a.None;if(!d||!p)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};if(e.isJSDoc(d))return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractJSDoc)]};if(d.parent!==p.parent)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};if(d!==p){if(!x(d.parent))return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};for(var _=[],y=0,h=d.parent.statements;y<h.length;y++){var v=h[y];if(v===d||_.length){var b=L(v);if(b)return{errors:b};_.push(v)}if(v===p)break}return _.length?{targetRange:{range:_,facts:m,declarations:f}}:{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]}}if(e.isReturnStatement(d)&&!d.expression)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};var E=function(n){if(e.isReturnStatement(n)){if(n.expression)return n.expression}else if(e.isVariableStatement(n)){for(var t=0,r=void 0,a=0,i=n.declarationList.declarations;a<i.length;a++){var o=i[a];o.initializer&&(t++,r=o.initializer)}if(1===t)return r}else if(e.isVariableDeclaration(n)&&n.initializer)return n.initializer;return n}(d),T=function(n){if(e.isIdentifier(e.isExpressionStatement(n)?n.expression:n))return[e.createDiagnosticForNode(n,r.cannotExtractIdentifier)]}(E)||L(E);return T?{errors:T}:{targetRange:{range:g(E),facts:m,declarations:f}};function L(n){var i,o;if((o=i||(i={}))[o.None=0]="None",o[o.Break=1]="Break",o[o.Continue=2]="Continue",o[o.Return=4]="Return",e.Debug.assert(n.pos<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(n.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(n)&&(!e.isExpressionNode(n)||!S(n)))return[e.createDiagnosticForNode(n,r.statementOrExpressionExpected)];if(8388608&n.flags)return[e.createDiagnosticForNode(n,r.cannotExtractAmbientBlock)];var s,c=e.getContainingClass(n);c&&function(n,t){for(var r=n;r!==t;){if(166===r.kind){e.isStatic(r)&&(m|=a.InStaticRegion);break}if(163===r.kind){170===e.getContainingFunction(r).kind&&(m|=a.InStaticRegion);break}168===r.kind&&e.isStatic(r)&&(m|=a.InStaticRegion),r=r.parent}}(n,c);var l,u=4;return function n(i){if(s)return!0;if(e.isDeclaration(i)){var o=253===i.kind?i.parent.parent:i;if(e.hasSyntacticModifier(o,1))return(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractExportedEntity)),!0;f.push(i.symbol)}switch(i.kind){case 265:return(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractImport)),!0;case 270:return(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractExportedEntity)),!0;case 106:if(207===i.parent.kind){var c=e.getContainingClass(i);if(c.pos<t.start||c.end>=t.start+t.length)return(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractSuper)),!0}else m|=a.UsesThis;break;case 213:e.forEachChild(i,(function n(t){if(e.isThis(t))m|=a.UsesThis;else{if(e.isClassLike(t)||e.isFunctionLike(t)&&!e.isArrowFunction(t))return!1;e.forEachChild(t,n)}}));case 256:case 255:e.isSourceFile(i.parent)&&void 0===i.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(i,r.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var d=u;switch(i.kind){case 238:case 251:u=0;break;case 234:i.parent&&251===i.parent.kind&&i.parent.finallyBlock===i&&(u=4);break;case 289:case 288:u|=1;break;default:e.isIterationStatement(i,!1)&&(u|=3)}switch(i.kind){case 191:case 108:m|=a.UsesThis;break;case 249:var p=i.label;(l||(l=[])).push(p.escapedText),e.forEachChild(i,n),l.pop();break;case 245:case 244:(p=i.label)?e.contains(l,p.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(245===i.kind?1:2)||(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 217:m|=a.IsAsyncFunction;break;case 223:m|=a.IsGenerator;break;case 246:4&u?m|=a.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(i,n)}u=d}(n),s}}function g(n){return e.isStatement(n)?[n]:e.isExpressionNode(n)?e.isExpressionStatement(n.parent)?[n.parent]:n:void 0}function y(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function h(n,t){var i=t.file,o=function(n){var t=T(n.range)?e.first(n.range):n.range;if(n.facts&a.UsesThis){var r=e.getContainingClass(t);if(r){var i=e.findAncestor(t,e.isFunctionLikeDeclaration);return i?[i,r]:[r]}}for(var o=[];;)if(163===(t=t.parent).kind&&(t=e.findAncestor(t,(function(n){return e.isFunctionLikeDeclaration(n)})).parent),y(t)&&(o.push(t),303===t.kind))return o}(n),s=function(n,t){return T(n.range)?{pos:e.first(n.range).getStart(t),end:e.last(n.range).getEnd()}:n.range}(n,i),c=function(n,t,i,o,s,c){var l,u,d=new e.Map,p=[],f=[],m=[],_=[],g=[],y=new e.Map,h=[],v=T(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===v){var b=n.range,E=e.first(b).getStart(),S=e.last(b).end;u=e.createFileDiagnostic(o,E,S-E,r.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,r.uselessConstantType));for(var x=0,L=t;x<L.length;x++){var D=L[x];p.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),f.push(new e.Map),m.push([]);var C=[];u&&C.push(u),e.isClassLike(D)&&e.isInJSFile(D)&&C.push(e.createDiagnosticForNode(D,r.cannotExtractToJSClass)),e.isArrowFunction(D)&&!e.isBlock(D.body)&&C.push(e.createDiagnosticForNode(D,r.cannotExtractToExpressionArrowFunction)),_.push(C)}var A=new e.Map,I=T(n.range)?e.factory.createBlock(n.range):n.range,k=T(n.range)?e.first(n.range):n.range,N=j(k);if(H(I),N&&!T(n.range)&&K(s.getContextualType(n.range)),d.size>0){for(var R=new e.Map,O=0,w=k;void 0!==w&&O<t.length;w=w.parent)if(w===t[O]&&(R.forEach((function(e,n){p[O].typeParameterUsages.set(n,e)})),O++),e.isDeclarationWithTypeParameters(w))for(var M=0,P=e.getEffectiveTypeParameterDeclarations(w);M<P.length;M++){var F=P[M],G=s.getTypeAtLocation(F);d.has(G.id.toString())&&R.set(G.id.toString(),G)}e.Debug.assert(O===t.length,"Should have iterated all scopes")}if(g.length){var B=e.isBlockScope(t[0],t[0].parent)?t[0]:e.getEnclosingBlockScopeContainer(t[0]);e.forEachChild(B,J)}for(var U=function(t){var a=p[t];if(t>0&&(a.usages.size>0||a.typeParameterUsages.size>0)){var i=T(n.range)?n.range[0]:n.range;_[t].push(e.createDiagnosticForNode(i,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(p[t].usages.forEach((function(n){2===n.usage&&(s=!0,106500&n.symbol.flags&&n.symbol.valueDeclaration&&e.hasEffectiveModifier(n.symbol.valueDeclaration,64)&&(o=n.symbol.valueDeclaration))})),e.Debug.assert(T(n.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!T(n.range)){var c=e.createDiagnosticForNode(n.range,r.cannotWriteInExpression);m[t].push(c),_[t].push(c)}else o&&t>0?(c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor),m[t].push(c),_[t].push(c)):l&&(c=e.createDiagnosticForNode(l,r.cannotExtractExportedEntity),m[t].push(c),_[t].push(c))},V=0;V<t.length;V++)U(V);return{target:I,usagesPerScope:p,functionErrorsPerScope:m,constantErrorsPerScope:_,exposedVariableDeclarations:h};function j(n){return!!e.findAncestor(n,(function(n){return e.isDeclarationWithTypeParameters(n)&&0!==e.getEffectiveTypeParameterDeclarations(n).length}))}function K(e){for(var n=0,t=s.getSymbolWalker((function(){return c.throwIfCancellationRequested(),!0})).walkType(e).visitedTypes;n<t.length;n++){var r=t[n];r.isTypeParameter()&&d.set(r.id.toString(),r)}}function H(n,t){if(void 0===t&&(t=1),N&&K(s.getTypeAtLocation(n)),e.isDeclaration(n)&&n.symbol&&g.push(n),e.isAssignmentExpression(n))H(n.left,2),H(n.right);else if(e.isUnaryExpressionWithWrite(n))H(n.operand,2);else if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))e.forEachChild(n,H);else if(e.isIdentifier(n)){if(!n.parent)return;if(e.isQualifiedName(n.parent)&&n!==n.parent.left)return;if(e.isPropertyAccessExpression(n.parent)&&n!==n.parent.expression)return;W(n,t,e.isPartOfTypeNode(n))}else e.forEachChild(n,H)}function W(n,r,a){var i=z(n,r,a);if(i)for(var o=0;o<t.length;o++){var s=f[o].get(i);s&&p[o].substitutions.set(e.getNodeId(n).toString(),s)}}function z(c,l,u){var d=q(c);if(d){var g=e.getSymbolId(d).toString(),y=A.get(g);if(y&&y>=l)return g;if(A.set(g,l),y){for(var h=0,v=p;h<v.length;h++){var b=v[h];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:d,node:c})}return g}var E=d.getDeclarations(),T=E&&e.find(E,(function(e){return e.getSourceFile()===o}));if(T&&!e.rangeContainsStartEnd(i,T.getStart(),T.end)){if(n.facts&a.IsGenerator&&2===l){for(var S=e.createDiagnosticForNode(c,r.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),x=0,L=m;x<L.length;x++)L[x].push(S);for(var D=0,C=_;D<C.length;D++)C[D].push(S)}for(var I=0;I<t.length;I++){var k=t[I];if(s.resolveName(d.name,k,d.flags,!1)!==d&&!f[I].has(g)){var N=X(d.exportSymbol||d,k,u);N?f[I].set(g,N):u?262144&d.flags||(S=e.createDiagnosticForNode(c,r.typeWillNotBeVisibleInTheNewScope),m[I].push(S),_[I].push(S)):p[I].usages.set(c.text,{usage:l,symbol:d,node:c})}}return g}}}function J(t){if(!(t===n.range||T(n.range)&&n.range.indexOf(t)>=0)){var r=e.isIdentifier(t)?q(t):s.getSymbolAtLocation(t);if(r){var a=e.find(g,(function(e){return e.symbol===r}));if(a)if(e.isVariableDeclaration(a)){var i=a.symbol.id.toString();y.has(i)||(h.push(a),y.set(i,!0))}else l=l||a}e.forEachChild(t,J)}}function q(n){return n.parent&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n?s.getShorthandAssignmentValueSymbol(n.parent):s.getSymbolAtLocation(n)}function X(n,t,r){if(n){var a=n.getDeclarations();if(a&&a.some((function(e){return e.parent===t})))return e.factory.createIdentifier(n.name);var i=X(n.parent,t,r);if(void 0!==i)return r?e.factory.createQualifiedName(i,e.factory.createIdentifier(n.name)):e.factory.createPropertyAccessExpression(i,n.name)}}}(n,o,s,i,t.program.getTypeChecker(),t.cancellationToken);return{scopes:o,readsAndWrites:c}}function v(e){var n,t=e.symbol;if(t&&t.declarations)for(var r=0,a=t.declarations;r<a.length;r++){var i=a[r];(void 0===n||i.pos<n.pos)&&(n=i)}return n}function b(n,t){var r=n.type,a=n.declaration,i=t.type,o=t.declaration;return e.compareProperties(a,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",i.symbol?i.symbol.getName():"")||e.compareValues(r.id,i.id)}function E(n,t){var r=e.map(n,(function(n){return e.factory.createShorthandPropertyAssignment(n.symbol.name)})),a=e.map(t,(function(n){return e.factory.createShorthandPropertyAssignment(n.symbol.name)}));return void 0===r?a:void 0===a?r:r.concat(a)}function T(n){return e.isArray(n)}function S(e){var n=e.parent;if(297===n.kind)return!1;switch(e.kind){case 10:return 265!==n.kind&&269!==n.kind;case 224:case 200:case 202:return!1;case 79:return 202!==n.kind&&269!==n.kind&&274!==n.kind}return!0}function x(e){switch(e.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function L(n){return(e.isJsxElement(n)||e.isJsxSelfClosingElement(n)||e.isJsxFragment(n))&&(e.isJsxElement(n.parent)||e.isJsxFragment(n.parent))}n.registerRefactor(u,{kinds:[d.kind,p.kind],getAvailableActions:f,getEditsForAction:m}),t.getAvailableActions=f,t.getEditsForAction=m,function(n){function t(n){return{message:n,code:0,category:e.DiagnosticCategory.Message,key:n}}n.cannotExtractRange=t("Cannot extract range."),n.cannotExtractImport=t("Cannot extract import statement."),n.cannotExtractSuper=t("Cannot extract super call."),n.cannotExtractJSDoc=t("Cannot extract JSDoc."),n.cannotExtractEmpty=t("Cannot extract empty range."),n.expressionExpected=t("expression expected."),n.uselessConstantType=t("No reason to extract constant of type."),n.statementOrExpressionExpected=t("Statement or expression expected."),n.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),n.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),n.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),n.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),n.cannotExtractIdentifier=t("Select more than a single identifier."),n.cannotExtractExportedEntity=t("Cannot extract exported declaration"),n.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),n.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),n.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),n.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),n.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),n.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block")}(r=t.Messages||(t.Messages={})),(i=a||(a={}))[i.None=0]="None",i[i.HasReturn=1]="HasReturn",i[i.IsGenerator=2]="IsGenerator",i[i.IsAsyncFunction=4]="IsAsyncFunction",i[i.UsesThis=8]="UsesThis",i[i.InStaticRegion=16]="InStaticRegion",t.getRangeToExtract=_,(s=o||(o={}))[s.Module=0]="Module",s[s.Global=1]="Global",(l=c||(c={}))[l.Read=1]="Read",l[l.Write=2]="Write"})((n=e.refactor||(e.refactor={})).extractSymbol||(n.extractSymbol={}))}(ha||(ha={})),function(e){!function(n){var t="Extract type",r={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},a={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},i={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function o(n,t){void 0===t&&(t=!0);var r=n.file,a=n.startPosition,i=e.isSourceFileJS(r),o=e.getTokenAtPosition(r,a),l=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),u=l.pos===l.end&&t,d=e.findAncestor(o,(function(n){return n.parent&&e.isTypeNode(n)&&!c(l,n.parent,r)&&(u||e.nodeOverlapsWithStartEnd(o,r,l.pos,l.end))}));if(!d||!e.isTypeNode(d))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var p=n.program.getTypeChecker(),f=e.Debug.checkDefined(e.findAncestor(d,e.isStatement),"Should find a statement"),m=function(n,t,r,a){var i=[];return o(t)?void 0:i;function o(s){var l;if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName)){var u=n.resolveName(s.typeName.text,s.typeName,262144,!0),d=e.tryCast(null===(l=null===u||void 0===u?void 0:u.declarations)||void 0===l?void 0:l[0],e.isTypeParameterDeclaration);d&&c(r,d,a)&&!c(t,d,a)&&e.pushIfUnique(i,d)}}else if(e.isInferTypeNode(s)){var p=e.findAncestor(s,(function(n){return e.isConditionalTypeNode(n)&&c(n.extendsType,s,a)}));if(!p||!c(t,p,a))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var f=e.findAncestor(s.parent,e.isFunctionLike);if(f&&f.type&&c(f.type,s,a)&&!c(t,f,a))return!0}else if(e.isTypeQueryNode(s)){if(e.isIdentifier(s.exprName)){if((null===(u=n.resolveName(s.exprName.text,s.exprName,111551,!1))||void 0===u?void 0:u.valueDeclaration)&&c(r,u.valueDeclaration,a)&&!c(t,u.valueDeclaration,a))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!c(t,s.parent,a))return!0}return a&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(a,s.pos).line===e.getLineAndCharacterOfPosition(a,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}}(p,d,f,r);return m?{isJS:i,selection:d,firstStatement:f,typeParameters:m,typeElements:s(p,d)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function s(n,t){if(t){if(e.isIntersectionTypeNode(t)){for(var r=[],a=new e.Map,i=0,o=t.types;i<o.length;i++){var c=s(n,o[i]);if(!c||!c.every((function(n){return n.name&&e.addToSeen(a,e.getNameFromPropertyName(n.name))})))return;e.addRange(r,c)}return r}return e.isParenthesizedTypeNode(t)?s(n,t.type):e.isTypeLiteralNode(t)?t.members:void 0}}function c(n,t,r){return e.rangeContainsStartEnd(n,e.skipTrivia(r.text,t.pos),t.end)}n.registerRefactor(t,{kinds:[r.kind,a.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);return c?n.isRefactorErrorInfo(c)?s.preferences.provideRefactorNotApplicableReason?[{name:t,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[fa(fa({},i),{notApplicableReason:c.error}),fa(fa({},r),{notApplicableReason:c.error}),fa(fa({},a),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:t,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:c.isJS?[i]:e.append([r],c.typeElements&&a)}]:e.emptyArray},getEditsForAction:function(t,s){var c=t.file,l=o(t);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected to find a range to extract");var u=e.getUniqueName("NewType",c),d=e.textChanges.ChangeTracker.with(t,(function(n){switch(s){case r.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),function(n,t,r,a){var i=a.firstStatement,o=a.selection,s=a.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,r,s.map((function(n){return e.factory.updateTypeParameterDeclaration(n,n.name,n.constraint,void 0)})),o);n.insertNodeBefore(t,i,e.ignoreSourceNewlines(c),!0),n.replaceNode(t,o,e.factory.createTypeReferenceNode(r,s.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(n,c,u,l);case i.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),function(n,t,r,a){var i=a.firstStatement,o=a.selection,s=a.typeParameters,c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(r)),l=[];e.forEach(s,(function(n){var t=e.getEffectiveConstraintOfTypeParameter(n),r=e.factory.createTypeParameterDeclaration(n.name),a=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),t&&e.cast(t,e.isJSDocTypeExpression),[r]);l.push(a)})),n.insertNodeBefore(t,i,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),n.replaceNode(t,o,e.factory.createTypeReferenceNode(r,s.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)}))))}(n,c,u,l);case a.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),function(n,t,r,a){var i,o=a.firstStatement,s=a.selection,c=a.typeParameters,l=a.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,r,c,void 0,l);e.setTextRange(u,null===(i=l[0])||void 0===i?void 0:i.parent),n.insertNodeBefore(t,o,e.ignoreSourceNewlines(u),!0),n.replaceNode(t,s,e.factory.createTypeReferenceNode(r,c.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(n,c,u,l);default:e.Debug.fail("Unexpected action name")}})),p=c.fileName;return{edits:d,renameFilename:p,renameLocation:e.getRenameLocation(d,p,u,!1)}}})}(e.refactor||(e.refactor={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Generate 'get' and 'set' accessors",a=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:a,kind:"refactor.rewrite.property.generateAccessors"};n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(t,r){if(t.endPosition){var a=e.codefix.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);e.Debug.assert(a&&!n.isRefactorErrorInfo(a),"Expected applicable refactor info");var i=e.codefix.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(i){var o=t.file.fileName,s=a.renameAccessor?a.accessorName:a.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(i,o,s.text,e.isParameter(a.declaration)),edits:i}}}},getAvailableActions:function(t){if(!t.endPosition)return e.emptyArray;var o=e.codefix.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,"invoked"===t.triggerReason);return o?n.isRefactorErrorInfo(o)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:a,actions:[fa(fa({},i),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:r,description:a,actions:[i]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(n.generateGetAccessorAndSetAccessor={}))}(ha||(ha={})),function(e){var n;(n=e.refactor||(e.refactor={})).isRefactorErrorInfo=function(e){return void 0!==e.error},n.refactorKindBeginsWith=function(e,n){return!n||e.substr(0,n.length)===n}}(ha||(ha={})),function(e){!function(n){var t="Move to a new file",r=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),a={name:t,description:r,kind:"refactor.move.newFile"};function i(n){var t=function(n){var t=n.file,r=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),a=t.statements,i=e.findIndex(a,(function(e){return e.end>r.pos}));if(-1!==i){var o=a[i];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[a[i]],afterLast:a[i+1]};if(!(r.pos>o.getStart(t))){var s=e.findIndex(a,(function(e){return e.end>r.end}),i);if(-1===s||!(0===s||a[s].getStart(t)<r.end))return{toMove:a.slice(i,-1===s?a.length:s),afterLast:-1===s?void 0:a[s]}}}}(n);if(void 0!==t){var r=[],a=[],i=t.toMove,s=t.afterLast;return e.getRangesWhere(i,o,(function(e,n){for(var t=e;t<n;t++)r.push(i[t]);a.push({first:i[e],afterLast:s})})),0===r.length?void 0:{all:r,ranges:a}}}function o(n){return!function(n){switch(n.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(n,1);case 236:return n.declarationList.declarations.every((function(n){return!!n.initializer&&e.isRequireCall(n.initializer,!0)}));default:return!1}}(n)&&!e.isPrologueDirective(n)}function s(e,n,t){for(var r=0,a=n;r<a.length;r++){var i=a[r],o=i.first,s=i.afterLast;t.deleteNodeRangeExcludingEnd(e,o,s)}}function c(e){return 265===e.kind?e.moduleSpecifier:264===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function l(n,t){if(e.isImportDeclaration(n))e.isStringLiteral(n.moduleSpecifier)&&t(n);else if(e.isImportEqualsDeclaration(n))e.isExternalModuleReference(n.moduleReference)&&e.isStringLiteralLike(n.moduleReference.expression)&&t(n);else if(e.isVariableStatement(n))for(var r=0,a=n.declarationList.declarations;r<a.length;r++){var i=a[r];i.initializer&&e.isRequireCall(i.initializer,!0)&&t(i)}}function u(n,t,r,a,i){if(r=e.ensurePathIsNonModuleName(r),a){var o=t.map((function(n){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(n))}));return e.makeImportIfNecessary(n,o,r,i)}e.Debug.assert(!n,"No default import should exist");var s=t.map((function(n){return e.factory.createBindingElement(void 0,void 0,n)}));return s.length?d(e.factory.createObjectBindingPattern(s),void 0,p(e.factory.createStringLiteral(r))):void 0}function d(n,t,r,a){return void 0===a&&(a=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(n,void 0,t,r)],a))}function p(n){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[n])}function f(n,t,r,a){switch(t.kind){case 265:!function(n,t,r,a){if(!t.importClause)return;var i=t.importClause,o=i.name,s=i.namedBindings,c=!o||a(o),l=!s||(267===s.kind?a(s.name):0!==s.elements.length&&s.elements.every((function(e){return a(e.name)})));if(c&&l)r.delete(n,t);else if(o&&c&&r.delete(n,o),s)if(l)r.replaceNode(n,t.importClause,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(268===s.kind)for(var u=0,d=s.elements;u<d.length;u++){var p=d[u];a(p.name)&&r.delete(n,p)}}(n,t,r,a);break;case 264:a(t.name)&&r.delete(n,t);break;case 253:!function(n,t,r,a){var i=t.name;switch(i.kind){case 79:a(i)&&r.delete(n,i);break;case 201:break;case 200:if(i.elements.every((function(n){return e.isIdentifier(n.name)&&a(n.name)})))r.delete(n,e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(var o=0,s=i.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&a(c.name)&&r.delete(n,c.name)}}}(n,t,r,a);break;default:e.Debug.assertNever(t,"Unexpected import decl kind ".concat(t.kind))}}function m(n){switch(n.kind){case 264:case 269:case 266:case 267:return!0;case 253:return _(n);case 202:return e.isVariableDeclaration(n.parent.parent)&&_(n.parent.parent);default:return!1}}function _(n){return e.isSourceFile(n.parent.parent.parent)&&!!n.initializer&&e.isRequireCall(n.initializer,!0)}function g(n,t,r){switch(n.kind){case 265:var a=n.importClause;if(!a)return;var i=a.name&&r(a.name)?a.name:void 0,o=a.namedBindings&&function(n,t){if(267===n.kind)return t(n.name)?n:void 0;var r=n.elements.filter((function(e){return t(e.name)}));return r.length?e.factory.createNamedImports(r):void 0}(a.namedBindings,r);return i||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,i,o),t,void 0):void 0;case 264:return r(n.name)?n:void 0;case 253:var s=function(n,t){switch(n.kind){case 79:return t(n)?n:void 0;case 201:return n;case 200:var r=n.elements.filter((function(n){return n.propertyName||!e.isIdentifier(n.name)||t(n.name)}));return r.length?e.factory.createObjectBindingPattern(r):void 0}}(n.name,r);return s?d(s,n.type,p(t),n.parent.flags):void 0;default:return e.Debug.assertNever(n,"Unexpected import kind ".concat(n.kind))}}function y(n,t,r){n.forEachChild((function n(a){if(e.isIdentifier(a)&&!e.isDeclarationName(a)){var i=t.getSymbolAtLocation(a);i&&r(i)}else a.forEachChild(n)}))}n.registerRefactor(t,{kinds:[a.kind],getAvailableActions:function(n){var o=i(n);return n.preferences.allowTextChangesInNewFiles&&o?[{name:t,description:r,actions:[a]}]:n.preferences.provideRefactorNotApplicableReason?[{name:t,description:r,actions:[fa(fa({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(n,r){e.Debug.assert(r===t,"Wrong refactor invoked");var a=e.Debug.checkDefined(i(n)),o=e.textChanges.ChangeTracker.with(n,(function(t){return function(n,t,r,a,i,o){var d=t.getTypeChecker(),_=function(n,t,r){var a=new h,i=new h,o=new h,s=S(e.find(t,(function(e){return!!(2&e.transformFlags)})));s&&i.add(s);for(var c=0,l=t;c<l.length;c++){T(E=l[c],(function(n){a.add(e.Debug.checkDefined(e.isExpressionStatement(n)?r.getSymbolAtLocation(n.expression.left):n.symbol,"Need a symbol here"))}))}for(var u=0,d=t;u<d.length;u++){y(E=d[u],r,(function(e){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var s=r[t];m(s)?i.add(e):v(s)&&b(s)===n&&!a.has(e)&&o.add(e)}}))}for(var p=i.clone(),f=new h,_=0,g=n.statements;_<g.length;_++){var E=g[_];e.contains(t,E)||(s&&2&E.transformFlags&&p.delete(s),y(E,r,(function(e){a.has(e)&&f.add(e),p.delete(e)})))}return{movedSymbols:a,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:f,oldImportsNeededByNewFile:i,unusedImportsFromOldFile:p};function S(n){if(void 0!==n){var t=r.getJsxNamespace(n),a=r.resolveName(t,n,1920,!0);return a&&e.some(a.declarations,m)?a:void 0}}}(n,r.all,d),S=e.getDirectoryPath(n.fileName),N=e.extensionFromPath(n.fileName),R=function(n,t,r,a){for(var i=n,o=1;;o++){var s=e.combinePaths(r,i+t);if(!a.fileExists(s))return i;i="".concat(n,".").concat(o)}}((w=_.movedSymbols,w.forEachEntry(e.symbolNameNoDefault)||"newFile"),N,S,i),O=R+N;var w;a.createNewFile(n,e.combinePaths(S,O),function(n,t,r,a,i,o,d){var m=i.getTypeChecker(),_=e.takeWhile(n.statements,e.isPrologueDirective);if(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)return s(n,a.ranges,r),pa(pa([],_,!0),a.all,!0);var y=!!n.externalModuleIndicator,h=e.getQuotePreference(n,d),b=function(n,t,r,a){var i,o=[];return n.forEach((function(n){"default"===n.escapedName?i=e.factory.createIdentifier(e.symbolNameNoDefault(n)):o.push(n.name)})),u(i,o,t,r,a)}(t.oldFileImportsFromNewFile,o,y,h);b&&e.insertImports(r,n,b,!0);(function(n,t,r,a,i){for(var o=0,s=n.statements;o<s.length;o++){var c=s[o];e.contains(t,c)||l(c,(function(e){return f(n,e,r,(function(e){return a.has(i.getSymbolAtLocation(e))}))}))}})(n,a.all,r,t.unusedImportsFromOldFile,m),s(n,a.ranges,r),function(n,t,r,a,i){for(var o=t.getTypeChecker(),s=function(t){if(t===r)return"continue";for(var s=function(s){l(s,(function(l){if(o.getSymbolAtLocation(c(l))===r.symbol){var u=function(n){var t=e.isBindingElement(n.parent)?e.getPropertySymbolFromBindingElement(o,n.parent):e.skipAlias(o.getSymbolAtLocation(n),o);return!!t&&a.has(t)};f(t,l,n,u);var d=e.combinePaths(e.getDirectoryPath(c(l).text),i),m=g(l,e.factory.createStringLiteral(d),u);m&&n.insertNodeAfter(t,s,m);var _=function(n){switch(n.kind){case 265:return n.importClause&&n.importClause.namedBindings&&267===n.importClause.namedBindings.kind?n.importClause.namedBindings.name:void 0;case 264:return n.name;case 253:return e.tryCast(n.name,e.isIdentifier);default:return e.Debug.assertNever(n,"Unexpected node kind ".concat(n.kind))}}(l);_&&function(n,t,r,a,i,o,s,c){var l=e.codefix.moduleSpecifierToValidIdentifier(i,99),u=!1,d=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,r,t,(function(n){e.isPropertyAccessExpression(n.parent)&&(u=u||!!r.resolveName(l,n,67108863,!0),a.has(r.getSymbolAtLocation(n.parent.name))&&d.push(n))})),d.length){for(var f=u?e.getUniqueName(l,t):l,m=0,_=d;m<_.length;m++){var g=_[m];n.replaceNode(t,g,e.factory.createIdentifier(f))}n.insertNodeAfter(t,c,function(n,t,r){var a=e.factory.createIdentifier(t),i=e.factory.createStringLiteral(r);switch(n.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(a)),i,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a,e.factory.createExternalModuleReference(i));case 253:return e.factory.createVariableDeclaration(a,void 0,void 0,p(i));default:return e.Debug.assertNever(n,"Unexpected node kind ".concat(n.kind))}}(c,i,o))}}(n,t,o,a,i,d,_,l)}}))},u=0,d=t.statements;u<d.length;u++){s(d[u])}},u=0,d=t.getSourceFiles();u<d.length;u++){s(d[u])}}(r,i,n,t.movedSymbols,o);var S=function(n,t,r,a,i,o,s){for(var d,p=[],f=0,m=n.statements;f<m.length;f++){l(m[f],(function(n){e.append(p,g(n,c(n),(function(e){return t.has(i.getSymbolAtLocation(e))})))}))}var _=[],y=e.nodeSeenTracker();return r.forEach((function(t){if(t.declarations)for(var r=0,i=t.declarations;r<i.length;r++){var s=i[r];if(v(s)){var c=x(s);if(c){var l=L(s);y(l)&&D(n,l,c,a,o),e.hasSyntacticModifier(s,512)?d=c:_.push(c.text)}}}})),e.append(p,u(d,_,e.removeFileExtension(e.getBaseFileName(n.fileName)),o,s)),p}(n,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,m,y,h),N=function(n,t,r,a){return e.flatMap(t,(function(t){if(o=t,e.Debug.assert(e.isSourceFile(o.parent),"Node parent should be a SourceFile"),(E(o)||e.isVariableStatement(o))&&!C(n,t,a)&&T(t,(function(n){return r.has(e.Debug.checkDefined(n.symbol))}))){var i=function(e,n){return n?[A(e)]:function(e){return pa([e],I(e).map(k),!0)}(e)}(t,a);if(i)return i}var o;return t}))}(n,a.all,t.oldFileImportsFromNewFile,y);if(S.length&&N.length)return pa(pa(pa(pa([],_,!0),S,!0),[4],!1),N,!0);return pa(pa(pa([],_,!0),S,!0),N,!0)}(n,_,a,r,t,R,o)),function(n,t,r,a,i){var o=n.getCompilerOptions().configFile;if(!o)return;var s=e.normalizePath(e.combinePaths(r,"..",a)),c=e.getRelativePathFromFile(o.fileName,s,i),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),u=l&&e.find(l.properties,(function(n){return e.isPropertyAssignment(n)&&e.isStringLiteral(n.name)&&"files"===n.name.text}));u&&e.isArrayLiteralExpression(u.initializer)&&t.insertNodeInListAfter(o,e.last(u.initializer.elements),e.factory.createStringLiteral(c),u.initializer.elements)}(t,a,n.fileName,O,e.hostGetCanonicalFileName(i))}(n.file,n.program,a,t,n.host,n.preferences)}));return{edits:o,renameFilename:void 0,renameLocation:void 0}}});var h=function(){function n(){this.map=new e.Map}return n.prototype.add=function(n){this.map.set(String(e.getSymbolId(n)),n)},n.prototype.has=function(n){return this.map.has(String(e.getSymbolId(n)))},n.prototype.delete=function(n){this.map.delete(String(e.getSymbolId(n)))},n.prototype.forEach=function(e){this.map.forEach(e)},n.prototype.forEachEntry=function(n){return e.forEachEntry(this.map,n)},n.prototype.clone=function(){var t=new n;return e.copyEntries(this.map,t.map),t},n}();function v(n){return E(n)&&e.isSourceFile(n.parent)||e.isVariableDeclaration(n)&&e.isSourceFile(n.parent.parent.parent)}function b(n){return e.isVariableDeclaration(n)?n.parent.parent.parent:n.parent}function E(e){switch(e.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function T(n,t){switch(n.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return t(n);case 236:return e.firstDefined(n.declarationList.declarations,(function(e){return S(e.name,t)}));case 237:var r=n.expression;return e.isBinaryExpression(r)&&1===e.getAssignmentDeclarationKind(r)?t(n):void 0}}function S(n,t){switch(n.kind){case 79:return t(e.cast(n.parent,(function(n){return e.isVariableDeclaration(n)||e.isBindingElement(n)})));case 201:case 200:return e.firstDefined(n.elements,(function(n){return e.isOmittedExpression(n)?void 0:S(n.name,t)}));default:return e.Debug.assertNever(n,"Unexpected name kind ".concat(n.kind))}}function x(n){return e.isExpressionStatement(n)?e.tryCast(n.expression.left.name,e.isIdentifier):e.tryCast(n.name,e.isIdentifier)}function L(n){switch(n.kind){case 253:return n.parent.parent;case 202:return L(e.cast(n.parent.parent,(function(n){return e.isVariableDeclaration(n)||e.isBindingElement(n)})));default:return n}}function D(n,t,r,a,i){if(!C(n,t,i,r))if(i)e.isExpressionStatement(t)||a.insertExportModifier(n,t);else{var o=I(t);0!==o.length&&a.insertNodesAfter(n,t,o.map(k))}}function C(n,t,r,a){var i;return r?!e.isExpressionStatement(t)&&e.hasSyntacticModifier(t,1)||!(!a||!(null===(i=n.symbol.exports)||void 0===i?void 0:i.has(a.escapedText))):I(t).some((function(t){return n.symbol.exports.has(e.escapeLeadingUnderscores(t))}))}function A(n){var t=e.concatenate([e.factory.createModifier(93)],n.modifiers);switch(n.kind){case 255:return e.factory.updateFunctionDeclaration(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);case 256:return e.factory.updateClassDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members);case 236:return e.factory.updateVariableStatement(n,t,n.declarationList);case 260:return e.factory.updateModuleDeclaration(n,n.decorators,t,n.name,n.body);case 259:return e.factory.updateEnumDeclaration(n,n.decorators,t,n.name,n.members);case 258:return e.factory.updateTypeAliasDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.type);case 257:return e.factory.updateInterfaceDeclaration(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members);case 264:return e.factory.updateImportEqualsDeclaration(n,n.decorators,t,n.isTypeOnly,n.name,n.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(n,"Unexpected declaration kind ".concat(n.kind))}}function I(n){switch(n.kind){case 255:case 256:return[n.name.text];case 236:return e.mapDefined(n.declarationList.declarations,(function(n){return e.isIdentifier(n.name)?n.name.text:void 0}));case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(n,"Unexpected decl kind ".concat(n.kind))}}function k(n){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(n)),63,e.factory.createIdentifier(n)))}}(e.refactor||(e.refactor={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Add or remove braces in an arrow function",a=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,i={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},o={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function s(t,r,a,s){void 0===a&&(a=!0);var c=e.getTokenAtPosition(t,r),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||a)){if(n.refactorKindBeginsWith(i.kind,s)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(n.refactorKindBeginsWith(o.kind,s)&&e.isBlock(l.body)&&1===l.body.statements.length){var u=e.first(l.body.statements);if(e.isReturnStatement(u))return{func:l,addBraces:!1,expression:u.expression,returnStatement:u}}}}n.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(t,r){var a=t.file,c=t.startPosition,l=s(a,c);e.Debug.assert(l&&!n.isRefactorErrorInfo(l),"Expected applicable refactor info");var u,d=l.expression,p=l.returnStatement,f=l.func;if(r===i.name){var m=e.factory.createReturnStatement(d);u=e.factory.createBlock([m],!0),e.copyLeadingComments(d,m,a,3,!0)}else if(r===o.name&&p){var _=d||e.factory.createVoidZero();u=e.needsParentheses(_)?e.factory.createParenthesizedExpression(_):_,e.copyTrailingAsLeadingComments(p,u,a,3,!1),e.copyLeadingComments(p,u,a,3,!1),e.copyTrailingComments(p,u,a,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNode(a,f.body,u)}))}},getAvailableActions:function(t){var c=t.file,l=t.startPosition,u=t.triggerReason,d=s(c,l,"invoked"===u);return d?n.isRefactorErrorInfo(d)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:a,actions:[fa(fa({},i),{notApplicableReason:d.error}),fa(fa({},o),{notApplicableReason:d.error})]}]:e.emptyArray:[{name:r,description:a,actions:[d.addBraces?i:o]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Convert parameters to destructured object",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),i={name:r,description:a,kind:"refactor.rewrite.parameters.toDestructured"};function o(n,t){var r=e.getContainingObjectLiteralElement(n);if(r){var a=t.getContextualTypeForObjectLiteralElement(r),i=null===a||void 0===a?void 0:a.getSymbol();if(i&&!(6&e.getCheckFlags(i)))return i}}function s(n){var t=n.node;return e.isImportSpecifier(t.parent)||e.isImportClause(t.parent)||e.isImportEqualsDeclaration(t.parent)||e.isNamespaceImport(t.parent)||e.isExportSpecifier(t.parent)||e.isExportAssignment(t.parent)?t:void 0}function c(n){if(e.isDeclaration(n.node.parent))return n.node}function l(n){if(n.node.parent){var t=n.node,r=t.parent;switch(r.kind){case 207:case 208:var a=e.tryCast(r,e.isCallOrNewExpression);if(a&&a.expression===t)return a;break;case 205:var i=e.tryCast(r,e.isPropertyAccessExpression);if(i&&i.parent&&i.name===t){var o=e.tryCast(i.parent,e.isCallOrNewExpression);if(o&&o.expression===i)return o}break;case 206:var s=e.tryCast(r,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===t){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function u(n){if(n.node.parent){var t=n.node,r=t.parent;switch(r.kind){case 205:var a=e.tryCast(r,e.isPropertyAccessExpression);if(a&&a.expression===t)return a;break;case 206:var i=e.tryCast(r,e.isElementAccessExpression);if(i&&i.expression===t)return i}}}function d(n){var t=n.node;if(2===e.getMeaningFromLocation(t)||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent))return t}function p(n,t,r){var a=e.getTouchingToken(n,t),i=e.getContainingFunctionDeclaration(a);if(!function(n){var t=e.findAncestor(n,e.isJSDocNode);if(t){var r=e.findAncestor(t,(function(n){return!e.isJSDocNode(n)}));return!!r&&e.isFunctionLikeDeclaration(r)}return!1}(a))return!(i&&function(n,t){var r;if(!function(n,t){return function(e){return y(e)?e.length-1:e.length}(n)>=2&&e.every(n,(function(n){return function(n,t){if(e.isRestParameter(n)){var r=t.getTypeAtLocation(n);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!n.modifiers&&!n.decorators&&e.isIdentifier(n.name)}(n,t)}))}(n.parameters,t))return!1;switch(n.kind){case 255:return _(n)&&m(n,t);case 168:if(e.isObjectLiteralExpression(n.parent)){var a=o(n.name,t);return 1===(null===(r=null===a||void 0===a?void 0:a.declarations)||void 0===r?void 0:r.length)&&m(n,t)}return m(n,t);case 170:return e.isClassDeclaration(n.parent)?_(n.parent)&&m(n,t):g(n.parent.parent)&&m(n,t);case 212:case 213:return g(n.parent)}return!1}(i,r)&&e.rangeContainsRange(i,a))||i.body&&e.rangeContainsRange(i.body,a)?void 0:i}function f(n){return e.isMethodSignature(n)&&(e.isInterfaceDeclaration(n.parent)||e.isTypeLiteralNode(n.parent))}function m(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function _(n){return!!n.name||!!e.findModifier(n,88)}function g(n){return e.isVariableDeclaration(n)&&e.isVarConst(n)&&e.isIdentifier(n.name)&&!n.type}function y(n){return n.length>0&&e.isThis(n[0].name)}function h(n){return y(n)&&(n=e.factory.createNodeArray(n.slice(1),n.hasTrailingComma)),n}function v(n,t){var r=h(n.parameters),a=e.isRestParameter(e.last(r)),i=a?t.slice(0,r.length-1):t,o=e.map(i,(function(n,t){var a,i,o=E(r[t]),s=(a=o,i=n,e.isIdentifier(i)&&e.getTextOfIdentifierOrLiteral(i)===a?e.factory.createShorthandPropertyAssignment(a):e.factory.createPropertyAssignment(a,i));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),e.copyComments(n,s),s}));if(a&&t.length>=r.length){var s=t.slice(r.length-1),c=e.factory.createPropertyAssignment(E(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(n,t,r){var a,i=t.getTypeChecker(),o=h(n.parameters),s=e.map(o,(function(n){var t=e.factory.createBindingElement(void 0,void 0,E(n),e.isRestParameter(n)&&m(n)?e.factory.createArrayLiteralExpression():n.initializer);return e.suppressLeadingAndTrailingTrivia(t),n.initializer&&t.initializer&&e.copyComments(n.initializer,t.initializer),t})),c=e.factory.createObjectBindingPattern(s),l=function(n){var t=e.map(n,f);return e.addEmitFlags(e.factory.createTypeLiteralNode(t),1)}(o);e.every(o,m)&&(a=e.factory.createObjectLiteralExpression());var u=e.factory.createParameterDeclaration(void 0,void 0,void 0,c,void 0,l,a);if(y(n.parameters)){var d=n.parameters[0],p=e.factory.createParameterDeclaration(void 0,void 0,void 0,d.name,void 0,d.type);return e.suppressLeadingAndTrailingTrivia(p.name),e.copyComments(d.name,p.name),d.type&&(e.suppressLeadingAndTrailingTrivia(p.type),e.copyComments(d.type,p.type)),e.factory.createNodeArray([p,u])}return e.factory.createNodeArray([u]);function f(n){var a=n.type;a||!n.initializer&&!e.isRestParameter(n)||(a=function(n){var a=i.getTypeAtLocation(n);return e.getTypeNodeIfAccessible(a,n,t,r)}(n));var o=e.factory.createPropertySignature(void 0,E(n),m(n)?e.factory.createToken(57):n.questionToken,a);return e.suppressLeadingAndTrailingTrivia(o),e.copyComments(n.name,o.name),n.type&&o.type&&e.copyComments(n.type,o.type),o}function m(n){if(e.isRestParameter(n)){var t=i.getTypeAtLocation(n);return!i.isTupleType(t)}return i.isOptionalParameter(n)}}function E(n){return e.getTextOfIdentifierOrLiteral(n.name)}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(n,t){e.Debug.assert(t===r,"Unexpected action name");var a=n.file,i=n.startPosition,m=n.program,_=n.cancellationToken,g=n.host,y=p(a,i,m.getTypeChecker());if(y&&_){var h=function(n,t,r){var a=function(n){switch(n.kind){case 255:return n.name?[n.name]:[e.Debug.checkDefined(e.findModifier(n,88),"Nameless function declaration should be a default export")];case 168:return[n.name];case 170:var t=e.Debug.checkDefined(e.findChildOfKind(n,134,n.getSourceFile()),"Constructor declaration should have constructor keyword");return 225===n.parent.kind?[n.parent.parent.name,t]:[t];case 213:return[n.parent.name];case 212:return n.name?[n.name,n.parent.name]:[n.parent.name];default:return e.Debug.assertNever(n,"Unexpected function declaration kind ".concat(n.kind))}}(n),i=e.isConstructorDeclaration(n)?function(n){switch(n.parent.kind){case 256:var t=n.parent;return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless class declaration should be a default export")];case 225:var r=n.parent,a=n.parent.parent,i=r.name;return i?[i,a.name]:[a.name]}}(n):[],p=e.deduplicate(pa(pa([],a,!0),i,!0),e.equateValues),m=t.getTypeChecker(),_=g(e.flatMap(p,(function(n){return e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r)})));return e.every(_.declarations,(function(n){return e.contains(p,n)}))||(_.valid=!1),_;function g(t){for(var r={accessExpressions:[],typeUsages:[]},p={functionCalls:[],declarations:[],classReferences:r,valid:!0},_=e.map(a,y),g=e.map(i,y),h=e.isConstructorDeclaration(n),v=e.map(a,(function(e){return o(e,m)})),b=0,E=t;b<E.length;b++){var T=E[b];if(0!==T.kind){if(e.contains(v,y(T.node))){if(f(T.node.parent)){p.signature=T.node.parent;continue}if(x=l(T)){p.functionCalls.push(x);continue}}var S=o(T.node,m);if(S&&e.contains(v,S)&&(L=c(T))){p.declarations.push(L);continue}if(e.contains(_,y(T.node))||e.isNewExpressionTarget(T.node)){var x;if(s(T))continue;if(L=c(T)){p.declarations.push(L);continue}if(x=l(T)){p.functionCalls.push(x);continue}}if(h&&e.contains(g,y(T.node))){var L;if(s(T))continue;if(L=c(T)){p.declarations.push(L);continue}var D=u(T);if(D){r.accessExpressions.push(D);continue}if(e.isClassDeclaration(n.parent)){var C=d(T);if(C){r.typeUsages.push(C);continue}}}p.valid=!1}else p.valid=!1}return p}function y(n){var t=m.getSymbolAtLocation(n);return t&&e.getSymbolTarget(t,m)}}(y,m,_);if(h.valid){var E=e.textChanges.ChangeTracker.with(n,(function(n){return function(n,t,r,a,i,o){var s=o.signature,c=e.map(b(i,t,r),(function(n){return e.getSynthesizedDeepClone(n)}));s&&m(s,e.map(b(s,t,r),(function(n){return e.getSynthesizedDeepClone(n)}))),m(i,c);for(var l=e.sortAndDeduplicate(o.functionCalls,(function(n,t){return e.compareValues(n.pos,t.pos)})),u=0,d=l;u<d.length;u++){var p=d[u];if(p.arguments&&p.arguments.length){var f=e.getSynthesizedDeepClone(v(i,p.arguments),!0);a.replaceNodeRange(e.getSourceFileOfNode(p),e.first(p.arguments),e.last(p.arguments),f,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function m(t,r){a.replaceNodeRangeWithNodes(n,e.first(t.parameters),e.last(t.parameters),r,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}(a,m,g,n,y,h)}));return{renameFilename:void 0,renameLocation:void 0,edits:E}}return{edits:[]}}},getAvailableActions:function(n){var t=n.file,o=n.startPosition;return e.isSourceFileJS(t)?e.emptyArray:p(t,o,n.program.getTypeChecker())?[{name:r,description:a,actions:[i]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(n.convertParamsToDestructuredObject={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Convert to template string",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),i={name:r,description:a,kind:"refactor.rewrite.string"};function o(n,t){var r=e.getTokenAtPosition(n,t),a=c(r);return!l(a).isValidConcatenation&&e.isParenthesizedExpression(a.parent)&&e.isBinaryExpression(a.parent.parent)?a.parent.parent:r}function s(n,t){var r=c(t),a=n.file,i=function(n,t){var r=n.nodes,a=n.operators,i=function(n,t){return function(r,a){r<n.length&&e.copyTrailingComments(n[r],a,t,3,!1)}}(a,t),o=function(n,t,r){return function(a,i){for(;a.length>0;){var o=a.shift();e.copyTrailingComments(n[o],i,t,3,!1),r(o,i)}}}(r,t,i),s=d(0,r),c=s[0],l=s[1],f=s[2],m=s[3];if(c===r.length){var _=e.factory.createNoSubstitutionTemplateLiteral(l,f);return o(m,_),_}var g=[],y=e.factory.createTemplateHead(l,f);o(m,y);for(var h,v=function(n){var t=function(n){return e.isParenthesizedExpression(n)&&(p(n),n=n.expression),n}(r[n]);i(n,t);var a=d(n+1,r),s=a[0],c=a[1],l=a[2],f=a[3],m=(n=s-1)===r.length-1;if(e.isTemplateExpression(t)){var _=e.map(t.templateSpans,(function(n,r){p(n);var a=r===t.templateSpans.length-1,i=n.literal.text+(a?c:""),o=u(n.literal)+(a?l:"");return e.factory.createTemplateSpan(n.expression,m?e.factory.createTemplateTail(i,o):e.factory.createTemplateMiddle(i,o))}));g.push.apply(g,_)}else{var y=m?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);o(f,y),g.push(e.factory.createTemplateSpan(t,y))}h=n},b=c;b<r.length;b++)v(b),b=h;return e.factory.createTemplateExpression(y,g)}(l(r),a),o=e.getTrailingCommentRanges(a.text,r.end);if(o){var s=o[o.length-1],f={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(a,f),e.replaceNode(a,r,i)}))}return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(a,r,i)}))}function c(n){return e.findAncestor(n.parent,(function(n){switch(n.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(n.parent)&&(t=n.parent,63!==t.operatorToken.kind));default:return"quit"}var t}))||n}function l(n){var t=function n(t){if(!e.isBinaryExpression(t))return{nodes:[t],operators:[],validOperators:!0,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)};var r=n(t.left),a=r.nodes,i=r.operators,o=r.hasString,s=r.validOperators;if(!(o||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right)))return{nodes:[t],operators:[],hasString:!1,validOperators:!0};var c=39===t.operatorToken.kind,l=s&&c;return a.push(t.right),i.push(t.operatorToken),{nodes:a,operators:i,hasString:!0,validOperators:l}}(n),r=t.nodes,a=t.operators,i=t.validOperators,o=t.hasString;return{nodes:r,operators:a,isValidConcatenation:i&&o}}function u(n){var t=e.isTemplateHead(n)||e.isTemplateMiddle(n)?-2:-1;return e.getTextOfNode(n).slice(1,t)}function d(n,t){for(var r=[],a="",i="";n<t.length;){var o=t[n];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){a+=o.head.text,i+=u(o.head);break}break}a+=o.text,i+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(function(e){return"\\"===e[0]?e:"\\"+e})),r.push(n),n++}return[n,a,i,r]}function p(n){var t=n.getSourceFile();e.copyTrailingComments(n,n.expression,t,3,!1),e.copyTrailingAsLeadingComments(n.expression,n.expression,t,3,!1)}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(n,t){var r=n.file,i=n.startPosition,c=o(r,i);return t===a?{edits:s(n,c)}:e.Debug.fail("invalid action")},getAvailableActions:function(n){var t=n.file,s=n.startPosition,u=c(o(t,s)),d={name:r,description:a,actions:[]};return e.isBinaryExpression(u)&&l(u).isValidConcatenation?(d.actions.push(i),[d]):n.preferences.provideRefactorNotApplicableReason?(d.actions.push(fa(fa({},i),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[d]):e.emptyArray}})})((n=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(n.convertStringOrTemplateLiteral={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Convert arrow function or function expression",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),i={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},o={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},s={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function c(n){var t=!1;return n.forEachChild((function n(r){e.isThis(r)?t=!0:e.isClassLike(r)||e.isFunctionDeclaration(r)||e.isFunctionExpression(r)||e.forEachChild(r,n)})),t}function l(n,t,r){var a=e.getTokenAtPosition(n,t),i=r.getTypeChecker(),o=function(n,t,r){if(function(n){return e.isVariableDeclaration(n)||e.isVariableDeclarationList(n)&&1===n.declarations.length}(r)){var a=(e.isVariableDeclaration(r)?r:e.first(r.declarations)).initializer;return a&&(e.isArrowFunction(a)||e.isFunctionExpression(a)&&!d(n,t,a))?a:void 0}}(n,i,a.parent);if(o&&!c(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(a);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,a)&&!c(s.body)&&!i.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&d(n,i,s))return;return{selectedVariableDeclaration:!1,func:s}}}function u(n){if(e.isExpression(n)){var t=e.factory.createReturnStatement(n),r=n.getSourceFile();return e.suppressLeadingAndTrailingTrivia(t),e.copyTrailingAsLeadingComments(n,t,r,void 0,!0),e.factory.createBlock([t],!0)}return n}function d(n,t,r){return!!r.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,t,n)}n.registerRefactor(r,{kinds:[i.kind,o.kind,s.kind],getEditsForAction:function(n,t){var r=n.file,a=n.startPosition,c=n.program,d=l(r,a,c);if(d){var p=d.func,f=[];switch(t){case i.name:f.push.apply(f,function(n,t){var r=n.file,a=u(t.body),i=e.factory.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,a);return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(r,t,i)}))}(n,p));break;case o.name:var m=function(n){var t=n.parent;if(e.isVariableDeclaration(t)&&e.isVariableDeclarationInVariableStatement(t)){var r=t.parent,a=r.parent;return e.isVariableDeclarationList(r)&&e.isVariableStatement(a)&&e.isIdentifier(t.name)?{variableDeclaration:t,variableDeclarationList:r,statement:a,name:t.name}:void 0}}(p);if(!m)return;f.push.apply(f,function(n,t,r){var a=n.file,i=u(t.body),o=r.variableDeclaration,s=r.variableDeclarationList,c=r.statement,l=r.name;e.suppressLeadingTrivia(c);var d=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(t),p=e.factory.createModifiersFromModifierFlags(d),f=e.factory.createFunctionDeclaration(t.decorators,e.length(p)?p:void 0,t.asteriskToken,l,t.typeParameters,t.parameters,t.type,i);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(a,c,f)})):e.textChanges.ChangeTracker.with(n,(function(e){e.delete(a,o),e.insertNodeAfter(a,c,f)}))}(n,p,m));break;case s.name:if(!e.isFunctionExpression(p))return;f.push.apply(f,function(n,t){var r,a=n.file,i=t.body.statements[0];!function(n,t){return 1===n.statements.length&&e.isReturnStatement(t)&&!!t.expression}(t.body,i)?r=t.body:(r=i.expression,e.suppressLeadingAndTrailingTrivia(r),e.copyComments(i,r));var o=e.factory.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,e.factory.createToken(38),r);return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(a,t,o)}))}(n,p));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:f}}},getAvailableActions:function(t){var c=t.file,u=t.startPosition,d=t.program,p=t.kind,f=l(c,u,d);if(!f)return e.emptyArray;var m,_=f.selectedVariableDeclaration,g=f.func,y=[],h=[];(n.refactorKindBeginsWith(o.kind,p)&&((m=_||e.isArrowFunction(g)&&e.isVariableDeclaration(g.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?h.push(fa(fa({},o),{notApplicableReason:m})):y.push(o)),n.refactorKindBeginsWith(i.kind,p)&&((m=!_&&e.isArrowFunction(g)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?h.push(fa(fa({},i),{notApplicableReason:m})):y.push(i)),n.refactorKindBeginsWith(s.kind,p))&&((m=e.isFunctionExpression(g)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?h.push(fa(fa({},s),{notApplicableReason:m})):y.push(s));return[{name:r,description:a,actions:0===y.length&&t.preferences.provideRefactorNotApplicableReason?h:y}]}})})((n=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(n.convertArrowFunctionOrFunctionExpression={}))}(ha||(ha={})),function(e){var n;(function(t){var r="Infer function return type",a=e.Diagnostics.Infer_function_return_type.message,i={name:r,description:a,kind:"refactor.rewrite.function.returnType"};function o(t){if(!e.isInJSFile(t.file)&&n.refactorKindBeginsWith(i.kind,t.kind)){var r=e.getTokenAtPosition(t.file,t.startPosition),a=e.findAncestor(r,(function(n){return e.isBlock(n)||n.parent&&e.isArrowFunction(n.parent)&&(38===n.kind||n.parent.body===n)?"quit":function(e){switch(e.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}}(n)}));if(!a||!a.body||a.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var o=t.program.getTypeChecker(),s=function(n,t){if(n.isImplementationOfOverload(t)){var r=n.getTypeAtLocation(t).getCallSignatures();if(r.length>1)return n.getUnionType(e.mapDefined(r,(function(e){return e.getReturnType()})))}var a=n.getSignatureFromDeclaration(t);if(a)return n.getReturnTypeOfSignature(a)}(o,a);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,a,1);return c?{declaration:a,returnTypeNode:c}:void 0}}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(t){var r=o(t);if(r&&!n.isRefactorErrorInfo(r))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,a){var i=e.findChildOfKind(r,21,n),o=e.isArrowFunction(r)&&void 0===i,s=o?e.first(r.parameters):i;s&&(o&&(t.insertNodeBefore(n,s,e.factory.createToken(20)),t.insertNodeAfter(n,s,e.factory.createToken(21))),t.insertNodeAt(n,s.end,a,{prefix:": "}))}(t.file,n,r.declaration,r.returnTypeNode)}))}},getAvailableActions:function(t){var s=o(t);return s?n.isRefactorErrorInfo(s)?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:a,actions:[fa(fa({},i),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:r,description:a,actions:[i]}]:e.emptyArray}})})((n=e.refactor||(e.refactor={})).inferFunctionReturnType||(n.inferFunctionReturnType={}))}(ha||(ha={})),function(e){function n(n,r,a,i){var l=e.isNodeKind(n)?new t(n,r,a):79===n?new s(79,r,a):80===n?new c(80,r,a):new o(n,r,a);return l.parent=i,l.flags=25358336&i.flags,l}e.servicesVersion="0.8";var t=function(){function t(e,n,t){this.pos=n,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return t.prototype.assertHasRealPosition=function(n){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),n||"Node must have a real position for this operation")},t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(n,t){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,n,t)},t.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},t.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},t.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(e){return this.getChildren(e).length},t.prototype.getChildAt=function(e,n){return this.getChildren(n)[e]},t.prototype.getChildren=function(t){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(t,a){if(!e.isNodeKind(t.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(t))return t.forEachChild((function(e){i.push(e)})),i;e.scanner.setText((a||t.getSourceFile()).text);var o=t.pos,s=function(e){r(i,o,e.pos,t),i.push(e),o=e.end},c=function(e){r(i,o,e.pos,t),i.push(function(e,t){var a=n(346,e.pos,e.end,t);a._children=[];for(var i=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];r(a._children,i,c.pos,t),a._children.push(c),i=c.end}return r(a._children,i,e.end,t),a}(e,t)),o=e.end};return e.forEach(t.jsDoc,s),o=t.pos,t.forEachChild(s,c),r(i,o,t.end,t),e.scanner.setText(void 0),i}(this,t))},t.prototype.getFirstToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n);if(t.length){var r=e.find(t,(function(e){return e.kind<307||e.kind>345}));return r.kind<160?r:r.getFirstToken(n)}},t.prototype.getLastToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n),r=e.lastOrUndefined(t);if(r)return r.kind<160?r:r.getLastToken(n)},t.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},t}();function r(t,r,a,i){for(e.scanner.setTextPos(r);r<a;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=a&&(79===o&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(i.kind)," to have an Identifier in its trivia")),t.push(n(o,r,s,i))),r=s,1===o)break}}var a=function(){function n(e,n){this.pos=e,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(n,t){return e.getTokenPosOfNode(this,n,t)},n.prototype.getFullStart=function(){return this.pos},n.prototype.getEnd=function(){return this.end},n.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.getChildCount=function(){return this.getChildren().length},n.prototype.getChildAt=function(e){return this.getChildren()[e]},n.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},n.prototype.getFirstToken=function(){},n.prototype.getLastToken=function(){},n.prototype.forEachChild=function(){},n}(),i=function(){function n(e,n){this.flags=e,this.escapedName=n}return n.prototype.getFlags=function(){return this.flags},Object.defineProperty(n.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),n.prototype.getEscapedName=function(){return this.escapedName},n.prototype.getName=function(){return this.name},n.prototype.getDeclarations=function(){return this.declarations},n.prototype.getDocumentationComment=function(n){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var t=this.target.tupleLabelDeclaration;this.documentationComment=p([t],n)}else this.documentationComment=p(this.declarations,n);return this.documentationComment},n.prototype.getContextualDocumentationComment=function(n,t){switch(null===n||void 0===n?void 0:n.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=p(e.filter(this.declarations,e.isGetAccessor),t)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=p(e.filter(this.declarations,e.isSetAccessor),t)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(t)}},n.prototype.getJsDocTags=function(n){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,n)),this.tags},n}(),o=function(e){function n(n,t,r){var a=e.call(this,t,r)||this;return a.kind=n,a}return ya(n,e),n}(a),s=function(n){function t(e,t,r){var a=n.call(this,t,r)||this;return a.kind=79,a}return ya(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),t}(a);s.prototype.kind=79;var c=function(n){function t(e,t,r){return n.call(this,t,r)||this}return ya(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),t}(a);c.prototype.kind=80;var l=function(){function n(e,n){this.checker=e,this.flags=n}return n.prototype.getFlags=function(){return this.flags},n.prototype.getSymbol=function(){return this.symbol},n.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},n.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},n.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},n.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},n.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},n.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},n.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},n.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},n.prototype.isNullableType=function(){return this.checker.isNullableType(this)},n.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},n.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},n.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},n.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},n.prototype.isUnion=function(){return!!(1048576&this.flags)},n.prototype.isIntersection=function(){return!!(2097152&this.flags)},n.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},n.prototype.isLiteral=function(){return!!(384&this.flags)},n.prototype.isStringLiteral=function(){return!!(128&this.flags)},n.prototype.isNumberLiteral=function(){return!!(256&this.flags)},n.prototype.isTypeParameter=function(){return!!(262144&this.flags)},n.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},n.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},Object.defineProperty(n.prototype,"typeArguments",{get:function(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),n}(),u=function(){function n(e,n){this.checker=e,this.flags=n}return n.prototype.getDeclaration=function(){return this.declaration},n.prototype.getTypeParameters=function(){return this.typeParameters},n.prototype.getParameters=function(){return this.parameters},n.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},n.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=p(e.singleElementArray(this.declaration),this.checker))},n.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?function(n,t){var r=e.JsDoc.getJsDocTagsFromDeclarations([n],t);if(0===r.length||d(n)){var a=f(t,n,(function(e){var n;return 1===(null===(n=e.declarations)||void 0===n?void 0:n.length)?e.getJsDocTags():void 0}));a&&(r=pa(pa([],a,!0),r,!0))}return r}(this.declaration,this.checker):[]),this.jsDocTags},n}();function d(n){return e.getJSDocTags(n).some((function(e){return"inheritDoc"===e.tagName.text}))}function p(n,t){if(!n)return e.emptyArray;var r=e.JsDoc.getJsDocCommentsFromDeclarations(n,t);if(t&&(0===r.length||n.some(d)))for(var a=new e.Set,i=0,o=n;i<o.length;i++){var s=o[i],c=f(t,s,(function(e){if(!a.has(e))return a.add(e),e.getDocumentationComment(t)}));c&&(r=0===r.length?c.slice():c.concat(e.lineBreakPart(),r))}return r}function f(n,t,r){var a,i=170===(null===(a=t.parent)||void 0===a?void 0:a.kind)?t.parent.parent:t.parent;if(i)return e.firstDefined(e.getAllSuperTypeNodes(i),(function(e){var a=n.getPropertyOfType(n.getTypeAtLocation(e),t.symbol.name);return a?r(a):void 0}))}var m=function(n){function t(e,t,r){var a=n.call(this,e,t,r)||this;return a.kind=303,a}return ya(t,n),t.prototype.update=function(n,t){return e.updateSourceFile(this,n,t)},t.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},t.prototype.getLineStarts=function(){return e.getLineStarts(this)},t.prototype.getPositionOfLineAndCharacter=function(n,t,r){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),n,t,this.text,r)},t.prototype.getLineEndOfPosition=function(e){var n,t=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);var a=this.getFullText();return"\n"===a[n]&&"\r"===a[n-1]?n-1:n},t.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},t.prototype.computeNamedDeclarations=function(){var n=e.createMultiMap();return this.forEachChild((function a(i){switch(i.kind){case 255:case 212:case 168:case 167:var o=i,s=r(o);if(s){var c=function(e){var t=n.get(e);t||n.set(e,t=[]);return t}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(i,a);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:t(i),e.forEachChild(i,a);break;case 163:if(!e.hasSyntacticModifier(i,16476))break;case 253:case 202:var u=i;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,a);break}u.initializer&&a(u.initializer);case 297:case 166:case 165:t(i);break;case 271:var d=i;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,a):a(d.exportClause.name));break;case 265:var p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(267===p.namedBindings.kind?t(p.namedBindings):e.forEach(p.namedBindings.elements,a)));break;case 220:0!==e.getAssignmentDeclarationKind(i)&&t(i);default:e.forEachChild(i,a)}})),n;function t(e){var t=r(e);t&&n.add(t,e)}function r(n){var t=e.getNonAssignedNameOfDeclaration(n);return t&&(e.isComputedPropertyName(t)&&e.isPropertyAccessExpression(t.expression)?t.expression.name.text:e.isPropertyName(t)?e.getNameFromPropertyName(t):void 0)}},t}(t),_=function(){function n(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}return n.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},n}();function g(n){var t=!0;for(var r in n)if(e.hasProperty(n,r)&&!y(r)){t=!1;break}if(t)return n;var a={};for(var r in n){if(e.hasProperty(n,r))a[y(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=n[r]}return a}function y(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function h(){return{target:1,jsx:1}}e.toEditorSettings=g,e.displayPartsToString=function(n){return n?e.map(n,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=h,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var v=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var r=0,a=n.getScriptFileNames();r<a.length;r++){var i=a[r];this.createEntry(i,e.toPath(i,this.currentDirectory,t))}}return n.prototype.createEntry=function(n,t){var r,a=this.host.getScriptSnapshot(n);return r=a?{hostFileName:n,version:this.host.getScriptVersion(n),scriptSnapshot:a,scriptKind:e.getScriptKind(n,this.host)}:n,this.fileNameToEntry.set(t,r),r},n.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},n.prototype.getHostFileInformation=function(n){var t=this.fileNameToEntry.get(n);return e.isString(t)?void 0:t},n.prototype.getOrCreateEntryByPath=function(n,t){var r=this.getEntryByPath(t)||this.createEntry(n,t);return e.isString(r)?void 0:r},n.prototype.getRootFileNames=function(){var n=[];return this.fileNameToEntry.forEach((function(t){e.isString(t)?n.push(t):n.push(t.hostFileName)})),n},n.prototype.getScriptSnapshot=function(e){var n=this.getHostFileInformation(e);return n&&n.scriptSnapshot},n}(),b=function(){function n(e){this.host=e}return n.prototype.getCurrentSourceFile=function(n){var t=this.host.getScriptSnapshot(n);if(!t)throw new Error("Could not find file: '"+n+"'.");var r,a=e.getScriptKind(n,this.host),i=this.host.getScriptVersion(n);if(this.currentFileName!==n)r=T(n,t,99,i,!0,a);else if(this.currentFileVersion!==i){var o=t.getChangeRange(this.currentFileScriptSnapshot);r=S(this.currentSourceFile,t,i,o)}return r&&(this.currentFileVersion=i,this.currentFileName=n,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},n}();function E(e,n,t){e.version=t,e.scriptSnapshot=n}function T(n,t,r,a,i,o){var s=e.createSourceFile(n,e.getSnapshotText(t),r,i,o);return E(s,t,a),s}function S(n,t,r,a,i){if(a&&r!==n.version){var o=void 0,s=0!==a.span.start?n.text.substr(0,a.span.start):"",c=e.textSpanEnd(a.span)!==n.text.length?n.text.substr(e.textSpanEnd(a.span)):"";if(0===a.newLength)o=s&&c?s+c:s||c;else{var l=t.getText(a.span.start,a.span.start+a.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(n,o,a,i);return E(u,t,r),u.nameTable=void 0,n!==u&&n.scriptSnapshot&&(n.scriptSnapshot.dispose&&n.scriptSnapshot.dispose(),n.scriptSnapshot=void 0),u}return T(n.fileName,t,n.languageVersion,r,!0,n.scriptKind)}e.createLanguageServiceSourceFile=T,e.updateLanguageServiceSourceFile=S;var x={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},L=function(){function n(e){this.cancellationToken=e}return n.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},n}(),D=function(){function n(e,n){void 0===n&&(n=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}return n.prototype.isCancellationRequested=function(){var n=e.timestamp();return Math.abs(n-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=n,this.hostCancellationToken.isCancellationRequested())},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},n}();e.ThrottledCancellationToken=D;var C=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],A=pa(pa([],C,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function I(n){var t=function(n){switch(n.kind){case 10:case 14:case 8:if(161===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(n.parent)||204!==n.parent.parent.kind&&285!==n.parent.parent.kind||n.parent.name!==n?void 0:n.parent}return}(n);return t&&(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))?t:void 0}function k(n,t,r,a){var i=e.getNameFromPropertyName(n.name);if(!i)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(i))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,(function(r){return(e.isObjectLiteralExpression(n.parent)||e.isJsxAttributes(n.parent))&&t.isTypeInvalidDueToUnionDiscriminant(r,n.parent)?void 0:r.getProperty(i)}));if(a&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(i)))return[o];return 0===s.length?e.mapDefined(r.types,(function(e){return e.getProperty(i)})):s}e.createLanguageService=function(n,t,r){var a,i;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),i=void 0===r?e.LanguageServiceMode.Semantic:"boolean"===typeof r?r?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:r;var o,s,c=new b(n),l=0,u=n.getCancellationToken?new L(n.getCancellationToken()):x,d=n.getCurrentDirectory();function p(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var f=e.hostUsesCaseSensitiveFileNames(n),m=e.createGetCanonicalFileName(f),_=e.getSourceMapper({useCaseSensitiveFileNames:function(){return f},getCurrentDirectory:function(){return d},getProgram:E,fileExists:e.maybeBind(n,n.fileExists),readFile:e.maybeBind(n,n.readFile),getDocumentPositionMapper:e.maybeBind(n,n.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(n,n.getSourceFileLike),log:p});function y(e){var n=o.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '".concat(e,"'."));throw t.ProgramFiles=o.getSourceFiles().map((function(e){return e.fileName})),t}return n}function h(){var r,a,c;if(e.Debug.assert(i!==e.LanguageServiceMode.Syntactic),n.getProjectVersion){var g=n.getProjectVersion();if(g){if(s===g&&!(null===(r=n.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(n)))return;s=g}}var y=n.getTypeRootsVersion?n.getTypeRootsVersion():0;l!==y&&(p("TypeRoots version has changed; provide new program"),o=void 0,l=y);var h,b=new v(n,m),E=b.getRootFileNames(),T=n.getCompilationSettings()||{target:1,jsx:1},S=n.hasInvalidatedResolution||e.returnFalse,x=e.maybeBind(n,n.hasChangedAutomaticTypeDirectiveNames),L=null===(a=n.getProjectReferences)||void 0===a?void 0:a.call(n),D={useCaseSensitiveFileNames:f,fileExists:N,readFile:R,readDirectory:O,trace:e.maybeBind(n,n.trace),getCurrentDirectory:function(){return d},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(o,E,T,(function(e,t){return n.getScriptVersion(t)}),N,S,x,k,L)){var C={getSourceFile:M,getSourceFileByPath:P,getCancellationToken:function(){return u},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return f},getNewLine:function(){return e.getNewLineCharacter(T,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return d},fileExists:N,readFile:R,getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),realpath:e.maybeBind(n,n.realpath),directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:O,onReleaseOldSourceFile:w,onReleaseParsedCommandLine:function(e,t,r){var a;n.getParsedCommandLine?null===(a=n.onReleaseParsedCommandLine)||void 0===a||a.call(n,e,t,r):t&&w(t.sourceFile,r)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:x,trace:D.trace,resolveModuleNames:e.maybeBind(n,n.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(n,n.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(n,n.useSourceOfProjectReferenceRedirect),getParsedCommandLine:k};null===(c=n.setCompilerHost)||void 0===c||c.call(n,C);var A=t.getKeyForCompilationSettings(T),I={rootNames:E,options:T,host:C,oldProgram:o,projectReferences:L};return o=e.createProgram(I),b=void 0,h=void 0,_.clearCache(),void o.getTypeChecker()}function k(t){var r=e.toPath(t,d,m),a=null===h||void 0===h?void 0:h.get(r);if(void 0!==a)return a||void 0;var i=n.getParsedCommandLine?n.getParsedCommandLine(t):function(n){var t=M(n,100);return t?(t.path=e.toPath(n,d,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,e.parseJsonSourceFileConfigFileContent(t,D,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),d),void 0,e.getNormalizedAbsolutePath(n,d))):void 0}(t);return(h||(h=new e.Map)).set(r,i||!1),i}function N(t){var r=e.toPath(t,d,m),a=b&&b.getEntryByPath(r);return a?!e.isString(a):!!n.fileExists&&n.fileExists(t)}function R(t){var r=e.toPath(t,d,m),a=b&&b.getEntryByPath(r);return a?e.isString(a)?void 0:e.getSnapshotText(a.scriptSnapshot):n.readFile&&n.readFile(t)}function O(t,r,a,i,o){return e.Debug.checkDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,a,i,o)}function w(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)}function M(n,t,r,a){return P(n,e.toPath(n,d,m),t,r,a)}function P(n,r,a,i,s){e.Debug.assert(void 0!==b,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=b&&b.getOrCreateEntryByPath(n,r);if(c){if(!s){var l=o&&o.getSourceFileByPath(r);if(l){if(c.scriptKind===l.scriptKind)return t.updateDocumentWithKey(n,r,T,A,c.scriptSnapshot,c.version,c.scriptKind);t.releaseDocumentWithKey(l.resolvedPath,t.getKeyForCompilationSettings(o.getCompilerOptions()),l.scriptKind)}}return t.acquireDocumentWithKey(n,r,T,A,c.scriptSnapshot,c.version,c.scriptKind)}}}function E(){if(i!==e.LanguageServiceMode.Syntactic)return h(),o;e.Debug.assert(void 0===o)}function T(n,t,r){var a=e.normalizePath(n);e.Debug.assert(r.some((function(n){return e.normalizePath(n)===a}))),h();var i=e.mapDefined(r,(function(e){return o.getSourceFile(e)})),s=y(n);return e.DocumentHighlights.getDocumentHighlights(o,u,s,t,i)}function S(n,t,r,a){h();var i=r&&2===r.use?o.getSourceFiles().filter((function(e){return!o.isSourceFileDefaultLibrary(e)})):o.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(o,u,i,n,t,r,a)}var D=new e.Map(e.getEntries(((a={})[18]=19,a[20]=21,a[22]=23,a[31]=29,a)));function N(t){var r;return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:(r=t.file,e.toPath(r,d,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function R(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function O(n,t,r){for(var a=c.getCurrentSourceFile(n),i=[],o=R(a,t),s=o.lineStarts,l=o.firstLine,u=o.lastLine,d=r||!1,p=Number.MAX_VALUE,f=new e.Map,m=new RegExp(/\S/),_=e.isInsideJsxElement(a,s[l]),g=_?"{/*":"//",y=l;y<=u;y++){var h=a.text.substring(s[y],a.getLineEndOfPosition(s[y])),v=m.exec(h);v&&(p=Math.min(p,v.index),f.set(y.toString(),v.index),h.substr(v.index,g.length)!==g&&(d=void 0===r||r))}for(y=l;y<=u;y++)if(l===u||s[y]!==t.end){var b=f.get(y.toString());void 0!==b&&(_?i.push.apply(i,w(n,{pos:s[y]+p,end:a.getLineEndOfPosition(s[y])},d,_)):d?i.push({newText:g,span:{length:0,start:s[y]+p}}):a.text.substr(s[y]+b,g.length)===g&&i.push({newText:"",span:{length:g.length,start:s[y]+b}}))}return i}function w(n,t,r,a){for(var i,o=c.getCurrentSourceFile(n),s=[],l=o.text,u=!1,d=r||!1,p=[],f=t.pos,m=void 0!==a?a:e.isInsideJsxElement(o,f),_=m?"{/*":"/*",g=m?"*/}":"*/",y=m?"\\{\\/\\*":"\\/\\*",h=m?"\\*\\/\\}":"\\*\\/";f<=t.end;){var v=l.substr(f,_.length)===_?_.length:0,b=e.isInComment(o,f+v);if(b)m&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),u=!0,f=b.end+1;else{var E=l.substring(f,t.end).search("(".concat(y,")|(").concat(h,")"));d=void 0!==r?r:d||!e.isTextWhiteSpaceLike(l,f,-1===E?t.end:f+E),f=-1===E?t.end+1:f+E+g.length}}if(d||!u){2!==(null===(i=e.isInComment(o,t.pos))||void 0===i?void 0:i.kind)&&e.insertSorted(p,t.pos,e.compareValues),e.insertSorted(p,t.end,e.compareValues);var T=p[0];l.substr(T,_.length)!==_&&s.push({newText:_,span:{length:0,start:T}});for(var S=1;S<p.length-1;S++)l.substr(p[S]-g.length,g.length)!==g&&s.push({newText:g,span:{length:0,start:p[S]}}),l.substr(p[S],_.length)!==_&&s.push({newText:_,span:{length:0,start:p[S]}});s.length%2!==0&&s.push({newText:g,span:{length:0,start:p[p.length-1]}})}else for(var x=0,L=p;x<L.length;x++){var D=L[x],C=D-g.length>0?D-g.length:0;v=l.substr(C,g.length)===g?g.length:0;s.push({newText:"",span:{length:_.length,start:D-v}})}return s}function M(n){var t=n.openingElement,r=n.closingElement,a=n.parent;return!e.tagNamesAreEquivalent(t.tagName,r.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(t.tagName,a.openingElement.tagName)&&M(a)}function P(n){var t=n.closingFragment,r=n.parent;return!!(65536&t.flags)||e.isJsxFragment(r)&&P(r)}function F(t,r,a,i,o,s){var c="number"===typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:c[0],endPosition:c[1],program:E(),host:n,formatContext:e.formatting.getFormatContext(i,n),cancellationToken:u,preferences:a,triggerReason:o,kind:s}}D.forEach((function(e,n){return D.set(e.toString(),Number(n))}));var G={dispose:function(){if(o){var r=t.getKeyForCompilationSettings(o.getCompilerOptions());e.forEach(o.getSourceFiles(),(function(e){return t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)})),o=void 0}n=void 0},cleanupSemanticCache:function(){o=void 0},getSyntacticDiagnostics:function(e){return h(),o.getSyntacticDiagnostics(y(e),u).slice()},getSemanticDiagnostics:function(n){h();var t=y(n),r=o.getSemanticDiagnostics(t,u);if(!e.getEmitDeclarations(o.getCompilerOptions()))return r.slice();var a=o.getDeclarationDiagnostics(t,u);return pa(pa([],r,!0),a,!0)},getSuggestionDiagnostics:function(n){return h(),e.computeSuggestionDiagnostics(y(n),o,u)},getCompilerOptionsDiagnostics:function(){return h(),pa(pa([],o.getOptionsDiagnostics(u),!0),o.getGlobalDiagnostics(u),!0)},getSyntacticClassifications:function(n,t){return e.getSyntacticClassifications(u,c.getCurrentSourceFile(n),t)},getSemanticClassifications:function(n,t,r){return h(),"2020"===(r||"original")?e.classifier.v2020.getSemanticClassifications(o,u,y(n),t):e.getSemanticClassifications(o.getTypeChecker(),u,y(n),o.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(n,t){return e.getEncodedSyntacticClassifications(u,c.getCurrentSourceFile(n),t)},getEncodedSemanticClassifications:function(n,t,r){return h(),"original"===(r||"original")?e.getEncodedSemanticClassifications(o.getTypeChecker(),u,y(n),o.getClassifiableNames(),t):e.classifier.v2020.getEncodedSemanticClassifications(o,u,y(n),t)},getCompletionsAtPosition:function(t,r,a){void 0===a&&(a=e.emptyOptions);var i=fa(fa({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return h(),e.Completions.getCompletionsAtPosition(n,o,p,y(t),r,i,a.triggerCharacter,a.triggerKind,u)},getCompletionEntryDetails:function(t,r,a,i,s,c,l){return void 0===c&&(c=e.emptyOptions),h(),e.Completions.getCompletionEntryDetails(o,p,y(t),r,{name:a,source:s,data:l},n,i&&e.formatting.getFormatContext(i,n),c,u)},getCompletionEntrySymbol:function(t,r,a,i,s){return void 0===s&&(s=e.emptyOptions),h(),e.Completions.getCompletionEntrySymbol(o,p,y(t),r,{name:a,source:i},n,s)},getSignatureHelpItems:function(n,t,r){var a=(void 0===r?e.emptyOptions:r).triggerReason;h();var i=y(n);return e.SignatureHelp.getSignatureHelpItems(o,i,t,a,u)},getQuickInfoAtPosition:function(n,t){h();var r=y(n),a=e.getTouchingPropertyName(r,t);if(a!==r){var i=o.getTypeChecker(),s=function(n){if(e.isNewExpression(n.parent)&&n.pos===n.parent.pos)return n.parent.expression;if(e.isNamedTupleMember(n.parent)&&n.pos===n.parent.pos)return n.parent;return n}(a),c=function(n,t){var r=I(n);if(r){var a=t.getContextualType(r.parent),i=a&&k(r,t,a,!1);if(i&&1===i.length)return e.first(i)}return t.getSymbolAtLocation(n)}(s,i);if(!c||i.isUnknownSymbol(c)){var l=function(n,t,r){switch(t.kind){case 79:return!e.isLabelName(t)&&!e.isTagName(t)&&!e.isConstTypeReference(t.parent);case 205:case 160:return!e.isInComment(n,r);case 108:case 191:case 106:case 196:return!0;default:return!1}}(r,s,t)?i.getTypeAtLocation(s):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,r),displayParts:i.runWithCancellationToken(u,(function(n){return e.typeToDisplayParts(n,l,e.getContainerNode(s))})),documentation:l.symbol?l.symbol.getDocumentationComment(i):void 0,tags:l.symbol?l.symbol.getJsDocTags(i):void 0}}var d=i.runWithCancellationToken(u,(function(n){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,c,r,e.getContainerNode(s),s)})),p=d.symbolKind,f=d.displayParts,m=d.documentation,_=d.tags;return{kind:p,kindModifiers:e.SymbolDisplay.getSymbolModifiers(i,c),textSpan:e.createTextSpanFromNode(s,r),displayParts:f,documentation:m,tags:_}}},getDefinitionAtPosition:function(n,t){return h(),e.GoToDefinition.getDefinitionAtPosition(o,y(n),t)},getDefinitionAndBoundSpan:function(n,t){return h(),e.GoToDefinition.getDefinitionAndBoundSpan(o,y(n),t)},getImplementationAtPosition:function(n,t){return h(),e.FindAllReferences.getImplementationsAtPosition(o,u,o.getSourceFiles(),y(n),t)},getTypeDefinitionAtPosition:function(n,t){return h(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),y(n),t)},getReferencesAtPosition:function(n,t){return h(),S(e.getTouchingPropertyName(y(n),t),t,{use:1},(function(n,t,r){return e.FindAllReferences.toReferenceEntry(n,r.getSymbolAtLocation(t))}))},findReferences:function(n,t){return h(),e.FindAllReferences.findReferencedSymbols(o,u,o.getSourceFiles(),y(n),t)},getFileReferences:function(n){var t;h();var r=null===(t=o.getSourceFile(n))||void 0===t?void 0:t.symbol;return e.FindAllReferences.Core.getReferencesForFileName(n,o,o.getSourceFiles()).map((function(n){return e.FindAllReferences.toReferenceEntry(n,r)}))},getOccurrencesAtPosition:function(n,t){return e.flatMap(T(n,t,[n]),(function(e){return e.highlightSpans.map((function(n){return fa(fa({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1},n.isInString&&{isInString:!0}),n.contextSpan&&{contextSpan:n.contextSpan})}))}))},getDocumentHighlights:T,getNameOrDottedNameSpan:function(n,t,r){var a=c.getCurrentSourceFile(n),i=e.getTouchingPropertyName(a,t);if(i!==a){switch(i.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var o=i;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(260!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),i.getEnd())}},getBreakpointStatementAtPosition:function(n,t){var r=c.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(n,t,r,a){void 0===a&&(a=!1),h();var i=r?[y(r)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(i,o.getTypeChecker(),u,n,t,a)},getRenameInfo:function(n,t,r){return h(),e.Rename.getRenameInfo(o,y(n),t,r)},getSmartSelectionRange:function(n,t){return e.SmartSelectionRange.getSmartSelectionRange(t,c.getCurrentSourceFile(n))},findRenameLocations:function(n,t,r,a,i){h();var o=y(n),s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,t));if(e.Rename.nodeIsEligibleForRename(s)){if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map((function(n){var t=e.createTextSpanFromNode(n.tagName,o);return fa({fileName:o.fileName,textSpan:t},e.FindAllReferences.toContextSpan(t,o,n.parent))}))}return S(s,t,{findInStrings:r,findInComments:a,providePrefixAndSuffixTextForRename:i,use:2},(function(n,t,r){return e.FindAllReferences.toRenameLocation(n,t,r,i||!1)}))}},getNavigationBarItems:function(n){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(n),u)},getNavigationTree:function(n){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(n),u)},getOutliningSpans:function(n){var t=c.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,u)},getTodoComments:function(n,t){h();var r=y(n);u.throwIfCancellationRequested();var a,i,o=r.text,s=[];if(t.length>0&&(i=r.fileName,!e.stringContains(i,"/node_modules/")))for(var c=function(){var n="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(t,(function(e){return"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")})).join("|")+")";return new RegExp(n+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),l=void 0;l=c.exec(o);){u.throwIfCancellationRequested();e.Debug.assert(l.length===t.length+3);var d=l[1],p=l.index+d.length;if(e.isInComment(r,p)){for(var f=void 0,m=0;m<t.length;m++)l[m+3]&&(f=t[m]);if(void 0===f)return e.Debug.fail();if(!((a=o.charCodeAt(p+f.text.length))>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)){var _=l[2];s.push({descriptor:f,message:_,position:p})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=c.getCurrentSourceFile(n),a=e.getTouchingToken(r,t),i=a.getStart(r)===t?D.get(a.kind.toString()):void 0,o=i&&e.findChildOfKind(a.parent,i,r);return o?[e.createTextSpanFromNode(a,r),e.createTextSpanFromNode(o,r)].sort((function(e,n){return e.start-n.start})):e.emptyArray},getIndentationAtPosition:function(n,t,r){var a=e.timestamp(),i=g(r),o=c.getCurrentSourceFile(n);p("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,i);return p("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-a)),s},getFormattingEditsForRange:function(t,r,a,i){var o=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,a,o,e.formatting.getFormatContext(g(i),n))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(g(r),n))},getFormattingEditsAfterKeystroke:function(t,r,a,i){var o=c.getCurrentSourceFile(t),s=e.formatting.getFormatContext(g(i),n);if(!e.isInComment(o,r))switch(a){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,r,a){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),c.getCurrentSourceFile(t),r,a)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var a=c.getCurrentSourceFile(n);if(e.isInString(a,t))return!1;if(e.isInsideJsxElementOrAttribute(a,t))return 123===r;if(e.isInTemplateString(a,t))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(a,t)}return!0},getJsxClosingTagAtPosition:function(n,t){var r=c.getCurrentSourceFile(n),a=e.findPrecedingToken(t,r);if(a){var i=31===a.kind&&e.isJsxOpeningElement(a.parent)?a.parent.parent:e.isJsxText(a)&&e.isJsxElement(a.parent)?a.parent:void 0;if(i&&M(i))return{newText:"</".concat(i.openingElement.tagName.getText(r),">")};var o=31===a.kind&&e.isJsxOpeningFragment(a.parent)?a.parent.parent:e.isJsxText(a)&&e.isJsxFragment(a.parent)?a.parent:void 0;return o&&P(o)?{newText:"</>"}:void 0}},getSpanOfEnclosingComment:function(n,t,r){var a=c.getCurrentSourceFile(n),i=e.formatting.getRangeOfEnclosingComment(a,t);return!i||r&&3!==i.kind?void 0:e.createTextSpanFromRange(i)},getCodeFixesAtPosition:function(t,r,a,i,s,c){void 0===c&&(c=e.emptyOptions),h();var l=y(t),d=e.createTextSpanFromBounds(r,a),p=e.formatting.getFormatContext(s,n);return e.flatMap(e.deduplicate(i,e.equateValues,e.compareValues),(function(t){return u.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:l,span:d,program:o,host:n,cancellationToken:u,formatContext:p,preferences:c})}))},getCombinedCodeFix:function(t,r,a,i){void 0===i&&(i=e.emptyOptions),h(),e.Debug.assert("file"===t.type);var s=y(t.fileName),c=e.formatting.getFormatContext(a,n);return e.codefix.getAllFixes({fixId:r,sourceFile:s,program:o,host:n,cancellationToken:u,formatContext:c,preferences:i})},applyCodeActionCommand:function(n,t){var r="string"===typeof n?t:n;return e.isArray(r)?Promise.all(r.map((function(e){return N(e)}))):N(r)},organizeImports:function(t,r,a){void 0===a&&(a=e.emptyOptions),h(),e.Debug.assert("file"===t.type);var i=y(t.fileName),s=e.formatting.getFormatContext(r,n);return e.OrganizeImports.organizeImports(i,s,n,o,a,t.skipDestructiveCodeActions)},getEditsForFileRename:function(t,r,a,i){return void 0===i&&(i=e.emptyOptions),e.getEditsForFileRename(E(),t,r,n,e.formatting.getFormatContext(a,n),i,_)},getEmitOutput:function(t,r,a){h();var i=y(t),s=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(o,i,!!r,u,s,a)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:E,getAutoImportProvider:function(){var e;return null===(e=n.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(n)},getApplicableRefactors:function(n,t,r,a,i){void 0===r&&(r=e.emptyOptions),h();var o=y(n);return e.refactor.getApplicableRefactors(F(o,t,r,e.emptyOptions,a,i))},getEditsForRefactor:function(n,t,r,a,i,o){void 0===o&&(o=e.emptyOptions),h();var s=y(n);return e.refactor.getEditsForRefactor(F(s,r,o,t),a,i)},toLineColumnOffset:function(e,n){return 0===n?{line:0,character:0}:_.toLineColumnOffset(e,n)},getSourceMapper:function(){return _},clearSourceMapperCache:function(){return _.clearCache()},prepareCallHierarchy:function(n,t){h();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(o,e.getTouchingPropertyName(y(n),t));return r&&e.mapOneOrMany(r,(function(n){return e.CallHierarchy.createCallHierarchyItem(o,n)}))},provideCallHierarchyIncomingCalls:function(n,t){h();var r=y(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getIncomingCalls(o,a,u):[]},provideCallHierarchyOutgoingCalls:function(n,t){h();var r=y(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getOutgoingCalls(o,a):[]},toggleLineComment:O,toggleMultilineComment:w,commentSelection:function(e,n){var t=R(c.getCurrentSourceFile(e),n);return t.firstLine===t.lastLine&&n.pos!==n.end?w(e,n,!0):O(e,n,!0)},uncommentSelection:function(n,t){var r=c.getCurrentSourceFile(n),a=[],i=t.pos,o=t.end;i===o&&(o+=e.isInsideJsxElement(r,i)?2:1);for(var s=i;s<=o;s++){var l=e.isInComment(r,s);if(l){switch(l.kind){case 2:a.push.apply(a,O(n,{end:l.end,pos:l.pos+1},!1));break;case 3:a.push.apply(a,w(n,{end:l.end,pos:l.pos+1},!1))}s=l.end+1}}return a},provideInlayHints:function(t,r,a){void 0===a&&(a=e.emptyOptions),h();var i=y(t);return e.InlayHints.provideInlayHints(function(e,t,r){return{file:e,program:E(),host:n,span:t,preferences:r,cancellationToken:u}}(i,r,a))}};switch(i){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:C.forEach((function(e){return G[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}}));break;case e.LanguageServiceMode.Syntactic:A.forEach((function(e){return G[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}}));break;default:e.Debug.assertNever(i)}return G},e.getNameTable=function(n){return n.nameTable||function(n){var t=n.nameTable=new e.Map;n.forEachChild((function n(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&function(n){return e.isDeclarationName(n)||276===n.parent.kind||function(e){return e&&e.parent&&206===e.parent.kind&&e.parent.argumentExpression===e}(n)||e.isLiteralComputedPropertyDeclarationName(n)}(r)){var a=e.getEscapedTextOfIdentifierOrLiteral(r);t.set(a,void 0===t.get(a)?r.pos:-1)}else if(e.isPrivateIdentifier(r)){a=r.escapedText;t.set(a,void 0===t.get(a)?r.pos:-1)}if(e.forEachChild(r,n),e.hasJSDocNodes(r))for(var i=0,o=r.jsDoc;i<o.length;i++){var s=o[i];e.forEachChild(s,n)}}))}(n),n.nameTable},e.getContainingObjectLiteralElement=I,e.getPropertySymbolsFromContextualType=k,e.getDefaultLibFilePath=function(n){return"/"+e.directorySeparator+e.getDefaultLibFileName(n)},e.setObjectAllocator({getNodeConstructor:function(){return t},getTokenConstructor:function(){return o},getIdentifierConstructor:function(){return s},getPrivateIdentifierConstructor:function(){return c},getSourceFileConstructor:function(){return m},getSymbolConstructor:function(){return i},getTypeConstructor:function(){return l},getSignatureConstructor:function(){return u},getSourceMapSourceConstructor:function(){return _}})}(ha||(ha={})),function(e){(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=function(n,t){if(!n.isDeclarationFile){var r=e.getTokenAtPosition(n,t),a=n.getLineAndCharacterOfPosition(t).line;if(n.getLineAndCharacterOfPosition(r.getStart(n)).line>a){var i=e.findPrecedingToken(r.pos,n);if(!i||n.getLineAndCharacterOfPosition(i.getEnd()).line!==a)return;r=i}if(!(8388608&r.flags))return d(r)}function o(t,r){var a=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(a,(r||t).getEnd())}function s(t,r){return o(t,e.findNextToken(r,r.parent,n))}function c(e,t){return e&&a===n.getLineAndCharacterOfPosition(e.getStart(n)).line?d(e):d(t)}function l(t){return d(e.findPrecedingToken(t.pos,n))}function u(t){return d(e.findNextToken(t,t.parent,n))}function d(t){if(t){var r=t.parent;switch(t.kind){case 236:return b(t.declarationList.declarations[0]);case 253:case 166:case 165:return b(t);case 163:return function n(t){if(e.isBindingPattern(t.name))return x(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasSyntacticModifier(n,12)}(t))return o(t);var r=t.parent,a=r.parameters.indexOf(t);return e.Debug.assert(-1!==a),0!==a?n(r.parameters[a-1]):d(r.body)}(t);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return function(e){if(e.body)return E(e)?o(e):d(e.body)}(t);case 234:if(e.isFunctionBlock(t))return function(e){var n=e.statements.length?e.statements[0]:e.getLastToken();return E(e.parent)?c(e.parent,n):d(n)}(t);case 261:return T(t);case 291:return T(t.block);case 237:return o(t.expression);case 246:return o(t.getChildAt(0),t.expression);case 240:return s(t,t.expression);case 239:return d(t.statement);case 252:return o(t.getChildAt(0));case 238:return s(t,t.expression);case 249:return d(t.statement);case 245:case 244:return o(t.getChildAt(0),t.label);case 241:return(y=t).initializer?S(y):y.condition?o(y.condition):y.incrementor?o(y.incrementor):void 0;case 242:return s(t,t.expression);case 243:return S(t);case 248:return s(t,t.expression);case 288:case 289:return d(t.statements[0]);case 251:return T(t.tryBlock);case 250:case 270:return o(t,t.expression);case 264:return o(t,t.moduleReference);case 265:case 271:return o(t,t.moduleSpecifier);case 260:if(1!==e.getModuleInstanceState(t))return;case 256:case 259:case 297:case 202:return o(t);case 247:return d(t.statement);case 164:return h=r.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,h.pos),h.end);case 200:case 201:return x(t);case 257:case 258:return;case 26:case 1:return c(e.findPrecedingToken(t.pos,n));case 27:return l(t);case 18:return function(t){switch(t.parent.kind){case 259:var r=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 256:var a=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),a.members.length?a.members[0]:a.getLastToken(n));case 262:return c(t.parent.parent,t.parent.clauses[0])}return d(t.parent)}(t);case 19:return function(n){switch(n.parent.kind){case 261:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 259:case 256:return o(n);case 234:if(e.isFunctionBlock(n.parent))return o(n);case 291:return d(e.lastOrUndefined(n.parent.statements));case 262:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?d(e.lastOrUndefined(r.statements)):void 0;case 200:var a=n.parent;return d(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var i=n.parent;return o(e.lastOrUndefined(i.properties)||i)}return d(n.parent)}}(t);case 23:return function(n){if(201===n.parent.kind){var t=n.parent;return o(e.lastOrUndefined(t.elements)||t)}if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var r=n.parent;return o(e.lastOrUndefined(r.elements)||r)}return d(n.parent)}(t);case 20:return 239===(g=t).parent.kind||207===g.parent.kind||208===g.parent.kind?l(g):211===g.parent.kind?u(g):d(g.parent);case 21:return function(e){switch(e.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return l(e);default:return d(e.parent)}}(t);case 58:return function(n){return e.isFunctionLike(n.parent)||294===n.parent.kind||163===n.parent.kind?l(n):d(n.parent)}(t);case 31:case 29:return function(e){return 210===e.parent.kind?u(e):d(e.parent)}(t);case 115:return function(e){return 239===e.parent.kind?s(e,e.parent.expression):d(e.parent)}(t);case 91:case 83:case 96:return u(t);case 159:return function(e){return 243===e.parent.kind?u(e):d(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return L(t);if((79===t.kind||224===t.kind||294===t.kind||295===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(220===t.kind){var a=t,i=a.left,p=a.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i))return L(i);if(63===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return o(t);if(27===p.kind)return d(i)}if(e.isExpressionNode(t))switch(r.kind){case 239:return l(t);case 164:return d(t.parent);case 241:case 243:return o(t);case 220:if(27===t.parent.operatorToken.kind)return o(t);break;case 213:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 294:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return d(t.parent.initializer);break;case 210:if(t.parent.type===t)return u(t.parent.type);break;case 253:case 163:var f=t.parent,m=f.initializer,_=f.type;if(m===t||_===t||e.isAssignmentOperator(t.kind))return l(t);break;case 220:if(i=t.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(i)&&t!==i)return l(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return l(t)}return d(t.parent)}}var g,y,h;function v(t){return e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]===t?o(e.findPrecedingToken(t.pos,n,t.parent),t):o(t)}function b(t){if(242===t.parent.parent.kind)return d(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?x(t.name):t.initializer||e.hasSyntacticModifier(t,1)||243===r.parent.kind?v(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?d(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function E(n){return e.hasSyntacticModifier(n,1)||256===n.parent.kind&&170!==n.kind}function T(t){switch(t.parent.kind){case 260:if(1!==e.getModuleInstanceState(t.parent))return;case 240:case 238:case 242:return c(t.parent,t.statements[0]);case 241:case 243:return c(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return d(t.statements[0])}function S(e){if(254!==e.initializer.kind)return d(e.initializer);var n=e.initializer;return n.declarations.length>0?d(n.declarations[0]):void 0}function x(n){var t=e.forEach(n.elements,(function(e){return 226!==e.kind?e:void 0}));return t?d(t):202===n.parent.kind?o(n.parent):v(n.parent)}function L(n){e.Debug.assert(201!==n.kind&&200!==n.kind);var t=203===n.kind?n.elements:n.properties,r=e.forEach(t,(function(e){return 226!==e.kind?e:void 0}));return r?d(r):o(220===n.parent.kind?n.parent:n)}}}}(ha||(ha={})),function(e){e.transform=function(n,t,r){var a=[];r=e.fixupCompilerOptions(r,a);var i=e.isArray(n)?n:[n],o=e.transformNodes(void 0,void 0,e.factory,r,i,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}}(ha||(ha={}));var ha,va=function(){return this}();!function(e){function n(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}var t=function(){function n(e){this.scriptSnapshotShim=e}return n.prototype.getText=function(e,n){return this.scriptSnapshotShim.getText(e,n)},n.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},n.prototype.getChangeRange=function(n){var t=n,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var a=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(a.span.start,a.span.length),a.newLength)},n.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},n}(),r=function(){function n(n){var t=this;this.shimHost=n,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(n,r){var a=JSON.parse(t.shimHost.getModuleResolutionsForFile(r));return e.map(n,(function(n){var t=e.getProperty(a,n);return t?{resolvedFileName:t,extension:e.extensionFromPath(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(n,r){var a=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(n,(function(n){return e.getProperty(a,n)}))})}return n.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},n.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},n.prototype.error=function(e){this.shimHost.error(e)},n.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},n.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},n.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},n.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var n=JSON.parse(e);return n.allowNonTsExtensions=!0,n},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){var n=this.shimHost.getScriptSnapshot(e);return n&&new t(n)},n.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},n.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},n.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(Oa){return this.log(Oa.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},n.prototype.getCancellationToken=function(){var n=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(n)},n.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},n.prototype.readDirectory=function(n,t,r,a,i){var o=e.getFileMatcherPatterns(n,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},n.prototype.readFile=function(e,n){return this.shimHost.readFile(e,n)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n}();e.LanguageServiceShimHostAdapter=r;var a=function(){function n(e){var n=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return n.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return n.shimHost.realpath(e)}:this.realpath=void 0}return n.prototype.readDirectory=function(n,t,r,a,i){var o=e.getFileMatcherPatterns(n,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n.prototype.readFile=function(e){return this.shimHost.readFile(e)},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n}();function i(e,n,t,r){return o(e,n,!0,t,r)}function o(t,r,a,i,o){try{var s=function(n,t,r,a){var i;a&&(n.log(t),i=e.timestamp());var o=r();if(a){var s=e.timestamp();if(n.log("".concat(t," completed in ").concat(s-i," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),n.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(t,r,i,o);return a?JSON.stringify({result:s}):s}catch(c){return c instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,c),c.description=r,JSON.stringify({error:c}))}}e.CoreServicesShimHostAdapter=a;var s=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function c(n,t){return n.map((function(n){return function(n,t){return{message:e.flattenDiagnosticMessageText(n.messageText,t),start:n.start,length:n.length,category:e.diagnosticCategoryName(n),code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}(n,t)}))}e.realizeDiagnostics=c;var l=function(n){function t(e,t,r){var a=n.call(this,e)||this;return a.host=t,a.languageService=r,a.logPerformance=!1,a.logger=a.host,a}return ya(t,n),t.prototype.forwardJSONCall=function(e,n){return i(this.logger,e,n,this.logPerformance)},t.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,va&&va.CollectGarbage&&(va.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,n.prototype.dispose.call(this,e)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(function(){return null}))},t.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},t.prototype.realizeDiagnostics=function(n){return c(n,e.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(n,"', ").concat(t,", ").concat(r,")"),(function(){return a.languageService.getSyntacticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSemanticClassifications('".concat(n,"', ").concat(t,", ").concat(r,")"),(function(){return a.languageService.getSemanticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getEncodedSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(n,"', ").concat(t,", ").concat(r,")"),(function(){return u(a.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(n,"', ").concat(t,", ").concat(r,")"),(function(){return u(a.languageService.getEncodedSemanticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getSyntacticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(function(){var t=n.languageService.getSyntacticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSemanticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(function(){var t=n.languageService.getSemanticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(function(){return n.realizeDiagnostics(n.languageService.getSuggestionDiagnostics(e))}))},t.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var n=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(n)}))},t.prototype.getQuickInfoAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getQuickInfoAtPosition(e,n)}))},t.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(n,", ").concat(t,")"),(function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)}))},t.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getBreakpointStatementAtPosition(e,n)}))},t.prototype.getSignatureHelpItems=function(e,n,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(n,")"),(function(){return r.languageService.getSignatureHelpItems(e,n,t)}))},t.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getDefinitionAtPosition(e,n)}))},t.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getDefinitionAndBoundSpan(e,n)}))},t.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getTypeDefinitionAtPosition(e,n)}))},t.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getImplementationAtPosition(e,n)}))},t.prototype.getRenameInfo=function(e,n,t){var r=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(n,")"),(function(){return r.languageService.getRenameInfo(e,n,t)}))},t.prototype.getSmartSelectionRange=function(e,n){var t=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getSmartSelectionRange(e,n)}))},t.prototype.findRenameLocations=function(e,n,t,r,a){var i=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(n,", ").concat(t,", ").concat(r,", ").concat(a,")"),(function(){return i.languageService.findRenameLocations(e,n,t,r,a)}))},t.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getBraceMatchingAtPosition(e,n)}))},t.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(n,", ").concat(t,")"),(function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)}))},t.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(n,")"),(function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)}))},t.prototype.getIndentationAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(n,")"),(function(){var a=JSON.parse(t);return r.languageService.getIndentationAtPosition(e,n,a)}))},t.prototype.getReferencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getReferencesAtPosition(e,n)}))},t.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.findReferences(e,n)}))},t.prototype.getFileReferences=function(e){var n=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(function(){return n.languageService.getFileReferences(e)}))},t.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.getOccurrencesAtPosition(e,n)}))},t.prototype.getDocumentHighlights=function(n,t,r){var a=this;return this.forwardJSONCall("getDocumentHighlights('".concat(n,"', ").concat(t,")"),(function(){var i=a.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(n));return e.filter(i,(function(n){return e.toFileNameLowerCase(e.normalizeSlashes(n.fileName))===o}))}))},t.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(n,", ").concat(t,")"),(function(){return r.languageService.getCompletionsAtPosition(e,n,t)}))},t.prototype.getCompletionEntryDetails=function(e,n,t,r,a,i,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(n,", '").concat(t,"')"),(function(){var c=void 0===r?void 0:JSON.parse(r);return s.languageService.getCompletionEntryDetails(e,n,t,c,a,i,o)}))},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(n,", ").concat(t,")"),(function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsForRange(e,n,t,i)}))},t.prototype.getFormattingEditsForDocument=function(e,n){var t=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(function(){var r=JSON.parse(n);return t.languageService.getFormattingEditsForDocument(e,r)}))},t.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(n,", '").concat(t,"')"),(function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsAfterKeystroke(e,n,t,i)}))},t.prototype.getDocCommentTemplateAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(n,")"),(function(){return r.languageService.getDocCommentTemplateAtPosition(e,n,t)}))},t.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(n,", ").concat(t,")"),(function(){return r.languageService.getNavigateToItems(e,n,t)}))},t.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(function(){return n.languageService.getNavigationBarItems(e)}))},t.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(function(){return n.languageService.getNavigationTree(e)}))},t.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(function(){return n.languageService.getOutliningSpans(e)}))},t.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(function(){return t.languageService.getTodoComments(e,JSON.parse(n))}))},t.prototype.prepareCallHierarchy=function(e,n){var t=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.prepareCallHierarchy(e,n)}))},t.prototype.provideCallHierarchyIncomingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.provideCallHierarchyIncomingCalls(e,n)}))},t.prototype.provideCallHierarchyOutgoingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(n,")"),(function(){return t.languageService.provideCallHierarchyOutgoingCalls(e,n)}))},t.prototype.provideInlayHints=function(e,n,t){var r=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(n),"', ").concat(JSON.stringify(t),")"),(function(){return r.languageService.provideInlayHints(e,n,t)}))},t.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(function(){var t=n.languageService.getEmitOutput(e),r=t.diagnostics,a=ga(t,["diagnostics"]);return fa(fa({},a),{diagnostics:n.realizeDiagnostics(r)})}))},t.prototype.getEmitOutputObject=function(e){var n=this;return o(this.logger,"getEmitOutput('".concat(e,"')"),!1,(function(){return n.languageService.getEmitOutput(e)}),this.logPerformance)},t.prototype.toggleLineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(n),"')"),(function(){return t.languageService.toggleLineComment(e,n)}))},t.prototype.toggleMultilineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(n),"')"),(function(){return t.languageService.toggleMultilineComment(e,n)}))},t.prototype.commentSelection=function(e,n){var t=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(n),"')"),(function(){return t.languageService.commentSelection(e,n)}))},t.prototype.uncommentSelection=function(e,n){var t=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(n),"')"),(function(){return t.languageService.uncommentSelection(e,n)}))},t}(s);function u(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(n){function t(t,r){var a=n.call(this,t)||this;return a.logger=r,a.logPerformance=!1,a.classifier=e.createClassifier(),a}return ya(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),i(this.logger,"getEncodedLexicalClassifications",(function(){return u(r.classifier.getEncodedLexicalClassifications(e,n,t))}),this.logPerformance)},t.prototype.getClassificationsForLine=function(e,n,t){void 0===t&&(t=!1);for(var r=this.classifier.getClassificationsForLine(e,n,t),a="",i=0,o=r.entries;i<o.length;i++){var s=o[i];a+=s.length+"\n",a+=s.classification+"\n"}return a+=r.finalLexState},t}(s),p=function(n){function t(e,t,r){var a=n.call(this,e)||this;return a.logger=t,a.host=r,a.logPerformance=!1,a}return ya(t,n),t.prototype.forwardJSONCall=function(e,n){return i(this.logger,e,n,this.logPerformance)},t.prototype.resolveModuleName=function(n,t,r){var a=this;return this.forwardJSONCall("resolveModuleName('".concat(n,"')"),(function(){var i=JSON.parse(r),o=e.resolveModuleName(t,e.normalizeSlashes(n),i,a.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},t.prototype.resolveTypeReferenceDirective=function(n,t,r){var a=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(n,")"),(function(){var i=JSON.parse(r),o=e.resolveTypeReferenceDirective(t,e.normalizeSlashes(n),i,a.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},t.prototype.getPreProcessedFileInfo=function(n,t){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(n,"')"),(function(){var n=e.preProcessFile(e.getSnapshotText(t),!0,!0);return{referencedFiles:r.convertFileReferences(n.referencedFiles),importedFiles:r.convertFileReferences(n.importedFiles),ambientExternalModules:n.ambientExternalModules,isLibFile:n.isLibFile,typeReferenceDirectives:r.convertFileReferences(n.typeReferenceDirectives),libReferenceDirectives:r.convertFileReferences(n.libReferenceDirectives)}}))},t.prototype.getAutomaticTypeDirectiveNames=function(n){var t=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(n,"')"),(function(){var r=JSON.parse(n);return e.getAutomaticTypeDirectiveNames(r,t.host)}))},t.prototype.convertFileReferences=function(n){if(n){for(var t=[],r=0,a=n;r<a.length;r++){var i=a[r];t.push({path:e.normalizeSlashes(i.fileName),position:i.pos,length:i.end-i.pos})}return t}},t.prototype.getTSConfigFileInfo=function(n,t){var r=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(n,"')"),(function(){var a=e.parseJsonText(n,e.getSnapshotText(t)),i=e.normalizeSlashes(n),o=e.parseJsonSourceFileConfigFileContent(a,r.host,e.getDirectoryPath(i),{},i);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:c(pa(pa([],a.parseDiagnostics,!0),o.errors,!0),"\r\n")}}))},t.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return e.getDefaultCompilerOptions()}))},t.prototype.discoverTypings=function(n){var t=this,r=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var a=JSON.parse(n);return void 0===t.safeList&&(t.safeList=e.JsTyping.loadSafeList(t.host,e.toPath(a.safeListPath,a.safeListPath,r))),e.JsTyping.discoverTypings(t.host,(function(e){return t.logger.log(e)}),a.fileNames,e.toPath(a.projectRootPath,a.projectRootPath,r),t.safeList,a.packageNameToTypingLocation,a.typeAcquisition,a.unresolvedImports,a.typesRegistry)}))},t}(s),f=function(){function t(){this._shims=[]}return t.prototype.getServicesVersion=function(){return e.servicesVersion},t.prototype.createLanguageServiceShim=function(t){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var a=new r(t),i=e.createLanguageService(a,this.documentRegistry,!1);return new l(this,t,i)}catch(o){throw n(t,o),o}},t.prototype.createClassifierShim=function(e){try{return new d(this,e)}catch(t){throw n(e,t),t}},t.prototype.createCoreServicesShim=function(e){try{var t=new a(e);return new p(this,e,t)}catch(r){throw n(e,r),r}},t.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},t.prototype.registerShim=function(e){this._shims.push(e)},t.prototype.unregisterShim=function(e){for(var n=0;n<this._shims.length;n++)if(this._shims[n]===e)return void delete this._shims[n];throw new Error("Invalid operation")},t}();e.TypeScriptServicesFactory=f}(ha||(ha={})),function(){if("object"!==typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"===typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),("undefined"===typeof process||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=ha.TypeScriptServicesFactory,globalThis.toolsVersion=ha.versionMajorMinor),e.exports,function(e){var n={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,n),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,n),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,n),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,n),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,n),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,n),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,n),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,n),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,n),e.createSuper=e.Debug.deprecate(e.factory.createSuper,n),e.createThis=e.Debug.deprecate(e.factory.createThis,n),e.createNull=e.Debug.deprecate(e.factory.createNull,n),e.createTrue=e.Debug.deprecate(e.factory.createTrue,n),e.createFalse=e.Debug.deprecate(e.factory.createFalse,n),e.createModifier=e.Debug.deprecate(e.factory.createModifier,n),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,n),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,n),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,n),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,n),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,n),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,n),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,n),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,n),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,n),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,n),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,n),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,n),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,n),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,n),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,n),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,n),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,n),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,n),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,n),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,n),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,n),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,n),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,n),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,n),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,n),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,n),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,n),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,n),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,n),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,n),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,n),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,n),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,n),e.createConstructorTypeNode=e.Debug.deprecate((function(n,t,r){return e.factory.createConstructorTypeNode(void 0,n,t,r)}),n),e.updateConstructorTypeNode=e.Debug.deprecate((function(n,t,r,a){return e.factory.updateConstructorTypeNode(n,n.modifiers,t,r,a)}),n),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,n),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,n),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,n),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,n),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,n),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,n),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,n),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,n),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,n),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,n),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,n),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,n),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,n),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,n),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,n),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,n),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,n),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,n),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,n),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,n),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,n),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,n),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,n),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,n),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,n),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,n),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,n),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,n),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,n),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,n),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,n),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,n),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,n),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,n),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,n),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,n),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,n),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,n),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,n),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,n),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,n),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,n),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,n),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,n),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,n),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,n),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,n),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,n),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,n),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,n),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,n),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,n),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,n),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,n),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,n),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,n),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,n),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,n),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,n),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,n),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,n),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,n),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,n),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,n),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,n),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,n),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,n),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,n),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,n),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,n),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,n),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,n),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,n),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,n),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,n),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,n),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,n),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,n),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,n),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,n),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,n),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,n),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,n),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,n),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,n),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,n),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,n),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,n),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,n),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,n),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,n),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,n),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,n),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,n),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,n),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,n),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,n),e.createBlock=e.Debug.deprecate(e.factory.createBlock,n),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,n),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,n),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,n),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,n),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,n),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,n),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,n),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,n),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,n),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,n),e.createFor=e.Debug.deprecate(e.factory.createForStatement,n),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,n),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,n),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,n),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,n),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,n),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,n),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,n),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,n),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,n),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,n),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,n),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,n),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,n),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,n),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,n),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,n),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,n),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,n),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,n),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,n),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,n),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,n),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,n),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,n),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,n),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,n),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,n),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,n),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,n),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,n),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,n),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,n),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,n),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,n),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,n),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,n),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,n),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,n),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,n),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,n),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,n),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,n),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,n),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,n),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,n),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,n),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,n),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,n),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,n),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,n),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,n),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,n),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,n),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,n),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,n),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,n),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,n),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,n),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,n),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,n),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,n),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,n),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,n),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,n),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,n),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,n),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,n),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,n),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,n),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,n),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,n),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,n),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,n),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,n),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,n),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,n),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,n),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,n),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,n),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,n),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,n),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,n),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,n),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,n),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,n),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,n),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,n),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,n),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,n),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,n),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,n),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,n),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,n),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,n),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,n),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,n),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,n),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,n),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,n),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,n),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,n),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,n),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,n),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,n),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,n),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,n),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,n),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,n),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,n),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,n),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,n),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,n),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,n),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,n),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,n),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,n),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,n),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,n),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,n),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,n),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,n),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,n),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,n),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,n),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,n),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,n),e.createBundle=e.Debug.deprecate(e.factory.createBundle,n),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,n),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,n),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,n),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,n),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,n),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,n),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,n),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,n),e.createToken=e.Debug.deprecate((function(n){return e.factory.createToken(n)}),n),e.createIdentifier=e.Debug.deprecate((function(n){return e.factory.createIdentifier(n,void 0,void 0)}),n),e.createTempVariable=e.Debug.deprecate((function(n){return e.factory.createTempVariable(n,void 0)}),n),e.getGeneratedNameForNode=e.Debug.deprecate((function(n){return e.factory.getGeneratedNameForNode(n,void 0)}),n),e.createOptimisticUniqueName=e.Debug.deprecate((function(n){return e.factory.createUniqueName(n,16)}),n),e.createFileLevelUniqueName=e.Debug.deprecate((function(n){return e.factory.createUniqueName(n,48)}),n),e.createIndexSignature=e.Debug.deprecate((function(n,t,r,a){return e.factory.createIndexSignature(n,t,r,a)}),n),e.createTypePredicateNode=e.Debug.deprecate((function(n,t){return e.factory.createTypePredicateNode(void 0,n,t)}),n),e.updateTypePredicateNode=e.Debug.deprecate((function(n,t,r){return e.factory.updateTypePredicateNode(n,void 0,t,r)}),n),e.createLiteral=e.Debug.deprecate((function(n){return"number"===typeof n?e.factory.createNumericLiteral(n):"object"===typeof n&&"base10Value"in n?e.factory.createBigIntLiteral(n):"boolean"===typeof n?n?e.factory.createTrue():e.factory.createFalse():"string"===typeof n?e.factory.createStringLiteral(n,void 0):e.factory.createStringLiteralFromNode(n)}),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate((function(n,t,r,a,i){return e.factory.createMethodSignature(void 0,a,i,n,t,r)}),n),e.updateMethodSignature=e.Debug.deprecate((function(n,t,r,a,i,o){return e.factory.updateMethodSignature(n,n.modifiers,i,o,t,r,a)}),n),e.createTypeOperatorNode=e.Debug.deprecate((function(n,t){var r;return t?r=n:(t=n,r=140),e.factory.createTypeOperatorNode(r,t)}),n),e.createTaggedTemplate=e.Debug.deprecate((function(n,t,r){var a;return r?a=t:r=t,e.factory.createTaggedTemplateExpression(n,a,r)}),n),e.updateTaggedTemplate=e.Debug.deprecate((function(n,t,r,a){var i;return a?i=r:a=r,e.factory.updateTaggedTemplateExpression(n,t,i,a)}),n),e.updateBinary=e.Debug.deprecate((function(n,t,r,a){return void 0===a&&(a=n.operatorToken),"number"===typeof a&&(a=a===n.operatorToken.kind?n.operatorToken:e.factory.createToken(a)),e.factory.updateBinaryExpression(n,t,a,r)}),n),e.createConditional=e.Debug.deprecate((function(n,t,r,a,i){return 5===arguments.length?e.factory.createConditionalExpression(n,t,r,a,i):3===arguments.length?e.factory.createConditionalExpression(n,e.factory.createToken(57),t,e.factory.createToken(58),r):e.Debug.fail("Argument count mismatch")}),n),e.createYield=e.Debug.deprecate((function(n,t){var r;return t?r=n:t=n,e.factory.createYieldExpression(r,t)}),n),e.createClassExpression=e.Debug.deprecate((function(n,t,r,a,i){return e.factory.createClassExpression(void 0,n,t,r,a,i)}),n),e.updateClassExpression=e.Debug.deprecate((function(n,t,r,a,i,o){return e.factory.updateClassExpression(n,void 0,t,r,a,i,o)}),n),e.createPropertySignature=e.Debug.deprecate((function(n,t,r,a,i){var o=e.factory.createPropertySignature(n,t,r,a);return o.initializer=i,o}),n),e.updatePropertySignature=e.Debug.deprecate((function(n,t,r,a,i,o){var s=e.factory.updatePropertySignature(n,t,r,a,i);return n.initializer!==o&&(s===n&&(s=e.factory.cloneNode(n)),s.initializer=o),s}),n),e.createExpressionWithTypeArguments=e.Debug.deprecate((function(n,t){return e.factory.createExpressionWithTypeArguments(t,n)}),n),e.updateExpressionWithTypeArguments=e.Debug.deprecate((function(n,t,r){return e.factory.updateExpressionWithTypeArguments(n,r,t)}),n),e.createArrowFunction=e.Debug.deprecate((function(n,t,r,a,i,o){return 6===arguments.length?e.factory.createArrowFunction(n,t,r,a,i,o):5===arguments.length?e.factory.createArrowFunction(n,t,r,a,void 0,i):e.Debug.fail("Argument count mismatch")}),n),e.updateArrowFunction=e.Debug.deprecate((function(n,t,r,a,i,o,s){return 7===arguments.length?e.factory.updateArrowFunction(n,t,r,a,i,o,s):6===arguments.length?e.factory.updateArrowFunction(n,t,r,a,i,n.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),n),e.createVariableDeclaration=e.Debug.deprecate((function(n,t,r,a){return 4===arguments.length?e.factory.createVariableDeclaration(n,t,r,a):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(n,void 0,t,r):e.Debug.fail("Argument count mismatch")}),n),e.updateVariableDeclaration=e.Debug.deprecate((function(n,t,r,a,i){return 5===arguments.length?e.factory.updateVariableDeclaration(n,t,r,a,i):4===arguments.length?e.factory.updateVariableDeclaration(n,t,n.exclamationToken,r,a):e.Debug.fail("Argument count mismatch")}),n),e.createImportClause=e.Debug.deprecate((function(n,t,r){return void 0===r&&(r=!1),e.factory.createImportClause(r,n,t)}),n),e.updateImportClause=e.Debug.deprecate((function(n,t,r,a){return e.factory.updateImportClause(n,a,t,r)}),n),e.createExportDeclaration=e.Debug.deprecate((function(n,t,r,a,i){return void 0===i&&(i=!1),e.factory.createExportDeclaration(n,t,i,r,a)}),n),e.updateExportDeclaration=e.Debug.deprecate((function(n,t,r,a,i,o){return e.factory.updateExportDeclaration(n,t,r,o,a,i,n.assertClause)}),n),e.createJSDocParamTag=e.Debug.deprecate((function(n,t,r,a){return e.factory.createJSDocParameterTag(void 0,n,t,r,!1,a?e.factory.createNodeArray([e.factory.createJSDocText(a)]):void 0)}),n),e.createComma=e.Debug.deprecate((function(n,t){return e.factory.createComma(n,t)}),n),e.createLessThan=e.Debug.deprecate((function(n,t){return e.factory.createLessThan(n,t)}),n),e.createAssignment=e.Debug.deprecate((function(n,t){return e.factory.createAssignment(n,t)}),n),e.createStrictEquality=e.Debug.deprecate((function(n,t){return e.factory.createStrictEquality(n,t)}),n),e.createStrictInequality=e.Debug.deprecate((function(n,t){return e.factory.createStrictInequality(n,t)}),n),e.createAdd=e.Debug.deprecate((function(n,t){return e.factory.createAdd(n,t)}),n),e.createSubtract=e.Debug.deprecate((function(n,t){return e.factory.createSubtract(n,t)}),n),e.createLogicalAnd=e.Debug.deprecate((function(n,t){return e.factory.createLogicalAnd(n,t)}),n),e.createLogicalOr=e.Debug.deprecate((function(n,t){return e.factory.createLogicalOr(n,t)}),n),e.createPostfixIncrement=e.Debug.deprecate((function(n){return e.factory.createPostfixIncrement(n)}),n),e.createLogicalNot=e.Debug.deprecate((function(n){return e.factory.createLogicalNot(n)}),n),e.createNode=e.Debug.deprecate((function(n,t,r){return void 0===t&&(t=0),void 0===r&&(r=0),e.setTextRangePosEnd(303===n?e.parseBaseNodeFactory.createBaseSourceFileNode(n):79===n?e.parseBaseNodeFactory.createBaseIdentifierNode(n):80===n?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(n):e.isNodeKind(n)?e.parseBaseNodeFactory.createBaseNode(n):e.parseBaseNodeFactory.createBaseTokenNode(n),t,r)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(n){var t=e.factory.cloneNode(n);return e.setTextRange(t,n),e.setParent(t,n.parent),t}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 210===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(n){return e.isMemberName(n)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(ha||(ha={}));var ba=ha.createClassifier,Ea=ha.createLanguageService,Ta=ha.displayPartsToString,Sa=ha.EndOfLineState,xa=ha.flattenDiagnosticMessageText,La=ha.IndentStyle,Da=ha.ScriptKind,Ca=ha.ScriptTarget,Aa=ha.TokenClass,Ia=ha,ka={};function Na(e){return"string"===typeof e?!!/^file:\/\/\//.test(e)&&!!ka[e.substr(8)]:0===e.path.indexOf("/lib.")&&!!ka[e.path.slice(1)]}ka["lib.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es5" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',ka["lib.dom.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n fftSize?: number;\n maxDecibels?: number;\n minDecibels?: number;\n smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n animationName?: string;\n elapsedTime?: number;\n pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: CSSNumberish | null;\n timelineTime?: CSSNumberish | null;\n}\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n buffer?: AudioBuffer | null;\n detune?: number;\n loop?: boolean;\n loopEnd?: number;\n loopStart?: number;\n playbackRate?: number;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: DOMHighResTimeStamp;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n numberOfOutputs?: number;\n outputChannelCount?: number[];\n parameterData?: Record<string, number>;\n processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n appid?: string;\n appidExclude?: string;\n credProps?: boolean;\n uvm?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n uvm?: UvmEntries;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n residentKey?: ResidentKeyRequirement;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobEventInit {\n data: Blob;\n timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSStyleSheetInit {\n baseURL?: string;\n disabled?: boolean;\n media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n colorSpace?: PredefinedColorSpace;\n desynchronized?: boolean;\n willReadFrequently?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n presentationStyle?: PresentationStyle;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n activeDuration?: CSSNumberish;\n currentIteration?: number | null;\n endTime?: CSSNumberish;\n localTime?: CSSNumberish | null;\n progress?: CSSNumberish | null;\n startTime?: CSSNumberish;\n}\n\ninterface ComputedKeyframe {\n composite: CompositeOperationOrAuto;\n computedOffset: number;\n easing: string;\n offset: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface ConstantSourceOptions {\n offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n exact?: boolean;\n ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n exact?: string | string[];\n ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n privateKey?: CryptoKey;\n publicKey?: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n delayTime?: number;\n maxDelayTime?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceMotionEventAccelerationInit;\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n interval?: number;\n rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n absolute?: boolean;\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DisplayMediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n originTime?: DOMHighResTimeStamp;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n attack?: number;\n knee?: number;\n ratio?: number;\n release?: number;\n threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n modifierAltGraph?: boolean;\n modifierCapsLock?: boolean;\n modifierFn?: boolean;\n modifierFnLock?: boolean;\n modifierHyper?: boolean;\n modifierNumLock?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemFlags {\n create?: boolean;\n exclusive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n display?: string;\n featureSettings?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n formData: FormData;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n subtree?: boolean;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface GetRootNodeOptions {\n composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IdleRequestOptions {\n timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n dataTransfer?: DataTransfer | null;\n inputType?: string;\n isComposing?: boolean;\n targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: DOMHighResTimeStamp;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | Document | null;\n rootMargin?: string;\n threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n /** @deprecated */\n charCode?: number;\n code?: string;\n isComposing?: boolean;\n key?: string;\n /** @deprecated */\n keyCode?: number;\n location?: number;\n repeat?: boolean;\n}\n\ninterface Keyframe {\n composite?: CompositeOperationOrAuto;\n easing?: string;\n offset?: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n pseudoElement?: string | null;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaImage {\n sizes?: string;\n src: string;\n type?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message: ArrayBuffer;\n messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n label?: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n encryptionScheme?: string | null;\n robustness?: string;\n}\n\ninterface MediaMetadataInit {\n album?: string;\n artist?: string;\n artwork?: MediaImage[];\n title?: string;\n}\n\ninterface MediaPositionState {\n duration?: number;\n playbackRate?: number;\n position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaRecorderErrorEventInit extends EventInit {\n error: DOMException;\n}\n\ninterface MediaRecorderOptions {\n audioBitsPerSecond?: number;\n bitsPerSecond?: number;\n mimeType?: string;\n videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n action: MediaSessionAction;\n fastSeek?: boolean | null;\n seekOffset?: number | null;\n seekTime?: number | null;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n preferCurrentTab?: boolean;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n cursor?: string[];\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n latency?: DoubleRange;\n logicalSurface?: boolean;\n noiseSuppression?: boolean[];\n resizeMode?: string[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n autoGainControl?: ConstrainBoolean;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n latency?: ConstrainDouble;\n noiseSuppression?: ConstrainBoolean;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n suppressLocalAudioPlayback?: ConstrainBoolean;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n autoGainControl?: boolean;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n noiseSuppression?: boolean;\n restrictOwnAudio?: boolean;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n noiseSuppression?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n suppressLocalAudioPlayback?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n movementX?: number;\n movementY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface MutationObserverInit {\n /** 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. */\n attributeFilter?: string[];\n /** Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded. */\n attributeOldValue?: boolean;\n /** Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */\n attributes?: boolean;\n /** Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified. */\n characterData?: boolean;\n /** Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded. */\n characterDataOldValue?: boolean;\n /** Set to true if mutations to target\'s children are to be observed. */\n childList?: boolean;\n /** Set to true if mutations to not just target, but also target\'s descendants are to be observed. */\n subtree?: boolean;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: DOMTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n coneInnerAngle?: number;\n coneOuterAngle?: number;\n coneOuterGain?: number;\n distanceModel?: DistanceModelType;\n maxDistance?: number;\n orientationX?: number;\n orientationY?: number;\n orientationZ?: number;\n panningModel?: PanningModelType;\n positionX?: number;\n positionY?: number;\n positionZ?: number;\n refDistance?: number;\n rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n currency: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n id?: string;\n total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n additionalDisplayItems?: PaymentItem[];\n data?: any;\n supportedMethods: string;\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n paymentMethodErrors?: any;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n methodDetails?: any;\n methodName?: string;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n error?: string;\n paymentMethod?: any;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[] | Float32Array;\n real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n coalescedEvents?: PointerEvent[];\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n predictedEvents?: PointerEvent[];\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PropertyIndexedKeyframes {\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n easing?: string | string[];\n offset?: number | (number | null)[];\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n attestation?: AttestationConveyancePreference;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: BufferSource;\n excludeCredentials?: PublicKeyCredentialDescriptor[];\n extensions?: AuthenticationExtensionsClientInputs;\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n alg: COSEAlgorithmIdentifier;\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n allowCredentials?: PublicKeyCredentialDescriptor[];\n challenge: BufferSource;\n extensions?: AuthenticationExtensionsClientInputs;\n rpId?: string;\n timeout?: number;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: DOMTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * 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.\n */\n highWaterMark: number;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n expires?: DOMTimeStamp;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n id?: number;\n maxPacketLifeTime?: number;\n maxRetransmits?: number;\n negotiated?: boolean;\n ordered?: boolean;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n currentRoundTripTime?: number;\n localCandidateId: string;\n nominated?: boolean;\n remoteCandidateId: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n state: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n transportId: string;\n}\n\ninterface RTCIceServer {\n credential?: string;\n credentialType?: RTCIceCredentialType;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n firCount?: number;\n framesDecoded?: number;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n}\n\ninterface RTCLocalSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n firCount?: number;\n framesEncoded?: number;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n address?: string | null;\n errorCode: number;\n errorText?: string;\n port?: number | null;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n jitter?: number;\n packetsDiscarded?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n channels?: number;\n clockRate: number;\n mimeType: string;\n payloadType: number;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n maxBitrate?: number;\n priority?: RTCPriorityType;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypted?: boolean;\n id: number;\n uri: string;\n}\n\ninterface RTCRtpParameters {\n codecs: RTCRtpCodecParameters[];\n headerExtensions: RTCRtpHeaderExtensionParameters[];\n rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n codecId?: string;\n kind: string;\n ssrc: number;\n transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type: RTCSdpType;\n}\n\ninterface RTCStats {\n id: string;\n timestamp: DOMHighResTimeStamp;\n type: RTCStatsType;\n}\n\ninterface RTCTrackEventInit extends EventInit {\n receiver: RTCRtpReceiver;\n streams?: MediaStream[];\n track: MediaStreamTrack;\n transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n bytesReceived?: number;\n bytesSent?: number;\n dtlsCipher?: string;\n dtlsState: RTCDtlsTransportState;\n localCertificateId?: string;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsVersion?: string;\n}\n\ninterface ReadableStreamDefaultReadDoneResult {\n done: true;\n value?: undefined;\n}\n\ninterface ReadableStreamDefaultReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\n /** 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. */\n credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n /** 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. */\n redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResizeObserverOptions {\n box?: ResizeObserverBoxOptions;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n clipped?: boolean;\n fill?: boolean;\n markers?: boolean;\n stroke?: boolean;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n block?: ScrollLogicalPosition;\n inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n left?: number;\n top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n files?: File[];\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n key?: string | null;\n newValue?: string | null;\n oldValue?: string | null;\n storageArea?: Storage | null;\n url?: string;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: any[];\n}\n\ninterface SubmitEventInit extends EventInit {\n submitter?: HTMLElement | null;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\ninterface TouchInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n clientX?: number;\n clientY?: number;\n force?: number;\n identifier: number;\n pageX?: number;\n pageY?: number;\n radiusX?: number;\n radiusY?: number;\n rotationAngle?: number;\n screenX?: number;\n screenY?: number;\n target: EventTarget;\n touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: TextTrack | null;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n /** @deprecated */\n which?: number;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: undefined;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends StructuredSerializeOptions {\n targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n readonly FILTER_ACCEPT: number;\n readonly FILTER_REJECT: number;\n readonly FILTER_SKIP: number;\n readonly SHOW_ALL: number;\n readonly SHOW_ATTRIBUTE: number;\n readonly SHOW_CDATA_SECTION: number;\n readonly SHOW_COMMENT: number;\n readonly SHOW_DOCUMENT: number;\n readonly SHOW_DOCUMENT_FRAGMENT: number;\n readonly SHOW_DOCUMENT_TYPE: number;\n readonly SHOW_ELEMENT: number;\n readonly SHOW_ENTITY: number;\n readonly SHOW_ENTITY_REFERENCE: number;\n readonly SHOW_NOTATION: number;\n readonly SHOW_PROCESSING_INSTRUCTION: number;\n readonly SHOW_TEXT: number;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** 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. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\ninterface ARIAMixin {\n ariaAtomic: string;\n ariaAutoComplete: string;\n ariaBusy: string;\n ariaChecked: string;\n ariaColCount: string;\n ariaColIndex: string;\n ariaColSpan: string;\n ariaCurrent: string;\n ariaDisabled: string;\n ariaExpanded: string;\n ariaHasPopup: string;\n ariaHidden: string;\n ariaKeyShortcuts: string;\n ariaLabel: string;\n ariaLevel: string;\n ariaLive: string;\n ariaModal: string;\n ariaMultiLine: string;\n ariaMultiSelectable: string;\n ariaOrientation: string;\n ariaPlaceholder: string;\n ariaPosInSet: string;\n ariaPressed: string;\n ariaReadOnly: string;\n ariaRequired: string;\n ariaRoleDescription: string;\n ariaRowCount: string;\n ariaRowIndex: string;\n ariaRowSpan: string;\n ariaSelected: string;\n ariaSetSize: string;\n ariaSort: string;\n ariaValueMax: string;\n ariaValueMin: string;\n ariaValueNow: string;\n ariaValueText: string;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /** Returns the AbortSignal object associated with this object. */\n readonly signal: AbortSignal;\n /** 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. */\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** 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. */\ninterface AbortSignal extends EventTarget {\n /** Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise. */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n // abort(): AbortSignal; - To be re-added in the future\n};\n\ninterface AbstractRange {\n /** Returns true if range is collapsed, and false otherwise. */\n readonly collapsed: boolean;\n /** Returns range\'s end node. */\n readonly endContainer: Node;\n /** Returns range\'s end offset. */\n readonly endOffset: number;\n /** Returns range\'s start node. */\n readonly startContainer: Node;\n /** Returns range\'s start offset. */\n readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n prototype: AbstractRange;\n new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface AnalyserNode extends AudioNode {\n fftSize: number;\n readonly frequencyBinCount: number;\n maxDecibels: number;\n minDecibels: number;\n smoothingTimeConstant: number;\n getByteFrequencyData(array: Uint8Array): void;\n getByteTimeDomainData(array: Uint8Array): void;\n getFloatFrequencyData(array: Float32Array): void;\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n "remove": Event;\n}\n\ninterface Animation extends EventTarget {\n currentTime: CSSNumberish | null;\n effect: AnimationEffect | null;\n readonly finished: Promise<Animation>;\n id: string;\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onremove: ((this: Animation, ev: Event) => any) | null;\n readonly pending: boolean;\n readonly playState: AnimationPlayState;\n playbackRate: number;\n readonly ready: Promise<Animation>;\n readonly replaceState: AnimationReplaceState;\n startTime: CSSNumberish | null;\n timeline: AnimationTimeline | null;\n cancel(): void;\n commitStyles(): void;\n finish(): void;\n pause(): void;\n persist(): void;\n play(): void;\n reverse(): void;\n updatePlaybackRate(playbackRate: number): void;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n getComputedTiming(): ComputedEffectTiming;\n getTiming(): EffectTiming;\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/** Events providing information related to animations. */\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: CSSNumberish | null;\n readonly timelineTime: CSSNumberish | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/** 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. */\ninterface Attr extends Node {\n readonly localName: string;\n readonly name: string;\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n readonly ownerElement: Element | null;\n readonly prefix: string | null;\n readonly specified: boolean;\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/** 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. */\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/** 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. */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n prototype: AudioBufferSourceNode;\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\ninterface AudioContext extends BaseAudioContext {\n readonly baseLatency: number;\n close(): Promise<void>;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n getOutputTimestamp(): AudioTimestamp;\n resume(): Promise<void>;\n suspend(): Promise<void>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/** 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. */\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/** 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. */\ninterface AudioListener {\n readonly forwardX: AudioParam;\n readonly forwardY: AudioParam;\n readonly forwardZ: AudioParam;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n readonly upX: AudioParam;\n readonly upY: AudioParam;\n readonly upZ: AudioParam;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/** A generic interface for representing an audio processing module. Examples include: */\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: BaseAudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destinationNode: AudioNode): void;\n disconnect(destinationNode: AudioNode, output: number): void;\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\n disconnect(destinationParam: AudioParam): void;\n disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\ninterface AudioParam {\n automationRate: AutomationRate;\n readonly defaultValue: number;\n readonly maxValue: number;\n readonly minValue: number;\n value: number;\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n cancelScheduledValues(cancelTime: number): AudioParam;\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n setValueAtTime(value: number, startTime: number): AudioParam;\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioParamMap {\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n prototype: AudioParamMap;\n new(): AudioParamMap;\n};\n\n/**\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @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.\n */\ninterface AudioProcessingEvent extends Event {\n /** @deprecated */\n readonly inputBuffer: AudioBuffer;\n /** @deprecated */\n readonly outputBuffer: AudioBuffer;\n /** @deprecated */\n readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n prototype: AudioScheduledSourceNode;\n new(): AudioScheduledSourceNode;\n};\n\n/** Available only in secure contexts. */\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n prototype: AudioWorklet;\n new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n "processorerror": Event;\n}\n\n/** Available only in secure contexts. */\ninterface AudioWorkletNode extends AudioNode {\n onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n readonly parameters: AudioParamMap;\n readonly port: MessagePort;\n addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n prototype: AudioWorkletNode;\n new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n readonly authenticatorData: ArrayBuffer;\n readonly signature: ArrayBuffer;\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n readonly attestationObject: ArrayBuffer;\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorResponse {\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\ninterface BarProp {\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n "statechange": Event;\n}\n\ninterface BaseAudioContext extends EventTarget {\n /** Available only in secure contexts. */\n readonly audioWorklet: AudioWorklet;\n readonly currentTime: number;\n readonly destination: AudioDestinationNode;\n readonly listener: AudioListener;\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n readonly sampleRate: number;\n readonly state: AudioContextState;\n createAnalyser(): AnalyserNode;\n createBiquadFilter(): BiquadFilterNode;\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n createBufferSource(): AudioBufferSourceNode;\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n createConstantSource(): ConstantSourceNode;\n createConvolver(): ConvolverNode;\n createDelay(maxDelayTime?: number): DelayNode;\n createDynamicsCompressor(): DynamicsCompressorNode;\n createGain(): GainNode;\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n createOscillator(): OscillatorNode;\n createPanner(): PannerNode;\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /** @deprecated */\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n createStereoPanner(): StereoPannerNode;\n createWaveShaper(): WaveShaperNode;\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n prototype: BaseAudioContext;\n new(): BaseAudioContext;\n};\n\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\ninterface BeforeUnloadEvent extends Event {\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/** 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. */\ninterface BiquadFilterNode extends AudioNode {\n readonly Q: AudioParam;\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n readonly gain: AudioParam;\n type: BiquadFilterType;\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/** 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. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream;\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobEvent extends Event {\n readonly data: Blob;\n readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n prototype: BlobEvent;\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n readonly body: ReadableStream<Uint8Array> | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise<ArrayBuffer>;\n blob(): Promise<Blob>;\n formData(): Promise<FormData>;\n json(): Promise<any>;\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /** Returns the channel name (as passed to the constructor). */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** Closes the BroadcastChannel object, opening it up to garbage collection. */\n close(): void;\n /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** 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. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\ninterface CSSAnimation extends Animation {\n readonly animationName: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n prototype: CSSAnimation;\n new(): CSSAnimation;\n};\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\ninterface CSSConditionRule extends CSSGroupingRule {\n conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\ninterface CSSCounterStyleRule extends CSSRule {\n additiveSymbols: string;\n fallback: string;\n name: string;\n negative: string;\n pad: string;\n prefix: string;\n range: string;\n speakAs: string;\n suffix: string;\n symbols: string;\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\n/** Any CSS at-rule that contains other rules nested within it. */\ninterface CSSGroupingRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\ninterface CSSImportRule extends CSSRule {\n readonly href: string;\n readonly media: MediaList;\n readonly styleSheet: CSSStyleSheet;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/** 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). */\ninterface CSSKeyframeRule extends CSSRule {\n keyText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/** 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). */\ninterface CSSKeyframesRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n name: string;\n appendRule(rule: string): void;\n deleteRule(select: string): void;\n findRule(select: string): CSSKeyframeRule | null;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\n/** 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). */\ninterface CSSMediaRule extends CSSConditionRule {\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\ninterface CSSNamespaceRule extends CSSRule {\n readonly namespaceURI: string;\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\ninterface CSSPageRule extends CSSGroupingRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\ninterface CSSRule {\n cssText: string;\n readonly parentRule: CSSRule | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n /** @deprecated */\n readonly type: number;\n readonly CHARSET_RULE: number;\n readonly FONT_FACE_RULE: number;\n readonly IMPORT_RULE: number;\n readonly KEYFRAMES_RULE: number;\n readonly KEYFRAME_RULE: number;\n readonly MEDIA_RULE: number;\n readonly NAMESPACE_RULE: number;\n readonly PAGE_RULE: number;\n readonly STYLE_RULE: number;\n readonly SUPPORTS_RULE: number;\n}\n\ndeclare var CSSRule: {\n prototype: CSSRule;\n new(): CSSRule;\n readonly CHARSET_RULE: number;\n readonly FONT_FACE_RULE: number;\n readonly IMPORT_RULE: number;\n readonly KEYFRAMES_RULE: number;\n readonly KEYFRAME_RULE: number;\n readonly MEDIA_RULE: number;\n readonly NAMESPACE_RULE: number;\n readonly PAGE_RULE: number;\n readonly STYLE_RULE: number;\n readonly SUPPORTS_RULE: number;\n};\n\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\ninterface CSSRuleList {\n readonly length: number;\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n accentColor: string;\n alignContent: string;\n alignItems: string;\n alignSelf: string;\n alignmentBaseline: string;\n all: string;\n animation: string;\n animationDelay: string;\n animationDirection: string;\n animationDuration: string;\n animationFillMode: string;\n animationIterationCount: string;\n animationName: string;\n animationPlayState: string;\n animationTimingFunction: string;\n appearance: string;\n aspectRatio: string;\n backfaceVisibility: string;\n background: string;\n backgroundAttachment: string;\n backgroundBlendMode: string;\n backgroundClip: string;\n backgroundColor: string;\n backgroundImage: string;\n backgroundOrigin: string;\n backgroundPosition: string;\n backgroundPositionX: string;\n backgroundPositionY: string;\n backgroundRepeat: string;\n backgroundSize: string;\n baselineShift: string;\n blockSize: string;\n border: string;\n borderBlock: string;\n borderBlockColor: string;\n borderBlockEnd: string;\n borderBlockEndColor: string;\n borderBlockEndStyle: string;\n borderBlockEndWidth: string;\n borderBlockStart: string;\n borderBlockStartColor: string;\n borderBlockStartStyle: string;\n borderBlockStartWidth: string;\n borderBlockStyle: string;\n borderBlockWidth: string;\n borderBottom: string;\n borderBottomColor: string;\n borderBottomLeftRadius: string;\n borderBottomRightRadius: string;\n borderBottomStyle: string;\n borderBottomWidth: string;\n borderCollapse: string;\n borderColor: string;\n borderEndEndRadius: string;\n borderEndStartRadius: string;\n borderImage: string;\n borderImageOutset: string;\n borderImageRepeat: string;\n borderImageSlice: string;\n borderImageSource: string;\n borderImageWidth: string;\n borderInline: string;\n borderInlineColor: string;\n borderInlineEnd: string;\n borderInlineEndColor: string;\n borderInlineEndStyle: string;\n borderInlineEndWidth: string;\n borderInlineStart: string;\n borderInlineStartColor: string;\n borderInlineStartStyle: string;\n borderInlineStartWidth: string;\n borderInlineStyle: string;\n borderInlineWidth: string;\n borderLeft: string;\n borderLeftColor: string;\n borderLeftStyle: string;\n borderLeftWidth: string;\n borderRadius: string;\n borderRight: string;\n borderRightColor: string;\n borderRightStyle: string;\n borderRightWidth: string;\n borderSpacing: string;\n borderStartEndRadius: string;\n borderStartStartRadius: string;\n borderStyle: string;\n borderTop: string;\n borderTopColor: string;\n borderTopLeftRadius: string;\n borderTopRightRadius: string;\n borderTopStyle: string;\n borderTopWidth: string;\n borderWidth: string;\n bottom: string;\n boxShadow: string;\n boxSizing: string;\n breakAfter: string;\n breakBefore: string;\n breakInside: string;\n captionSide: string;\n caretColor: string;\n clear: string;\n /** @deprecated */\n clip: string;\n clipPath: string;\n clipRule: string;\n color: string;\n colorInterpolation: string;\n colorInterpolationFilters: string;\n colorScheme: string;\n columnCount: string;\n columnFill: string;\n columnGap: string;\n columnRule: string;\n columnRuleColor: string;\n columnRuleStyle: string;\n columnRuleWidth: string;\n columnSpan: string;\n columnWidth: string;\n columns: string;\n contain: string;\n content: string;\n counterIncrement: string;\n counterReset: string;\n counterSet: string;\n cssFloat: string;\n cssText: string;\n cursor: string;\n direction: string;\n display: string;\n dominantBaseline: string;\n emptyCells: string;\n fill: string;\n fillOpacity: string;\n fillRule: string;\n filter: string;\n flex: string;\n flexBasis: string;\n flexDirection: string;\n flexFlow: string;\n flexGrow: string;\n flexShrink: string;\n flexWrap: string;\n float: string;\n floodColor: string;\n floodOpacity: string;\n font: string;\n fontFamily: string;\n fontFeatureSettings: string;\n fontKerning: string;\n fontOpticalSizing: string;\n fontSize: string;\n fontSizeAdjust: string;\n fontStretch: string;\n fontStyle: string;\n fontSynthesis: string;\n fontVariant: string;\n /** @deprecated */\n fontVariantAlternates: string;\n fontVariantCaps: string;\n fontVariantEastAsian: string;\n fontVariantLigatures: string;\n fontVariantNumeric: string;\n fontVariantPosition: string;\n fontVariationSettings: string;\n fontWeight: string;\n gap: string;\n grid: string;\n gridArea: string;\n gridAutoColumns: string;\n gridAutoFlow: string;\n gridAutoRows: string;\n gridColumn: string;\n gridColumnEnd: string;\n /** @deprecated This is a legacy alias of `columnGap`. */\n gridColumnGap: string;\n gridColumnStart: string;\n /** @deprecated This is a legacy alias of `gap`. */\n gridGap: string;\n gridRow: string;\n gridRowEnd: string;\n /** @deprecated This is a legacy alias of `rowGap`. */\n gridRowGap: string;\n gridRowStart: string;\n gridTemplate: string;\n gridTemplateAreas: string;\n gridTemplateColumns: string;\n gridTemplateRows: string;\n height: string;\n hyphens: string;\n /** @deprecated */\n imageOrientation: string;\n imageRendering: string;\n inlineSize: string;\n inset: string;\n insetBlock: string;\n insetBlockEnd: string;\n insetBlockStart: string;\n insetInline: string;\n insetInlineEnd: string;\n insetInlineStart: string;\n isolation: string;\n justifyContent: string;\n justifyItems: string;\n justifySelf: string;\n left: string;\n readonly length: number;\n letterSpacing: string;\n lightingColor: string;\n lineBreak: string;\n lineHeight: string;\n listStyle: string;\n listStyleImage: string;\n listStylePosition: string;\n listStyleType: string;\n margin: string;\n marginBlock: string;\n marginBlockEnd: string;\n marginBlockStart: string;\n marginBottom: string;\n marginInline: string;\n marginInlineEnd: string;\n marginInlineStart: string;\n marginLeft: string;\n marginRight: string;\n marginTop: string;\n marker: string;\n markerEnd: string;\n markerMid: string;\n markerStart: string;\n mask: string;\n maskType: string;\n maxBlockSize: string;\n maxHeight: string;\n maxInlineSize: string;\n maxWidth: string;\n minBlockSize: string;\n minHeight: string;\n minInlineSize: string;\n minWidth: string;\n mixBlendMode: string;\n objectFit: string;\n objectPosition: string;\n offset: string;\n offsetAnchor: string;\n offsetDistance: string;\n offsetPath: string;\n offsetRotate: string;\n opacity: string;\n order: string;\n orphans: string;\n outline: string;\n outlineColor: string;\n outlineOffset: string;\n outlineStyle: string;\n outlineWidth: string;\n overflow: string;\n overflowAnchor: string;\n overflowWrap: string;\n overflowX: string;\n overflowY: string;\n overscrollBehavior: string;\n overscrollBehaviorBlock: string;\n overscrollBehaviorInline: string;\n overscrollBehaviorX: string;\n overscrollBehaviorY: string;\n padding: string;\n paddingBlock: string;\n paddingBlockEnd: string;\n paddingBlockStart: string;\n paddingBottom: string;\n paddingInline: string;\n paddingInlineEnd: string;\n paddingInlineStart: string;\n paddingLeft: string;\n paddingRight: string;\n paddingTop: string;\n pageBreakAfter: string;\n pageBreakBefore: string;\n pageBreakInside: string;\n paintOrder: string;\n readonly parentRule: CSSRule | null;\n perspective: string;\n perspectiveOrigin: string;\n placeContent: string;\n placeItems: string;\n placeSelf: string;\n pointerEvents: string;\n position: string;\n quotes: string;\n resize: string;\n right: string;\n rotate: string;\n rowGap: string;\n rubyPosition: string;\n scale: string;\n scrollBehavior: string;\n scrollMargin: string;\n scrollMarginBlock: string;\n scrollMarginBlockEnd: string;\n scrollMarginBlockStart: string;\n scrollMarginBottom: string;\n scrollMarginInline: string;\n scrollMarginInlineEnd: string;\n scrollMarginInlineStart: string;\n scrollMarginLeft: string;\n scrollMarginRight: string;\n scrollMarginTop: string;\n scrollPadding: string;\n scrollPaddingBlock: string;\n scrollPaddingBlockEnd: string;\n scrollPaddingBlockStart: string;\n scrollPaddingBottom: string;\n scrollPaddingInline: string;\n scrollPaddingInlineEnd: string;\n scrollPaddingInlineStart: string;\n scrollPaddingLeft: string;\n scrollPaddingRight: string;\n scrollPaddingTop: string;\n scrollSnapAlign: string;\n scrollSnapStop: string;\n scrollSnapType: string;\n shapeImageThreshold: string;\n shapeMargin: string;\n shapeOutside: string;\n shapeRendering: string;\n stopColor: string;\n stopOpacity: string;\n stroke: string;\n strokeDasharray: string;\n strokeDashoffset: string;\n strokeLinecap: string;\n strokeLinejoin: string;\n strokeMiterlimit: string;\n strokeOpacity: string;\n strokeWidth: string;\n tabSize: string;\n tableLayout: string;\n textAlign: string;\n textAlignLast: string;\n textAnchor: string;\n textCombineUpright: string;\n textDecoration: string;\n textDecorationColor: string;\n textDecorationLine: string;\n textDecorationSkipInk: string;\n textDecorationStyle: string;\n textDecorationThickness: string;\n textEmphasis: string;\n textEmphasisColor: string;\n textEmphasisPosition: string;\n textEmphasisStyle: string;\n textIndent: string;\n textOrientation: string;\n textOverflow: string;\n textRendering: string;\n textShadow: string;\n textTransform: string;\n textUnderlineOffset: string;\n textUnderlinePosition: string;\n top: string;\n touchAction: string;\n transform: string;\n transformBox: string;\n transformOrigin: string;\n transformStyle: string;\n transition: string;\n transitionDelay: string;\n transitionDuration: string;\n transitionProperty: string;\n transitionTimingFunction: string;\n translate: string;\n unicodeBidi: string;\n userSelect: string;\n verticalAlign: string;\n visibility: string;\n /** @deprecated This is a legacy alias of `alignContent`. */\n webkitAlignContent: string;\n /** @deprecated This is a legacy alias of `alignItems`. */\n webkitAlignItems: string;\n /** @deprecated This is a legacy alias of `alignSelf`. */\n webkitAlignSelf: string;\n /** @deprecated This is a legacy alias of `animation`. */\n webkitAnimation: string;\n /** @deprecated This is a legacy alias of `animationDelay`. */\n webkitAnimationDelay: string;\n /** @deprecated This is a legacy alias of `animationDirection`. */\n webkitAnimationDirection: string;\n /** @deprecated This is a legacy alias of `animationDuration`. */\n webkitAnimationDuration: string;\n /** @deprecated This is a legacy alias of `animationFillMode`. */\n webkitAnimationFillMode: string;\n /** @deprecated This is a legacy alias of `animationIterationCount`. */\n webkitAnimationIterationCount: string;\n /** @deprecated This is a legacy alias of `animationName`. */\n webkitAnimationName: string;\n /** @deprecated This is a legacy alias of `animationPlayState`. */\n webkitAnimationPlayState: string;\n /** @deprecated This is a legacy alias of `animationTimingFunction`. */\n webkitAnimationTimingFunction: string;\n /** @deprecated This is a legacy alias of `appearance`. */\n webkitAppearance: string;\n /** @deprecated This is a legacy alias of `backfaceVisibility`. */\n webkitBackfaceVisibility: string;\n /** @deprecated This is a legacy alias of `backgroundClip`. */\n webkitBackgroundClip: string;\n /** @deprecated This is a legacy alias of `backgroundOrigin`. */\n webkitBackgroundOrigin: string;\n /** @deprecated This is a legacy alias of `backgroundSize`. */\n webkitBackgroundSize: string;\n /** @deprecated This is a legacy alias of `borderBottomLeftRadius`. */\n webkitBorderBottomLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderBottomRightRadius`. */\n webkitBorderBottomRightRadius: string;\n /** @deprecated This is a legacy alias of `borderRadius`. */\n webkitBorderRadius: string;\n /** @deprecated This is a legacy alias of `borderTopLeftRadius`. */\n webkitBorderTopLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderTopRightRadius`. */\n webkitBorderTopRightRadius: string;\n /** @deprecated This is a legacy alias of `boxAlign`. */\n webkitBoxAlign: string;\n /** @deprecated This is a legacy alias of `boxFlex`. */\n webkitBoxFlex: string;\n /** @deprecated This is a legacy alias of `boxOrdinalGroup`. */\n webkitBoxOrdinalGroup: string;\n /** @deprecated This is a legacy alias of `boxOrient`. */\n webkitBoxOrient: string;\n /** @deprecated This is a legacy alias of `boxPack`. */\n webkitBoxPack: string;\n /** @deprecated This is a legacy alias of `boxShadow`. */\n webkitBoxShadow: string;\n /** @deprecated This is a legacy alias of `boxSizing`. */\n webkitBoxSizing: string;\n /** @deprecated This is a legacy alias of `filter`. */\n webkitFilter: string;\n /** @deprecated This is a legacy alias of `flex`. */\n webkitFlex: string;\n /** @deprecated This is a legacy alias of `flexBasis`. */\n webkitFlexBasis: string;\n /** @deprecated This is a legacy alias of `flexDirection`. */\n webkitFlexDirection: string;\n /** @deprecated This is a legacy alias of `flexFlow`. */\n webkitFlexFlow: string;\n /** @deprecated This is a legacy alias of `flexGrow`. */\n webkitFlexGrow: string;\n /** @deprecated This is a legacy alias of `flexShrink`. */\n webkitFlexShrink: string;\n /** @deprecated This is a legacy alias of `flexWrap`. */\n webkitFlexWrap: string;\n /** @deprecated This is a legacy alias of `justifyContent`. */\n webkitJustifyContent: string;\n webkitLineClamp: string;\n /** @deprecated This is a legacy alias of `mask`. */\n webkitMask: string;\n /** @deprecated This is a legacy alias of `maskBorder`. */\n webkitMaskBoxImage: string;\n /** @deprecated This is a legacy alias of `maskBorderOutset`. */\n webkitMaskBoxImageOutset: string;\n /** @deprecated This is a legacy alias of `maskBorderRepeat`. */\n webkitMaskBoxImageRepeat: string;\n /** @deprecated This is a legacy alias of `maskBorderSlice`. */\n webkitMaskBoxImageSlice: string;\n /** @deprecated This is a legacy alias of `maskBorderSource`. */\n webkitMaskBoxImageSource: string;\n /** @deprecated This is a legacy alias of `maskBorderWidth`. */\n webkitMaskBoxImageWidth: string;\n /** @deprecated This is a legacy alias of `maskClip`. */\n webkitMaskClip: string;\n webkitMaskComposite: string;\n /** @deprecated This is a legacy alias of `maskImage`. */\n webkitMaskImage: string;\n /** @deprecated This is a legacy alias of `maskOrigin`. */\n webkitMaskOrigin: string;\n /** @deprecated This is a legacy alias of `maskPosition`. */\n webkitMaskPosition: string;\n /** @deprecated This is a legacy alias of `maskRepeat`. */\n webkitMaskRepeat: string;\n /** @deprecated This is a legacy alias of `maskSize`. */\n webkitMaskSize: string;\n /** @deprecated This is a legacy alias of `order`. */\n webkitOrder: string;\n /** @deprecated This is a legacy alias of `perspective`. */\n webkitPerspective: string;\n /** @deprecated This is a legacy alias of `perspectiveOrigin`. */\n webkitPerspectiveOrigin: string;\n webkitTextFillColor: string;\n webkitTextStroke: string;\n webkitTextStrokeColor: string;\n webkitTextStrokeWidth: string;\n /** @deprecated This is a legacy alias of `transform`. */\n webkitTransform: string;\n /** @deprecated This is a legacy alias of `transformOrigin`. */\n webkitTransformOrigin: string;\n /** @deprecated This is a legacy alias of `transformStyle`. */\n webkitTransformStyle: string;\n /** @deprecated This is a legacy alias of `transition`. */\n webkitTransition: string;\n /** @deprecated This is a legacy alias of `transitionDelay`. */\n webkitTransitionDelay: string;\n /** @deprecated This is a legacy alias of `transitionDuration`. */\n webkitTransitionDuration: string;\n /** @deprecated This is a legacy alias of `transitionProperty`. */\n webkitTransitionProperty: string;\n /** @deprecated This is a legacy alias of `transitionTimingFunction`. */\n webkitTransitionTimingFunction: string;\n /** @deprecated This is a legacy alias of `userSelect`. */\n webkitUserSelect: string;\n whiteSpace: string;\n widows: string;\n width: string;\n willChange: string;\n wordBreak: string;\n wordSpacing: string;\n /** @deprecated */\n wordWrap: string;\n writingMode: string;\n zIndex: string;\n getPropertyPriority(property: string): string;\n getPropertyValue(property: string): string;\n item(index: number): string;\n removeProperty(property: string): string;\n setProperty(property: string, value: string | null, priority?: string): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\ninterface CSSStyleSheet extends StyleSheet {\n readonly cssRules: CSSRuleList;\n readonly ownerRule: CSSRule | null;\n /** @deprecated */\n readonly rules: CSSRuleList;\n /** @deprecated */\n addRule(selector?: string, style?: string, index?: number): number;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n /** @deprecated */\n removeRule(index?: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** 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). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\ninterface CSSTransition extends Animation {\n readonly transitionProperty: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n prototype: CSSTransition;\n new(): CSSTransition;\n};\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface Cache {\n add(request: RequestInfo): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n put(request: RequestInfo, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n */\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n globalAlpha: number;\n globalCompositeOperation: string;\n}\n\ninterface CanvasDrawImage {\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n beginPath(): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n fillStyle: string | CanvasGradient | CanvasPattern;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * 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.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n imageSmoothingEnabled: boolean;\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasPathDrawingStyles {\n lineCap: CanvasLineCap;\n lineDashOffset: number;\n lineJoin: CanvasLineJoin;\n lineWidth: number;\n miterLimit: number;\n getLineDash(): number[];\n setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n clearRect(x: number, y: number, w: number, h: number): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/** 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. */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n readonly canvas: HTMLCanvasElement;\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n restore(): void;\n save(): void;\n}\n\ninterface CanvasText {\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n measureText(text: string): TextMetrics;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n direction: CanvasDirection;\n font: string;\n textAlign: CanvasTextAlign;\n textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n getTransform(): DOMMatrix;\n resetTransform(): void;\n rotate(angle: number): void;\n scale(x: number, y: number): void;\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/** 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. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** 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. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** 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. */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n data: string;\n readonly length: number;\n readonly ownerDocument: Document;\n appendData(data: string): void;\n deleteData(offset: number, count: number): void;\n insertData(offset: number, data: string): void;\n replaceData(offset: number, count: number, data: string): void;\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n /**\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n after(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n before(...nodes: (Node | string)[]): void;\n /** Removes node. */\n remove(): void;\n /**\n * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\n/** Available only in secure contexts. */\ninterface Clipboard extends EventTarget {\n read(): Promise<ClipboardItems>;\n readText(): Promise<string>;\n write(data: ClipboardItems): Promise<void>;\n writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\ninterface ClipboardItem {\n readonly types: ReadonlyArray<string>;\n getType(type: string): Promise<Blob>;\n}\n\ndeclare var ClipboardItem: {\n prototype: ClipboardItem;\n new(items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>, options?: ClipboardItemOptions): ClipboardItem;\n};\n\n/** 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. */\ninterface CloseEvent extends Event {\n /** Returns the WebSocket connection close code provided by the server. */\n readonly code: number;\n /** Returns the WebSocket connection close reason provided by the server. */\n readonly reason: string;\n /** Returns true if the connection closed cleanly; false otherwise. */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n readonly data: string;\n /** @deprecated */\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n readonly offset: AudioParam;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n prototype: ConstantSourceNode;\n new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\n/** 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. */\ninterface ConvolverNode extends AudioNode {\n buffer: AudioBuffer | null;\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Available only in secure contexts. */\ninterface Credential {\n readonly id: string;\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\n/** Available only in secure contexts. */\ninterface CredentialsContainer {\n create(options?: CredentialCreationOptions): Promise<Credential | null>;\n get(options?: CredentialRequestOptions): Promise<Credential | null>;\n preventSilentAccess(): Promise<void>;\n store(credential: Credential): Promise<Credential>;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n /** Available only in secure contexts. */\n readonly subtle: SubtleCrypto;\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n get(name: string): CustomElementConstructor | undefined;\n upgrade(root: Node): void;\n whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\ninterface CustomEvent<T = any> extends Event {\n /** Returns any custom data event was created with. Typically used for synthetic events. */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException extends Error {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n};\n\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\ninterface DOMImplementation {\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n createHTMLDocument(title?: string): Document;\n /** @deprecated */\n hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n setMatrixValue(transformList: string): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n toString(): string;\n};\n\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\ninterface DOMParser {\n /**\n * 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).\n *\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n *\n * Note that script elements are not evaluated during parsing, and the resulting document\'s encoding will always be UTF-8.\n *\n * Values other than the above for type will cause a TypeError exception to be thrown.\n */\n parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /** Returns the number of strings in strings. */\n readonly length: number;\n /** Returns true if strings contains string, and false otherwise. */\n contains(string: string): boolean;\n /** Returns the string with index index from strings. */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\n/** Used by the dataset\xa0HTML\xa0attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\n/** 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. */\ninterface DOMTokenList {\n /** Returns the number of tokens. */\n readonly length: number;\n /**\n * Returns the associated set as string.\n *\n * Can be set, to change the associated attribute.\n */\n value: string;\n toString(): string;\n /**\n * Adds all arguments passed, except those already present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n add(...tokens: string[]): void;\n /** Returns true if token is present, and false otherwise. */\n contains(token: string): boolean;\n /** Returns the token with index index. */\n item(index: number): string | null;\n /**\n * Removes arguments passed, if they are present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n remove(...tokens: string[]): void;\n /**\n * Replaces token with newToken.\n *\n * Returns true if token was replaced with newToken, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n replace(token: string, newToken: string): boolean;\n /**\n * Returns true if token is in the associated attribute\'s supported tokens. Returns false otherwise.\n *\n * Throws a TypeError if the associated attribute has no supported tokens defined.\n */\n supports(token: string): boolean;\n /**\n * 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()).\n *\n * Returns true if token is now present, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if token is empty.\n *\n * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n */\n toggle(token: string, force?: boolean): boolean;\n forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\n/** 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. */\ninterface DataTransfer {\n /**\n * 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.\n *\n * Can be set, to change the selected operation.\n *\n * The possible values are "none", "copy", "link", and "move".\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * Returns the kinds of operations that are to be allowed.\n *\n * Can be set (during the dragstart event), to change the allowed operations.\n *\n * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n */\n effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";\n /** Returns a FileList of the files being dragged, if any. */\n readonly files: FileList;\n /** Returns a DataTransferItemList object, with the drag data. */\n readonly items: DataTransferItemList;\n /** 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". */\n readonly types: ReadonlyArray<string>;\n /** Removes the data of the specified formats. Removes all data if the argument is omitted. */\n clearData(format?: string): void;\n /** Returns the specified data. If there is no such data, returns the empty string. */\n getData(format: string): string;\n /** Adds the specified data. */\n setData(format: string, data: string): void;\n /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\n/** 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. */\ninterface DataTransferItem {\n /** Returns the drag data item kind, one of: "string", "file". */\n readonly kind: string;\n /** Returns the drag data item type string. */\n readonly type: string;\n /** Returns a File object, if the drag data item kind is File. */\n getAsFile(): File | null;\n /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */\n getAsString(callback: FunctionStringCallback | null): void;\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/** 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. */\ninterface DataTransferItemList {\n /** Returns the number of items in the drag data store. */\n readonly length: number;\n /** 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. */\n add(data: string, type: string): DataTransferItem | null;\n add(data: File): DataTransferItem | null;\n /** Removes all the entries in the drag data store. */\n clear(): void;\n /** Removes the indexth entry in the drag data store. */\n remove(index: number): void;\n [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\n/** 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. */\ninterface DelayNode extends AudioNode {\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/**\n * The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation.\n * Available only in secure contexts.\n */\ninterface DeviceMotionEvent extends Event {\n readonly acceleration: DeviceMotionEventAcceleration | null;\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n readonly interval: number;\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\n/** Available only in secure contexts. */\ninterface DeviceMotionEventAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\n/** Available only in secure contexts. */\ninterface DeviceMotionEventRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\n/**\n * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.\n * Available only in secure contexts.\n */\ninterface DeviceOrientationEvent extends Event {\n readonly absolute: boolean;\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "readystatechange": Event;\n "visibilitychange": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree. */\ninterface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n /** Sets or gets the URL for the current document. */\n readonly URL: string;\n /**\n * Sets or gets the color of all active links in the document.\n * @deprecated\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n * @deprecated\n */\n readonly all: HTMLAllCollection;\n /**\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n * @deprecated\n */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n * @deprecated\n */\n readonly applets: HTMLCollection;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n * @deprecated\n */\n bgColor: string;\n /** Specifies the beginning and end of the document body. */\n body: HTMLElement;\n /** Returns document\'s encoding. */\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly charset: string;\n /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */\n readonly compatMode: string;\n /** Returns document\'s content type. */\n readonly contentType: string;\n /**\n * 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.\n *\n * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n *\n * 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.\n */\n cookie: string;\n /**\n * 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.\n *\n * 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.\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /** Returns the Window object of the active document. */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /** Sets or gets a value that indicates whether the document can be edited. */\n designMode: string;\n /** Sets or retrieves a value that indicates the reading order of the object. */\n dir: string;\n /** Gets an object representing the document type declaration associated with the current document. */\n readonly doctype: DocumentType | null;\n /** Gets a reference to the root node of the document. */\n readonly documentElement: HTMLElement;\n /** Returns document\'s URL. */\n readonly documentURI: string;\n /** Sets or gets the security domain of the document. */\n domain: string;\n /** Retrieves a collection of all embed objects in the document. */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n * @deprecated\n */\n fgColor: string;\n /** Retrieves a collection, in source order, of all form objects in the document. */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n /** @deprecated */\n readonly fullscreen: boolean;\n /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */\n readonly fullscreenEnabled: boolean;\n /** Returns the head element. */\n readonly head: HTMLHeadElement;\n readonly hidden: boolean;\n /** Retrieves a collection, in source order, of img objects in the document. */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /** Gets the implementation object of the current document. */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly inputEncoding: string;\n /** Gets the date that the page was last modified, if the page supplies one. */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n * @deprecated\n */\n linkColor: string;\n /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /** Contains information about the current URL. */\n get location(): Location;\n set location(href: string | Location);\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the state of the object has changed.\n * @param ev The event\n */\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n readonly ownerDocument: null;\n readonly pictureInPictureEnabled: boolean;\n /** Return an HTMLCollection of the embed elements in the Document. */\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n /** Retrieves a value that indicates the current state of the object. */\n readonly readyState: DocumentReadyState;\n /** Gets the URL of the location that referred the user to the current page. */\n readonly referrer: string;\n /** @deprecated */\n readonly rootElement: SVGSVGElement | null;\n /** Retrieves a collection of all script objects in the document. */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n readonly scrollingElement: Element | null;\n readonly timeline: DocumentTimeline;\n /** Contains the title of the document. */\n title: string;\n readonly visibilityState: VisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n * @deprecated\n */\n vlinkColor: string;\n /**\n * Moves node from another document and returns it.\n *\n * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.\n */\n adoptNode<T extends Node>(node: T): T;\n /** @deprecated */\n captureEvents(): void;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /** @deprecated */\n clear(): void;\n /** Closes an output stream and forces the sent data to display. */\n close(): void;\n /**\n * Creates an attribute object with a specified name.\n * @param name String that sets the attribute object\'s name.\n */\n createAttribute(localName: string): Attr;\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /** Returns a CDATASection node whose data is data. */\n createCDATASection(data: string): CDATASection;\n /**\n * Creates a comment object with the specified data.\n * @param data Sets the comment object\'s data.\n */\n createComment(data: string): Comment;\n /** Creates a new document. */\n createDocumentFragment(): DocumentFragment;\n /**\n * Creates an instance of the element for the specified tag.\n * @param tagName The name of an element.\n */\n createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n /** @deprecated */\n createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n /**\n * 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.\n *\n * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n *\n * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n *\n * localName does not match the QName production.\n * Namespace prefix is not null and namespace is the empty string.\n * Namespace prefix is "xml" and namespace is not the XML namespace.\n * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".\n *\n * When supplied, options\'s is can be used to create a customized built-in element.\n */\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "BlobEvent"): BlobEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;\n createEvent(eventInterface: "FormDataEvent"): FormDataEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "InputEvent"): InputEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;\n createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n createEvent(eventInterface: "MessageEvent"): MessageEvent;\n createEvent(eventInterface: "MouseEvent"): MouseEvent;\n createEvent(eventInterface: "MouseEvents"): MouseEvent;\n createEvent(eventInterface: "MutationEvent"): MutationEvent;\n createEvent(eventInterface: "MutationEvents"): MutationEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PointerEvent"): PointerEvent;\n createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "SubmitEvent"): SubmitEvent;\n createEvent(eventInterface: "TouchEvent"): TouchEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n /** 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. */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */\n createRange(): Range;\n /**\n * Creates a text string from the specified value.\n * @param data String that specifies the nodeValue property of the text node.\n */\n createTextNode(data: string): Text;\n /**\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n * @param filter A custom NodeFilter function to use.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /**\n * Executes a command on the current document, current selection, or the given range.\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n * @param showUI Display the user interface, defaults to false.\n * @param value Value to assign.\n * @deprecated\n */\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n /** Stops document\'s fullscreen element from being displayed fullscreen and resolves promise when done. */\n exitFullscreen(): Promise<void>;\n exitPictureInPicture(): Promise<void>;\n exitPointerLock(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID attribute.\n * @param elementId String that specifies the ID value.\n */\n getElementById(elementId: string): HTMLElement | null;\n /** 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. */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * Gets a collection of objects based on the value of the NAME or ID attribute.\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n */\n getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n /**\n * Retrieves a collection of objects based on the specified element name.\n * @param name Specifies the name of an element.\n */\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /**\n * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.\n *\n * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n *\n * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n *\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n */\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */\n getSelection(): Selection | null;\n /** Gets a value indicating whether the object currently has focus. */\n hasFocus(): boolean;\n hasStorageAccess(): Promise<boolean>;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n */\n importNode<T extends Node>(node: T, deep?: boolean): T;\n /**\n * 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.\n * @param url Specifies a MIME type for the document.\n * @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.\n * @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.\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n */\n open(unused1?: string, unused2?: string): Document;\n open(url: string | URL, name: string, features: string): WindowProxy | null;\n /**\n * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandEnabled(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n * @param commandId String that specifies a command identifier.\n */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates the current state of the command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n */\n queryCommandState(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Returns the current value of the document, range, or current selection for the given command.\n * @param commandId String that specifies a command identifier.\n */\n queryCommandValue(commandId: string): string;\n /** @deprecated */\n releaseEvents(): void;\n requestStorageAccess(): Promise<void>;\n /**\n * Writes one or more HTML expressions to a document in the specified window.\n * @param content Specifies the text and HTML tags to write.\n */\n write(...text: string[]): void;\n /**\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n * @param content The text and HTML tags to write.\n */\n writeln(...text: string[]): void;\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n prototype: Document;\n new(): Document;\n};\n\ninterface DocumentAndElementEventHandlersEventMap {\n "copy": ClipboardEvent;\n "cut": ClipboardEvent;\n "paste": ClipboardEvent;\n}\n\ninterface DocumentAndElementEventHandlers {\n oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n readonly ownerDocument: Document;\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n /**\n * 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.\n *\n * 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.\n *\n * 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.\n */\n readonly activeElement: Element | null;\n /** Returns document\'s fullscreen element. */\n readonly fullscreenElement: Element | null;\n readonly pictureInPictureElement: Element | null;\n readonly pointerLockElement: Element | null;\n /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */\n readonly styleSheets: StyleSheetList;\n /**\n * Returns the element for the specified x coordinate and the specified y coordinate.\n * @param x The x-offset\n * @param y The y-offset\n */\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n getAnimations(): Animation[];\n}\n\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/** A Node containing a doctype. */\ninterface DocumentType extends Node, ChildNode {\n readonly name: string;\n readonly ownerDocument: Document;\n readonly publicId: string;\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/** 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. */\ninterface DragEvent extends MouseEvent {\n /** Returns the DataTransfer object for the event. */\n readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/** Inherits properties from its parent, AudioNode. */\ninterface DynamicsCompressorNode extends AudioNode {\n readonly attack: AudioParam;\n readonly knee: AudioParam;\n readonly ratio: AudioParam;\n readonly reduction: number;\n readonly release: AudioParam;\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: GLenum;\n readonly MIN_EXT: GLenum;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGB16F_EXT: GLenum;\n readonly RGBA16F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface EXT_float_blend {\n}\n\n/** 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. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n readonly SRGB8_ALPHA8_EXT: GLenum;\n readonly SRGB_ALPHA_EXT: GLenum;\n readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_RED_RGTC1_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\ninterface ElementEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n}\n\n/** 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. */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n readonly attributes: NamedNodeMap;\n /** Allows for manipulation of element\'s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */\n readonly classList: DOMTokenList;\n /** Returns the value of element\'s class content attribute. Can be set to change it. */\n className: string;\n readonly clientHeight: number;\n readonly clientLeft: number;\n readonly clientTop: number;\n readonly clientWidth: number;\n /** Returns the value of element\'s id content attribute. Can be set to change it. */\n id: string;\n /** Returns the local name. */\n readonly localName: string;\n /** Returns the namespace. */\n readonly namespaceURI: string | null;\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n outerHTML: string;\n readonly ownerDocument: Document;\n readonly part: DOMTokenList;\n /** Returns the namespace prefix. */\n readonly prefix: string | null;\n readonly scrollHeight: number;\n scrollLeft: number;\n scrollTop: number;\n readonly scrollWidth: number;\n /** Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise. */\n readonly shadowRoot: ShadowRoot | null;\n /** Returns the value of element\'s slot content attribute. Can be set to change it. */\n slot: string;\n /** Returns the HTML-uppercased qualified name. */\n readonly tagName: string;\n /** Creates a shadow root for element and returns it. */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */\n closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n closest<E extends Element = Element>(selectors: string): E | null;\n /** Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */\n getAttribute(qualifiedName: string): string | null;\n /** Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /** Returns the qualified names of all element\'s attributes. Can contain duplicates. */\n getAttributeNames(): string[];\n getAttributeNode(qualifiedName: string): Attr | null;\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n /** 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. */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */\n hasAttribute(qualifiedName: string): boolean;\n /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /** Returns true if element has attributes, and false otherwise. */\n hasAttributes(): boolean;\n hasPointerCapture(pointerId: number): boolean;\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n insertAdjacentHTML(position: InsertPosition, text: string): void;\n insertAdjacentText(where: InsertPosition, data: string): void;\n /** Returns true if matching selectors against element\'s root yields element, and false otherwise. */\n matches(selectors: string): boolean;\n releasePointerCapture(pointerId: number): void;\n /** Removes element\'s first attribute whose qualified name is qualifiedName. */\n removeAttribute(qualifiedName: string): void;\n /** Removes element\'s attribute whose namespace is namespace and local name is localName. */\n removeAttributeNS(namespace: string | null, localName: string): void;\n removeAttributeNode(attr: Attr): Attr;\n /**\n * Displays element fullscreen and resolves promise when done.\n *\n * 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.\n */\n requestFullscreen(options?: FullscreenOptions): Promise<void>;\n requestPointerLock(): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /** Sets the value of element\'s first attribute whose qualified name is qualifiedName to value. */\n setAttribute(qualifiedName: string, value: string): void;\n /** Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value. */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n setAttributeNode(attr: Attr): Attr | null;\n setAttributeNodeNS(attr: Attr): Attr | null;\n setPointerCapture(pointerId: number): void;\n /**\n * 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.\n *\n * Returns true if qualifiedName is now present, and false otherwise.\n */\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n /** @deprecated This is a legacy alias of `matches`. */\n webkitMatchesSelector(selectors: string): boolean;\n addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n prototype: Element;\n new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n contentEditable: string;\n enterKeyHint: string;\n inputMode: string;\n readonly isContentEditable: boolean;\n}\n\ninterface ElementInternals extends ARIAMixin {\n /** Returns the ShadowRoot for internals\'s target element, if the target element is a shadow host, or null otherwise. */\n readonly shadowRoot: ShadowRoot | null;\n}\n\ndeclare var ElementInternals: {\n prototype: ElementInternals;\n new(): ElementInternals;\n};\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /** 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. */\n readonly bubbles: boolean;\n cancelBubble: boolean;\n /** 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. */\n readonly cancelable: boolean;\n /** 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. */\n readonly composed: boolean;\n /** Returns the object whose event listener\'s callback is currently being invoked. */\n readonly currentTarget: EventTarget | null;\n /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */\n readonly defaultPrevented: boolean;\n /** Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */\n readonly eventPhase: number;\n /** Returns true if event was dispatched by the user agent, and false otherwise. */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /** Returns the object to which event is dispatched (its target). */\n readonly target: EventTarget | null;\n /** Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin. */\n readonly timeStamp: DOMHighResTimeStamp;\n /** Returns the type of event, e.g. "click", "hashchange", or "submit". */\n readonly type: string;\n /** 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. */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /** 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. */\n preventDefault(): void;\n /** 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. */\n stopImmediatePropagation(): void;\n /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */\n stopPropagation(): void;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /** Returns the state of this EventSource object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL providing the event stream. */\n readonly url: string;\n /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */\n readonly withCredentials: boolean;\n /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */\n close(): void;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /** 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. */\n dispatchEvent(event: Event): boolean;\n /** Removes the event listener in target\'s event listener list with the same type, callback, and options. */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** @deprecated */\ninterface External {\n /** @deprecated */\n AddSearchProvider(): void;\n /** @deprecated */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** 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. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/** 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. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n readonly readyState: number;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\ninterface FileSystem {\n readonly name: string;\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n createReader(): FileSystemDirectoryReader;\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n prototype: FileSystemDirectoryEntry;\n new(): FileSystemDirectoryEntry;\n};\n\ninterface FileSystemDirectoryReader {\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\ninterface FileSystemEntry {\n readonly filesystem: FileSystem;\n readonly fullPath: string;\n readonly isDirectory: boolean;\n readonly isFile: boolean;\n readonly name: string;\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\ninterface FileSystemFileEntry extends FileSystemEntry {\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: string;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise<FontFace>;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n variationSettings: string;\n weight: string;\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise<FontFaceSet>;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** 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". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(form?: HTMLFormElement): FormData;\n};\n\ninterface FormDataEvent extends Event {\n /** 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. */\n readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n prototype: FormDataEvent;\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/** 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. */\ninterface GainNode extends AudioNode {\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/**\n * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.\n * Available only in secure contexts.\n */\ninterface Gamepad {\n readonly axes: ReadonlyArray<number>;\n readonly buttons: ReadonlyArray<GamepadButton>;\n readonly connected: boolean;\n readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly timestamp: DOMHighResTimeStamp;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface GamepadButton {\n readonly pressed: boolean;\n readonly touched: boolean;\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface GamepadEvent extends Event {\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\ninterface GamepadHapticActuator {\n readonly type: GamepadHapticActuatorType;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** 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. */\ninterface Geolocation {\n clearWatch(watchId: number): void;\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\n/** Available only in secure contexts. */\ninterface GeolocationCoordinates {\n readonly accuracy: number;\n readonly altitude: number | null;\n readonly altitudeAccuracy: number | null;\n readonly heading: number | null;\n readonly latitude: number;\n readonly longitude: number;\n readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\n/** Available only in secure contexts. */\ninterface GeolocationPosition {\n readonly coords: GeolocationCoordinates;\n readonly timestamp: DOMTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\ninterface GeolocationPositionError {\n readonly code: number;\n readonly message: string;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n}\n\ndeclare var GeolocationPositionError: {\n prototype: GeolocationPositionError;\n new(): GeolocationPositionError;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n};\n\ninterface GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "animationcancel": AnimationEvent;\n "animationend": AnimationEvent;\n "animationiteration": AnimationEvent;\n "animationstart": AnimationEvent;\n "auxclick": MouseEvent;\n "beforeinput": InputEvent;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextmenu": MouseEvent;\n "cuechange": Event;\n "dblclick": MouseEvent;\n "drag": DragEvent;\n "dragend": DragEvent;\n "dragenter": DragEvent;\n "dragleave": DragEvent;\n "dragover": DragEvent;\n "dragstart": DragEvent;\n "drop": DragEvent;\n "durationchange": Event;\n "emptied": Event;\n "ended": Event;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "formdata": FormDataEvent;\n "gotpointercapture": PointerEvent;\n "input": Event;\n "invalid": Event;\n "keydown": KeyboardEvent;\n "keypress": KeyboardEvent;\n "keyup": KeyboardEvent;\n "load": Event;\n "loadeddata": Event;\n "loadedmetadata": Event;\n "loadstart": Event;\n "lostpointercapture": PointerEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointercancel": PointerEvent;\n "pointerdown": PointerEvent;\n "pointerenter": PointerEvent;\n "pointerleave": PointerEvent;\n "pointermove": PointerEvent;\n "pointerout": PointerEvent;\n "pointerover": PointerEvent;\n "pointerup": PointerEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "resize": UIEvent;\n "scroll": Event;\n "securitypolicyviolation": SecurityPolicyViolationEvent;\n "seeked": Event;\n "seeking": Event;\n "select": Event;\n "selectionchange": Event;\n "selectstart": Event;\n "stalled": Event;\n "submit": SubmitEvent;\n "suspend": Event;\n "timeupdate": Event;\n "toggle": Event;\n "touchcancel": TouchEvent;\n "touchend": TouchEvent;\n "touchmove": TouchEvent;\n "touchstart": TouchEvent;\n "transitioncancel": TransitionEvent;\n "transitionend": TransitionEvent;\n "transitionrun": TransitionEvent;\n "transitionstart": TransitionEvent;\n "volumechange": Event;\n "waiting": Event;\n "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\n onerror: OnErrorEventHandler;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n */\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user resets a form.\n * @param ev The event.\n */\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n */\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `onanimationend`. */\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `onanimationiteration`. */\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `onanimationstart`. */\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `ontransitionend`. */\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface HTMLAllCollection {\n /** Returns the number of elements in the collection. */\n readonly length: number;\n /** Returns the item with index index from the collection (determined by tree order). */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n *\n * 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.\n */\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\n/** 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. */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n * @deprecated\n */\n coords: string;\n download: string;\n /** Sets or retrieves the language code of the object. */\n hreflang: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n name: string;\n ping: string;\n referrerPolicy: string;\n /** Sets or retrieves the relationship between the object and the destination of the link. */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n shape: string;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n prototype: HTMLAnchorElement;\n new(): HTMLAnchorElement;\n};\n\n/** 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. */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /** Sets or retrieves the coordinates of the object. */\n coords: string;\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n * @deprecated\n */\n noHref: boolean;\n ping: string;\n referrerPolicy: string;\n rel: string;\n readonly relList: DOMTokenList;\n /** Sets or retrieves the shape of the object. */\n shape: string;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n prototype: HTMLAreaElement;\n new(): HTMLAreaElement;\n};\n\n/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */\ninterface HTMLAudioElement extends HTMLMediaElement {\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n prototype: HTMLAudioElement;\n new(): HTMLAudioElement;\n};\n\n/** A HTML line break element (<br>). It inherits from HTMLElement. */\ninterface HTMLBRElement extends HTMLElement {\n /**\n * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n * @deprecated\n */\n clear: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBRElement: {\n prototype: HTMLBRElement;\n new(): HTMLBRElement;\n};\n\n/** Contains the base URI\xa0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */\ninterface HTMLBaseElement extends HTMLElement {\n /** Gets or sets the baseline URL on which relative links are based. */\n href: string;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n prototype: HTMLBaseElement;\n new(): HTMLBaseElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n "orientationchange": Event;\n}\n\n/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n aLink: string;\n /** @deprecated */\n background: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n link: string;\n /** @deprecated */\n onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;\n /** @deprecated */\n text: string;\n /** @deprecated */\n vLink: string;\n addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBodyElement: {\n prototype: HTMLBodyElement;\n new(): HTMLBodyElement;\n};\n\n/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */\ninterface HTMLButtonElement extends HTMLElement {\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */\n formAction: string;\n /** Used to override the encoding (formEnctype attribute) specified on the form element. */\n formEnctype: string;\n /** Overrides the submit method attribute previously specified on a form element. */\n formMethod: string;\n /** 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. */\n formNoValidate: boolean;\n /** Overrides the target attribute on a form element. */\n formTarget: string;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets the classification and default behavior of the button. */\n type: string;\n /** 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. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Sets or retrieves the default or selected value of the control. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n prototype: HTMLButtonElement;\n new(): HTMLButtonElement;\n};\n\n/** 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. */\ninterface HTMLCanvasElement extends HTMLElement {\n /** Gets or sets the height of a canvas element on a document. */\n height: number;\n /** Gets or sets the width of a canvas element on a document. */\n width: number;\n captureStream(frameRequestRate?: number): MediaStream;\n /**\n * 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.\n * @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");\n */\n getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n getContext(contextId: string, options?: any): RenderingContext | null;\n toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n /**\n * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n * @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.\n */\n toDataURL(type?: string, quality?: any): string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLCanvasElement: {\n prototype: HTMLCanvasElement;\n new(): HTMLCanvasElement;\n};\n\n/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */\ninterface HTMLCollectionBase {\n /** Sets or retrieves the number of objects in a collection. */\n readonly length: number;\n /** Retrieves an object from various collections. */\n item(index: number): Element | null;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /** Retrieves a select object or an object from an options collection. */\n namedItem(name: string): Element | null;\n}\n\ndeclare var HTMLCollection: {\n prototype: HTMLCollection;\n new(): HTMLCollection;\n};\n\ninterface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {\n item(index: number): T | null;\n namedItem(name: string): T | null;\n [index: number]: T;\n}\n\n/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */\ninterface HTMLDListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n prototype: HTMLDListElement;\n new(): HTMLDListElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */\ninterface HTMLDataElement extends HTMLElement {\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataElement: {\n prototype: HTMLDataElement;\n new(): HTMLDataElement;\n};\n\n/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */\ninterface HTMLDataListElement extends HTMLElement {\n /** Returns an HTMLCollection of the option elements of the datalist element. */\n readonly options: HTMLCollectionOf<HTMLOptionElement>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataListElement: {\n prototype: HTMLDataListElement;\n new(): HTMLDataListElement;\n};\n\ninterface HTMLDetailsElement extends HTMLElement {\n open: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDetailsElement: {\n prototype: HTMLDetailsElement;\n new(): HTMLDetailsElement;\n};\n\n/** @deprecated this is not available in most browsers */\ninterface HTMLDialogElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ninterface HTMLDirectoryElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */\ninterface HTMLDivElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n prototype: HTMLDivElement;\n new(): HTMLDivElement;\n};\n\n/** @deprecated use Document */\ninterface HTMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n}\n\n/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */\ninterface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n accessKey: string;\n readonly accessKeyLabel: string;\n autocapitalize: string;\n dir: string;\n draggable: boolean;\n hidden: boolean;\n innerText: string;\n lang: string;\n readonly offsetHeight: number;\n readonly offsetLeft: number;\n readonly offsetParent: Element | null;\n readonly offsetTop: number;\n readonly offsetWidth: number;\n outerText: string;\n spellcheck: boolean;\n title: string;\n translate: boolean;\n attachInternals(): ElementInternals;\n click(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLElement: {\n prototype: HTMLElement;\n new(): HTMLElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */\ninterface HTMLEmbedElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Sets or retrieves the height of the object. */\n height: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /** Sets or retrieves a URL to be loaded by the object. */\n src: string;\n type: string;\n /** Sets or retrieves the width of the object. */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n prototype: HTMLEmbedElement;\n new(): HTMLEmbedElement;\n};\n\n/** 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. */\ninterface HTMLFieldSetElement extends HTMLElement {\n disabled: boolean;\n /** Returns an HTMLCollection of the form controls in the element. */\n readonly elements: HTMLCollection;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n name: string;\n /** Returns the string "fieldset". */\n readonly type: string;\n /** 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. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n prototype: HTMLFieldSetElement;\n new(): HTMLFieldSetElement;\n};\n\n/**\n * 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.\n * @deprecated\n */\ninterface HTMLFontElement extends HTMLElement {\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves the current typeface family.\n * @deprecated\n */\n face: string;\n /** @deprecated */\n size: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\n/** A collection of HTML form control elements. */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n */\n namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\n/** 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. */\ninterface HTMLFormElement extends HTMLElement {\n /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */\n acceptCharset: string;\n /** Sets or retrieves the URL to which the form content is sent for processing. */\n action: string;\n /** Specifies whether autocomplete is applied to an editable text field. */\n autocomplete: string;\n /** Retrieves a collection, in source order, of all controls in a given form. */\n readonly elements: HTMLFormControlsCollection;\n /** Sets or retrieves the MIME encoding for the form. */\n encoding: string;\n /** Sets or retrieves the encoding type for the form. */\n enctype: string;\n /** Sets or retrieves the number of objects in a collection. */\n readonly length: number;\n /** Sets or retrieves how to send the form data to the server. */\n method: string;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Designates a form that is not validated when submitted. */\n noValidate: boolean;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n requestSubmit(submitter?: HTMLElement | null): void;\n /** Fires when the user resets a form. */\n reset(): void;\n /** Fires when a FORM is about to be submitted. */\n submit(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Element;\n [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n prototype: HTMLFormElement;\n new(): HTMLFormElement;\n};\n\n/** @deprecated */\ninterface HTMLFrameElement extends HTMLElement {\n /**\n * Retrieves the document object of the page or frame.\n * @deprecated\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n * @deprecated\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n */\n frameBorder: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n * @deprecated\n */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n * @deprecated\n */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n * @deprecated\n */\n src: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.\n * @deprecated\n */\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /**\n * Sets or retrieves the frame widths of the object.\n * @deprecated\n */\n cols: string;\n /**\n * Sets or retrieves the frame heights of the object.\n * @deprecated\n */\n rows: string;\n addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\n/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */\ninterface HTMLHRElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n * @deprecated\n */\n noShade: boolean;\n /** @deprecated */\n size: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHRElement: {\n prototype: HTMLHRElement;\n new(): HTMLHRElement;\n};\n\n/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLHeadElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n prototype: HTMLHeadElement;\n new(): HTMLHeadElement;\n};\n\n/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadingElement: {\n prototype: HTMLHeadingElement;\n new(): HTMLHeadingElement;\n};\n\n/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current document.\n * @deprecated\n */\n version: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHtmlElement: {\n prototype: HTMLHtmlElement;\n new(): HTMLHtmlElement;\n};\n\ninterface HTMLHyperlinkElementUtils {\n /**\n * Returns the hyperlink\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to change the URL\'s fragment (ignores leading "#").\n */\n hash: string;\n /**\n * Returns the hyperlink\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to change the URL\'s host and port.\n */\n host: string;\n /**\n * Returns the hyperlink\'s URL\'s host.\n *\n * Can be set, to change the URL\'s host.\n */\n hostname: string;\n /**\n * Returns the hyperlink\'s URL.\n *\n * Can be set, to change the URL.\n */\n href: string;\n toString(): string;\n /** Returns the hyperlink\'s URL\'s origin. */\n readonly origin: string;\n /**\n * Returns the hyperlink\'s URL\'s password.\n *\n * Can be set, to change the URL\'s password.\n */\n password: string;\n /**\n * Returns the hyperlink\'s URL\'s path.\n *\n * Can be set, to change the URL\'s path.\n */\n pathname: string;\n /**\n * Returns the hyperlink\'s URL\'s port.\n *\n * Can be set, to change the URL\'s port.\n */\n port: string;\n /**\n * Returns the hyperlink\'s URL\'s scheme.\n *\n * Can be set, to change the URL\'s scheme.\n */\n protocol: string;\n /**\n * Returns the hyperlink\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to change the URL\'s query (ignores leading "?").\n */\n search: string;\n /**\n * Returns the hyperlink\'s URL\'s username.\n *\n * Can be set, to change the URL\'s username.\n */\n username: string;\n}\n\n/** 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. */\ninterface HTMLIFrameElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n allow: string;\n allowFullscreen: boolean;\n /** Retrieves the document object of the page or frame. */\n readonly contentDocument: Document | null;\n /** Retrieves the object of the specified. */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n */\n frameBorder: string;\n /** Sets or retrieves the height of the object. */\n height: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n */\n marginWidth: string;\n /** Sets or retrieves the frame name. */\n name: string;\n referrerPolicy: ReferrerPolicy;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n */\n scrolling: string;\n /** Sets or retrieves a URL to be loaded by the object. */\n src: string;\n /** Sets or retrives the content of the page that is to contain. */\n srcdoc: string;\n /** Sets or retrieves the width of the object. */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n prototype: HTMLIFrameElement;\n new(): HTMLIFrameElement;\n};\n\n/** Provides special properties and methods for manipulating <img> elements. */\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n * @deprecated\n */\n border: string;\n /** Retrieves whether the object is fully loaded. */\n readonly complete: boolean;\n crossOrigin: string | null;\n readonly currentSrc: string;\n decoding: "async" | "sync" | "auto";\n /** Sets or retrieves the height of the object. */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n */\n hspace: number;\n /** Sets or retrieves whether the image is a server-side image map. */\n isMap: boolean;\n loading: string;\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /** @deprecated */\n lowsrc: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /** The original height of the image resource before sizing. */\n readonly naturalHeight: number;\n /** The original width of the image resource before sizing. */\n readonly naturalWidth: number;\n referrerPolicy: string;\n sizes: string;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n srcset: string;\n /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n * @deprecated\n */\n vspace: number;\n /** Sets or retrieves the width of the object. */\n width: number;\n readonly x: number;\n readonly y: number;\n decode(): Promise<void>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLImageElement: {\n prototype: HTMLImageElement;\n new(): HTMLImageElement;\n};\n\n/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */\ninterface HTMLInputElement extends HTMLElement {\n /** Sets or retrieves a comma-separated list of content types. */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /** Specifies whether autocomplete is applied to an editable text field. */\n autocomplete: string;\n capture: string;\n /** Sets or retrieves the state of the check box or radio button. */\n checked: boolean;\n /** Sets or retrieves the state of the check box or radio button. */\n defaultChecked: boolean;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /** Returns a FileList object on a file type input object. */\n files: FileList | null;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */\n formAction: string;\n /** Used to override the encoding (formEnctype attribute) specified on the form element. */\n formEnctype: string;\n /** Overrides the submit method attribute previously specified on a form element. */\n formMethod: string;\n /** 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. */\n formNoValidate: boolean;\n /** Overrides the target attribute on a form element. */\n formTarget: string;\n /** Sets or retrieves the height of the object. */\n height: number;\n /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */\n indeterminate: boolean;\n readonly labels: NodeListOf<HTMLLabelElement> | null;\n /** Specifies the ID of a pre-defined datalist of options for an input element. */\n readonly list: HTMLElement | null;\n /** 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. */\n max: string;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n /** 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. */\n min: string;\n minLength: number;\n /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */\n multiple: boolean;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets or sets a string containing a regular expression that the user\'s input must match. */\n pattern: string;\n /** 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. */\n placeholder: string;\n readOnly: boolean;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n selectionDirection: "forward" | "backward" | "none" | null;\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number | null;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number | null;\n size: number;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n /** 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. */\n step: string;\n /** Returns the content type of the object. */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n * @deprecated\n */\n useMap: string;\n /** 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. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Returns the value of the data at the cursor\'s current position. */\n value: string;\n /** 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. */\n valueAsDate: Date | null;\n /** Returns the input field value as a number. */\n valueAsNumber: number;\n readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n webkitdirectory: boolean;\n /** Sets or retrieves the width of the object. */\n width: number;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /** Makes the selection equal to the current object. */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n /**\n * 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.\n * @param n Value to decrement the value by.\n */\n stepDown(n?: number): void;\n /**\n * 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.\n * @param n Value to increment the value by.\n */\n stepUp(n?: number): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLInputElement: {\n prototype: HTMLInputElement;\n new(): HTMLInputElement;\n};\n\n/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /** Sets or retrieves the value of a list item. */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLIElement: {\n prototype: HTMLLIElement;\n new(): HTMLLIElement;\n};\n\n/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */\ninterface HTMLLabelElement extends HTMLElement {\n /** Returns the form control that is associated with this element. */\n readonly control: HTMLElement | null;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Sets or retrieves the object to which the given label object is assigned. */\n htmlFor: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLabelElement: {\n prototype: HTMLLabelElement;\n new(): HTMLLabelElement;\n};\n\n/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */\ninterface HTMLLegendElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLegendElement: {\n prototype: HTMLLegendElement;\n new(): HTMLLegendElement;\n};\n\n/** 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. */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n as: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n crossOrigin: string | null;\n disabled: boolean;\n /** Sets or retrieves a destination URL or an anchor point. */\n href: string;\n /** Sets or retrieves the language code of the object. */\n hreflang: string;\n imageSizes: string;\n imageSrcset: string;\n integrity: string;\n /** Sets or retrieves the media type. */\n media: string;\n referrerPolicy: string;\n /** Sets or retrieves the relationship between the object and the destination of the link. */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n readonly sizes: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n * @deprecated\n */\n target: string;\n /** Sets or retrieves the MIME type of the object. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLinkElement: {\n prototype: HTMLLinkElement;\n new(): HTMLLinkElement;\n};\n\n/** 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. */\ninterface HTMLMapElement extends HTMLElement {\n /** Retrieves a collection of the area objects defined for the given map object. */\n readonly areas: HTMLCollection;\n /** Sets or retrieves the name of the object. */\n name: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMapElement: {\n prototype: HTMLMapElement;\n new(): HTMLMapElement;\n};\n\n/**\n * Provides methods to manipulate <marquee> elements.\n * @deprecated\n */\ninterface HTMLMarqueeElement extends HTMLElement {\n /** @deprecated */\n behavior: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n direction: string;\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /** @deprecated */\n loop: number;\n /** @deprecated */\n scrollAmount: number;\n /** @deprecated */\n scrollDelay: number;\n /** @deprecated */\n trueSpeed: boolean;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n /** @deprecated */\n start(): void;\n /** @deprecated */\n stop(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "waitingforkey": Event;\n}\n\n/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xa0that are\xa0common to audio and video. */\ninterface HTMLMediaElement extends HTMLElement {\n /** Gets or sets a value that indicates whether to start playing the media automatically. */\n autoplay: boolean;\n /** Gets a collection of buffered time ranges. */\n readonly buffered: TimeRanges;\n /** 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). */\n controls: boolean;\n crossOrigin: string | null;\n /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */\n readonly currentSrc: string;\n /** Gets or sets the current playback position, in seconds. */\n currentTime: number;\n defaultMuted: boolean;\n /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */\n defaultPlaybackRate: number;\n disableRemotePlayback: boolean;\n /** 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. */\n readonly duration: number;\n /** Gets information about whether the playback has ended or not. */\n readonly ended: boolean;\n /** Returns an object representing the current error state of the audio or video element. */\n readonly error: MediaError | null;\n /** Gets or sets a flag to specify whether playback should restart after it completes. */\n loop: boolean;\n /** Available only in secure contexts. */\n readonly mediaKeys: MediaKeys | null;\n /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */\n muted: boolean;\n /** Gets the current network activity for the element. */\n readonly networkState: number;\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /** Gets a flag that specifies whether playback is paused. */\n readonly paused: boolean;\n /** 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. */\n playbackRate: number;\n /** Gets TimeRanges for the current media resource that has been played. */\n readonly played: TimeRanges;\n /** Gets or sets a value indicating what data should be preloaded, if any. */\n preload: "none" | "metadata" | "auto" | "";\n readonly readyState: number;\n readonly remote: RemotePlayback;\n /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */\n readonly seekable: TimeRanges;\n /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */\n readonly seeking: boolean;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n srcObject: MediaProvider | null;\n readonly textTracks: TextTrackList;\n /** Gets or sets the volume level for audio portions of the media element. */\n volume: number;\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /** Returns a string that specifies whether the client can play a given media resource type. */\n canPlayType(type: string): CanPlayTypeResult;\n fastSeek(time: number): void;\n /** Resets the audio or video object and loads a new media resource. */\n load(): void;\n /** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */\n pause(): void;\n /** Loads and starts playback of a media resource. */\n play(): Promise<void>;\n /** Available only in secure contexts. */\n setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n readonly HAVE_CURRENT_DATA: number;\n readonly HAVE_ENOUGH_DATA: number;\n readonly HAVE_FUTURE_DATA: number;\n readonly HAVE_METADATA: number;\n readonly HAVE_NOTHING: number;\n readonly NETWORK_EMPTY: number;\n readonly NETWORK_IDLE: number;\n readonly NETWORK_LOADING: number;\n readonly NETWORK_NO_SOURCE: number;\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMediaElement: {\n prototype: HTMLMediaElement;\n new(): HTMLMediaElement;\n readonly HAVE_CURRENT_DATA: number;\n readonly HAVE_ENOUGH_DATA: number;\n readonly HAVE_FUTURE_DATA: number;\n readonly HAVE_METADATA: number;\n readonly HAVE_NOTHING: number;\n readonly NETWORK_EMPTY: number;\n readonly NETWORK_IDLE: number;\n readonly NETWORK_LOADING: number;\n readonly NETWORK_NO_SOURCE: number;\n};\n\ninterface HTMLMenuElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMenuElement: {\n prototype: HTMLMenuElement;\n new(): HTMLMenuElement;\n};\n\n/** Contains descriptive metadata about a document. It\xa0inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLMetaElement extends HTMLElement {\n /** Gets or sets meta-information to associate with httpEquiv or name. */\n content: string;\n /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */\n httpEquiv: string;\n /** Sets or retrieves the value specified in the content attribute of the meta object. */\n name: string;\n /**\n * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n * @deprecated\n */\n scheme: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMetaElement: {\n prototype: HTMLMetaElement;\n new(): HTMLMetaElement;\n};\n\n/** 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. */\ninterface HTMLMeterElement extends HTMLElement {\n high: number;\n readonly labels: NodeListOf<HTMLLabelElement>;\n low: number;\n max: number;\n min: number;\n optimum: number;\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMeterElement: {\n prototype: HTMLMeterElement;\n new(): HTMLMeterElement;\n};\n\n/** 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>. */\ninterface HTMLModElement extends HTMLElement {\n /** Sets or retrieves reference information about the object. */\n cite: string;\n /** Sets or retrieves the date and time of a modification to the object. */\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLModElement: {\n prototype: HTMLModElement;\n new(): HTMLModElement;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */\ninterface HTMLOListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n reversed: boolean;\n /** The starting number. */\n start: number;\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOListElement: {\n prototype: HTMLOListElement;\n new(): HTMLOListElement;\n};\n\n/** 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. */\ninterface HTMLObjectElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n * @deprecated\n */\n archive: string;\n /** @deprecated */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n * @deprecated\n */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n * @deprecated\n */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n * @deprecated\n */\n codeType: string;\n /** Retrieves the document object of the page or frame. */\n readonly contentDocument: Document | null;\n readonly contentWindow: WindowProxy | null;\n /** Sets or retrieves the URL that references the data of the object. */\n data: string;\n /** @deprecated */\n declare: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Sets or retrieves the height of the object. */\n height: string;\n /** @deprecated */\n hspace: number;\n /** Sets or retrieves the name of the object. */\n name: string;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n * @deprecated\n */\n standby: string;\n /** Sets or retrieves the MIME type of the object. */\n type: string;\n /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */\n useMap: string;\n /** 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. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** @deprecated */\n vspace: number;\n /** Sets or retrieves the width of the object. */\n width: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n getSVGDocument(): Document | null;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLObjectElement: {\n prototype: HTMLObjectElement;\n new(): HTMLObjectElement;\n};\n\n/** 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. */\ninterface HTMLOptGroupElement extends HTMLElement {\n disabled: boolean;\n /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */\n label: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptGroupElement: {\n prototype: HTMLOptGroupElement;\n new(): HTMLOptGroupElement;\n};\n\n/** <option> elements and inherits all classes and methods of the HTMLElement interface. */\ninterface HTMLOptionElement extends HTMLElement {\n /** Sets or retrieves the status of an option. */\n defaultSelected: boolean;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Sets or retrieves the ordinal position of an option in a list box. */\n readonly index: number;\n /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */\n label: string;\n /** Sets or retrieves whether the option in the list box is the default item. */\n selected: boolean;\n /** Sets or retrieves the text string specified by the option tag. */\n text: string;\n /** Sets or retrieves the value which is returned to the server when the form control is submitted. */\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptionElement: {\n prototype: HTMLOptionElement;\n new(): HTMLOptionElement;\n};\n\n/** 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. */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n /**\n * Returns the number of elements in the collection.\n *\n * When set to a smaller number, truncates the number of option elements in the corresponding container.\n *\n * When set to a greater number, adds new blank option elements to that container.\n */\n length: number;\n /**\n * Returns the index of the first selected item, if any, or \u22121 if there is no selected item.\n *\n * Can be set, to change the selection.\n */\n selectedIndex: number;\n /**\n * Inserts element before the node given by before.\n *\n * 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.\n *\n * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n *\n * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /** Removes the item with index index from the collection. */\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n autofocus: boolean;\n readonly dataset: DOMStringMap;\n nonce?: string;\n tabIndex: number;\n blur(): void;\n focus(options?: FocusOptions): void;\n}\n\n/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */\ninterface HTMLOutputElement extends HTMLElement {\n defaultValue: string;\n readonly form: HTMLFormElement | null;\n readonly htmlFor: DOMTokenList;\n readonly labels: NodeListOf<HTMLLabelElement>;\n name: string;\n /** Returns the string "output". */\n readonly type: string;\n readonly validationMessage: string;\n readonly validity: ValidityState;\n /**\n * Returns the element\'s current value.\n *\n * Can be set, to change the value.\n */\n value: string;\n readonly willValidate: boolean;\n checkValidity(): boolean;\n reportValidity(): boolean;\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOutputElement: {\n prototype: HTMLOutputElement;\n new(): HTMLOutputElement;\n};\n\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */\ninterface HTMLParagraphElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParagraphElement: {\n prototype: HTMLParagraphElement;\n new(): HTMLParagraphElement;\n};\n\n/** 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. */\ninterface HTMLParamElement extends HTMLElement {\n /** Sets or retrieves the name of an input parameter for an element. */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n * @deprecated\n */\n type: string;\n /** Sets or retrieves the value of an input parameter for an element. */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n * @deprecated\n */\n valueType: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParamElement: {\n prototype: HTMLParamElement;\n new(): HTMLParamElement;\n};\n\n/** A <picture> HTML element. It doesn\'t implement specific properties or methods. */\ninterface HTMLPictureElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n prototype: HTMLPictureElement;\n new(): HTMLPictureElement;\n};\n\n/** 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>). */\ninterface HTMLPreElement extends HTMLElement {\n /**\n * Sets or gets a value that you can use to implement your own width functionality for the object.\n * @deprecated\n */\n width: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPreElement: {\n prototype: HTMLPreElement;\n new(): HTMLPreElement;\n};\n\n/** 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. */\ninterface HTMLProgressElement extends HTMLElement {\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Defines the maximum, or "done" value for a progress element. */\n max: number;\n /** 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). */\n readonly position: number;\n /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLProgressElement: {\n prototype: HTMLProgressElement;\n new(): HTMLProgressElement;\n};\n\n/** 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. */\ninterface HTMLQuoteElement extends HTMLElement {\n /** Sets or retrieves reference information about the object. */\n cite: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLQuoteElement: {\n prototype: HTMLQuoteElement;\n new(): HTMLQuoteElement;\n};\n\n/** 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). */\ninterface HTMLScriptElement extends HTMLElement {\n async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n crossOrigin: string | null;\n /** Sets or retrieves the status of the script. */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n * @deprecated\n */\n event: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n * @deprecated\n */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n referrerPolicy: string;\n /** Retrieves the URL to an external file that contains the source code or data. */\n src: string;\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n /** Sets or retrieves the MIME type for the associated scripting engine. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLScriptElement: {\n prototype: HTMLScriptElement;\n new(): HTMLScriptElement;\n};\n\n/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */\ninterface HTMLSelectElement extends HTMLElement {\n autocomplete: string;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the number of objects in a collection. */\n length: number;\n /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */\n multiple: boolean;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Returns an HTMLOptionsCollection of the list of options. */\n readonly options: HTMLOptionsCollection;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n /** Sets or retrieves the index of the selected option in a select object. */\n selectedIndex: number;\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /** Sets or retrieves the number of rows in the list box. */\n size: number;\n /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */\n readonly type: string;\n /** 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. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Sets or retrieves the value which is returned to the server when the form control is submitted. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /**\n * Adds an element to the areas, controlRange, or options collection.\n * @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.\n * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /**\n * Retrieves a select object or an object from an options collection.\n * @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.\n * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n */\n item(index: number): HTMLOptionElement | null;\n /**\n * Retrieves a select object or an object from an options collection.\n * @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.\n */\n namedItem(name: string): HTMLOptionElement | null;\n /**\n * Removes an element from the collection.\n * @param index Number that specifies the zero-based index of the element to remove from the collection.\n */\n remove(): void;\n remove(index: number): void;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [name: number]: HTMLOptionElement | HTMLOptGroupElement;\n}\n\ndeclare var HTMLSelectElement: {\n prototype: HTMLSelectElement;\n new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n name: string;\n assign(...nodes: (Element | Text)[]): void;\n assignedElements(options?: AssignedNodesOptions): Element[];\n assignedNodes(options?: AssignedNodesOptions): Node[];\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSlotElement: {\n prototype: HTMLSlotElement;\n new(): HTMLSlotElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */\ninterface HTMLSourceElement extends HTMLElement {\n /** Gets or sets the intended media type of the media source. */\n media: string;\n sizes: string;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n srcset: string;\n /** Gets or sets the MIME type of a media resource. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSourceElement: {\n prototype: HTMLSourceElement;\n new(): HTMLSourceElement;\n};\n\n/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLSpanElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n prototype: HTMLSpanElement;\n new(): HTMLSpanElement;\n};\n\n/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /** Sets or retrieves the media type. */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\n * @deprecated\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLStyleElement: {\n prototype: HTMLStyleElement;\n new(): HTMLStyleElement;\n};\n\n/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the caption or legend.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCaptionElement: {\n prototype: HTMLTableCaptionElement;\n new(): HTMLTableCaptionElement;\n};\n\n/** 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. */\ninterface HTMLTableCellElement extends HTMLElement {\n /** Sets or retrieves abbreviated text for the object. */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n * @deprecated\n */\n axis: string;\n /** @deprecated */\n bgColor: string;\n /** Retrieves the position of the object in the cells collection of a row. */\n readonly cellIndex: number;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Sets or retrieves the number columns in the table that the object should span. */\n colSpan: number;\n /** Sets or retrieves a list of header cells that provide information for the object. */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n * @deprecated\n */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n * @deprecated\n */\n noWrap: boolean;\n /** Sets or retrieves how many rows in a table the cell should span. */\n rowSpan: number;\n /** Sets or retrieves the group of cells in a table to which the object\'s information applies. */\n scope: string;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCellElement: {\n prototype: HTMLTableCellElement;\n new(): HTMLTableCellElement;\n};\n\n/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the object relative to the display or table.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Sets or retrieves the number of columns in the group. */\n span: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableColElement: {\n prototype: HTMLTableColElement;\n new(): HTMLTableColElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableDataCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface HTMLTableElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n */\n border: string;\n /** Retrieves the caption object of a table. */\n caption: HTMLTableCaptionElement | null;\n /**\n * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n * @deprecated\n */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n * @deprecated\n */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n * @deprecated\n */\n frame: string;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n * @deprecated\n */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n * @deprecated\n */\n summary: string;\n /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /** Retrieves the tFoot object of the table. */\n tFoot: HTMLTableSectionElement | null;\n /** Retrieves the tHead object of the table. */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n /** Creates an empty caption element in the table. */\n createCaption(): HTMLTableCaptionElement;\n /** Creates an empty tBody element in the table. */\n createTBody(): HTMLTableSectionElement;\n /** Creates an empty tFoot element in the table. */\n createTFoot(): HTMLTableSectionElement;\n /** Returns the tHead element object if successful, or null otherwise. */\n createTHead(): HTMLTableSectionElement;\n /** Deletes the caption element and its contents from the table. */\n deleteCaption(): void;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n */\n deleteRow(index: number): void;\n /** Deletes the tFoot element and its contents from the table. */\n deleteTFoot(): void;\n /** Deletes the tHead element and its contents from the table. */\n deleteTHead(): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @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.\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableElement: {\n prototype: HTMLTableElement;\n new(): HTMLTableElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** 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. */\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n bgColor: string;\n /** Retrieves a collection of all cells in the table row. */\n readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Retrieves the position of the object in the rows collection for the table. */\n readonly rowIndex: number;\n /** Retrieves the position of the object in the collection. */\n readonly sectionRowIndex: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Removes the specified cell from the table row, as well as from the cells collection.\n * @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.\n */\n deleteCell(index: number): void;\n /**\n * Creates a new cell in the table row, and adds the cell to the cells collection.\n * @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.\n */\n insertCell(index?: number): HTMLTableCellElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableRowElement: {\n prototype: HTMLTableRowElement;\n new(): HTMLTableRowElement;\n};\n\n/** 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. */\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /** @deprecated */\n vAlign: string;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n */\n deleteRow(index: number): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @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.\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableSectionElement: {\n prototype: HTMLTableSectionElement;\n new(): HTMLTableSectionElement;\n};\n\n/** Enables access to the contents of an HTML <template> element. */\ninterface HTMLTemplateElement extends HTMLElement {\n /** Returns the template contents (a DocumentFragment). */\n readonly content: DocumentFragment;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTemplateElement: {\n prototype: HTMLTemplateElement;\n new(): HTMLTemplateElement;\n};\n\n/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */\ninterface HTMLTextAreaElement extends HTMLElement {\n autocomplete: string;\n /** Sets or retrieves the width of the object. */\n cols: number;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n minLength: number;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** 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. */\n placeholder: string;\n /** Sets or retrieves the value indicated whether the content of the object is read-only. */\n readOnly: boolean;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n rows: number;\n selectionDirection: "forward" | "backward" | "none";\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number;\n readonly textLength: number;\n /** Retrieves the type of control. */\n readonly type: string;\n /** 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. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Retrieves or sets the text in the entry field of the textArea element. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Sets or retrieves how to handle wordwrapping in the object. */\n wrap: string;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /** Highlights the input area of a form element. */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTextAreaElement: {\n prototype: HTMLTextAreaElement;\n new(): HTMLTextAreaElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */\ninterface HTMLTimeElement extends HTMLElement {\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTimeElement: {\n prototype: HTMLTimeElement;\n new(): HTMLTimeElement;\n};\n\n/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */\ninterface HTMLTitleElement extends HTMLElement {\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTitleElement: {\n prototype: HTMLTitleElement;\n new(): HTMLTitleElement;\n};\n\n/** The HTMLTrackElement */\ninterface HTMLTrackElement extends HTMLElement {\n default: boolean;\n kind: string;\n label: string;\n readonly readyState: number;\n src: string;\n srclang: string;\n /** Returns the TextTrack object corresponding to the text track of the track element. */\n readonly track: TextTrack;\n readonly ERROR: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTrackElement: {\n prototype: HTMLTrackElement;\n new(): HTMLTrackElement;\n readonly ERROR: number;\n readonly LOADED: number;\n readonly LOADING: number;\n readonly NONE: number;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */\ninterface HTMLUListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /** @deprecated */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n prototype: HTMLUListElement;\n new(): HTMLUListElement;\n};\n\n/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLUnknownElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n prototype: HTMLUnknownElement;\n new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n "enterpictureinpicture": Event;\n "leavepictureinpicture": Event;\n}\n\n/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */\ninterface HTMLVideoElement extends HTMLMediaElement {\n disablePictureInPicture: boolean;\n /** Gets or sets the height of the video element. */\n height: number;\n onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /** 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. */\n playsInline: boolean;\n /** 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. */\n poster: string;\n /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */\n readonly videoHeight: number;\n /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */\n readonly videoWidth: number;\n /** Gets or sets the width of the video element. */\n width: number;\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n requestPictureInPicture(): Promise<PictureInPictureWindow>;\n addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLVideoElement: {\n prototype: HTMLVideoElement;\n new(): HTMLVideoElement;\n};\n\n/** Events that fire when the fragment identifier of the URL has changed. */\ninterface HashChangeEvent extends Event {\n /** Returns the URL of the session history entry that is now current. */\n readonly newURL: string;\n /** Returns the URL of the session history entry that was previously current. */\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\n/** 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. */\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** Allows\xa0manipulation of\xa0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */\ninterface History {\n readonly length: number;\n scrollRestoration: ScrollRestoration;\n readonly state: any;\n back(): void;\n forward(): void;\n go(delta?: number): void;\n pushState(data: any, unused: string, url?: string | URL | null): void;\n replaceState(data: any, unused: string, url?: string | URL | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */\n readonly direction: IDBCursorDirection;\n /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly key: IDBValidKey;\n /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly primaryKey: IDBValidKey;\n readonly request: IDBRequest;\n /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */\n readonly source: IDBObjectStore | IDBIndex;\n /** Advances the cursor through the next count records in range. */\n advance(count: number): void;\n /** Advances the cursor to the next record in range. */\n continue(key?: IDBValidKey): void;\n /** 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. */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/** 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. */\ninterface IDBCursorWithValue extends IDBCursor {\n /** Returns the cursor\'s current value. */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/** 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. */\ninterface IDBDatabase extends EventTarget {\n /** Returns the name of the database. */\n readonly name: string;\n /** Returns a list of the names of object stores in the database. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /** Returns the version of the database. */\n readonly version: number;\n /** Closes the connection once all running transactions have finished. */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteObjectStore(name: string): void;\n /** 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. */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/** 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.) */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n */\n cmp(first: any, second: any): number;\n databases(): Promise<IDBDatabaseInfo[]>;\n /** 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. */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /** 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. */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/** 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. */\ninterface IDBIndex {\n readonly keyPath: string | string[];\n readonly multiEntry: boolean;\n /** Returns the name of the index. */\n name: string;\n /** Returns the IDBObjectStore the index belongs to. */\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/** 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: */\ninterface IDBKeyRange {\n /** Returns lower bound, or undefined if none. */\n readonly lower: any;\n /** Returns true if the lower open flag is set, and false otherwise. */\n readonly lowerOpen: boolean;\n /** Returns upper bound, or undefined if none. */\n readonly upper: any;\n /** Returns true if the upper open flag is set, and false otherwise. */\n readonly upperOpen: boolean;\n /** Returns true if key is included in the range, and false otherwise. */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /** 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. */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange spanning only key. */\n only(value: any): IDBKeyRange;\n /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** 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.) */\ninterface IDBObjectStore {\n /** Returns true if the store has a key generator, and false otherwise. */\n readonly autoIncrement: boolean;\n /** Returns a list of the names of indexes in the store. */\n readonly indexNames: DOMStringList;\n /** Returns the key path of the store, or null if none. */\n readonly keyPath: string | string[];\n /** Returns the name of the store. */\n name: string;\n /** Returns the associated transaction. */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": Event;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/** 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. */\ninterface IDBRequest<T = any> extends EventTarget {\n /** 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. */\n readonly error: DOMException | null;\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** Returns "pending" until a request is complete, then returns "done". */\n readonly readyState: IDBRequestReadyState;\n /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */\n readonly result: T;\n /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /** 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. */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n /** Returns the transaction\'s connection. */\n readonly db: IDBDatabase;\n /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */\n readonly error: DOMException | null;\n /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */\n readonly mode: IDBTransactionMode;\n /** 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. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */\n abort(): void;\n commit(): void;\n /** Returns an IDBObjectStore in the transaction\'s scope. */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/** 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. */\ninterface IIRFilterNode extends AudioNode {\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\ninterface IdleDeadline {\n readonly didTimeout: boolean;\n timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n prototype: IdleDeadline;\n new(): IdleDeadline;\n};\n\ninterface ImageBitmap {\n /** Returns the intrinsic height of the image, in CSS pixels. */\n readonly height: number;\n /** Returns the intrinsic width of the image, in CSS pixels. */\n readonly width: number;\n /** Releases imageBitmap\'s underlying bitmap data. */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n /** Returns the canvas element that the context is bound to. */\n readonly canvas: HTMLCanvasElement;\n /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/** 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(). */\ninterface ImageData {\n /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */\n readonly data: Uint8ClampedArray;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly height: number;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface InnerHTML {\n innerHTML: string;\n}\n\ninterface InputEvent extends UIEvent {\n readonly data: string | null;\n readonly dataTransfer: DataTransfer | null;\n readonly inputType: string;\n readonly isComposing: boolean;\n getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n prototype: InputEvent;\n new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/** 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. */\ninterface IntersectionObserver {\n readonly root: Element | Document | null;\n readonly rootMargin: string;\n readonly thresholds: ReadonlyArray<number>;\n disconnect(): void;\n observe(target: Element): void;\n takeRecords(): IntersectionObserverEntry[];\n unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n prototype: IntersectionObserver;\n new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */\ninterface IntersectionObserverEntry {\n readonly boundingClientRect: DOMRectReadOnly;\n readonly intersectionRatio: number;\n readonly intersectionRect: DOMRectReadOnly;\n readonly isIntersecting: boolean;\n readonly rootBounds: DOMRectReadOnly | null;\n readonly target: Element;\n readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: GLenum;\n}\n\n/** 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. */\ninterface KeyboardEvent extends UIEvent {\n readonly altKey: boolean;\n /** @deprecated */\n readonly charCode: number;\n readonly code: string;\n readonly ctrlKey: boolean;\n readonly isComposing: boolean;\n readonly key: string;\n /** @deprecated */\n readonly keyCode: number;\n readonly location: number;\n readonly metaKey: boolean;\n readonly repeat: boolean;\n readonly shiftKey: boolean;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_NUMPAD: number;\n readonly DOM_KEY_LOCATION_RIGHT: number;\n readonly DOM_KEY_LOCATION_STANDARD: number;\n}\n\ndeclare var KeyboardEvent: {\n prototype: KeyboardEvent;\n new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_LEFT: number;\n readonly DOM_KEY_LOCATION_NUMPAD: number;\n readonly DOM_KEY_LOCATION_RIGHT: number;\n readonly DOM_KEY_LOCATION_STANDARD: number;\n};\n\ninterface KeyframeEffect extends AnimationEffect {\n composite: CompositeOperation;\n iterationComposite: IterationCompositeOperation;\n pseudoElement: string | null;\n target: Element | null;\n getKeyframes(): ComputedKeyframe[];\n setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n prototype: KeyframeEffect;\n new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n readonly sheet: CSSStyleSheet | null;\n}\n\n/** 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. */\ninterface Location {\n /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */\n readonly ancestorOrigins: DOMStringList;\n /**\n * Returns the Location object\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").\n */\n hash: string;\n /**\n * Returns the Location object\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to navigate to the same URL with a changed host and port.\n */\n host: string;\n /**\n * Returns the Location object\'s URL\'s host.\n *\n * Can be set, to navigate to the same URL with a changed host.\n */\n hostname: string;\n /**\n * Returns the Location object\'s URL.\n *\n * Can be set, to navigate to the given URL.\n */\n href: string;\n toString(): string;\n /** Returns the Location object\'s URL\'s origin. */\n readonly origin: string;\n /**\n * Returns the Location object\'s URL\'s path.\n *\n * Can be set, to navigate to the same URL with a changed path.\n */\n pathname: string;\n /**\n * Returns the Location object\'s URL\'s port.\n *\n * Can be set, to navigate to the same URL with a changed port.\n */\n port: string;\n /**\n * Returns the Location object\'s URL\'s scheme.\n *\n * Can be set, to navigate to the same URL with a changed scheme.\n */\n protocol: string;\n /**\n * Returns the Location object\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed query (ignores leading "?").\n */\n search: string;\n /** Navigates to the given URL. */\n assign(url: string | URL): void;\n /** Reloads the current page. */\n reload(): void;\n /** Removes the current page from the session history and navigates to the given URL. */\n replace(url: string | URL): void;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\ninterface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n}\n\ninterface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MathMLElement: {\n prototype: MathMLElement;\n new(): MathMLElement;\n};\n\ninterface MediaCapabilities {\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * The MediaDevicesInfo interface contains information that describes a single media input or output device.\n * Available only in secure contexts.\n */\ninterface MediaDeviceInfo {\n readonly deviceId: string;\n readonly groupId: string;\n readonly kind: MediaDeviceKind;\n readonly label: string;\n toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface MediaDevices extends EventTarget {\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\n getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;\n getSupportedConstraints(): MediaTrackSupportedConstraints;\n getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;\n addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaDevices: {\n prototype: MediaDevices;\n new(): MediaDevices;\n};\n\n/** 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. */\ninterface MediaElementAudioSourceNode extends AudioNode {\n readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\ninterface MediaEncryptedEvent extends Event {\n readonly initData: ArrayBuffer | null;\n readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n prototype: MediaEncryptedEvent;\n new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */\ninterface MediaError {\n readonly code: number;\n readonly message: string;\n readonly MEDIA_ERR_ABORTED: number;\n readonly MEDIA_ERR_DECODE: number;\n readonly MEDIA_ERR_NETWORK: number;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;\n}\n\ndeclare var MediaError: {\n prototype: MediaError;\n new(): MediaError;\n readonly MEDIA_ERR_ABORTED: number;\n readonly MEDIA_ERR_DECODE: number;\n readonly MEDIA_ERR_NETWORK: number;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;\n};\n\n/**\n * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.\n * Available only in secure contexts.\n */\ninterface MediaKeyMessageEvent extends Event {\n readonly message: ArrayBuffer;\n readonly messageType: MediaKeyMessageType;\n}\n\ndeclare var MediaKeyMessageEvent: {\n prototype: MediaKeyMessageEvent;\n new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;\n};\n\ninterface MediaKeySessionEventMap {\n "keystatuseschange": Event;\n "message": MediaKeyMessageEvent;\n}\n\n/**\n * This EncryptedMediaExtensions API interface represents a\xa0context for message exchange with a content decryption module (CDM).\n * Available only in secure contexts.\n */\ninterface MediaKeySession extends EventTarget {\n readonly closed: Promise<MediaKeySessionClosedReason>;\n readonly expiration: number;\n readonly keyStatuses: MediaKeyStatusMap;\n onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;\n readonly sessionId: string;\n close(): Promise<void>;\n generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n load(sessionId: string): Promise<boolean>;\n remove(): Promise<void>;\n update(response: BufferSource): Promise<void>;\n addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n prototype: MediaKeySession;\n new(): MediaKeySession;\n};\n\n/**\n * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.\n * Available only in secure contexts.\n */\ninterface MediaKeyStatusMap {\n readonly size: number;\n get(keyId: BufferSource): MediaKeyStatus | undefined;\n has(keyId: BufferSource): boolean;\n forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n prototype: MediaKeyStatusMap;\n new(): MediaKeyStatusMap;\n};\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface MediaKeySystemAccess {\n readonly keySystem: string;\n createMediaKeys(): Promise<MediaKeys>;\n getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n prototype: MediaKeySystemAccess;\n new(): MediaKeySystemAccess;\n};\n\n/**\n * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.\n * Available only in secure contexts.\n */\ninterface MediaKeys {\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\ninterface MediaList {\n readonly length: number;\n mediaText: string;\n toString(): string;\n appendMedium(medium: string): void;\n deleteMedium(medium: string): void;\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\ninterface MediaMetadata {\n album: string;\n artist: string;\n artwork: ReadonlyArray<MediaImage>;\n title: string;\n}\n\ndeclare var MediaMetadata: {\n prototype: MediaMetadata;\n new(init?: MediaMetadataInit): MediaMetadata;\n};\n\ninterface MediaQueryListEventMap {\n "change": MediaQueryListEvent;\n}\n\n/** 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). */\ninterface MediaQueryList extends EventTarget {\n readonly matches: boolean;\n readonly media: string;\n onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n /** @deprecated */\n addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n /** @deprecated */\n removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaQueryList: {\n prototype: MediaQueryList;\n new(): MediaQueryList;\n};\n\ninterface MediaQueryListEvent extends Event {\n readonly matches: boolean;\n readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n prototype: MediaQueryListEvent;\n new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaRecorderEventMap {\n "dataavailable": BlobEvent;\n "error": MediaRecorderErrorEvent;\n "pause": Event;\n "resume": Event;\n "start": Event;\n "stop": Event;\n}\n\ninterface MediaRecorder extends EventTarget {\n readonly audioBitsPerSecond: number;\n readonly mimeType: string;\n ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;\n onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;\n onpause: ((this: MediaRecorder, ev: Event) => any) | null;\n onresume: ((this: MediaRecorder, ev: Event) => any) | null;\n onstart: ((this: MediaRecorder, ev: Event) => any) | null;\n onstop: ((this: MediaRecorder, ev: Event) => any) | null;\n readonly state: RecordingState;\n readonly stream: MediaStream;\n readonly videoBitsPerSecond: number;\n pause(): void;\n requestData(): void;\n resume(): void;\n start(timeslice?: number): void;\n stop(): void;\n addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaRecorder: {\n prototype: MediaRecorder;\n new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaRecorderErrorEvent extends Event {\n readonly error: DOMException;\n}\n\ndeclare var MediaRecorderErrorEvent: {\n prototype: MediaRecorderErrorEvent;\n new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;\n};\n\ninterface MediaSession {\n metadata: MediaMetadata | null;\n playbackState: MediaSessionPlaybackState;\n setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n setPositionState(state?: MediaPositionState): void;\n}\n\ndeclare var MediaSession: {\n prototype: MediaSession;\n new(): MediaSession;\n};\n\ninterface MediaSourceEventMap {\n "sourceclose": Event;\n "sourceended": Event;\n "sourceopen": Event;\n}\n\n/** 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. */\ninterface MediaSource extends EventTarget {\n readonly activeSourceBuffers: SourceBufferList;\n duration: number;\n onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n readonly readyState: ReadyState;\n readonly sourceBuffers: SourceBufferList;\n addSourceBuffer(type: string): SourceBuffer;\n clearLiveSeekableRange(): void;\n endOfStream(error?: EndOfStreamError): void;\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n setLiveSeekableRange(start: number, end: number): void;\n addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n prototype: MediaSource;\n new(): MediaSource;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "addtrack": MediaStreamTrackEvent;\n "removetrack": MediaStreamTrackEvent;\n}\n\n/** 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. */\ninterface MediaStream extends EventTarget {\n readonly active: boolean;\n readonly id: string;\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n addTrack(track: MediaStreamTrack): void;\n clone(): MediaStream;\n getAudioTracks(): MediaStreamTrack[];\n getTrackById(trackId: string): MediaStreamTrack | null;\n getTracks(): MediaStreamTrack[];\n getVideoTracks(): MediaStreamTrack[];\n removeTrack(track: MediaStreamTrack): void;\n addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStream: {\n prototype: MediaStream;\n new(): MediaStream;\n new(stream: MediaStream): MediaStream;\n new(tracks: MediaStreamTrack[]): MediaStream;\n};\n\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n prototype: MediaStreamAudioDestinationNode;\n new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/** 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. */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": Event;\n "mute": Event;\n "unmute": Event;\n}\n\n/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */\ninterface MediaStreamTrack extends EventTarget {\n contentHint: string;\n enabled: boolean;\n readonly id: string;\n readonly kind: string;\n readonly label: string;\n readonly muted: boolean;\n onended: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n readonly readyState: MediaStreamTrackState;\n applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n clone(): MediaStreamTrack;\n getCapabilities(): MediaTrackCapabilities;\n getConstraints(): MediaTrackConstraints;\n getSettings(): MediaTrackSettings;\n stop(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStreamTrack: {\n prototype: MediaStreamTrack;\n new(): MediaStreamTrack;\n};\n\n/** 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. */\ninterface MediaStreamTrackEvent extends Event {\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n /** Returns the first MessagePort object. */\n readonly port1: MessagePort;\n /** Returns the second MessagePort object. */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n /** Returns the data of the message. */\n readonly data: T;\n /** Returns the last event ID string, for server-sent events. */\n readonly lastEventId: string;\n /** Returns the origin of the message, for server-sent events and cross-document messaging. */\n readonly origin: string;\n /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */\n readonly ports: ReadonlyArray<MessagePort>;\n /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** Disconnects the port, so that it is no longer active. */\n close(): void;\n /**\n * 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.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Begins dispatching messages received on the port. */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\n/**\n * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.\n * @deprecated\n */\ninterface MimeType {\n /**\n * Returns the MIME type\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the Plugin object that implements this MIME type.\n * @deprecated\n */\n readonly enabledPlugin: Plugin;\n /**\n * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n * @deprecated\n */\n readonly suffixes: string;\n /**\n * Returns the MIME type.\n * @deprecated\n */\n readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\n/**\n * Returns an array of MimeType instances, each of which contains information\xa0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.\n * @deprecated\n */\ninterface MimeTypeArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\n/** 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. */\ninterface MouseEvent extends UIEvent {\n readonly altKey: boolean;\n readonly button: number;\n readonly buttons: number;\n readonly clientX: number;\n readonly clientY: number;\n readonly ctrlKey: boolean;\n readonly metaKey: boolean;\n readonly movementX: number;\n readonly movementY: number;\n readonly offsetX: number;\n readonly offsetY: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly relatedTarget: EventTarget | null;\n readonly screenX: number;\n readonly screenY: number;\n readonly shiftKey: boolean;\n readonly x: number;\n readonly y: number;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n 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;\n}\n\ndeclare var MouseEvent: {\n prototype: MouseEvent;\n new(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/**\n * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.\n * @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.\n */\ninterface MutationEvent extends Event {\n /** @deprecated */\n readonly attrChange: number;\n /** @deprecated */\n readonly attrName: string;\n /** @deprecated */\n readonly newValue: string;\n /** @deprecated */\n readonly prevValue: string;\n /** @deprecated */\n readonly relatedNode: Node | null;\n /** @deprecated */\n initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n}\n\n/** @deprecated */\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly ADDITION: number;\n readonly MODIFICATION: number;\n readonly REMOVAL: number;\n};\n\n/** 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. */\ninterface MutationObserver {\n /** Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked. */\n disconnect(): void;\n /**\n * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n *\n * The options argument allows for setting mutation observation options via object members.\n */\n observe(target: Node, options?: MutationObserverInit): void;\n /** Empties the record queue and returns what was in there. */\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\n/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback. */\ninterface MutationRecord {\n /** Return the nodes added and removed respectively. */\n readonly addedNodes: NodeList;\n /** Returns the local name of the changed attribute, and null otherwise. */\n readonly attributeName: string | null;\n /** Returns the namespace of the changed attribute, and null otherwise. */\n readonly attributeNamespace: string | null;\n /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */\n readonly nextSibling: Node | null;\n /** 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. */\n readonly oldValue: string | null;\n /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */\n readonly previousSibling: Node | null;\n /** Return the nodes added and removed respectively. */\n readonly removedNodes: NodeList;\n /** 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. */\n readonly target: Node;\n /** 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. */\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\n/** 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. */\ninterface NamedNodeMap {\n readonly length: number;\n getNamedItem(qualifiedName: string): Attr | null;\n getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n item(index: number): Attr | null;\n removeNamedItem(qualifiedName: string): Attr;\n removeNamedItemNS(namespace: string | null, localName: string): Attr;\n setNamedItem(attr: Attr): Attr | null;\n setNamedItemNS(attr: Attr): Attr | null;\n [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n prototype: NamedNodeMap;\n new(): NamedNodeMap;\n};\n\n/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */\ninterface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {\n /** Available only in secure contexts. */\n readonly clipboard: Clipboard;\n /** Available only in secure contexts. */\n readonly credentials: CredentialsContainer;\n readonly doNotTrack: string | null;\n readonly geolocation: Geolocation;\n readonly maxTouchPoints: number;\n readonly mediaCapabilities: MediaCapabilities;\n /** Available only in secure contexts. */\n readonly mediaDevices: MediaDevices;\n readonly mediaSession: MediaSession;\n readonly permissions: Permissions;\n /** Available only in secure contexts. */\n readonly serviceWorker: ServiceWorkerContainer;\n /** Available only in secure contexts. */\n canShare(data?: ShareData): boolean;\n getGamepads(): (Gamepad | null)[];\n /** Available only in secure contexts. */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n /** Available only in secure contexts. */\n share(data?: ShareData): Promise<void>;\n vibrate(pattern: VibratePattern): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n readonly webdriver: boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n /** Available only in secure contexts. */\n registerProtocolHandler(scheme: string, url: string | URL): void;\n}\n\ninterface NavigatorCookies {\n readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n /** @deprecated */\n readonly appCodeName: string;\n /** @deprecated */\n readonly appName: string;\n /** @deprecated */\n readonly appVersion: string;\n /** @deprecated */\n readonly platform: string;\n /** @deprecated */\n readonly product: string;\n /** @deprecated */\n readonly productSub: string;\n readonly userAgent: string;\n readonly vendor: string;\n /** @deprecated */\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorNetworkInformation {\n readonly connection: NetworkInformation;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n /** @deprecated */\n readonly mimeTypes: MimeTypeArray;\n /** @deprecated */\n readonly plugins: PluginArray;\n /** @deprecated */\n javaEnabled(): boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n readonly storage: StorageManager;\n}\n\ninterface NetworkInformation extends EventTarget {\n readonly type: ConnectionType;\n}\n\ndeclare var NetworkInformation: {\n prototype: NetworkInformation;\n new(): NetworkInformation;\n};\n\n/** 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. */\ninterface Node extends EventTarget {\n /** Returns node\'s node document\'s document base URL. */\n readonly baseURI: string;\n /** Returns the children. */\n readonly childNodes: NodeListOf<ChildNode>;\n /** Returns the first child. */\n readonly firstChild: ChildNode | null;\n /** Returns true if node is connected and false otherwise. */\n readonly isConnected: boolean;\n /** Returns the last child. */\n readonly lastChild: ChildNode | null;\n /** Returns the next sibling. */\n readonly nextSibling: ChildNode | null;\n /** Returns a string appropriate for the type of node. */\n readonly nodeName: string;\n /** Returns the type of node. */\n readonly nodeType: number;\n nodeValue: string | null;\n /** Returns the node document. Returns null for documents. */\n readonly ownerDocument: Document | null;\n /** Returns the parent element. */\n readonly parentElement: HTMLElement | null;\n /** Returns the parent. */\n readonly parentNode: ParentNode | null;\n /** Returns the previous sibling. */\n readonly previousSibling: ChildNode | null;\n textContent: string | null;\n appendChild<T extends Node>(node: T): T;\n /** Returns a copy of node. If deep is true, the copy also includes the node\'s descendants. */\n cloneNode(deep?: boolean): Node;\n /** Returns a bitmask indicating the position of other relative to node. */\n compareDocumentPosition(other: Node): number;\n /** Returns true if other is an inclusive descendant of node, and false otherwise. */\n contains(other: Node | null): boolean;\n /** Returns node\'s root. */\n getRootNode(options?: GetRootNodeOptions): Node;\n /** Returns whether node has children. */\n hasChildNodes(): boolean;\n insertBefore<T extends Node>(node: T, child: Node | null): T;\n isDefaultNamespace(namespace: string | null): boolean;\n /** Returns whether node and otherNode have the same properties. */\n isEqualNode(otherNode: Node | null): boolean;\n isSameNode(otherNode: Node | null): boolean;\n lookupNamespaceURI(prefix: string | null): string | null;\n lookupPrefix(namespace: string | null): string | null;\n /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */\n normalize(): void;\n removeChild<T extends Node>(child: T): T;\n replaceChild<T extends Node>(node: Node, child: T): T;\n readonly ATTRIBUTE_NODE: number;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: number;\n /** node is a Comment node. */\n readonly COMMENT_NODE: number;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: number;\n /** node is a document. */\n readonly DOCUMENT_NODE: number;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: number;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: number;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: number;\n /** node is an element. */\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: number;\n /** node is a Text node. */\n readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n readonly ATTRIBUTE_NODE: number;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: number;\n /** node is a Comment node. */\n readonly COMMENT_NODE: number;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: number;\n /** node is a document. */\n readonly DOCUMENT_NODE: number;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: number;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: number;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: number;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: number;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: number;\n /** node is an element. */\n readonly ELEMENT_NODE: number;\n readonly ENTITY_NODE: number;\n readonly ENTITY_REFERENCE_NODE: number;\n readonly NOTATION_NODE: number;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: number;\n /** node is a Text node. */\n readonly TEXT_NODE: number;\n};\n\n/** 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. */\ninterface NodeIterator {\n readonly filter: NodeFilter | null;\n readonly pointerBeforeReferenceNode: boolean;\n readonly referenceNode: Node;\n readonly root: Node;\n readonly whatToShow: number;\n /** @deprecated */\n detach(): void;\n nextNode(): Node | null;\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\n/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */\ninterface NodeList {\n /** Returns the number of nodes in the collection. */\n readonly length: number;\n /** Returns the node with index index from the collection. The nodes are sorted in tree order. */\n item(index: number): Node | null;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @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.\n */\n forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n [index: number]: Node;\n}\n\ndeclare var NodeList: {\n prototype: NodeList;\n new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n item(index: number): TNode;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @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.\n */\n forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n [index: number]: TNode;\n}\n\ninterface NonDocumentTypeChildNode {\n /** Returns the first following sibling that is an element, and null otherwise. */\n readonly nextElementSibling: Element | null;\n /** Returns the first preceding sibling that is an element, and null otherwise. */\n readonly previousElementSibling: Element | null;\n}\n\ninterface NonElementParentNode {\n /** Returns the first element within node\'s descendants whose ID is elementId. */\n getElementById(elementId: string): Element | null;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n readonly body: string;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string;\n readonly lang: string;\n onclick: ((this: Notification, ev: Event) => any) | null;\n onclose: ((this: Notification, ev: Event) => any) | null;\n onerror: ((this: Notification, ev: Event) => any) | null;\n onshow: ((this: Notification, ev: Event) => any) | null;\n readonly tag: string;\n readonly title: string;\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n readonly permission: NotificationPermission;\n requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** 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. */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: GLenum;\n}\n\n/** 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. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: GLenum;\n}\n\ninterface OVR_multiview2 {\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;\n readonly MAX_VIEWS_OVR: GLenum;\n}\n\n/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */\ninterface OfflineAudioCompletionEvent extends Event {\n readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n prototype: OfflineAudioCompletionEvent;\n new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends BaseAudioContextEventMap {\n "complete": OfflineAudioCompletionEvent;\n}\n\n/** 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. */\ninterface OfflineAudioContext extends BaseAudioContext {\n readonly length: number;\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n resume(): Promise<void>;\n startRendering(): Promise<AudioBuffer>;\n suspend(suspendTime: number): Promise<void>;\n addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OfflineAudioContext: {\n prototype: OfflineAudioContext;\n new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;\n new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\n/** 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. */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n type: OscillatorType;\n setPeriodicWave(periodicWave: PeriodicWave): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OscillatorNode: {\n prototype: OscillatorNode;\n new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;\n};\n\ninterface OverconstrainedError extends Error {\n readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n prototype: OverconstrainedError;\n new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */\ninterface PageTransitionEvent extends Event {\n /**\n * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.\n *\n * 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.\n *\n * Things that can cause the page to be unsalvageable include:\n *\n * The user agent decided to not keep the Document alive in a session history entry after unload\n * Having iframes that are not salvageable\n * Active WebSocket objects\n * Aborting a Document\n */\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;\n};\n\n/** 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! */\ninterface PannerNode extends AudioNode {\n coneInnerAngle: number;\n coneOuterAngle: number;\n coneOuterGain: number;\n distanceModel: DistanceModelType;\n maxDistance: number;\n readonly orientationX: AudioParam;\n readonly orientationY: AudioParam;\n readonly orientationZ: AudioParam;\n panningModel: PanningModelType;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n refDistance: number;\n rolloffFactor: number;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n prototype: PannerNode;\n new(context: BaseAudioContext, options?: PannerOptions): PannerNode;\n};\n\ninterface ParentNode extends Node {\n readonly childElementCount: number;\n /** Returns the child elements. */\n readonly children: HTMLCollection;\n /** Returns the first child that is an element, and null otherwise. */\n readonly firstElementChild: Element | null;\n /** Returns the last child that is an element, and null otherwise. */\n readonly lastElementChild: Element | null;\n /**\n * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n append(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n prepend(...nodes: (Node | string)[]): void;\n /** Returns the first element that is a descendant of node that matches selectors. */\n querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n querySelector<E extends Element = Element>(selectors: string): E | null;\n /** Returns all element descendants of node that match selectors. */\n querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n /**\n * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceChildren(...nodes: (Node | string)[]): void;\n}\n\n/** 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. */\ninterface Path2D extends CanvasPath {\n /** Adds to the path the path given by the argument. */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\n/** Available only in secure contexts. */\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n readonly methodDetails: any;\n readonly methodName: string;\n}\n\ndeclare var PaymentMethodChangeEvent: {\n prototype: PaymentMethodChangeEvent;\n new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;\n};\n\ninterface PaymentRequestEventMap {\n "paymentmethodchange": Event;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface PaymentRequest extends EventTarget {\n readonly id: string;\n onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;\n abort(): Promise<void>;\n canMakePayment(): Promise<boolean>;\n show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;\n addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentRequest: {\n prototype: PaymentRequest;\n new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;\n};\n\n/**\n * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.\n * Available only in secure contexts.\n */\ninterface PaymentRequestUpdateEvent extends Event {\n updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/**\n * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.\n * Available only in secure contexts.\n */\ninterface PaymentResponse extends EventTarget {\n readonly details: any;\n readonly methodName: string;\n readonly requestId: string;\n complete(result?: PaymentComplete): Promise<void>;\n retry(errorFields?: PaymentValidationErrors): Promise<void>;\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/** 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. */\ninterface Performance extends EventTarget {\n /** @deprecated */\n readonly navigation: PerformanceNavigation;\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n readonly timeOrigin: DOMHighResTimeStamp;\n /** @deprecated */\n readonly timing: PerformanceTiming;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n now(): DOMHighResTimeStamp;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/** 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). */\ninterface PerformanceEntry {\n readonly duration: DOMHighResTimeStamp;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\ninterface PerformanceEventTiming extends PerformanceEntry {\n readonly cancelable: boolean;\n readonly processingEnd: DOMHighResTimeStamp;\n readonly processingStart: DOMHighResTimeStamp;\n readonly target: Node | null;\n}\n\ndeclare var PerformanceEventTiming: {\n prototype: PerformanceEventTiming;\n new(): PerformanceEventTiming;\n};\n\n/** 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. */\ninterface PerformanceMark extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** 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. */\ninterface PerformanceMeasure extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/**\n * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceNavigation {\n /** @deprecated */\n readonly redirectCount: number;\n /** @deprecated */\n readonly type: number;\n /** @deprecated */\n toJSON(): any;\n readonly TYPE_BACK_FORWARD: number;\n readonly TYPE_NAVIGATE: number;\n readonly TYPE_RELOAD: number;\n readonly TYPE_RESERVED: number;\n}\n\n/** @deprecated */\ndeclare var PerformanceNavigation: {\n prototype: PerformanceNavigation;\n new(): PerformanceNavigation;\n readonly TYPE_BACK_FORWARD: number;\n readonly TYPE_NAVIGATE: number;\n readonly TYPE_RELOAD: number;\n readonly TYPE_RESERVED: number;\n};\n\n/** 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. */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n readonly domComplete: DOMHighResTimeStamp;\n readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n readonly domInteractive: DOMHighResTimeStamp;\n readonly loadEventEnd: DOMHighResTimeStamp;\n readonly loadEventStart: DOMHighResTimeStamp;\n readonly redirectCount: number;\n readonly type: NavigationType;\n readonly unloadEventEnd: DOMHighResTimeStamp;\n readonly unloadEventStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceObserver {\n disconnect(): void;\n observe(options?: PerformanceObserverInit): void;\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n prototype: PerformancePaintTiming;\n new(): PerformancePaintTiming;\n};\n\n/** 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. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: DOMHighResTimeStamp;\n readonly connectStart: DOMHighResTimeStamp;\n readonly decodedBodySize: number;\n readonly domainLookupEnd: DOMHighResTimeStamp;\n readonly domainLookupStart: DOMHighResTimeStamp;\n readonly encodedBodySize: number;\n readonly fetchStart: DOMHighResTimeStamp;\n readonly initiatorType: string;\n readonly nextHopProtocol: string;\n readonly redirectEnd: DOMHighResTimeStamp;\n readonly redirectStart: DOMHighResTimeStamp;\n readonly requestStart: DOMHighResTimeStamp;\n readonly responseEnd: DOMHighResTimeStamp;\n readonly responseStart: DOMHighResTimeStamp;\n readonly secureConnectionStart: DOMHighResTimeStamp;\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n readonly transferSize: number;\n readonly workerStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n readonly description: string;\n readonly duration: DOMHighResTimeStamp;\n readonly name: string;\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\n/**\n * 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.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceTiming {\n /** @deprecated */\n readonly connectEnd: number;\n /** @deprecated */\n readonly connectStart: number;\n /** @deprecated */\n readonly domComplete: number;\n /** @deprecated */\n readonly domContentLoadedEventEnd: number;\n /** @deprecated */\n readonly domContentLoadedEventStart: number;\n /** @deprecated */\n readonly domInteractive: number;\n /** @deprecated */\n readonly domLoading: number;\n /** @deprecated */\n readonly domainLookupEnd: number;\n /** @deprecated */\n readonly domainLookupStart: number;\n /** @deprecated */\n readonly fetchStart: number;\n /** @deprecated */\n readonly loadEventEnd: number;\n /** @deprecated */\n readonly loadEventStart: number;\n /** @deprecated */\n readonly navigationStart: number;\n /** @deprecated */\n readonly redirectEnd: number;\n /** @deprecated */\n readonly redirectStart: number;\n /** @deprecated */\n readonly requestStart: number;\n /** @deprecated */\n readonly responseEnd: number;\n /** @deprecated */\n readonly responseStart: number;\n /** @deprecated */\n readonly secureConnectionStart: number;\n /** @deprecated */\n readonly unloadEventEnd: number;\n /** @deprecated */\n readonly unloadEventStart: number;\n /** @deprecated */\n toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\n/** 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(). */\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\ninterface Permissions {\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\ninterface PictureInPictureWindowEventMap {\n "resize": Event;\n}\n\ninterface PictureInPictureWindow extends EventTarget {\n readonly height: number;\n onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;\n readonly width: number;\n addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PictureInPictureWindow: {\n prototype: PictureInPictureWindow;\n new(): PictureInPictureWindow;\n};\n\n/**\n * Provides information about a browser plugin.\n * @deprecated\n */\ninterface Plugin {\n /**\n * Returns the plugin\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the plugin library\'s filename, if applicable on the current platform.\n * @deprecated\n */\n readonly filename: string;\n /**\n * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n * @deprecated\n */\n readonly length: number;\n /**\n * Returns the plugin\'s name.\n * @deprecated\n */\n readonly name: string;\n /**\n * Returns the specified MimeType object.\n * @deprecated\n */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\n/**\n * 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.\n * @deprecated\n */\ninterface PluginArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): Plugin | null;\n /** @deprecated */\n namedItem(name: string): Plugin | null;\n /** @deprecated */\n refresh(): void;\n [index: number]: Plugin;\n}\n\n/** @deprecated */\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\n/** 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. */\ninterface PointerEvent extends MouseEvent {\n readonly height: number;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: string;\n readonly pressure: number;\n readonly tangentialPressure: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly twist: number;\n readonly width: number;\n /** Available only in secure contexts. */\n getCoalescedEvents(): PointerEvent[];\n getPredictedEvents(): PointerEvent[];\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\n/** PopStateEvent is an event handler for the popstate event on the window. */\ninterface PopStateEvent extends Event {\n /** Returns a copy of the information that was provided to pushState() or replaceState(). */\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\n/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them. */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n readonly ownerDocument: Document;\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\n/** 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>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly target: T | null;\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: Promise<any>;\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/** Available only in secure contexts. */\ninterface PublicKeyCredential extends Credential {\n readonly rawId: ArrayBuffer;\n readonly response: AuthenticatorResponse;\n getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n prototype: PublicKeyCredential;\n new(): PublicKeyCredential;\n isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n */\ninterface PushManager {\n getSubscription(): Promise<PushSubscription | null>;\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n */\ninterface PushSubscription {\n readonly endpoint: string;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): PushSubscriptionJSON;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCCertificate {\n readonly expires: DOMTimeStamp;\n getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n prototype: RTCCertificate;\n new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDTMFSender extends EventTarget {\n readonly canInsertDTMF: boolean;\n ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n readonly toneBuffer: string;\n insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDTMFSender: {\n prototype: RTCDTMFSender;\n new(): RTCDTMFSender;\n};\n\n/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */\ninterface RTCDTMFToneChangeEvent extends Event {\n readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n prototype: RTCDTMFToneChangeEvent;\n new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDataChannelEventMap {\n "bufferedamountlow": Event;\n "close": Event;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface RTCDataChannel extends EventTarget {\n binaryType: BinaryType;\n readonly bufferedAmount: number;\n bufferedAmountLowThreshold: number;\n readonly id: number | null;\n readonly label: string;\n readonly maxPacketLifeTime: number | null;\n readonly maxRetransmits: number | null;\n readonly negotiated: boolean;\n onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n onerror: ((this: RTCDataChannel, ev: Event) => any) | null;\n onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n readonly ordered: boolean;\n readonly protocol: string;\n readonly readyState: RTCDataChannelState;\n close(): void;\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView): void;\n addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n prototype: RTCDataChannel;\n new(): RTCDataChannel;\n};\n\ninterface RTCDataChannelEvent extends Event {\n readonly channel: RTCDataChannel;\n}\n\ndeclare var RTCDataChannelEvent: {\n prototype: RTCDataChannelEvent;\n new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n "statechange": Event;\n}\n\ninterface RTCDtlsTransport extends EventTarget {\n onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n readonly state: RTCDtlsTransportState;\n addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtlsTransport: {\n prototype: RTCDtlsTransport;\n new(): RTCDtlsTransport;\n};\n\n/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */\ninterface RTCIceCandidate {\n readonly address: string | null;\n readonly candidate: string;\n readonly component: RTCIceComponent | null;\n readonly foundation: string | null;\n readonly port: number | null;\n readonly priority: number | null;\n readonly protocol: RTCIceProtocol | null;\n readonly relatedAddress: string | null;\n readonly relatedPort: number | null;\n readonly sdpMLineIndex: number | null;\n readonly sdpMid: string | null;\n readonly tcpType: RTCIceTcpCandidateType | null;\n readonly type: RTCIceCandidateType | null;\n readonly usernameFragment: string | null;\n toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\n/** Provides access to information about the ICE transport layer over which the data is being sent and received. */\ninterface RTCIceTransport extends EventTarget {\n readonly gatheringState: RTCIceGathererState;\n readonly state: RTCIceTransportState;\n}\n\ndeclare var RTCIceTransport: {\n prototype: RTCIceTransport;\n new(): RTCIceTransport;\n};\n\ninterface RTCPeerConnectionEventMap {\n "connectionstatechange": Event;\n "datachannel": RTCDataChannelEvent;\n "icecandidate": RTCPeerConnectionIceEvent;\n "icecandidateerror": Event;\n "iceconnectionstatechange": Event;\n "icegatheringstatechange": Event;\n "negotiationneeded": Event;\n "signalingstatechange": Event;\n "track": RTCTrackEvent;\n}\n\n/** 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. */\ninterface RTCPeerConnection extends EventTarget {\n readonly canTrickleIceCandidates: boolean | null;\n readonly connectionState: RTCPeerConnectionState;\n readonly currentLocalDescription: RTCSessionDescription | null;\n readonly currentRemoteDescription: RTCSessionDescription | null;\n readonly iceConnectionState: RTCIceConnectionState;\n readonly iceGatheringState: RTCIceGatheringState;\n readonly localDescription: RTCSessionDescription | null;\n onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;\n oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n readonly pendingLocalDescription: RTCSessionDescription | null;\n readonly pendingRemoteDescription: RTCSessionDescription | null;\n readonly remoteDescription: RTCSessionDescription | null;\n readonly signalingState: RTCSignalingState;\n addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;\n /** @deprecated */\n addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n close(): void;\n createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n getConfiguration(): RTCConfiguration;\n getReceivers(): RTCRtpReceiver[];\n getSenders(): RTCRtpSender[];\n getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n getTransceivers(): RTCRtpTransceiver[];\n removeTrack(sender: RTCRtpSender): void;\n restartIce(): void;\n setConfiguration(configuration?: RTCConfiguration): void;\n setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCPeerConnection: {\n prototype: RTCPeerConnection;\n new(configuration?: RTCConfiguration): RTCPeerConnection;\n generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n readonly address: string | null;\n readonly errorCode: number;\n readonly errorText: string;\n readonly port: number | null;\n readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n prototype: RTCPeerConnectionIceErrorEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */\ninterface RTCPeerConnectionIceEvent extends Event {\n readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/** This WebRTC API interface manages the reception and decoding of data for a\xa0MediaStreamTrack on an\xa0RTCPeerConnection. */\ninterface RTCRtpReceiver {\n readonly track: MediaStreamTrack;\n readonly transport: RTCDtlsTransport | null;\n getContributingSources(): RTCRtpContributingSource[];\n getParameters(): RTCRtpReceiveParameters;\n getStats(): Promise<RTCStatsReport>;\n getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(): RTCRtpReceiver;\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */\ninterface RTCRtpSender {\n readonly dtmf: RTCDTMFSender | null;\n readonly track: MediaStreamTrack | null;\n readonly transport: RTCDtlsTransport | null;\n getParameters(): RTCRtpSendParameters;\n getStats(): Promise<RTCStatsReport>;\n replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n setParameters(parameters: RTCRtpSendParameters): Promise<void>;\n setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(): RTCRtpSender;\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\ninterface RTCRtpTransceiver {\n readonly currentDirection: RTCRtpTransceiverDirection | null;\n direction: RTCRtpTransceiverDirection;\n readonly mid: string | null;\n readonly receiver: RTCRtpReceiver;\n readonly sender: RTCRtpSender;\n stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n prototype: RTCRtpTransceiver;\n new(): RTCRtpTransceiver;\n};\n\n/** 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. */\ninterface RTCSessionDescription {\n readonly sdp: string;\n readonly type: RTCSdpType;\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCStatsReport {\n forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;\n}\n\ndeclare var RTCStatsReport: {\n prototype: RTCStatsReport;\n new(): RTCStatsReport;\n};\n\ninterface RTCTrackEvent extends Event {\n readonly receiver: RTCRtpReceiver;\n readonly streams: ReadonlyArray<MediaStream>;\n readonly track: MediaStreamTrack;\n readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n prototype: RTCTrackEvent;\n new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\ninterface RadioNodeList extends NodeList {\n value: string;\n}\n\ndeclare var RadioNodeList: {\n prototype: RadioNodeList;\n new(): RadioNodeList;\n};\n\n/** A fragment of a document that can contain nodes and parts of text nodes. */\ninterface Range extends AbstractRange {\n /** Returns the node, furthest away from the document, that is an ancestor of both range\'s start node and end node. */\n readonly commonAncestorContainer: Node;\n cloneContents(): DocumentFragment;\n cloneRange(): Range;\n collapse(toStart?: boolean): void;\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n /** 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. */\n comparePoint(node: Node, offset: number): number;\n createContextualFragment(fragment: string): DocumentFragment;\n deleteContents(): void;\n detach(): void;\n extractContents(): DocumentFragment;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n insertNode(node: Node): void;\n /** Returns whether range intersects node. */\n intersectsNode(node: Node): boolean;\n isPointInRange(node: Node, offset: number): boolean;\n selectNode(node: Node): void;\n selectNodeContents(node: Node): void;\n setEnd(node: Node, offset: number): void;\n setEndAfter(node: Node): void;\n setEndBefore(node: Node): void;\n setStart(node: Node, offset: number): void;\n setStartAfter(node: Node): void;\n setStartBefore(node: Node): void;\n surroundContents(newParent: Node): void;\n toString(): string;\n readonly END_TO_END: number;\n readonly END_TO_START: number;\n readonly START_TO_END: number;\n readonly START_TO_START: number;\n}\n\ndeclare var Range: {\n prototype: Range;\n new(): Range;\n readonly END_TO_END: number;\n readonly END_TO_START: number;\n readonly START_TO_END: number;\n readonly START_TO_START: number;\n toString(): string;\n};\n\n/** 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. */\ninterface ReadableStream<R = any> {\n readonly locked: boolean;\n cancel(reason?: any): Promise<void>;\n getReader(): ReadableStreamDefaultReader<R>;\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk?: R): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n read(): Promise<ReadableStreamDefaultReadResult<R>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n readonly closed: Promise<undefined>;\n cancel(reason?: any): Promise<void>;\n}\n\ninterface RemotePlaybackEventMap {\n "connect": Event;\n "connecting": Event;\n "disconnect": Event;\n}\n\ninterface RemotePlayback extends EventTarget {\n onconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;\n ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n readonly state: RemotePlaybackState;\n cancelWatchAvailability(id?: number): Promise<void>;\n prompt(): Promise<void>;\n watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;\n addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RemotePlayback: {\n prototype: RemotePlayback;\n new(): RemotePlayback;\n};\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching. */\n readonly cache: RequestCache;\n /** 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. */\n readonly credentials: RequestCredentials;\n /** Returns the kind of resource requested by request, e.g., "document" or "script". */\n readonly destination: RequestDestination;\n /** 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. */\n readonly headers: Headers;\n /** 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] */\n readonly integrity: string;\n /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */\n readonly keepalive: boolean;\n /** Returns request\'s HTTP method, which is "GET" by default. */\n readonly method: string;\n /** 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. */\n readonly mode: RequestMode;\n /** 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. */\n readonly redirect: RequestRedirect;\n /** 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. */\n readonly referrer: string;\n /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer. */\n readonly referrerPolicy: ReferrerPolicy;\n /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */\n readonly signal: AbortSignal;\n /** Returns the URL of request as a string. */\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo, init?: RequestInit): Request;\n};\n\ninterface ResizeObserver {\n disconnect(): void;\n observe(target: Element, options?: ResizeObserverOptions): void;\n unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n prototype: ResizeObserver;\n new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\ninterface ResizeObserverEntry {\n readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly contentRect: DOMRectReadOnly;\n readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n prototype: ResizeObserverEntry;\n new(): ResizeObserverEntry;\n};\n\ninterface ResizeObserverSize {\n readonly blockSize: number;\n readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n prototype: ResizeObserverSize;\n new(): ResizeObserverSize;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n readonly headers: Headers;\n readonly ok: boolean;\n readonly redirected: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly type: ResponseType;\n readonly url: string;\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string | URL, status?: number): Response;\n};\n\n/** Provides access to the properties of <a> element, as well as methods to manipulate them. */\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n rel: string;\n readonly relList: DOMTokenList;\n readonly target: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAElement: {\n prototype: SVGAElement;\n new(): SVGAElement;\n};\n\n/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */\ninterface SVGAngle {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_ANGLETYPE_DEG: number;\n readonly SVG_ANGLETYPE_GRAD: number;\n readonly SVG_ANGLETYPE_RAD: number;\n readonly SVG_ANGLETYPE_UNKNOWN: number;\n readonly SVG_ANGLETYPE_UNSPECIFIED: number;\n}\n\ndeclare var SVGAngle: {\n prototype: SVGAngle;\n new(): SVGAngle;\n readonly SVG_ANGLETYPE_DEG: number;\n readonly SVG_ANGLETYPE_GRAD: number;\n readonly SVG_ANGLETYPE_RAD: number;\n readonly SVG_ANGLETYPE_UNKNOWN: number;\n readonly SVG_ANGLETYPE_UNSPECIFIED: number;\n};\n\ninterface SVGAnimateElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n prototype: SVGAnimateElement;\n new(): SVGAnimateElement;\n};\n\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n prototype: SVGAnimateMotionElement;\n new(): SVGAnimateMotionElement;\n};\n\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n prototype: SVGAnimateTransformElement;\n new(): SVGAnimateTransformElement;\n};\n\n/** Used for attributes of basic type <angle> which can be animated. */\ninterface SVGAnimatedAngle {\n readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\n/** Used for attributes of type boolean which can be animated. */\ninterface SVGAnimatedBoolean {\n readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\n/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */\ninterface SVGAnimatedEnumeration {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\n/** Used for attributes of basic type <integer> which can be animated. */\ninterface SVGAnimatedInteger {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\n/** Used for attributes of basic type <length> which can be animated. */\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\n/** Used for attributes of type SVGLengthList which can be animated. */\ninterface SVGAnimatedLengthList {\n readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\n/** Used for attributes of basic type <Number> which can be animated. */\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\n/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedNumberList {\n readonly animVal: SVGNumberList;\n readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n prototype: SVGAnimatedNumberList;\n new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n readonly animatedPoints: SVGPointList;\n readonly points: SVGPointList;\n}\n\n/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/** Used for attributes of basic SVGRect which can be animated. */\ninterface SVGAnimatedRect {\n readonly animVal: DOMRectReadOnly;\n readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\n/** 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. */\ninterface SVGAnimatedString {\n readonly animVal: string;\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\n/** Used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedTransformList {\n readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n readonly targetElement: SVGElement | null;\n beginElement(): void;\n beginElementAt(offset: number): void;\n endElement(): void;\n endElementAt(offset: number): void;\n getCurrentTime(): number;\n getSimpleDuration(): number;\n getStartTime(): number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n prototype: SVGAnimationElement;\n new(): SVGAnimationElement;\n};\n\n/** 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. */\ninterface SVGCircleElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCircleElement: {\n prototype: SVGCircleElement;\n new(): SVGCircleElement;\n};\n\n/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */\ninterface SVGClipPathElement extends SVGElement {\n readonly clipPathUnits: SVGAnimatedEnumeration;\n readonly transform: SVGAnimatedTransformList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGClipPathElement: {\n prototype: SVGClipPathElement;\n new(): SVGClipPathElement;\n};\n\n/** A base interface used by the component transfer function interfaces. */\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n readonly amplitude: SVGAnimatedNumber;\n readonly exponent: SVGAnimatedNumber;\n readonly intercept: SVGAnimatedNumber;\n readonly offset: SVGAnimatedNumber;\n readonly slope: SVGAnimatedNumber;\n readonly tableValues: SVGAnimatedNumberList;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGComponentTransferFunctionElement: {\n prototype: SVGComponentTransferFunctionElement;\n new(): SVGComponentTransferFunctionElement;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;\n};\n\n/** Corresponds to the <defs> element. */\ninterface SVGDefsElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n prototype: SVGDefsElement;\n new(): SVGDefsElement;\n};\n\n/** Corresponds to the <desc> element. */\ninterface SVGDescElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n prototype: SVGDescElement;\n new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n}\n\n/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */\ninterface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n /** @deprecated */\n readonly className: any;\n readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n prototype: SVGElement;\n new(): SVGElement;\n};\n\n/** Provides access to the properties of <ellipse> elements. */\ninterface SVGEllipseElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n prototype: SVGEllipseElement;\n new(): SVGEllipseElement;\n};\n\n/** Corresponds to the <feBlend> element. */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly mode: SVGAnimatedEnumeration;\n readonly SVG_FEBLEND_MODE_COLOR: number;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: number;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;\n readonly SVG_FEBLEND_MODE_DARKEN: number;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: number;\n readonly SVG_FEBLEND_MODE_EXCLUSION: number;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;\n readonly SVG_FEBLEND_MODE_HUE: number;\n readonly SVG_FEBLEND_MODE_LIGHTEN: number;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: number;\n readonly SVG_FEBLEND_MODE_MULTIPLY: number;\n readonly SVG_FEBLEND_MODE_NORMAL: number;\n readonly SVG_FEBLEND_MODE_OVERLAY: number;\n readonly SVG_FEBLEND_MODE_SATURATION: number;\n readonly SVG_FEBLEND_MODE_SCREEN: number;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;\n readonly SVG_FEBLEND_MODE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEBlendElement: {\n prototype: SVGFEBlendElement;\n new(): SVGFEBlendElement;\n readonly SVG_FEBLEND_MODE_COLOR: number;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: number;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;\n readonly SVG_FEBLEND_MODE_DARKEN: number;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: number;\n readonly SVG_FEBLEND_MODE_EXCLUSION: number;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;\n readonly SVG_FEBLEND_MODE_HUE: number;\n readonly SVG_FEBLEND_MODE_LIGHTEN: number;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: number;\n readonly SVG_FEBLEND_MODE_MULTIPLY: number;\n readonly SVG_FEBLEND_MODE_NORMAL: number;\n readonly SVG_FEBLEND_MODE_OVERLAY: number;\n readonly SVG_FEBLEND_MODE_SATURATION: number;\n readonly SVG_FEBLEND_MODE_SCREEN: number;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;\n readonly SVG_FEBLEND_MODE_UNKNOWN: number;\n};\n\n/** Corresponds to the <feColorMatrix> element. */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly type: SVGAnimatedEnumeration;\n readonly values: SVGAnimatedNumberList;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEColorMatrixElement: {\n prototype: SVGFEColorMatrixElement;\n new(): SVGFEColorMatrixElement;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;\n};\n\n/** Corresponds to the <feComponentTransfer> element. */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n prototype: SVGFEComponentTransferElement;\n new(): SVGFEComponentTransferElement;\n};\n\n/** Corresponds to the <feComposite> element. */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly k1: SVGAnimatedNumber;\n readonly k2: SVGAnimatedNumber;\n readonly k3: SVGAnimatedNumber;\n readonly k4: SVGAnimatedNumber;\n readonly operator: SVGAnimatedEnumeration;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFECompositeElement: {\n prototype: SVGFECompositeElement;\n new(): SVGFECompositeElement;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;\n};\n\n/** Corresponds to the <feConvolveMatrix> element. */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly bias: SVGAnimatedNumber;\n readonly divisor: SVGAnimatedNumber;\n readonly edgeMode: SVGAnimatedEnumeration;\n readonly in1: SVGAnimatedString;\n readonly kernelMatrix: SVGAnimatedNumberList;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly orderX: SVGAnimatedInteger;\n readonly orderY: SVGAnimatedInteger;\n readonly preserveAlpha: SVGAnimatedBoolean;\n readonly targetX: SVGAnimatedInteger;\n readonly targetY: SVGAnimatedInteger;\n readonly SVG_EDGEMODE_DUPLICATE: number;\n readonly SVG_EDGEMODE_NONE: number;\n readonly SVG_EDGEMODE_UNKNOWN: number;\n readonly SVG_EDGEMODE_WRAP: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEConvolveMatrixElement: {\n prototype: SVGFEConvolveMatrixElement;\n new(): SVGFEConvolveMatrixElement;\n readonly SVG_EDGEMODE_DUPLICATE: number;\n readonly SVG_EDGEMODE_NONE: number;\n readonly SVG_EDGEMODE_UNKNOWN: number;\n readonly SVG_EDGEMODE_WRAP: number;\n};\n\n/** Corresponds to the <feDiffuseLighting> element. */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly diffuseConstant: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n prototype: SVGFEDiffuseLightingElement;\n new(): SVGFEDiffuseLightingElement;\n};\n\n/** Corresponds to the <feDisplacementMap> element. */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly scale: SVGAnimatedNumber;\n readonly xChannelSelector: SVGAnimatedEnumeration;\n readonly yChannelSelector: SVGAnimatedEnumeration;\n readonly SVG_CHANNEL_A: number;\n readonly SVG_CHANNEL_B: number;\n readonly SVG_CHANNEL_G: number;\n readonly SVG_CHANNEL_R: number;\n readonly SVG_CHANNEL_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDisplacementMapElement: {\n prototype: SVGFEDisplacementMapElement;\n new(): SVGFEDisplacementMapElement;\n readonly SVG_CHANNEL_A: number;\n readonly SVG_CHANNEL_B: number;\n readonly SVG_CHANNEL_G: number;\n readonly SVG_CHANNEL_R: number;\n readonly SVG_CHANNEL_UNKNOWN: number;\n};\n\n/** Corresponds to the <feDistantLight> element. */\ninterface SVGFEDistantLightElement extends SVGElement {\n readonly azimuth: SVGAnimatedNumber;\n readonly elevation: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n prototype: SVGFEDistantLightElement;\n new(): SVGFEDistantLightElement;\n};\n\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n prototype: SVGFEDropShadowElement;\n new(): SVGFEDropShadowElement;\n};\n\n/** Corresponds to the <feFlood> element. */\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n prototype: SVGFEFloodElement;\n new(): SVGFEFloodElement;\n};\n\n/** Corresponds to the <feFuncA> element. */\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n prototype: SVGFEFuncAElement;\n new(): SVGFEFuncAElement;\n};\n\n/** Corresponds to the <feFuncB> element. */\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n prototype: SVGFEFuncBElement;\n new(): SVGFEFuncBElement;\n};\n\n/** Corresponds to the <feFuncG> element. */\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n prototype: SVGFEFuncGElement;\n new(): SVGFEFuncGElement;\n};\n\n/** Corresponds to the <feFuncR> element. */\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n prototype: SVGFEFuncRElement;\n new(): SVGFEFuncRElement;\n};\n\n/** Corresponds to the <feGaussianBlur> element. */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n prototype: SVGFEGaussianBlurElement;\n new(): SVGFEGaussianBlurElement;\n};\n\n/** Corresponds to the <feImage> element. */\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEImageElement: {\n prototype: SVGFEImageElement;\n new(): SVGFEImageElement;\n};\n\n/** Corresponds to the <feMerge> element. */\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n prototype: SVGFEMergeElement;\n new(): SVGFEMergeElement;\n};\n\n/** Corresponds to the <feMergeNode> element. */\ninterface SVGFEMergeNodeElement extends SVGElement {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n prototype: SVGFEMergeNodeElement;\n new(): SVGFEMergeNodeElement;\n};\n\n/** Corresponds to the <feMorphology> element. */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly operator: SVGAnimatedEnumeration;\n readonly radiusX: SVGAnimatedNumber;\n readonly radiusY: SVGAnimatedNumber;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMorphologyElement: {\n prototype: SVGFEMorphologyElement;\n new(): SVGFEMorphologyElement;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;\n};\n\n/** Corresponds to the <feOffset> element. */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n prototype: SVGFEOffsetElement;\n new(): SVGFEOffsetElement;\n};\n\n/** Corresponds to the <fePointLight> element. */\ninterface SVGFEPointLightElement extends SVGElement {\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n prototype: SVGFEPointLightElement;\n new(): SVGFEPointLightElement;\n};\n\n/** Corresponds to the <feSpecularLighting> element. */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly specularConstant: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n prototype: SVGFESpecularLightingElement;\n new(): SVGFESpecularLightingElement;\n};\n\n/** Corresponds to the <feSpotLight> element. */\ninterface SVGFESpotLightElement extends SVGElement {\n readonly limitingConeAngle: SVGAnimatedNumber;\n readonly pointsAtX: SVGAnimatedNumber;\n readonly pointsAtY: SVGAnimatedNumber;\n readonly pointsAtZ: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n prototype: SVGFESpotLightElement;\n new(): SVGFESpotLightElement;\n};\n\n/** Corresponds to the <feTile> element. */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n prototype: SVGFETileElement;\n new(): SVGFETileElement;\n};\n\n/** Corresponds to the <feTurbulence> element. */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly baseFrequencyX: SVGAnimatedNumber;\n readonly baseFrequencyY: SVGAnimatedNumber;\n readonly numOctaves: SVGAnimatedInteger;\n readonly seed: SVGAnimatedNumber;\n readonly stitchTiles: SVGAnimatedEnumeration;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_STITCHTYPE_NOSTITCH: number;\n readonly SVG_STITCHTYPE_STITCH: number;\n readonly SVG_STITCHTYPE_UNKNOWN: number;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETurbulenceElement: {\n prototype: SVGFETurbulenceElement;\n new(): SVGFETurbulenceElement;\n readonly SVG_STITCHTYPE_NOSTITCH: number;\n readonly SVG_STITCHTYPE_STITCH: number;\n readonly SVG_STITCHTYPE_UNKNOWN: number;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;\n};\n\n/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n readonly filterUnits: SVGAnimatedEnumeration;\n readonly height: SVGAnimatedLength;\n readonly primitiveUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n prototype: SVGFilterElement;\n new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n readonly height: SVGAnimatedLength;\n readonly result: SVGAnimatedString;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n readonly viewBox: SVGAnimatedRect;\n}\n\n/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n prototype: SVGForeignObjectElement;\n new(): SVGForeignObjectElement;\n};\n\n/** Corresponds to the <g> element. */\ninterface SVGGElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n prototype: SVGGElement;\n new(): SVGGElement;\n};\n\ninterface SVGGeometryElement extends SVGGraphicsElement {\n readonly pathLength: SVGAnimatedNumber;\n getPointAtLength(distance: number): DOMPoint;\n getTotalLength(): number;\n isPointInFill(point?: DOMPointInit): boolean;\n isPointInStroke(point?: DOMPointInit): boolean;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGeometryElement: {\n prototype: SVGGeometryElement;\n new(): SVGGeometryElement;\n};\n\n/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n readonly gradientTransform: SVGAnimatedTransformList;\n readonly gradientUnits: SVGAnimatedEnumeration;\n readonly spreadMethod: SVGAnimatedEnumeration;\n readonly SVG_SPREADMETHOD_PAD: number;\n readonly SVG_SPREADMETHOD_REFLECT: number;\n readonly SVG_SPREADMETHOD_REPEAT: number;\n readonly SVG_SPREADMETHOD_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGradientElement: {\n prototype: SVGGradientElement;\n new(): SVGGradientElement;\n readonly SVG_SPREADMETHOD_PAD: number;\n readonly SVG_SPREADMETHOD_REFLECT: number;\n readonly SVG_SPREADMETHOD_REPEAT: number;\n readonly SVG_SPREADMETHOD_UNKNOWN: number;\n};\n\n/** SVG elements whose primary purpose is to directly render graphics into a group. */\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n readonly transform: SVGAnimatedTransformList;\n getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n getCTM(): DOMMatrix | null;\n getScreenCTM(): DOMMatrix | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n prototype: SVGGraphicsElement;\n new(): SVGGraphicsElement;\n};\n\n/** Corresponds to the <image> element. */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGImageElement: {\n prototype: SVGImageElement;\n new(): SVGImageElement;\n};\n\n/** Correspond to the <length> basic data type. */\ninterface SVGLength {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_LENGTHTYPE_CM: number;\n readonly SVG_LENGTHTYPE_EMS: number;\n readonly SVG_LENGTHTYPE_EXS: number;\n readonly SVG_LENGTHTYPE_IN: number;\n readonly SVG_LENGTHTYPE_MM: number;\n readonly SVG_LENGTHTYPE_NUMBER: number;\n readonly SVG_LENGTHTYPE_PC: number;\n readonly SVG_LENGTHTYPE_PERCENTAGE: number;\n readonly SVG_LENGTHTYPE_PT: number;\n readonly SVG_LENGTHTYPE_PX: number;\n readonly SVG_LENGTHTYPE_UNKNOWN: number;\n}\n\ndeclare var SVGLength: {\n prototype: SVGLength;\n new(): SVGLength;\n readonly SVG_LENGTHTYPE_CM: number;\n readonly SVG_LENGTHTYPE_EMS: number;\n readonly SVG_LENGTHTYPE_EXS: number;\n readonly SVG_LENGTHTYPE_IN: number;\n readonly SVG_LENGTHTYPE_MM: number;\n readonly SVG_LENGTHTYPE_NUMBER: number;\n readonly SVG_LENGTHTYPE_PC: number;\n readonly SVG_LENGTHTYPE_PERCENTAGE: number;\n readonly SVG_LENGTHTYPE_PT: number;\n readonly SVG_LENGTHTYPE_PX: number;\n readonly SVG_LENGTHTYPE_UNKNOWN: number;\n};\n\n/** The SVGLengthList defines a list of SVGLength objects. */\ninterface SVGLengthList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGLength): SVGLength;\n clear(): void;\n getItem(index: number): SVGLength;\n initialize(newItem: SVGLength): SVGLength;\n insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n removeItem(index: number): SVGLength;\n replaceItem(newItem: SVGLength, index: number): SVGLength;\n [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\n/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */\ninterface SVGLineElement extends SVGGeometryElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n prototype: SVGLineElement;\n new(): SVGLineElement;\n};\n\n/** Corresponds to the <linearGradient> element. */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n prototype: SVGLinearGradientElement;\n new(): SVGLinearGradientElement;\n};\n\ninterface SVGMPathElement extends SVGElement, SVGURIReference {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMPathElement: {\n prototype: SVGMPathElement;\n new(): SVGMPathElement;\n};\n\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n readonly markerHeight: SVGAnimatedLength;\n readonly markerUnits: SVGAnimatedEnumeration;\n readonly markerWidth: SVGAnimatedLength;\n readonly orientAngle: SVGAnimatedAngle;\n readonly orientType: SVGAnimatedEnumeration;\n readonly refX: SVGAnimatedLength;\n readonly refY: SVGAnimatedLength;\n setOrientToAngle(angle: SVGAngle): void;\n setOrientToAuto(): void;\n readonly SVG_MARKERUNITS_STROKEWIDTH: number;\n readonly SVG_MARKERUNITS_UNKNOWN: number;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: number;\n readonly SVG_MARKER_ORIENT_ANGLE: number;\n readonly SVG_MARKER_ORIENT_AUTO: number;\n readonly SVG_MARKER_ORIENT_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMarkerElement: {\n prototype: SVGMarkerElement;\n new(): SVGMarkerElement;\n readonly SVG_MARKERUNITS_STROKEWIDTH: number;\n readonly SVG_MARKERUNITS_UNKNOWN: number;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: number;\n readonly SVG_MARKER_ORIENT_ANGLE: number;\n readonly SVG_MARKER_ORIENT_AUTO: number;\n readonly SVG_MARKER_ORIENT_UNKNOWN: number;\n};\n\n/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */\ninterface SVGMaskElement extends SVGElement {\n readonly height: SVGAnimatedLength;\n readonly maskContentUnits: SVGAnimatedEnumeration;\n readonly maskUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMaskElement: {\n prototype: SVGMaskElement;\n new(): SVGMaskElement;\n};\n\n/** Corresponds to the <metadata> element. */\ninterface SVGMetadataElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n prototype: SVGMetadataElement;\n new(): SVGMetadataElement;\n};\n\n/** Corresponds to the <number> basic data type. */\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\n/** The SVGNumberList defines a list of SVGNumber objects. */\ninterface SVGNumberList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGNumber): SVGNumber;\n clear(): void;\n getItem(index: number): SVGNumber;\n initialize(newItem: SVGNumber): SVGNumber;\n insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n removeItem(index: number): SVGNumber;\n replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\n/** Corresponds to the <path> element. */\ninterface SVGPathElement extends SVGGeometryElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPathElement: {\n prototype: SVGPathElement;\n new(): SVGPathElement;\n};\n\n/** Corresponds to the <pattern> element. */\ninterface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly patternContentUnits: SVGAnimatedEnumeration;\n readonly patternTransform: SVGAnimatedTransformList;\n readonly patternUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n prototype: SVGPatternElement;\n new(): SVGPatternElement;\n};\n\ninterface SVGPointList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: DOMPoint): DOMPoint;\n clear(): void;\n getItem(index: number): DOMPoint;\n initialize(newItem: DOMPoint): DOMPoint;\n insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n removeItem(index: number): DOMPoint;\n replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n prototype: SVGPointList;\n new(): SVGPointList;\n};\n\n/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */\ninterface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolygonElement: {\n prototype: SVGPolygonElement;\n new(): SVGPolygonElement;\n};\n\n/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */\ninterface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolylineElement: {\n prototype: SVGPolylineElement;\n new(): SVGPolylineElement;\n};\n\n/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements. */\ninterface SVGPreserveAspectRatio {\n align: number;\n meetOrSlice: number;\n readonly SVG_MEETORSLICE_MEET: number;\n readonly SVG_MEETORSLICE_SLICE: number;\n readonly SVG_MEETORSLICE_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_NONE: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n prototype: SVGPreserveAspectRatio;\n new(): SVGPreserveAspectRatio;\n readonly SVG_MEETORSLICE_MEET: number;\n readonly SVG_MEETORSLICE_SLICE: number;\n readonly SVG_MEETORSLICE_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_NONE: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;\n};\n\n/** Corresponds to the <RadialGradient> element. */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly fr: SVGAnimatedLength;\n readonly fx: SVGAnimatedLength;\n readonly fy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n prototype: SVGRadialGradientElement;\n new(): SVGRadialGradientElement;\n};\n\n/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */\ninterface SVGRectElement extends SVGGeometryElement {\n readonly height: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n prototype: SVGRectElement;\n new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {\n}\n\n/** 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. */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n currentScale: number;\n readonly currentTranslate: DOMPointReadOnly;\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n animationsPaused(): boolean;\n checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): DOMMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): DOMPoint;\n createSVGRect(): DOMRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getCurrentTime(): number;\n getElementById(elementId: string): Element;\n getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n pauseAnimations(): void;\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n unpauseAnimations(): void;\n /** @deprecated */\n unsuspendRedraw(suspendHandleID: number): void;\n /** @deprecated */\n unsuspendRedrawAll(): void;\n addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n prototype: SVGSVGElement;\n new(): SVGSVGElement;\n};\n\n/** Corresponds to the SVG <script> element. */\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGScriptElement: {\n prototype: SVGScriptElement;\n new(): SVGScriptElement;\n};\n\ninterface SVGSetElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSetElement: {\n prototype: SVGSetElement;\n new(): SVGSetElement;\n};\n\n/** Corresponds to the <stop> element. */\ninterface SVGStopElement extends SVGElement {\n readonly offset: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n prototype: SVGStopElement;\n new(): SVGStopElement;\n};\n\n/** The SVGStringList defines a list of DOMString objects. */\ninterface SVGStringList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: string): string;\n clear(): void;\n getItem(index: number): string;\n initialize(newItem: string): string;\n insertItemBefore(newItem: string, index: number): string;\n removeItem(index: number): string;\n replaceItem(newItem: string, index: number): string;\n [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\n/** Corresponds to the SVG <style> element. */\ninterface SVGStyleElement extends SVGElement, LinkStyle {\n disabled: boolean;\n media: string;\n title: string;\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStyleElement: {\n prototype: SVGStyleElement;\n new(): SVGStyleElement;\n};\n\n/** Corresponds to the <switch> element. */\ninterface SVGSwitchElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n prototype: SVGSwitchElement;\n new(): SVGSwitchElement;\n};\n\n/** Corresponds to the <symbol> element. */\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n prototype: SVGSymbolElement;\n new(): SVGSymbolElement;\n};\n\n/** A <tspan> element. */\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n prototype: SVGTSpanElement;\n new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n readonly requiredExtensions: SVGStringList;\n readonly systemLanguage: SVGStringList;\n}\n\n/** 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. */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point?: DOMPointInit): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): DOMPoint;\n getExtentOfChar(charnum: number): DOMRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): DOMPoint;\n getSubStringLength(charnum: number, nchars: number): number;\n /** @deprecated */\n selectSubString(charnum: number, nchars: number): void;\n readonly LENGTHADJUST_SPACING: number;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: number;\n readonly LENGTHADJUST_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextContentElement: {\n prototype: SVGTextContentElement;\n new(): SVGTextContentElement;\n readonly LENGTHADJUST_SPACING: number;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: number;\n readonly LENGTHADJUST_UNKNOWN: number;\n};\n\n/** Corresponds to the <text> elements. */\ninterface SVGTextElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n prototype: SVGTextElement;\n new(): SVGTextElement;\n};\n\n/** Corresponds to the <textPath> element. */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n readonly method: SVGAnimatedEnumeration;\n readonly spacing: SVGAnimatedEnumeration;\n readonly startOffset: SVGAnimatedLength;\n readonly TEXTPATH_METHODTYPE_ALIGN: number;\n readonly TEXTPATH_METHODTYPE_STRETCH: number;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: number;\n readonly TEXTPATH_SPACINGTYPE_AUTO: number;\n readonly TEXTPATH_SPACINGTYPE_EXACT: number;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPathElement: {\n prototype: SVGTextPathElement;\n new(): SVGTextPathElement;\n readonly TEXTPATH_METHODTYPE_ALIGN: number;\n readonly TEXTPATH_METHODTYPE_STRETCH: number;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: number;\n readonly TEXTPATH_SPACINGTYPE_AUTO: number;\n readonly TEXTPATH_SPACINGTYPE_EXACT: number;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;\n};\n\n/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n readonly dx: SVGAnimatedLengthList;\n readonly dy: SVGAnimatedLengthList;\n readonly rotate: SVGAnimatedNumberList;\n readonly x: SVGAnimatedLengthList;\n readonly y: SVGAnimatedLengthList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n prototype: SVGTextPositioningElement;\n new(): SVGTextPositioningElement;\n};\n\n/** Corresponds to the <title> element. */\ninterface SVGTitleElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n prototype: SVGTitleElement;\n new(): SVGTitleElement;\n};\n\n/** 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. */\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: DOMMatrix;\n readonly type: number;\n setMatrix(matrix?: DOMMatrix2DInit): void;\n setRotate(angle: number, cx: number, cy: number): void;\n setScale(sx: number, sy: number): void;\n setSkewX(angle: number): void;\n setSkewY(angle: number): void;\n setTranslate(tx: number, ty: number): void;\n readonly SVG_TRANSFORM_MATRIX: number;\n readonly SVG_TRANSFORM_ROTATE: number;\n readonly SVG_TRANSFORM_SCALE: number;\n readonly SVG_TRANSFORM_SKEWX: number;\n readonly SVG_TRANSFORM_SKEWY: number;\n readonly SVG_TRANSFORM_TRANSLATE: number;\n readonly SVG_TRANSFORM_UNKNOWN: number;\n}\n\ndeclare var SVGTransform: {\n prototype: SVGTransform;\n new(): SVGTransform;\n readonly SVG_TRANSFORM_MATRIX: number;\n readonly SVG_TRANSFORM_ROTATE: number;\n readonly SVG_TRANSFORM_SCALE: number;\n readonly SVG_TRANSFORM_SKEWX: number;\n readonly SVG_TRANSFORM_SKEWY: number;\n readonly SVG_TRANSFORM_TRANSLATE: number;\n readonly SVG_TRANSFORM_UNKNOWN: number;\n};\n\n/** The SVGTransformList defines a list of SVGTransform objects. */\ninterface SVGTransformList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform | null;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n getItem(index: number): SVGTransform;\n initialize(newItem: SVGTransform): SVGTransform;\n insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n removeItem(index: number): SVGTransform;\n replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\n/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n readonly SVG_UNIT_TYPE_UNKNOWN: number;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n}\n\ndeclare var SVGUnitTypes: {\n prototype: SVGUnitTypes;\n new(): SVGUnitTypes;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n readonly SVG_UNIT_TYPE_UNKNOWN: number;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n};\n\n/** Corresponds to the <use> element. */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGUseElement: {\n prototype: SVGUseElement;\n new(): SVGUseElement;\n};\n\n/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGViewElement: {\n prototype: SVGViewElement;\n new(): SVGViewElement;\n};\n\n/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */\ninterface Screen {\n readonly availHeight: number;\n readonly availWidth: number;\n readonly colorDepth: number;\n readonly height: number;\n readonly orientation: ScreenOrientation;\n readonly pixelDepth: number;\n readonly width: number;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n "change": Event;\n}\n\ninterface ScreenOrientation extends EventTarget {\n readonly angle: number;\n onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n readonly type: OrientationType;\n lock(orientation: OrientationLockType): Promise<void>;\n unlock(): void;\n addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScreenOrientation: {\n prototype: ScreenOrientation;\n new(): ScreenOrientation;\n};\n\ninterface ScriptProcessorNodeEventMap {\n "audioprocess": AudioProcessingEvent;\n}\n\n/**\n * Allows the generation, processing, or analyzing of audio using JavaScript.\n * @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).\n */\ninterface ScriptProcessorNode extends AudioNode {\n /** @deprecated */\n readonly bufferSize: number;\n /** @deprecated */\n onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;\n addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly disposition: SecurityPolicyViolationEventDisposition;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: string;\n readonly sample: string;\n readonly sourceFile: string;\n readonly statusCode: number;\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\n/** 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(). */\ninterface Selection {\n readonly anchorNode: Node | null;\n readonly anchorOffset: number;\n readonly focusNode: Node | null;\n readonly focusOffset: number;\n readonly isCollapsed: boolean;\n readonly rangeCount: number;\n readonly type: string;\n addRange(range: Range): void;\n collapse(node: Node | null, offset?: number): void;\n collapseToEnd(): void;\n collapseToStart(): void;\n containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n deleteFromDocument(): void;\n empty(): void;\n extend(node: Node, offset?: number): void;\n getRangeAt(index: number): Range;\n removeAllRanges(): void;\n removeRange(range: Range): void;\n selectAllChildren(node: Node): void;\n setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n setPosition(node: Node | null, offset?: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n toString(): string;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n readonly scriptURL: string;\n readonly state: ServiceWorkerState;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n readonly active: ServiceWorker | null;\n readonly installing: ServiceWorker | null;\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n readonly pushManager: PushManager;\n readonly scope: string;\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n readonly waiting: ServiceWorker | null;\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n unregister(): Promise<boolean>;\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n readonly delegatesFocus: boolean;\n readonly host: Element;\n readonly mode: ShadowRootMode;\n /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */\n}\n\ndeclare var ShadowRoot: {\n prototype: ShadowRoot;\n new(): ShadowRoot;\n};\n\ninterface SharedWorker extends EventTarget, AbstractWorker {\n /** Returns sharedWorker\'s MessagePort object which can be used to communicate with the global environment. */\n readonly port: MessagePort;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorker: {\n prototype: SharedWorker;\n new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;\n};\n\ninterface Slottable {\n readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n "abort": Event;\n "error": Event;\n "update": Event;\n "updateend": Event;\n "updatestart": Event;\n}\n\n/** 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. */\ninterface SourceBuffer extends EventTarget {\n appendWindowEnd: number;\n appendWindowStart: number;\n readonly buffered: TimeRanges;\n mode: AppendMode;\n onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n timestampOffset: number;\n readonly updating: boolean;\n abort(): void;\n appendBuffer(data: BufferSource): void;\n changeType(type: string): void;\n remove(start: number, end: number): void;\n addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n prototype: SourceBuffer;\n new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n "addsourcebuffer": Event;\n "removesourcebuffer": Event;\n}\n\n/** A simple container list for multiple SourceBuffer objects. */\ninterface SourceBufferList extends EventTarget {\n readonly length: number;\n onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n prototype: SourceBufferList;\n new(): SourceBufferList;\n};\n\ninterface SpeechRecognitionAlternative {\n readonly confidence: number;\n readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n prototype: SpeechRecognitionAlternative;\n new(): SpeechRecognitionAlternative;\n};\n\ninterface SpeechRecognitionResult {\n readonly isFinal: boolean;\n readonly length: number;\n item(index: number): SpeechRecognitionAlternative;\n [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n prototype: SpeechRecognitionResult;\n new(): SpeechRecognitionResult;\n};\n\ninterface SpeechRecognitionResultList {\n readonly length: number;\n item(index: number): SpeechRecognitionResult;\n [index: number]: SpeechRecognitionResult;\n}\n\ndeclare var SpeechRecognitionResultList: {\n prototype: SpeechRecognitionResultList;\n new(): SpeechRecognitionResultList;\n};\n\ninterface SpeechSynthesisEventMap {\n "voiceschanged": Event;\n}\n\n/** 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. */\ninterface SpeechSynthesis extends EventTarget {\n onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n readonly paused: boolean;\n readonly pending: boolean;\n readonly speaking: boolean;\n cancel(): void;\n getVoices(): SpeechSynthesisVoice[];\n pause(): void;\n resume(): void;\n speak(utterance: SpeechSynthesisUtterance): void;\n addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesis: {\n prototype: SpeechSynthesis;\n new(): SpeechSynthesis;\n};\n\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n prototype: SpeechSynthesisErrorEvent;\n new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */\ninterface SpeechSynthesisEvent extends Event {\n readonly charIndex: number;\n readonly charLength: number;\n readonly elapsedTime: number;\n readonly name: string;\n readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n prototype: SpeechSynthesisEvent;\n new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;\n};\n\ninterface SpeechSynthesisUtteranceEventMap {\n "boundary": SpeechSynthesisEvent;\n "end": SpeechSynthesisEvent;\n "error": SpeechSynthesisErrorEvent;\n "mark": SpeechSynthesisEvent;\n "pause": SpeechSynthesisEvent;\n "resume": SpeechSynthesisEvent;\n "start": SpeechSynthesisEvent;\n}\n\n/** 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.) */\ninterface SpeechSynthesisUtterance extends EventTarget {\n lang: string;\n onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n pitch: number;\n rate: number;\n text: string;\n voice: SpeechSynthesisVoice | null;\n volume: number;\n addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesisUtterance: {\n prototype: SpeechSynthesisUtterance;\n new(text?: string): SpeechSynthesisUtterance;\n};\n\n/** 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. */\ninterface SpeechSynthesisVoice {\n readonly default: boolean;\n readonly lang: string;\n readonly localService: boolean;\n readonly name: string;\n readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n prototype: SpeechSynthesisVoice;\n new(): SpeechSynthesisVoice;\n};\n\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n prototype: StaticRange;\n new(init: StaticRangeInit): StaticRange;\n};\n\n/** 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. */\ninterface StereoPannerNode extends AudioNode {\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/** 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. */\ninterface Storage {\n /** Returns the number of key/value pairs. */\n readonly length: number;\n /**\n * Removes all key/value pairs, if there are any.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n clear(): void;\n /** Returns the current value associated with the given key, or null if the given key does not exist. */\n getItem(key: string): string | null;\n /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */\n key(index: number): string | null;\n /**\n * Removes the key/value pair with the given key, if a key/value pair with the given key exists.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n removeItem(key: string): void;\n /**\n * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n *\n * 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.)\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n setItem(key: string, value: string): void;\n [name: string]: any;\n}\n\ndeclare var Storage: {\n prototype: Storage;\n new(): Storage;\n};\n\n/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */\ninterface StorageEvent extends Event {\n /** Returns the key of the storage item being changed. */\n readonly key: string | null;\n /** Returns the new value of the key of the storage item whose value is being changed. */\n readonly newValue: string | null;\n /** Returns the old value of the key of the storage item whose value is being changed. */\n readonly oldValue: string | null;\n /** Returns the Storage object that was affected. */\n readonly storageArea: Storage | null;\n /** Returns the URL of the document whose storage item changed. */\n readonly url: string;\n initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\n/** Available only in secure contexts. */\ninterface StorageManager {\n estimate(): Promise<StorageEstimate>;\n persist(): Promise<boolean>;\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** @deprecated */\ninterface StyleMedia {\n type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\n/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */\ninterface StyleSheet {\n disabled: boolean;\n readonly href: string | null;\n readonly media: MediaList;\n readonly ownerNode: Element | ProcessingInstruction | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n readonly title: string | null;\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\n/** A list of StyleSheet. */\ninterface StyleSheetList {\n readonly length: number;\n item(index: number): CSSStyleSheet | null;\n [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\ninterface SubmitEvent extends Event {\n /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */\n readonly submitter: HTMLElement | null;\n}\n\ndeclare var SubmitEvent: {\n prototype: SubmitEvent;\n new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;\n};\n\n/**\n * 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).\n * Available only in secure contexts.\n */\ninterface SubtleCrypto {\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n 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>;\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/** 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. */\ninterface Text extends CharacterData, Slottable {\n /** Returns the combined data of all direct Text node siblings. */\n readonly wholeText: string;\n /** Splits data at the given offset and returns the remainder as Text node. */\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\n/** 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. */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * 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.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n */\n decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /** Returns encoding\'s name, lowercased. */\n readonly encoding: string;\n /** Returns true if error mode is "fatal", otherwise false. */\n readonly fatal: boolean;\n /** Returns the value of ignore BOM. */\n readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** 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. */\ninterface TextEncoder extends TextEncoderCommon {\n /** Returns the result of running UTF-8\'s encoder. */\n encode(input?: string): Uint8Array;\n /** 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. */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /** Returns "utf-8". */\n readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n /** Returns the measurement described below. */\n readonly actualBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxLeft: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxRight: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n}\n\n/** This interface also inherits properties from EventTarget. */\ninterface TextTrack extends EventTarget {\n /** 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. */\n readonly activeCues: TextTrackCueList | null;\n /** Returns the text track list of cues, as a TextTrackCueList object. */\n readonly cues: TextTrackCueList | null;\n /**\n * Returns the ID of the given track.\n *\n * 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.\n *\n * For TextTrack objects corresponding to track elements, this is the ID of the track element.\n */\n readonly id: string;\n /** Returns the text track in-band metadata track dispatch type string. */\n readonly inBandMetadataTrackDispatchType: string;\n /** Returns the text track kind string. */\n readonly kind: TextTrackKind;\n /** 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). */\n readonly label: string;\n /** Returns the text track language string. */\n readonly language: string;\n /**\n * Returns the text track mode, represented by a string from the following list:\n *\n * Can be set, to change the mode.\n */\n mode: TextTrackMode;\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n /** Adds the given cue to textTrack\'s text track list of cues. */\n addCue(cue: TextTrackCue): void;\n /** Removes the given cue from textTrack\'s text track list of cues. */\n removeCue(cue: TextTrackCue): void;\n addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrack: {\n prototype: TextTrack;\n new(): TextTrack;\n};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\n/** 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. */\ninterface TextTrackCue extends EventTarget {\n /**\n * Returns the text track cue end time, in seconds.\n *\n * Can be set.\n */\n endTime: number;\n /**\n * Returns the text track cue identifier.\n *\n * Can be set.\n */\n id: string;\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n /**\n * Returns true if the text track cue pause-on-exit flag is set, false otherwise.\n *\n * Can be set.\n */\n pauseOnExit: boolean;\n /**\n * Returns the text track cue start time, in seconds.\n *\n * Can be set.\n */\n startTime: number;\n /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */\n readonly track: TextTrack | null;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrackCue: {\n prototype: TextTrackCue;\n new(): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n /** Returns the number of cues in the list. */\n readonly length: number;\n /**\n * Returns the first text track cue (in text track cue order) with text track cue identifier id.\n *\n * Returns null if none of the cues have the given identifier or if the argument is the empty string.\n */\n getCueById(id: string): TextTrackCue | null;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: TextTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n getTrackById(id: string): TextTrack | null;\n addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: TextTrack;\n}\n\ndeclare var TextTrackList: {\n prototype: TextTrackList;\n new(): TextTrackList;\n};\n\n/** 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. */\ninterface TimeRanges {\n /** Returns the number of ranges in the object. */\n readonly length: number;\n /**\n * Returns the time for the end of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n */\n end(index: number): number;\n /**\n * Returns the time for the start of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n */\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\n/** 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. */\ninterface Touch {\n readonly clientX: number;\n readonly clientY: number;\n readonly force: number;\n readonly identifier: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly radiusX: number;\n readonly radiusY: number;\n readonly rotationAngle: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(touchInitDict: TouchInit): Touch;\n};\n\n/** 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. */\ninterface TouchEvent extends UIEvent {\n readonly altKey: boolean;\n readonly changedTouches: TouchList;\n readonly ctrlKey: boolean;\n readonly metaKey: boolean;\n readonly shiftKey: boolean;\n readonly targetTouches: TouchList;\n readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/** 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. */\ninterface TouchList {\n readonly length: number;\n item(index: number): Touch | null;\n [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n prototype: TouchList;\n new(): TouchList;\n};\n\n/** 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. */\ninterface TrackEvent extends Event {\n /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */\n readonly track: TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(type: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransformStream<I = any, O = any> {\n readonly readable: ReadableStream<O>;\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n readonly desiredSize: number | null;\n enqueue(chunk?: O): void;\n error(reason?: any): void;\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/** Events providing information related to transitions. */\ninterface TransitionEvent extends Event {\n readonly elapsedTime: number;\n readonly propertyName: string;\n readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/** The nodes of a document subtree and a position within them. */\ninterface TreeWalker {\n currentNode: Node;\n readonly filter: NodeFilter | null;\n readonly root: Node;\n readonly whatToShow: number;\n firstChild(): Node | null;\n lastChild(): Node | null;\n nextNode(): Node | null;\n nextSibling(): Node | null;\n parentNode(): Node | null;\n previousNode(): Node | null;\n previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n prototype: TreeWalker;\n new(): TreeWalker;\n};\n\n/** Simple user interface events. */\ninterface UIEvent extends Event {\n readonly detail: number;\n readonly view: Window | null;\n /** @deprecated */\n readonly which: number;\n /** @deprecated */\n initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/** The URL\xa0interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n toString(): string;\n readonly origin: string;\n password: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n readonly searchParams: URLSearchParams;\n username: string;\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n createObjectURL(obj: Blob | MediaSource): string;\n revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\ninterface URLSearchParams {\n /** Appends a specified key/value pair as a new search parameter. */\n append(name: string, value: string): void;\n /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */\n delete(name: string): void;\n /** Returns the first value associated to the given search parameter. */\n get(name: string): string | null;\n /** Returns all the values association with a given search parameter. */\n getAll(name: string): string[];\n /** Returns a Boolean indicating if such a search parameter exists. */\n has(name: string): boolean;\n /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */\n set(name: string, value: string): void;\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n toString(): string;\n};\n\ninterface VTTCue extends TextTrackCue {\n align: AlignSetting;\n line: LineAndPositionSetting;\n lineAlign: LineAlignSetting;\n position: LineAndPositionSetting;\n positionAlign: PositionAlignSetting;\n region: VTTRegion | null;\n size: number;\n snapToLines: boolean;\n text: string;\n vertical: DirectionSetting;\n getCueAsHTML(): DocumentFragment;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VTTCue: {\n prototype: VTTCue;\n new(startTime: number, endTime: number, text: string): VTTCue;\n};\n\ninterface VTTRegion {\n id: string;\n lines: number;\n regionAnchorX: number;\n regionAnchorY: number;\n scroll: ScrollSetting;\n viewportAnchorX: number;\n viewportAnchorY: number;\n width: number;\n}\n\ndeclare var VTTRegion: {\n prototype: VTTRegion;\n new(): VTTRegion;\n};\n\n/** 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. */\ninterface ValidityState {\n readonly badInput: boolean;\n readonly customError: boolean;\n readonly patternMismatch: boolean;\n readonly rangeOverflow: boolean;\n readonly rangeUnderflow: boolean;\n readonly stepMismatch: boolean;\n readonly tooLong: boolean;\n readonly tooShort: boolean;\n readonly typeMismatch: boolean;\n readonly valid: boolean;\n readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n prototype: ValidityState;\n new(): ValidityState;\n};\n\n/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */\ninterface VideoPlaybackQuality {\n /** @deprecated */\n readonly corruptedVideoFrames: number;\n readonly creationTime: DOMHighResTimeStamp;\n readonly droppedVideoFrames: number;\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VisualViewportEventMap {\n "resize": Event;\n "scroll": Event;\n}\n\ninterface VisualViewport extends EventTarget {\n readonly height: number;\n readonly offsetLeft: number;\n readonly offsetTop: number;\n onresize: ((this: VisualViewport, ev: Event) => any) | null;\n onscroll: ((this: VisualViewport, ev: Event) => any) | null;\n readonly pageLeft: number;\n readonly pageTop: number;\n readonly scale: number;\n readonly width: number;\n addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VisualViewport: {\n prototype: VisualViewport;\n new(): VisualViewport;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGBA32F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_astc {\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: GLenum;\n readonly COMPRESSED_RG11_EAC: GLenum;\n readonly COMPRESSED_RGB8_ETC2: GLenum;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SIGNED_R11_EAC: GLenum;\n readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ETC2: GLenum;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;\n}\n\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;\n}\n\n/** 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. */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_RENDERER_WEBGL: GLenum;\n readonly UNMASKED_VENDOR_WEBGL: GLenum;\n}\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: GLenum;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT10_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT11_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT12_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT13_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT14_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT15_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT1_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT2_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT3_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT4_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT5_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT6_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT7_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT8_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT9_WEBGL: GLenum;\n readonly DRAW_BUFFER0_WEBGL: GLenum;\n readonly DRAW_BUFFER10_WEBGL: GLenum;\n readonly DRAW_BUFFER11_WEBGL: GLenum;\n readonly DRAW_BUFFER12_WEBGL: GLenum;\n readonly DRAW_BUFFER13_WEBGL: GLenum;\n readonly DRAW_BUFFER14_WEBGL: GLenum;\n readonly DRAW_BUFFER15_WEBGL: GLenum;\n readonly DRAW_BUFFER1_WEBGL: GLenum;\n readonly DRAW_BUFFER2_WEBGL: GLenum;\n readonly DRAW_BUFFER3_WEBGL: GLenum;\n readonly DRAW_BUFFER4_WEBGL: GLenum;\n readonly DRAW_BUFFER5_WEBGL: GLenum;\n readonly DRAW_BUFFER6_WEBGL: GLenum;\n readonly DRAW_BUFFER7_WEBGL: GLenum;\n readonly DRAW_BUFFER8_WEBGL: GLenum;\n readonly DRAW_BUFFER9_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;\n readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\n/** A WaveShaperNode always has exactly one input and one output. */\ninterface WaveShaperNode extends AudioNode {\n curve: Float32Array | null;\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGL2RenderingContextBase {\n beginQuery(target: GLenum, query: WebGLQuery): void;\n beginTransformFeedback(primitiveMode: GLenum): void;\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createQuery(): WebGLQuery | null;\n createSampler(): WebGLSampler | null;\n createTransformFeedback(): WebGLTransformFeedback | null;\n createVertexArray(): WebGLVertexArrayObject | null;\n deleteQuery(query: WebGLQuery | null): void;\n deleteSampler(sampler: WebGLSampler | null): void;\n deleteSync(sync: WebGLSync | null): void;\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n drawBuffers(buffers: GLenum[]): void;\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n endQuery(target: GLenum): void;\n endTransformFeedback(): void;\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n getIndexedParameter(target: GLenum, index: GLuint): any;\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n isQuery(query: WebGLQuery | null): GLboolean;\n isSampler(sampler: WebGLSampler | null): GLboolean;\n isSync(sync: WebGLSync | null): GLboolean;\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n pauseTransformFeedback(): void;\n readBuffer(src: GLenum): void;\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n resumeTransformFeedback(): void;\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n 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?: GLuint): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n}\n\ninterface WebGL2RenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: GLint;\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/** 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. */\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/** 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). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGLRenderingContextBase {\n readonly canvas: HTMLCanvasElement;\n readonly drawingBufferHeight: GLsizei;\n readonly drawingBufferWidth: GLsizei;\n activeTexture(texture: GLenum): void;\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n blendEquation(mode: GLenum): void;\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n checkFramebufferStatus(target: GLenum): GLenum;\n clear(mask: GLbitfield): void;\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n clearDepth(depth: GLclampf): void;\n clearStencil(s: GLint): void;\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n compileShader(shader: WebGLShader): void;\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: GLenum): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: GLenum): void;\n deleteBuffer(buffer: WebGLBuffer | null): void;\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n deleteProgram(program: WebGLProgram | null): void;\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n deleteShader(shader: WebGLShader | null): void;\n deleteTexture(texture: WebGLTexture | null): void;\n depthFunc(func: GLenum): void;\n depthMask(flag: GLboolean): void;\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n disable(cap: GLenum): void;\n disableVertexAttribArray(index: GLuint): void;\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n enable(cap: GLenum): void;\n enableVertexAttribArray(index: GLuint): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n frontFace(mode: GLenum): void;\n generateMipmap(target: GLenum): void;\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n getBufferParameter(target: GLenum, pname: GLenum): any;\n getContextAttributes(): WebGLContextAttributes | null;\n getError(): GLenum;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(name: string): any;\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n getParameter(pname: GLenum): any;\n getProgramInfoLog(program: WebGLProgram): string | null;\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n getShaderInfoLog(shader: WebGLShader): string | null;\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: GLenum, pname: GLenum): any;\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n hint(target: GLenum, mode: GLenum): void;\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n isContextLost(): boolean;\n isEnabled(cap: GLenum): GLboolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n isProgram(program: WebGLProgram | null): GLboolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n isShader(shader: WebGLShader | null): GLboolean;\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n linkProgram(program: WebGLProgram): void;\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n shaderSource(shader: WebGLShader, source: string): void;\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n stencilMask(mask: GLuint): void;\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram): void;\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n}\n\ninterface WebGLRenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/** 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. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n readonly precision: GLint;\n readonly rangeMax: GLint;\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n */\n binaryType: BinaryType;\n /**\n * 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.\n *\n * 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.)\n */\n readonly bufferedAmount: number;\n /** Returns the extensions selected by the server, if any. */\n readonly extensions: string;\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /** 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. */\n readonly protocol: string;\n /** Returns the state of the WebSocket object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL that was used to establish the WebSocket connection. */\n readonly url: string;\n /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */\n close(code?: number, reason?: string): void;\n /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** Events that occur due to the user moving a mouse wheel or similar input device. */\ninterface WheelEvent extends MouseEvent {\n readonly deltaMode: number;\n readonly deltaX: number;\n readonly deltaY: number;\n readonly deltaZ: number;\n readonly DOM_DELTA_LINE: number;\n readonly DOM_DELTA_PAGE: number;\n readonly DOM_DELTA_PIXEL: number;\n}\n\ndeclare var WheelEvent: {\n prototype: WheelEvent;\n new(type: string, eventInitDict?: WheelEventInit): WheelEvent;\n readonly DOM_DELTA_LINE: number;\n readonly DOM_DELTA_PAGE: number;\n readonly DOM_DELTA_PIXEL: number;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "orientationchange": Event;\n}\n\n/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */\ninterface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {\n /** @deprecated This is a legacy alias of `navigator`. */\n readonly clientInformation: Navigator;\n /** Returns true if the window has been closed, false otherwise. */\n readonly closed: boolean;\n /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */\n readonly customElements: CustomElementRegistry;\n readonly devicePixelRatio: number;\n readonly document: Document;\n /** @deprecated */\n readonly event: Event | undefined;\n /** @deprecated */\n readonly external: External;\n readonly frameElement: Element | null;\n readonly frames: WindowProxy;\n readonly history: History;\n readonly innerHeight: number;\n readonly innerWidth: number;\n readonly length: number;\n get location(): Location;\n set location(href: string | Location);\n /** Returns true if the location bar is visible; otherwise, returns false. */\n readonly locationbar: BarProp;\n /** Returns true if the menu bar is visible; otherwise, returns false. */\n readonly menubar: BarProp;\n name: string;\n readonly navigator: Navigator;\n /** Available only in secure contexts. */\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n /** Available only in secure contexts. */\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /** @deprecated */\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n opener: any;\n /** @deprecated */\n readonly orientation: number;\n readonly outerHeight: number;\n readonly outerWidth: number;\n /** @deprecated This is a legacy alias of `scrollX`. */\n readonly pageXOffset: number;\n /** @deprecated This is a legacy alias of `scrollY`. */\n readonly pageYOffset: number;\n /**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n */\n readonly parent: WindowProxy;\n /** Returns true if the personal bar is visible; otherwise, returns false. */\n readonly personalbar: BarProp;\n readonly screen: Screen;\n readonly screenLeft: number;\n readonly screenTop: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly scrollX: number;\n readonly scrollY: number;\n /** Returns true if the scrollbars are visible; otherwise, returns false. */\n readonly scrollbars: BarProp;\n readonly self: Window & typeof globalThis;\n readonly speechSynthesis: SpeechSynthesis;\n /** @deprecated */\n status: string;\n /** Returns true if the status bar is visible; otherwise, returns false. */\n readonly statusbar: BarProp;\n /** Returns true if the toolbar is visible; otherwise, returns false. */\n readonly toolbar: BarProp;\n readonly top: WindowProxy | null;\n readonly visualViewport: VisualViewport;\n readonly window: Window & typeof globalThis;\n alert(message?: any): void;\n blur(): void;\n cancelIdleCallback(handle: number): void;\n /** @deprecated */\n captureEvents(): void;\n /** Closes the window. */\n close(): void;\n confirm(message?: string): boolean;\n /** Moves the focus to the window\'s browsing context, if any. */\n focus(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n getSelection(): Selection | null;\n matchMedia(query: string): MediaQueryList;\n moveBy(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n /**\n * 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.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * 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.\n *\n * 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 "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\n postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n postMessage(message: any, options?: WindowPostMessageOptions): void;\n print(): void;\n prompt(message?: string, _default?: string): string | null;\n /** @deprecated */\n releaseEvents(): void;\n requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n resizeBy(x: number, y: number): void;\n resizeTo(width: number, height: number): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /** Cancels the document load. */\n stop(): void;\n addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Window;\n}\n\ndeclare var Window: {\n prototype: Window;\n new(): Window;\n};\n\ninterface WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "hashchange": HashChangeEvent;\n "languagechange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "popstate": PopStateEvent;\n "rejectionhandled": PromiseRejectionEvent;\n "storage": StorageEvent;\n "unhandledrejection": PromiseRejectionEvent;\n "unload": Event;\n}\n\ninterface WindowEventHandlers {\n onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;\n addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface WindowLocalStorage {\n readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n /** Available only in secure contexts. */\n readonly caches: CacheStorage;\n readonly crossOriginIsolated: boolean;\n readonly crypto: Crypto;\n readonly indexedDB: IDBFactory;\n readonly isSecureContext: boolean;\n readonly origin: string;\n readonly performance: Performance;\n atob(data: string): string;\n btoa(data: string): string;\n clearInterval(handle?: number): void;\n clearTimeout(handle?: number): void;\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\n queueMicrotask(callback: VoidFunction): void;\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n}\n\ninterface WindowSessionStorage {\n readonly sessionStorage: Storage;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /** 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. */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Aborts worker\'s associated global environment. */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\n/** Available only in secure contexts. */\ninterface Worklet {\n /**\n * 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.\n *\n * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".\n *\n * 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.\n */\n addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n prototype: Worklet;\n new(): Worklet;\n};\n\n/** 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. */\ninterface WritableStream<W = any> {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** 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. */\ninterface WritableStreamDefaultController {\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/** 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. */\ninterface WritableStreamDefaultWriter<W = any> {\n readonly closed: Promise<undefined>;\n readonly desiredSize: number | null;\n readonly ready: Promise<undefined>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\n/** 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. */\ninterface XMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n prototype: XMLDocument;\n new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/** 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. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /** Returns client\'s state. */\n readonly readyState: number;\n /** Returns the response body. */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n /**\n * Returns the response as document.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".\n */\n readonly responseXML: Document | null;\n readonly status: number;\n readonly statusText: string;\n /**\n * 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).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n timeout: number;\n /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */\n readonly upload: XMLHttpRequestUpload;\n /**\n * 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.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n */\n withCredentials: boolean;\n /** Cancels any network activity. */\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * 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.\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n */\n send(body?: Document | XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n */\n setRequestHeader(name: string, value: string): void;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\n/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */\ninterface XMLSerializer {\n serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\n/** The\xa0XPathEvaluator interface allows to compile and evaluate XPath expressions. */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n createNSResolver(nodeResolver: Node): XPathNSResolver;\n evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */\ninterface XPathExpression {\n evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n prototype: XPathExpression;\n new(): XPathExpression;\n};\n\n/** The results generated by evaluating an XPath expression within the context of a given node. */\ninterface XPathResult {\n readonly booleanValue: boolean;\n readonly invalidIteratorState: boolean;\n readonly numberValue: number;\n readonly resultType: number;\n readonly singleNodeValue: Node | null;\n readonly snapshotLength: number;\n readonly stringValue: string;\n iterateNext(): Node | null;\n snapshotItem(index: number): Node | null;\n readonly ANY_TYPE: number;\n readonly ANY_UNORDERED_NODE_TYPE: number;\n readonly BOOLEAN_TYPE: number;\n readonly FIRST_ORDERED_NODE_TYPE: number;\n readonly NUMBER_TYPE: number;\n readonly ORDERED_NODE_ITERATOR_TYPE: number;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: number;\n readonly STRING_TYPE: number;\n readonly UNORDERED_NODE_ITERATOR_TYPE: number;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;\n}\n\ndeclare var XPathResult: {\n prototype: XPathResult;\n new(): XPathResult;\n readonly ANY_TYPE: number;\n readonly ANY_UNORDERED_NODE_TYPE: number;\n readonly BOOLEAN_TYPE: number;\n readonly FIRST_ORDERED_NODE_TYPE: number;\n readonly NUMBER_TYPE: number;\n readonly ORDERED_NODE_ITERATOR_TYPE: number;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: number;\n readonly STRING_TYPE: number;\n readonly UNORDERED_NODE_ITERATOR_TYPE: number;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;\n};\n\n/** 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. */\ninterface XSLTProcessor {\n clearParameters(): void;\n getParameter(namespaceURI: string | null, localName: string): any;\n importStylesheet(style: Node): void;\n removeParameter(namespaceURI: string | null, localName: string): void;\n reset(): void;\n setParameter(namespaceURI: string | null, localName: string, value: any): void;\n transformToDocument(source: Node): Document;\n transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\ninterface Console {\n assert(condition?: boolean, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n countReset(label?: string): void;\n debug(...data: any[]): void;\n dir(item?: any, options?: any): void;\n dirxml(...data: any[]): void;\n error(...data: any[]): void;\n group(...data: any[]): void;\n groupCollapsed(...data: any[]): void;\n groupEnd(): void;\n info(...data: any[]): void;\n log(...data: any[]): void;\n table(tabularData?: any, properties?: string[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n trace(...data: any[]): void;\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ndeclare namespace CSS {\n function escape(ident: string): string;\n function supports(property: string, value: string): boolean;\n function supports(conditionText: string): boolean;\n}\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n interface Global {\n value: any;\n valueOf(): any;\n }\n\n var Global: {\n prototype: Global;\n new(descriptor: GlobalDescriptor, v?: any): Global;\n };\n\n interface Instance {\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n interface Memory {\n readonly buffer: ArrayBuffer;\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n exports(moduleObject: Module): ModuleExportDescriptor[];\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n interface Table {\n readonly length: number;\n get(index: number): any;\n grow(delta: number, value?: any): number;\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor {\n mutable?: boolean;\n value: ValueType;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n function compile(bytes: BufferSource): Promise<Module>;\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface BlobCallback {\n (blob: Blob | null): void;\n}\n\ninterface CustomElementConstructor {\n new (...params: any[]): HTMLElement;\n}\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorCallback {\n (err: DOMException): void;\n}\n\ninterface FileCallback {\n (file: File): void;\n}\n\ninterface FileSystemEntriesCallback {\n (entries: FileSystemEntry[]): void;\n}\n\ninterface FileSystemEntryCallback {\n (entry: FileSystemEntry): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IdleRequestCallback {\n (deadline: IdleDeadline): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface MediaSessionActionHandler {\n (details: MediaSessionActionDetails): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NotificationPermissionCallback {\n (permission: NotificationPermission): void;\n}\n\ninterface OnBeforeUnloadEventHandlerNonNull {\n (event: Event): string | null;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface PositionCallback {\n (position: GeolocationPosition): void;\n}\n\ninterface PositionErrorCallback {\n (positionError: GeolocationPositionError): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n (error: DOMException): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n (description: RTCSessionDescriptionInit): void;\n}\n\ninterface RemotePlaybackAvailabilityCallback {\n (available: boolean): void;\n}\n\ninterface ResizeObserverCallback {\n (entries: ResizeObserverEntry[], observer: ResizeObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "address": HTMLElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\n "bdi": HTMLElement;\n "bdo": HTMLElement;\n "blockquote": HTMLQuoteElement;\n "body": HTMLBodyElement;\n "br": HTMLBRElement;\n "button": HTMLButtonElement;\n "canvas": HTMLCanvasElement;\n "caption": HTMLTableCaptionElement;\n "cite": HTMLElement;\n "code": HTMLElement;\n "col": HTMLTableColElement;\n "colgroup": HTMLTableColElement;\n "data": HTMLDataElement;\n "datalist": HTMLDataListElement;\n "dd": HTMLElement;\n "del": HTMLModElement;\n "details": HTMLDetailsElement;\n "dfn": HTMLElement;\n "dialog": HTMLDialogElement;\n "dir": HTMLDirectoryElement;\n "div": HTMLDivElement;\n "dl": HTMLDListElement;\n "dt": HTMLElement;\n "em": HTMLElement;\n "embed": HTMLEmbedElement;\n "fieldset": HTMLFieldSetElement;\n "figcaption": HTMLElement;\n "figure": HTMLElement;\n "font": HTMLFontElement;\n "footer": HTMLElement;\n "form": HTMLFormElement;\n "frame": HTMLFrameElement;\n "frameset": HTMLFrameSetElement;\n "h1": HTMLHeadingElement;\n "h2": HTMLHeadingElement;\n "h3": HTMLHeadingElement;\n "h4": HTMLHeadingElement;\n "h5": HTMLHeadingElement;\n "h6": HTMLHeadingElement;\n "head": HTMLHeadElement;\n "header": HTMLElement;\n "hgroup": HTMLElement;\n "hr": HTMLHRElement;\n "html": HTMLHtmlElement;\n "i": HTMLElement;\n "iframe": HTMLIFrameElement;\n "img": HTMLImageElement;\n "input": HTMLInputElement;\n "ins": HTMLModElement;\n "kbd": HTMLElement;\n "label": HTMLLabelElement;\n "legend": HTMLLegendElement;\n "li": HTMLLIElement;\n "link": HTMLLinkElement;\n "main": HTMLElement;\n "map": HTMLMapElement;\n "mark": HTMLElement;\n "marquee": HTMLMarqueeElement;\n "menu": HTMLMenuElement;\n "meta": HTMLMetaElement;\n "meter": HTMLMeterElement;\n "nav": HTMLElement;\n "noscript": HTMLElement;\n "object": HTMLObjectElement;\n "ol": HTMLOListElement;\n "optgroup": HTMLOptGroupElement;\n "option": HTMLOptionElement;\n "output": HTMLOutputElement;\n "p": HTMLParagraphElement;\n "param": HTMLParamElement;\n "picture": HTMLPictureElement;\n "pre": HTMLPreElement;\n "progress": HTMLProgressElement;\n "q": HTMLQuoteElement;\n "rp": HTMLElement;\n "rt": HTMLElement;\n "ruby": HTMLElement;\n "s": HTMLElement;\n "samp": HTMLElement;\n "script": HTMLScriptElement;\n "section": HTMLElement;\n "select": HTMLSelectElement;\n "slot": HTMLSlotElement;\n "small": HTMLElement;\n "source": HTMLSourceElement;\n "span": HTMLSpanElement;\n "strong": HTMLElement;\n "style": HTMLStyleElement;\n "sub": HTMLElement;\n "summary": HTMLElement;\n "sup": HTMLElement;\n "table": HTMLTableElement;\n "tbody": HTMLTableSectionElement;\n "td": HTMLTableCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableCellElement;\n "thead": HTMLTableSectionElement;\n "time": HTMLTimeElement;\n "title": HTMLTitleElement;\n "tr": HTMLTableRowElement;\n "track": HTMLTrackElement;\n "u": HTMLElement;\n "ul": HTMLUListElement;\n "var": HTMLElement;\n "video": HTMLVideoElement;\n "wbr": HTMLElement;\n}\n\ninterface HTMLElementDeprecatedTagNameMap {\n "listing": HTMLPreElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n "a": SVGAElement;\n "animate": SVGAnimateElement;\n "animateMotion": SVGAnimateMotionElement;\n "animateTransform": SVGAnimateTransformElement;\n "circle": SVGCircleElement;\n "clipPath": SVGClipPathElement;\n "defs": SVGDefsElement;\n "desc": SVGDescElement;\n "ellipse": SVGEllipseElement;\n "feBlend": SVGFEBlendElement;\n "feColorMatrix": SVGFEColorMatrixElement;\n "feComponentTransfer": SVGFEComponentTransferElement;\n "feComposite": SVGFECompositeElement;\n "feConvolveMatrix": SVGFEConvolveMatrixElement;\n "feDiffuseLighting": SVGFEDiffuseLightingElement;\n "feDisplacementMap": SVGFEDisplacementMapElement;\n "feDistantLight": SVGFEDistantLightElement;\n "feDropShadow": SVGFEDropShadowElement;\n "feFlood": SVGFEFloodElement;\n "feFuncA": SVGFEFuncAElement;\n "feFuncB": SVGFEFuncBElement;\n "feFuncG": SVGFEFuncGElement;\n "feFuncR": SVGFEFuncRElement;\n "feGaussianBlur": SVGFEGaussianBlurElement;\n "feImage": SVGFEImageElement;\n "feMerge": SVGFEMergeElement;\n "feMergeNode": SVGFEMergeNodeElement;\n "feMorphology": SVGFEMorphologyElement;\n "feOffset": SVGFEOffsetElement;\n "fePointLight": SVGFEPointLightElement;\n "feSpecularLighting": SVGFESpecularLightingElement;\n "feSpotLight": SVGFESpotLightElement;\n "feTile": SVGFETileElement;\n "feTurbulence": SVGFETurbulenceElement;\n "filter": SVGFilterElement;\n "foreignObject": SVGForeignObjectElement;\n "g": SVGGElement;\n "image": SVGImageElement;\n "line": SVGLineElement;\n "linearGradient": SVGLinearGradientElement;\n "marker": SVGMarkerElement;\n "mask": SVGMaskElement;\n "metadata": SVGMetadataElement;\n "mpath": SVGMPathElement;\n "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialGradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "script": SVGScriptElement;\n "set": SVGSetElement;\n "stop": SVGStopElement;\n "style": SVGStyleElement;\n "svg": SVGSVGElement;\n "switch": SVGSwitchElement;\n "symbol": SVGSymbolElement;\n "text": SVGTextElement;\n "textPath": SVGTextPathElement;\n "title": SVGTitleElement;\n "tspan": SVGTSpanElement;\n "use": SVGUseElement;\n "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\n\ndeclare var Audio: {\n new(src?: string): HTMLAudioElement;\n};\ndeclare var Image: {\n new(width?: number, height?: number): HTMLImageElement;\n};\ndeclare var Option: {\n new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;\n};\n/** @deprecated This is a legacy alias of `navigator`. */\ndeclare var clientInformation: Navigator;\n/** Returns true if the window has been closed, false otherwise. */\ndeclare var closed: boolean;\n/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */\ndeclare var customElements: CustomElementRegistry;\ndeclare var devicePixelRatio: number;\ndeclare var document: Document;\n/** @deprecated */\ndeclare var event: Event | undefined;\n/** @deprecated */\ndeclare var external: External;\ndeclare var frameElement: Element | null;\ndeclare var frames: WindowProxy;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var length: number;\ndeclare var location: Location;\n/** Returns true if the location bar is visible; otherwise, returns false. */\ndeclare var locationbar: BarProp;\n/** Returns true if the menu bar is visible; otherwise, returns false. */\ndeclare var menubar: BarProp;\n/** @deprecated */\ndeclare const name: void;\ndeclare var navigator: Navigator;\n/** Available only in secure contexts. */\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n/** Available only in secure contexts. */\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/** @deprecated */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\n/** @deprecated */\ndeclare var orientation: number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\n/** @deprecated This is a legacy alias of `scrollX`. */\ndeclare var pageXOffset: number;\n/** @deprecated This is a legacy alias of `scrollY`. */\ndeclare var pageYOffset: number;\n/**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n */\ndeclare var parent: WindowProxy;\n/** Returns true if the personal bar is visible; otherwise, returns false. */\ndeclare var personalbar: BarProp;\ndeclare var screen: Screen;\ndeclare var screenLeft: number;\ndeclare var screenTop: number;\ndeclare var screenX: number;\ndeclare var screenY: number;\ndeclare var scrollX: number;\ndeclare var scrollY: number;\n/** Returns true if the scrollbars are visible; otherwise, returns false. */\ndeclare var scrollbars: BarProp;\ndeclare var self: Window & typeof globalThis;\ndeclare var speechSynthesis: SpeechSynthesis;\n/** @deprecated */\ndeclare var status: string;\n/** Returns true if the status bar is visible; otherwise, returns false. */\ndeclare var statusbar: BarProp;\n/** Returns true if the toolbar is visible; otherwise, returns false. */\ndeclare var toolbar: BarProp;\ndeclare var top: WindowProxy | null;\ndeclare var visualViewport: VisualViewport;\ndeclare var window: Window & typeof globalThis;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelIdleCallback(handle: number): void;\n/** @deprecated */\ndeclare function captureEvents(): void;\n/** Closes the window. */\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\n/** Moves the focus to the window\'s browsing context, if any. */\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getSelection(): Selection | null;\ndeclare function matchMedia(query: string): MediaQueryList;\ndeclare function moveBy(x: number, y: number): void;\ndeclare function moveTo(x: number, y: number): void;\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * 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.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * 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.\n *\n * 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 "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function postMessage(message: any, options?: WindowPostMessageOptions): void;\ndeclare function print(): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\n/** @deprecated */\ndeclare function releaseEvents(): void;\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\ndeclare function resizeBy(x: number, y: number): void;\ndeclare function resizeTo(width: number, height: number): void;\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/** Cancels the document load. */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/** 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. */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\n/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\ndeclare var onerror: OnErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Occurs when playback is paused.\n * @param ev The event.\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\ndeclare var onscroll: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n */\ndeclare var onselect: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectstart: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;\n/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontoggle: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `onanimationend`. */\ndeclare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `onanimationiteration`. */\ndeclare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `onanimationstart`. */\ndeclare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `ontransitionend`. */\ndeclare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;\ndeclare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare var localStorage: Storage;\n/** Available only in secure contexts. */\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare var sessionStorage: Storage;\ndeclare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype COSEAlgorithmIdentifier = number;\ntype CSSNumberish = number;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;\ntype ClipboardItemData = Promise<ClipboardItemDataType>;\ntype ClipboardItemDataType = string | Blob;\ntype ClipboardItems = ClipboardItem[];\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainULong = number | ConstrainULongRange;\ntype DOMHighResTimeStamp = number;\ntype DOMTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = string[][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";\ntype Int32List = Int32Array | GLint[];\ntype LineAndPositionSetting = number | AutoKeyword;\ntype MediaProvider = MediaStream | MediaSource | Blob;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype NamedCurve = string;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T>;\ntype ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;\ntype TimerHandler = string | Function;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype Uint32List = Uint32Array | GLuint[];\ntype UvmEntries = UvmEntry[];\ntype UvmEntry = number[];\ntype VibratePattern = number | number[];\ntype WindowProxy = Window;\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlignSetting = "center" | "end" | "left" | "right" | "start";\ntype AnimationPlayState = "finished" | "idle" | "paused" | "running";\ntype AnimationReplaceState = "active" | "persisted" | "removed";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "closed" | "running" | "suspended";\ntype AuthenticatorAttachment = "cross-platform" | "platform";\ntype AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";\ntype AutoKeyword = "auto";\ntype AutomationRate = "a-rate" | "k-rate";\ntype BinaryType = "arraybuffer" | "blob";\ntype BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ChannelCountMode = "clamped-max" | "explicit" | "max";\ntype ChannelInterpretation = "discrete" | "speakers";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompositeOperation = "accumulate" | "add" | "replace";\ntype CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";\ntype ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";\ntype CredentialMediationRequirement = "optional" | "required" | "silent";\ntype DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";\ntype DirectionSetting = "" | "lr" | "rl";\ntype DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";\ntype DistanceModelType = "exponential" | "inverse" | "linear";\ntype DocumentReadyState = "complete" | "interactive" | "loading";\ntype EndOfStreamError = "decode" | "network";\ntype EndingType = "native" | "transparent";\ntype FillMode = "auto" | "backwards" | "both" | "forwards" | "none";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FullscreenNavigationUI = "auto" | "hide" | "show";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadMappingType = "" | "standard" | "xr-standard";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "none";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype IterationCompositeOperation = "accumulate" | "replace";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LineAlignSetting = "center" | "end" | "start";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaEncodingType = "record" | "webrtc";\ntype MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";\ntype MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";\ntype MediaKeySessionType = "persistent-license" | "temporary";\ntype MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";\ntype MediaKeysRequirement = "not-allowed" | "optional" | "required";\ntype MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";\ntype MediaSessionPlaybackState = "none" | "paused" | "playing";\ntype MediaStreamTrackState = "ended" | "live";\ntype NavigationType = "back_forward" | "navigate" | "prerender" | "reload";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";\ntype OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";\ntype OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";\ntype OverSampleType = "2x" | "4x" | "none";\ntype PanningModelType = "HRTF" | "equalpower";\ntype PaymentComplete = "fail" | "success" | "unknown";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";\ntype PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PresentationStyle = "attachment" | "inline" | "unspecified";\ntype PublicKeyCredentialType = "public-key";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype PushPermissionState = "denied" | "granted" | "prompt";\ntype RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";\ntype RTCDataChannelState = "closed" | "closing" | "connecting" | "open";\ntype RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";\ntype RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";\ntype RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";\ntype RTCIceComponent = "rtcp" | "rtp";\ntype RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCIceCredentialType = "password";\ntype RTCIceGathererState = "complete" | "gathering" | "new";\ntype RTCIceGatheringState = "complete" | "gathering" | "new";\ntype RTCIceProtocol = "tcp" | "udp";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "all" | "relay";\ntype RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";\ntype RTCPriorityType = "high" | "low" | "medium" | "very-low";\ntype RTCRtcpMuxPolicy = "require";\ntype RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";\ntype RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";\ntype RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";\ntype RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";\ntype RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";\ntype ReadyState = "closed" | "ended" | "open";\ntype RecordingState = "inactive" | "paused" | "recording";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RemotePlaybackState = "connected" | "connecting" | "disconnected";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResidentKeyRequirement = "discouraged" | "preferred" | "required";\ntype ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScrollBehavior = "auto" | "smooth";\ntype ScrollLogicalPosition = "center" | "end" | "nearest" | "start";\ntype ScrollRestoration = "auto" | "manual";\ntype ScrollSetting = "" | "up";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype SelectionMode = "end" | "preserve" | "select" | "start";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype ShadowRootMode = "closed" | "open";\ntype SlotAssignmentMode = "manual" | "named";\ntype SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";\ntype TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype TouchType = "direct" | "stylus";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype UserVerificationRequirement = "discouraged" | "preferred" | "required";\ntype VideoFacingModeEnum = "environment" | "left" | "right" | "user";\ntype VisibilityState = "hidden" | "visible";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',ka["lib.dom.iterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Window Iterable APIs\n/////////////////////////////\n\ninterface AudioParam {\n setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface BaseAudioContext {\n createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSRuleList {\n [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Cache {\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPathDrawingStyles {\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface DOMRectList {\n [Symbol.iterator](): IterableIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface DOMTokenList {\n [Symbol.iterator](): IterableIterator<string>;\n entries(): IterableIterator<[number, string]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<string>;\n}\n\ninterface DataTransferItemList {\n [Symbol.iterator](): IterableIterator<DataTransferItem>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface HTMLFormElement {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n [Symbol.iterator](): IterableIterator<HTMLOptionElement>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /** 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. */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MediaKeyStatusMap {\n [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\n entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\n keys(): IterableIterator<BufferSource>;\n values(): IterableIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface MimeTypeArray {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface Navigator {\n /** Available only in secure contexts. */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\n vibrate(pattern: Iterable<number>): boolean;\n}\n\ninterface NodeList {\n [Symbol.iterator](): IterableIterator<Node>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, Node]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n [Symbol.iterator](): IterableIterator<TNode>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, TNode]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<TNode>;\n}\n\ninterface Plugin {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface PluginArray {\n [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface SVGLengthList {\n [Symbol.iterator](): IterableIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n [Symbol.iterator](): IterableIterator<SVGNumber>;\n}\n\ninterface SVGPointList {\n [Symbol.iterator](): IterableIterator<DOMPoint>;\n}\n\ninterface SVGStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface SVGTransformList {\n [Symbol.iterator](): IterableIterator<SVGTransform>;\n}\n\ninterface SourceBufferList {\n [Symbol.iterator](): IterableIterator<SourceBuffer>;\n}\n\ninterface SpeechRecognitionResult {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\n}\n\ninterface StyleSheetList {\n [Symbol.iterator](): IterableIterator<CSSStyleSheet>;\n}\n\ninterface SubtleCrypto {\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n 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>;\n}\n\ninterface TextTrackCueList {\n [Symbol.iterator](): IterableIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n [Symbol.iterator](): IterableIterator<TextTrack>;\n}\n\ninterface TouchList {\n [Symbol.iterator](): IterableIterator<Touch>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WebGL2RenderingContextBase {\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n drawBuffers(buffers: Iterable<GLenum>): void;\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n',ka["lib.es2015.collection.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Map<K, V> {\n clear(): void;\n delete(key: K): boolean;\n forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n set(key: K, value: V): this;\n readonly size: number;\n}\n\ninterface MapConstructor {\n new(): Map<any, any>;\n new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\n readonly prototype: Map<any, any>;\n}\ndeclare var Map: MapConstructor;\n\ninterface ReadonlyMap<K, V> {\n forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n readonly size: number;\n}\n\ninterface WeakMap<K extends object, V> {\n delete(key: K): boolean;\n get(key: K): V | undefined;\n has(key: K): boolean;\n set(key: K, value: V): this;\n}\n\ninterface WeakMapConstructor {\n new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;\n readonly prototype: WeakMap<object, any>;\n}\ndeclare var WeakMap: WeakMapConstructor;\n\ninterface Set<T> {\n add(value: T): this;\n clear(): void;\n delete(value: T): boolean;\n forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\n has(value: T): boolean;\n readonly size: number;\n}\n\ninterface SetConstructor {\n new <T = any>(values?: readonly T[] | null): Set<T>;\n readonly prototype: Set<any>;\n}\ndeclare var Set: SetConstructor;\n\ninterface ReadonlySet<T> {\n forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\n has(value: T): boolean;\n readonly size: number;\n}\n\ninterface WeakSet<T extends object> {\n add(value: T): this;\n delete(value: T): boolean;\n has(value: T): boolean;\n}\n\ninterface WeakSetConstructor {\n new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;\n readonly prototype: WeakSet<object>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n',ka["lib.es2015.core.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Array<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: T, start?: number, end?: number): this;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an array-like object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from<T>(arrayLike: ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param arrayLike An array-like object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of<T>(...items: T[]): T[];\n}\n\ninterface DateConstructor {\n new (value: number | string | Date): Date;\n}\n\ninterface Function {\n /**\n * Returns the name of the function. Function names are read-only and can not be changed.\n */\n readonly name: string;\n}\n\ninterface Math {\n /**\n * Returns the number of leading zero bits in the 32-bit binary representation of a number.\n * @param x A numeric expression.\n */\n clz32(x: number): number;\n\n /**\n * Returns the result of 32-bit multiplication of two numbers.\n * @param x First number\n * @param y Second number\n */\n imul(x: number, y: number): number;\n\n /**\n * Returns the sign of the x, indicating whether x is positive, negative or zero.\n * @param x The numeric expression to test\n */\n sign(x: number): number;\n\n /**\n * Returns the base 10 logarithm of a number.\n * @param x A numeric expression.\n */\n log10(x: number): number;\n\n /**\n * Returns the base 2 logarithm of a number.\n * @param x A numeric expression.\n */\n log2(x: number): number;\n\n /**\n * Returns the natural logarithm of 1 + x.\n * @param x A numeric expression.\n */\n log1p(x: number): number;\n\n /**\n * Returns the result of (e^x - 1), which is an implementation-dependent approximation to\n * subtracting 1 from the exponential function of x (e raised to the power of x, where e\n * is the base of the natural logarithms).\n * @param x A numeric expression.\n */\n expm1(x: number): number;\n\n /**\n * Returns the hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cosh(x: number): number;\n\n /**\n * Returns the hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sinh(x: number): number;\n\n /**\n * Returns the hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tanh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n acosh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n asinh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n atanh(x: number): number;\n\n /**\n * Returns the square root of the sum of squares of its arguments.\n * @param values Values to compute the square root for.\n * If no arguments are passed, the result is +0.\n * If there is only one argument, the result is the absolute value.\n * If any argument is +Infinity or -Infinity, the result is +Infinity.\n * If any argument is NaN, the result is NaN.\n * If all arguments are either +0 or \u22120, the result is +0.\n */\n hypot(...values: number[]): number;\n\n /**\n * Returns the integral part of the a numeric expression, x, removing any fractional digits.\n * If x is already an integer, the result is x.\n * @param x A numeric expression.\n */\n trunc(x: number): number;\n\n /**\n * Returns the nearest single precision float representation of a number.\n * @param x A numeric expression.\n */\n fround(x: number): number;\n\n /**\n * Returns an implementation-dependent approximation to the cube root of number.\n * @param x A numeric expression.\n */\n cbrt(x: number): number;\n}\n\ninterface NumberConstructor {\n /**\n * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1\n * that is representable as a Number value, which is approximately:\n * 2.2204460492503130808472633361816 x 10\u200d\u2212\u200d16.\n */\n readonly EPSILON: number;\n\n /**\n * Returns true if passed value is finite.\n * Unlike the global isFinite, Number.isFinite doesn\'t forcibly convert the parameter to a\n * number. Only finite values of the type number, result in true.\n * @param number A numeric value.\n */\n isFinite(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is an integer, false otherwise.\n * @param number A numeric value.\n */\n isInteger(number: unknown): boolean;\n\n /**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a\n * number). Unlike the global isNaN(), Number.isNaN() doesn\'t forcefully convert the parameter\n * to a number. Only values of the type number, that are also NaN, result in true.\n * @param number A numeric value.\n */\n isNaN(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is a safe integer.\n * @param number A numeric value.\n */\n isSafeInteger(number: unknown): boolean;\n\n /**\n * The value of the largest integer n such that n and n + 1 are both exactly representable as\n * a Number value.\n * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.\n */\n readonly MAX_SAFE_INTEGER: number;\n\n /**\n * The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as\n * a Number value.\n * The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).\n */\n readonly MIN_SAFE_INTEGER: number;\n\n /**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\n parseFloat(string: string): number;\n\n /**\n * Converts A string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n * All other strings are considered decimal.\n */\n parseInt(string: string, radix?: number): number;\n}\n\ninterface ObjectConstructor {\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source The source object from which to copy properties.\n */\n assign<T, U>(target: T, source: U): T & U;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n */\n assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n * @param source3 The third source object from which to copy properties.\n */\n assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param sources One or more source objects from which to copy properties\n */\n assign(target: object, ...sources: any[]): any;\n\n /**\n * Returns an array of all symbol properties found directly on object o.\n * @param o Object to retrieve the symbols from.\n */\n getOwnPropertySymbols(o: any): symbol[];\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @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.\n */\n keys(o: {}): string[];\n\n /**\n * Returns true if the values are the same value, false otherwise.\n * @param value1 The first value.\n * @param value2 The second value.\n */\n is(value1: any, value2: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null. Returns the object o.\n * @param o The object to change its prototype.\n * @param proto The value of the new prototype or null.\n */\n setPrototypeOf(o: any, proto: object | null): any;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;\n}\n\ninterface RegExp {\n /**\n * Returns a string indicating the flags of the regular expression in question. This field is read-only.\n * The characters in this string are sequenced and concatenated in the following order:\n *\n * - "g" for global\n * - "i" for ignoreCase\n * - "m" for multiline\n * - "u" for unicode\n * - "y" for sticky\n *\n * If no flags are set, the value is the empty string.\n */\n readonly flags: string;\n\n /**\n * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly sticky: boolean;\n\n /**\n * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly unicode: boolean;\n}\n\ninterface RegExpConstructor {\n new (pattern: RegExp | string, flags?: string): RegExp;\n (pattern: RegExp | string, flags?: string): RegExp;\n}\n\ninterface String {\n /**\n * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\n * value of the UTF-16 encoded code point starting at the string element at position pos in\n * the String resulting from converting this object to a String.\n * If there is no element at that position, the result is undefined.\n * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.\n */\n codePointAt(pos: number): number | undefined;\n\n /**\n * Returns true if searchString appears as a substring of the result of converting this\n * object to a String, at one or more positions that are\n * greater than or equal to position; otherwise, returns false.\n * @param searchString search string\n * @param position If position is undefined, 0 is assumed, so as to search all of the String.\n */\n includes(searchString: string, position?: number): boolean;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * endPosition \u2013 length(this). Otherwise returns false.\n */\n endsWith(searchString: string, endPosition?: number): boolean;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form?: string): string;\n\n /**\n * Returns a String value that is made from count copies appended together. If count is 0,\n * the empty string is returned.\n * @param count number of copies to append\n */\n repeat(count: number): string;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * position. Otherwise returns false.\n */\n startsWith(searchString: string, position?: number): boolean;\n\n /**\n * Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n * @deprecated A legacy feature for browser compatibility\n * @param name\n */\n anchor(name: string): string;\n\n /**\n * Returns a `<big>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n big(): string;\n\n /**\n * Returns a `<blink>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n blink(): string;\n\n /**\n * Returns a `<b>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n bold(): string;\n\n /**\n * Returns a `<tt>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n fixed(): string;\n\n /**\n * Returns a `<font>` HTML element and sets the color attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontcolor(color: string): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: number): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: string): string;\n\n /**\n * Returns an `<i>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n italics(): string;\n\n /**\n * Returns an `<a>` HTML element and sets the href attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n link(url: string): string;\n\n /**\n * Returns a `<small>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n small(): string;\n\n /**\n * Returns a `<strike>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n strike(): string;\n\n /**\n * Returns a `<sub>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sub(): string;\n\n /**\n * Returns a `<sup>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sup(): string;\n}\n\ninterface StringConstructor {\n /**\n * Return the String value whose elements are, in order, the elements in the List elements.\n * If length is 0, the empty string is returned.\n */\n fromCodePoint(...codePoints: number[]): string;\n\n /**\n * String.raw is usually used as a tag function of a Tagged Template String. When called as\n * such, the first argument will be a well formed template call site object and the rest\n * parameter will contain the substitution values. It can also be called directly, for example,\n * to interleave strings and values from your own tag function, and in this case the only thing\n * it needs from the first argument is the raw property.\n * @param template A well-formed template string call site representation.\n * @param substitutions A set of substitution values.\n */\n raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;\n}\n',ka["lib.es2015.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es5" />\n/// <reference lib="es2015.core" />\n/// <reference lib="es2015.collection" />\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.generator" />\n/// <reference lib="es2015.promise" />\n/// <reference lib="es2015.proxy" />\n/// <reference lib="es2015.reflect" />\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n',ka["lib.es2015.generator.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n\ninterface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return(value: TReturn): IteratorResult<T, TReturn>;\n throw(e: any): IteratorResult<T, TReturn>;\n [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\n\ninterface GeneratorFunction {\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): Generator;\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): Generator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): GeneratorFunction;\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): GeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: GeneratorFunction;\n}\n',ka["lib.es2015.iterable.d.ts"]="/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib=\"true\"/>\n\n\n/// <reference lib=\"es2015.symbol\" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default iterator for an object. Called by the semantics of the\n * for-of statement.\n */\n readonly iterator: unique symbol;\n}\n\ninterface IteratorYieldResult<TYield> {\n done?: false;\n value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n done: true;\n value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return?(value?: TReturn): IteratorResult<T, TReturn>;\n throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T> {\n [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n */\n from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n /** Iterator of values in the array. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;\n}\n\ninterface Set<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends object> { }\n\ninterface WeakSetConstructor {\n new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;\n}\n\ninterface Promise<T> { }\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n\ninterface String {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n new (elements: Iterable<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n new (elements: Iterable<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (elements: Iterable<number>): Uint8ClampedArray;\n\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n new (elements: Iterable<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n new (elements: Iterable<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n new (elements: Iterable<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n new (elements: Iterable<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n new (elements: Iterable<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n new (elements: Iterable<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n",ka["lib.es2015.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface PromiseConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Promise<any>;\n\n /**\n * Creates a new Promise.\n * @param executor A callback used to initialize the promise. This callback is passed two arguments:\n * a resolve callback used to resolve the promise with a value or the result of another promise,\n * and a reject callback used to reject the promise with a provided reason or error.\n */\n new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;\n\n // see: lib.es2015.iterable.d.ts\n // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n // see: lib.es2015.iterable.d.ts\n // race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;\n\n /**\n * Creates a new rejected promise for the provided reason.\n * @param reason The reason the promise was rejected.\n * @returns A new rejected Promise.\n */\n reject<T = never>(reason?: any): Promise<T>;\n\n /**\n * Creates a new resolved promise.\n * @returns A resolved promise.\n */\n resolve(): Promise<void>;\n\n /**\n * Creates a new resolved promise for the provided value.\n * @param value A promise.\n * @returns A promise whose internal state matches the provided promise.\n */\n resolve<T>(value: T | PromiseLike<T>): Promise<T>;\n}\n\ndeclare var Promise: PromiseConstructor;\n',ka["lib.es2015.proxy.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface ProxyHandler<T extends object> {\n apply?(target: T, thisArg: any, argArray: any[]): any;\n construct?(target: T, argArray: any[], newTarget: Function): object;\n defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;\n deleteProperty?(target: T, p: string | symbol): boolean;\n get?(target: T, p: string | symbol, receiver: any): any;\n getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;\n getPrototypeOf?(target: T): object | null;\n has?(target: T, p: string | symbol): boolean;\n isExtensible?(target: T): boolean;\n ownKeys?(target: T): ArrayLike<string | symbol>;\n preventExtensions?(target: T): boolean;\n set?(target: T, p: string | symbol, value: any, receiver: any): boolean;\n setPrototypeOf?(target: T, v: object | null): boolean;\n}\n\ninterface ProxyConstructor {\n revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\n new <T extends object>(target: T, handler: ProxyHandler<T>): T;\n}\ndeclare var Proxy: ProxyConstructor;\n',ka["lib.es2015.reflect.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Reflect {\n /**\n * Calls the function with the specified object as the this value\n * and the elements of specified array as the arguments.\n * @param target The function to call.\n * @param thisArgument The object to be used as the this object.\n * @param argumentsList An array of argument values to be passed to the function.\n */\n function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n\n /**\n * Constructs the target with the elements of specified array as the arguments\n * and the specified constructor as the `new.target` value.\n * @param target The constructor to invoke.\n * @param argumentsList An array of argument values to be passed to the constructor.\n * @param newTarget The constructor to be used as the `new.target` object.\n */\n function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param target Object on which to add or modify the property. This can be a native JavaScript object\n * (that is, a user-defined object or a built in object) or a DOM object.\n * @param propertyKey The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;\n\n /**\n * Removes a property from an object, equivalent to `delete target[propertyKey]`,\n * except it won\'t throw if `target[propertyKey]` is non-configurable.\n * @param target Object from which to remove the own property.\n * @param propertyKey The property name.\n */\n function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey The property name.\n * @param receiver The reference to use as the `this` value in the getter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function get(target: object, propertyKey: PropertyKey, receiver?: any): any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object\'s prototype.\n * @param target Object that contains the property.\n * @param propertyKey The property name.\n */\n function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;\n\n /**\n * Returns the prototype of an object.\n * @param target The object that references the prototype.\n */\n function getPrototypeOf(target: object): object | null;\n\n /**\n * Equivalent to `propertyKey in target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n */\n function has(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param target Object to test.\n */\n function isExtensible(target: object): boolean;\n\n /**\n * Returns the string and symbol keys of the own properties of an object. The own properties of an object\n * are those that are defined directly on that object, and are not inherited from the object\'s prototype.\n * @param target Object that contains the own properties.\n */\n function ownKeys(target: object): (string | symbol)[];\n\n /**\n * Prevents the addition of new properties to an object.\n * @param target Object to make non-extensible.\n * @return Whether the object has been made non-extensible.\n */\n function preventExtensions(target: object): boolean;\n\n /**\n * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n * @param receiver The reference to use as the `this` value in the setter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null.\n * @param target The object to change its prototype.\n * @param proto The value of the new prototype or null.\n * @return Whether setting the prototype was successful.\n */\n function setPrototypeOf(target: object, proto: object | null): boolean;\n}\n',ka["lib.es2015.symbol.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface SymbolConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Symbol;\n\n /**\n * Returns a new unique Symbol value.\n * @param description Description of the new Symbol object.\n */\n (description?: string | number): symbol;\n\n /**\n * Returns a Symbol object from the global symbol registry matching the given key if found.\n * Otherwise, returns a new symbol with this key.\n * @param key key to search for.\n */\n for(key: string): symbol;\n\n /**\n * Returns a key from the global symbol registry matching the given Symbol if found.\n * Otherwise, returns a undefined.\n * @param sym Symbol to find the key for.\n */\n keyFor(sym: symbol): string | undefined;\n}\n\ndeclare var Symbol: SymbolConstructor;',ka["lib.es2015.symbol.wellknown.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A method that determines if a constructor object recognizes an object as one of the\n * constructor\u2019s instances. Called by the semantics of the instanceof operator.\n */\n readonly hasInstance: unique symbol;\n\n /**\n * A Boolean value that if true indicates that an object should flatten to its array elements\n * by Array.prototype.concat.\n */\n readonly isConcatSpreadable: unique symbol;\n\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.match method.\n */\n readonly match: unique symbol;\n\n /**\n * A regular expression method that replaces matched substrings of a string. Called by the\n * String.prototype.replace method.\n */\n readonly replace: unique symbol;\n\n /**\n * A regular expression method that returns the index within a string that matches the\n * regular expression. Called by the String.prototype.search method.\n */\n readonly search: unique symbol;\n\n /**\n * A function valued property that is the constructor function that is used to create\n * derived objects.\n */\n readonly species: unique symbol;\n\n /**\n * A regular expression method that splits a string at the indices that match the regular\n * expression. Called by the String.prototype.split method.\n */\n readonly split: unique symbol;\n\n /**\n * A method that converts an object to a corresponding primitive value.\n * Called by the ToPrimitive abstract operation.\n */\n readonly toPrimitive: unique symbol;\n\n /**\n * A String value that is used in the creation of the default string description of an object.\n * Called by the built-in method Object.prototype.toString.\n */\n readonly toStringTag: unique symbol;\n\n /**\n * An Object whose own property names are property names that are excluded from the \'with\'\n * environment bindings of the associated objects.\n */\n readonly unscopables: unique symbol;\n}\n\ninterface Symbol {\n /**\n * Converts a Symbol object to a symbol.\n */\n [Symbol.toPrimitive](hint: string): symbol;\n\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Array<T> {\n /**\n * Returns an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n [Symbol.unscopables](): {\n copyWithin: boolean;\n entries: boolean;\n fill: boolean;\n find: boolean;\n findIndex: boolean;\n keys: boolean;\n values: boolean;\n };\n}\n\ninterface Date {\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "default"): string;\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "string"): string;\n /**\n * Converts a Date object to a number.\n */\n [Symbol.toPrimitive](hint: "number"): number;\n /**\n * Converts a Date object to a string or number.\n *\n * @param hint The strings "number", "string", or "default" to specify what primitive to return.\n *\n * @throws {TypeError} If \'hint\' was given something other than "number", "string", or "default".\n * @returns A number if \'hint\' was "number", a string if \'hint\' was "string" or "default".\n */\n [Symbol.toPrimitive](hint: string): string | number;\n}\n\ninterface Map<K, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakMap<K extends object, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends object> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface JSON {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Function {\n /**\n * Determines whether the given value inherits from this function if this function was used\n * as a constructor function.\n *\n * A constructor function can control which objects are recognized as its instances by\n * \'instanceof\' by overriding this method.\n */\n [Symbol.hasInstance](value: any): boolean;\n}\n\ninterface GeneratorFunction {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Math {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Promise<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface PromiseConstructor {\n readonly [Symbol.species]: PromiseConstructor;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an array containing the results of\n * that search.\n * @param string A string to search within.\n */\n [Symbol.match](string: string): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replaceValue A String object or string literal containing the text to replace for every\n * successful match of this regular expression.\n */\n [Symbol.replace](string: string, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replacer A function that returns the replacement text.\n */\n [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the position beginning first substring match in a regular expression search\n * using this regular expression.\n *\n * @param string The string to search within.\n */\n [Symbol.search](string: string): number;\n\n /**\n * Returns an array of substrings that were delimited by strings in the original input that\n * match against this regular expression.\n *\n * If the regular expression contains capturing parentheses, then each time this\n * regular expression matches, the results (including any undefined results) of the\n * capturing parentheses are spliced.\n *\n * @param string string value to split\n * @param limit if not undefined, the output array is truncated so that it contains no more\n * than \'limit\' elements.\n */\n [Symbol.split](string: string, limit?: number): string[];\n}\n\ninterface RegExpConstructor {\n readonly [Symbol.species]: RegExpConstructor;\n}\n\ninterface String {\n /**\n * Matches a string or an object that supports being matched against, and returns an array\n * containing the results of that search, or null if no matches are found.\n * @param matcher An object that supports being matched against.\n */\n match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;\n\n /**\n * Replaces first match with string or all matches with RegExp.\n * @param searchValue A string or RegExp search value.\n * @param replaceValue A string containing the text to replace for match.\n */\n replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using an object that supports replacement within a string.\n * @param searchValue A object can search for and replace matches within a string.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param searcher An object which supports searching within a string.\n */\n search(searcher: { [Symbol.search](string: string): number; }): number;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param splitter An object that can split a string.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface DataView {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array {\n readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array {\n readonly [Symbol.toStringTag]: "Uint8Array";\n}\n\ninterface Uint8ClampedArray {\n readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array {\n readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array {\n readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array {\n readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array {\n readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array {\n readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array {\n readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n readonly [Symbol.species]: ArrayBufferConstructor;\n}\n',ka["lib.es2016.array.include.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Array<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface Int8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float64Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}',ka["lib.es2016.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015" />\n/// <reference lib="es2016.array.include" />',ka["lib.es2016.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2016" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',ka["lib.es2017.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2016" />\n/// <reference lib="es2017.object" />\n/// <reference lib="es2017.sharedmemory" />\n/// <reference lib="es2017.string" />\n/// <reference lib="es2017.intl" />\n/// <reference lib="es2017.typedarrays" />\n',ka["lib.es2017.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2017" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',ka["lib.es2017.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";\n\n interface DateTimeFormatPart {\n type: DateTimeFormatPartTypes;\n value: string;\n }\n\n interface DateTimeFormat {\n formatToParts(date?: Date | number): DateTimeFormatPart[];\n }\n}\n',ka["lib.es2017.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface ObjectConstructor {\n /**\n * Returns an array of values of the enumerable properties of an object\n * @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.\n */\n values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];\n\n /**\n * Returns an array of values of the enumerable properties of an object\n * @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.\n */\n values(o: {}): any[];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @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.\n */\n entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @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.\n */\n entries(o: {}): [string, any][];\n\n /**\n * Returns an object containing all own property descriptors of an object\n * @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.\n */\n getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };\n}\n',ka["lib.es2017.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n\ninterface SharedArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an SharedArrayBuffer.\n */\n slice(begin: number, end?: number): SharedArrayBuffer;\n readonly [Symbol.species]: SharedArrayBuffer;\n readonly [Symbol.toStringTag]: "SharedArrayBuffer";\n}\n\ninterface SharedArrayBufferConstructor {\n readonly prototype: SharedArrayBuffer;\n new (byteLength: number): SharedArrayBuffer;\n}\ndeclare var SharedArrayBuffer: SharedArrayBufferConstructor;\n\ninterface ArrayBufferTypes {\n SharedArrayBuffer: SharedArrayBuffer;\n}\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Returns a value indicating whether high-performance algorithms can use atomic operations\n * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed\n * array.\n */\n isLockFree(size: number): boolean;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared Int32Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: Int32Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n readonly [Symbol.toStringTag]: "Atomics";\n}\n\ndeclare var Atomics: Atomics;\n',ka["lib.es2017.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the start (left) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padStart(maxLength: number, fillString?: string): string;\n\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the end (right) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padEnd(maxLength: number, fillString?: string): string;\n}\n',ka["lib.es2017.typedarrays.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Int8ArrayConstructor {\n new (): Int8Array;\n}\n\ninterface Uint8ArrayConstructor {\n new (): Uint8Array;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (): Uint8ClampedArray;\n}\n\ninterface Int16ArrayConstructor {\n new (): Int16Array;\n}\n\ninterface Uint16ArrayConstructor {\n new (): Uint16Array;\n}\n\ninterface Int32ArrayConstructor {\n new (): Int32Array;\n}\n\ninterface Uint32ArrayConstructor {\n new (): Uint32Array;\n}\n\ninterface Float32ArrayConstructor {\n new (): Float32Array;\n}\n\ninterface Float64ArrayConstructor {\n new (): Float64Array;\n}\n',ka["lib.es2018.asyncgenerator.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2018.asynciterable" />\n\ninterface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw(e: any): Promise<IteratorResult<T, TReturn>>;\n [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n}\n\ninterface AsyncGeneratorFunction {\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): AsyncGenerator;\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): AsyncGenerator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGenerator;\n}\n\ninterface AsyncGeneratorFunctionConstructor {\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): AsyncGeneratorFunction;\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): AsyncGeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGeneratorFunction;\n}\n',ka["lib.es2018.asynciterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default async iterator for an object. Called by the semantics of\n * the for-await-of statement.\n */\n readonly asyncIterator: unique symbol;\n}\n\ninterface AsyncIterator<T, TReturn = any, TNext = undefined> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw?(e?: any): Promise<IteratorResult<T, TReturn>>;\n}\n\ninterface AsyncIterable<T> {\n [Symbol.asyncIterator](): AsyncIterator<T>;\n}\n\ninterface AsyncIterableIterator<T> extends AsyncIterator<T> {\n [Symbol.asyncIterator](): AsyncIterableIterator<T>;\n}',ka["lib.es2018.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2017" />\n/// <reference lib="es2018.asynciterable" />\n/// <reference lib="es2018.asyncgenerator" />\n/// <reference lib="es2018.promise" />\n/// <reference lib="es2018.regexp" />\n/// <reference lib="es2018.intl" />\n',ka["lib.es2018.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2018" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',ka["lib.es2018.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n\n // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories\n type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";\n type PluralRuleType = "cardinal" | "ordinal";\n\n interface PluralRulesOptions {\n localeMatcher?: "lookup" | "best fit" | undefined;\n type?: PluralRuleType | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedPluralRulesOptions {\n locale: string;\n pluralCategories: LDMLPluralRule[];\n type: PluralRuleType;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface PluralRules {\n resolvedOptions(): ResolvedPluralRulesOptions;\n select(n: number): LDMLPluralRule;\n }\n\n const PluralRules: {\n new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n\n supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];\n };\n\n // We can only have one definition for \'type\' in TypeScript, and so you can learn where the keys come from here:\n type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";\n type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";\n type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;\n\n interface NumberFormatPart {\n type: NumberFormatPartTypes;\n value: string;\n }\n\n interface NumberFormat {\n formatToParts(number?: number | bigint): NumberFormatPart[];\n }\n}\n',ka["lib.es2018.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>\n}\n',ka["lib.es2018.regexp.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface RegExpMatchArray {\n groups?: {\n [key: string]: string\n }\n}\n\ninterface RegExpExecArray {\n groups?: {\n [key: string]: string\n }\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly dotAll: boolean;\n}',ka["lib.es2019.array.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ntype FlatArray<Arr, Depth extends number> = {\n "done": Arr,\n "recur": Arr extends ReadonlyArray<infer InnerArr>\n ? 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]>\n : Arr\n}[Depth extends -1 ? "done" : "recur"];\n\ninterface ReadonlyArray<T> {\n\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined> (\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This\n ): U[]\n\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D\n ): FlatArray<A, D>[]\n }\n\ninterface Array<T> {\n\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined> (\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This\n ): U[]\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D\n ): FlatArray<A, D>[]\n}\n',ka["lib.es2019.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2018" />\n/// <reference lib="es2019.array" />\n/// <reference lib="es2019.object" />\n/// <reference lib="es2019.string" />\n/// <reference lib="es2019.symbol" />\n',ka["lib.es2019.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2019" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',ka["lib.es2019.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n\ninterface ObjectConstructor {\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };\n\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries(entries: Iterable<readonly any[]>): any;\n}\n',ka["lib.es2019.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /** Removes the trailing white space and line terminator characters from a string. */\n trimEnd(): string;\n\n /** Removes the leading white space and line terminator characters from a string. */\n trimStart(): string;\n\n /**\n * Removes the leading white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead\n */\n trimLeft(): string;\n\n /**\n * Removes the trailing white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead\n */\n trimRight(): string;\n}\n',ka["lib.es2019.symbol.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Symbol {\n /**\n * Expose the [[Description]] internal slot of a symbol directly.\n */\n readonly description: string | undefined;\n}\n',ka["lib.es2020.bigint.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface BigIntToLocaleStringOptions {\n /**\n * 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}.\n */\n localeMatcher?: string;\n /**\n * The formatting style to use , the default is "decimal".\n */\n style?: string;\n\n numberingSystem?: string;\n /**\n * 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.\n */\n unit?: string;\n\n /**\n * The unit formatting style to use in unit formatting, the defaults is "short".\n */\n unitDisplay?: string;\n\n /**\n * 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".\n */\n currency?: string;\n\n /**\n * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".\n *\n * "symbol" to use a localized currency symbol such as \u20ac,\n *\n * "code" to use the ISO currency code,\n *\n * "name" to use a localized currency name such as "dollar"\n */\n currencyDisplay?: string;\n\n /**\n * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\n */\n useGrouping?: boolean;\n\n /**\n * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * 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).\n */\n minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * 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.\n */\n maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\n */\n maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The formatting that should be displayed for the number, the defaults is "standard"\n *\n * "standard" plain number formatting\n *\n * "scientific" return the order-of-magnitude for formatted number.\n *\n * "engineering" return the exponent of ten when divisible by three\n *\n * "compact" string representing exponent, defaults is using the "short" form\n */\n notation?: string;\n\n /**\n * used only when notation is "compact"\n */\n compactDisplay?: string;\n}\n\ninterface BigInt {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings.\n */\n toString(radix?: number): string;\n\n /** Returns a string representation appropriate to the host environment\'s current locale. */\n toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): bigint;\n\n readonly [Symbol.toStringTag]: "BigInt";\n}\n\ninterface BigIntConstructor {\n (value: bigint | boolean | number | string): bigint;\n readonly prototype: BigInt;\n\n /**\n * Interprets the low bits of a BigInt as a 2\'s-complement signed integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asIntN(bits: number, int: bigint): bigint;\n /**\n * Interprets the low bits of a BigInt as an unsigned integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asUintN(bits: number, int: bigint): bigint;\n}\n\ndeclare var BigInt: BigIntConstructor;\n\n/**\n * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigInt64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigInt64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigInt64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigInt64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigInt64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigInt64ArrayConstructor {\n readonly prototype: BigInt64Array;\n new(length?: number): BigInt64Array;\n new(array: Iterable<bigint>): BigInt64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigInt64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigInt64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;\n}\n\ndeclare var BigInt64Array: BigInt64ArrayConstructor;\n\n/**\n * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigUint64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigUint64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigUint64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigUint64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigUint64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigUint64ArrayConstructor {\n readonly prototype: BigUint64Array;\n new(length?: number): BigUint64Array;\n new(array: Iterable<bigint>): BigUint64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigUint64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigUint64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;\n}\n\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\n\ninterface DataView {\n /**\n * Gets the BigInt64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Gets the BigUint64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Stores a BigInt64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n\n /**\n * Stores a BigUint64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n}\n\ndeclare namespace Intl{\n interface NumberFormat {\n format(value: number | bigint): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n}\n',ka["lib.es2020.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2019" />\n/// <reference lib="es2020.bigint" />\n/// <reference lib="es2020.promise" />\n/// <reference lib="es2020.sharedmemory" />\n/// <reference lib="es2020.string" />\n/// <reference lib="es2020.symbol.wellknown" />\n/// <reference lib="es2020.intl" />\n',ka["lib.es2020.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2020" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',ka["lib.es2020.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n\n /**\n * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type UnicodeBCP47LocaleIdentifier = string;\n\n /**\n * Unit to use in the relative time internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).\n */\n type RelativeTimeFormatUnit =\n | "year"\n | "years"\n | "quarter"\n | "quarters"\n | "month"\n | "months"\n | "week"\n | "weeks"\n | "day"\n | "days"\n | "hour"\n | "hours"\n | "minute"\n | "minutes"\n | "second"\n | "seconds";\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n */\n type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatNumeric = "always" | "auto";\n\n /**\n * The length of the internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatStyle = "long" | "short" | "narrow";\n\n /**\n * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type BCP47LanguageTag = string;\n\n /**\n * An object with some or all of properties of `options` parameter\n * of `Intl.RelativeTimeFormat` constructor.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n interface RelativeTimeFormatOptions {\n /** 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). */\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n /** The format of output message. */\n numeric?: RelativeTimeFormatNumeric;\n /** The length of the internationalized message. */\n style?: RelativeTimeFormatStyle;\n }\n\n /**\n * An object with properties reflecting the locale\n * and formatting options computed during initialization\n * of the `Intl.RelativeTimeFormat` object\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).\n */\n interface ResolvedRelativeTimeFormatOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n numeric: RelativeTimeFormatNumeric;\n numberingSystem: string;\n }\n\n /**\n * An object representing the relative time format in parts\n * that can be used for custom locale-aware formatting.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n interface RelativeTimeFormatPart {\n type: string;\n value: string;\n unit?: RelativeTimeFormatUnit;\n }\n\n interface RelativeTimeFormat {\n /**\n * Formats a value and a unit according to the locale\n * and formatting options of the given\n * [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object.\n *\n * While this method automatically provides the correct plural forms,\n * the grammatical form is otherwise as neutral as possible.\n *\n * It is the caller\'s responsibility to handle cut-off logic\n * such as deciding between displaying "in 7 days" or "in 1 week".\n * This API does not support relative dates involving compound units.\n * e.g "in 5 days and 4 hours".\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * @returns {string} Internationalized relative time message as string\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).\n */\n format(value: number, unit: RelativeTimeFormatUnit): string;\n\n /**\n * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).\n */\n formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];\n\n /**\n * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedRelativeTimeFormatOptions;\n }\n\n /**\n * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object is a constructor for objects that enable language-sensitive relative time formatting.\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\n */\n const RelativeTimeFormat: {\n /**\n * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of `RelativeTimeFormatOptions`.\n *\n * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).\n */\n new(\n locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\n options?: RelativeTimeFormatOptions,\n ): RelativeTimeFormat;\n\n /**\n * Returns an array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of the formatting.\n *\n * @returns An array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\n */\n supportedLocalesOf(\n locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\n options?: RelativeTimeFormatOptions,\n ): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface NumberFormatOptions {\n compactDisplay?: "short" | "long" | undefined;\n notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;\n signDisplay?: "auto" | "never" | "always" | undefined;\n unit?: string | undefined;\n unitDisplay?: "short" | "long" | "narrow" | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n compactDisplay?: "short" | "long";\n notation?: "standard" | "scientific" | "engineering" | "compact";\n signDisplay?: "auto" | "never" | "always";\n unit?: string;\n unitDisplay?: "short" | "long" | "narrow";\n }\n\n interface DateTimeFormatOptions {\n calendar?: string | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n numberingSystem?: string | undefined;\n\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;\n }\n\n type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";\n type LocaleCollationCaseFirst = "upper" | "lower" | "false";\n\n interface LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName?: string;\n /** The part of the Locale that indicates the locale\'s calendar era. */\n calendar?: string;\n /** Flag that defines whether case is taken into account for the locale\'s collation rules. */\n caseFirst?: LocaleCollationCaseFirst;\n /** The collation type used for sorting */\n collation?: string;\n /** The time keeping format convention used by the locale. */\n hourCycle?: LocaleHourCycleKey;\n /** The primary language subtag associated with the locale. */\n language?: string;\n /** The numeral system used by the locale. */\n numberingSystem?: string;\n /** Flag that defines whether the locale has special collation handling for numeric characters. */\n numeric?: boolean;\n /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */\n region?: string;\n /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */\n script?: string;\n }\n\n interface Locale extends LocaleOptions {\n /** Gets the most likely values for the language, script, and region of the locale based on existing values. */\n maximize(): Locale;\n /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */\n minimize(): Locale;\n /** Returns the locale\'s full locale identifier string. */\n toString(): BCP47LanguageTag;\n }\n\n /**\n * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)\n * objects\n *\n * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @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.\n *\n * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).\n */\n const Locale: {\n new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;\n };\n\n interface DisplayNamesOptions {\n localeMatcher: RelativeTimeFormatLocaleMatcher;\n style: RelativeTimeFormatStyle;\n type: "language" | "region" | "script" | "currency";\n fallback: "code" | "none";\n }\n\n interface DisplayNames {\n /**\n * Receives a code and returns a string based on the locale and options provided when instantiating\n * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n *\n * @param code The `code` to provide depends on the `type` passed to display name during creation:\n * - 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),\n * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).\n * - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).\n * - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )\n * 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).\n * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\n * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).\n */\n of(code: string): string;\n /**\n * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current\n * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\n */\n resolvedOptions(): DisplayNamesOptions;\n }\n\n /**\n * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n * object enables the consistent translation of language, region and script display names.\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).\n */\n const DisplayNames: {\n prototype: DisplayNames;\n\n /**\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * 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)\n * page.\n *\n * @param options An object for setting up a display name.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).\n */\n new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;\n\n /**\n * 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.\n *\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * 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)\n * page.\n *\n * @param options An object with a locale matcher.\n *\n * @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.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).\n */\n supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];\n };\n\n}\n',ka["lib.es2020.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface PromiseFulfilledResult<T> {\n status: "fulfilled";\n value: T;\n}\n\ninterface PromiseRejectedResult {\n status: "rejected";\n reason: any;\n}\n\ntype PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;\n}\n',ka["lib.es2020.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared BigInt64Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: BigInt64Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n}\n',ka["lib.es2020.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n\ninterface String {\n /**\n * Matches a string with a regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;\n}\n',ka["lib.es2020.symbol.wellknown.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.matchAll method.\n */\n readonly matchAll: unique symbol;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param string A string to search within.\n */\n [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;\n}\n',ka["lib.es2021.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2020" />\n/// <reference lib="es2021.promise" />\n/// <reference lib="es2021.string" />\n/// <reference lib="es2021.weakref" />\n/// <reference lib="es2021.intl" />\n',ka["lib.es2021.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2021" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',ka["lib.es2021.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n\n interface DateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit" | undefined;\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;\n }\n\n interface ResolvedDateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit";\n dateStyle?: "full" | "long" | "medium" | "short";\n timeStyle?: "full" | "long" | "medium" | "short";\n hourCycle?: "h11" | "h12" | "h23" | "h24";\n dayPeriod?: "narrow" | "short" | "long";\n fractionalSecondDigits?: 0 | 1 | 2 | 3;\n }\n\n interface NumberFormat {\n formatRange(startDate: number | bigint, endDate: number | bigint): string;\n formatRangeToParts(startDate: number | bigint, endDate: number | bigint): NumberFormatPart[];\n }\n}',ka["lib.es2021.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface AggregateError extends Error {\n errors: any[]\n}\n\ninterface AggregateErrorConstructor {\n new(errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * 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.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n /**\n * 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.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>\n}\n',ka["lib.es2021.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',ka["lib.es2021.weakref.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface WeakRef<T extends object> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target object, or undefined if the target object has been\n * reclaimed.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target object.\n * @param target The target object for the WeakRef instance.\n */\n new<T extends object>(target: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry<T> {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers an object with the registry.\n * @param target The target object to register.\n * @param heldValue The value to pass to the finalizer for this object. This cannot be the\n * target object.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * object. If provided (and not undefined), this must be an object. If not provided, the target\n * cannot be unregistered.\n */\n register(target: object, heldValue: T, unregisterToken?: object): void;\n\n /**\n * Unregisters an object from the registry.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target object.\n */\n unregister(unregisterToken: object): void;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry<any>;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.\n */\n new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',ka["lib.es5.d.ts"]="/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib=\"true\"/>\n\n\n/////////////////////////////\n/// ECMAScript APIs\n/////////////////////////////\n\ndeclare var NaN: number;\ndeclare var Infinity: number;\n\n/**\n * Evaluates JavaScript code and executes it.\n * @param x A String value that contains valid JavaScript code.\n */\ndeclare function eval(x: string): any;\n\n/**\n * Converts a string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\n * All other strings are considered decimal.\n */\ndeclare function parseInt(string: string, radix?: number): number;\n\n/**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\ndeclare function parseFloat(string: string): number;\n\n/**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).\n * @param number A numeric value.\n */\ndeclare function isNaN(number: number): boolean;\n\n/**\n * Determines whether a supplied number is finite.\n * @param number Any numeric value.\n */\ndeclare function isFinite(number: number): boolean;\n\n/**\n * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).\n * @param encodedURI A value representing an encoded URI.\n */\ndeclare function decodeURI(encodedURI: string): string;\n\n/**\n * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n * @param encodedURIComponent A value representing an encoded URI component.\n */\ndeclare function decodeURIComponent(encodedURIComponent: string): string;\n\n/**\n * Encodes a text string as a valid Uniform Resource Identifier (URI)\n * @param uri A value representing an encoded URI.\n */\ndeclare function encodeURI(uri: string): string;\n\n/**\n * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).\n * @param uriComponent A value representing an encoded URI component.\n */\ndeclare function encodeURIComponent(uriComponent: string | number | boolean): string;\n\n/**\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\n * @deprecated A legacy feature for browser compatibility\n * @param string A string value\n */\ndeclare function escape(string: string): string;\n\n/**\n * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\n * @deprecated A legacy feature for browser compatibility\n * @param string A string value\n */\ndeclare function unescape(string: string): string;\n\ninterface Symbol {\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): symbol;\n}\n\ndeclare type PropertyKey = string | number | symbol;\n\ninterface PropertyDescriptor {\n configurable?: boolean;\n enumerable?: boolean;\n value?: any;\n writable?: boolean;\n get?(): any;\n set?(v: any): void;\n}\n\ninterface PropertyDescriptorMap {\n [s: string]: PropertyDescriptor;\n}\n\ninterface Object {\n /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */\n constructor: Function;\n\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns a date converted to a string using the current locale. */\n toLocaleString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Object;\n\n /**\n * Determines whether an object has a property with the specified name.\n * @param v A property name.\n */\n hasOwnProperty(v: PropertyKey): boolean;\n\n /**\n * Determines whether an object exists in another object's prototype chain.\n * @param v Another object whose prototype chain is to be checked.\n */\n isPrototypeOf(v: Object): boolean;\n\n /**\n * Determines whether a specified property is enumerable.\n * @param v A property name.\n */\n propertyIsEnumerable(v: PropertyKey): boolean;\n}\n\ninterface ObjectConstructor {\n new(value?: any): Object;\n (): any;\n (value: any): any;\n\n /** A reference to the prototype for a class of objects. */\n readonly prototype: Object;\n\n /**\n * Returns the prototype of an object.\n * @param o The object that references the prototype.\n */\n getPrototypeOf(o: any): any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.\n * @param o Object that contains the property.\n * @param p Name of the property.\n */\n getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;\n\n /**\n * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly\n * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.\n * @param o Object that contains the own properties.\n */\n getOwnPropertyNames(o: any): string[];\n\n /**\n * Creates an object that has the specified prototype or that has null prototype.\n * @param o Object to use as a prototype. May be null.\n */\n create(o: object | null): any;\n\n /**\n * Creates an object that has the specified prototype, and that optionally contains specified properties.\n * @param o Object to use as a prototype. May be null\n * @param properties JavaScript object that contains one or more property descriptors.\n */\n create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @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.\n * @param p The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\n\n /**\n * Adds one or more properties to an object, and/or modifies attributes of existing properties.\n * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\n * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\n */\n defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\n\n /**\n * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n seal<T>(o: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param a Object on which to lock the attributes.\n */\n freeze<T>(a: T[]): readonly T[];\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param f Object on which to lock the attributes.\n */\n freeze<T extends Function>(f: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T>(o: T): Readonly<T>;\n\n /**\n * Prevents the addition of new properties to an object.\n * @param o Object to make non-extensible.\n */\n preventExtensions<T>(o: T): T;\n\n /**\n * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isSealed(o: any): boolean;\n\n /**\n * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isFrozen(o: any): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param o Object to test.\n */\n isExtensible(o: any): boolean;\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @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.\n */\n keys(o: object): string[];\n}\n\n/**\n * Provides functionality common to all JavaScript objects.\n */\ndeclare var Object: ObjectConstructor;\n\n/**\n * Creates a new function.\n */\ninterface Function {\n /**\n * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.\n * @param thisArg The object to be used as the this object.\n * @param argArray A set of arguments to be passed to the function.\n */\n apply(this: Function, thisArg: any, argArray?: any): any;\n\n /**\n * Calls a method of an object, substituting another object for the current object.\n * @param thisArg The object to be used as the current object.\n * @param argArray A list of arguments to be passed to the method.\n */\n call(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg An object to which the this keyword can refer inside the new function.\n * @param argArray A list of arguments to be passed to the new function.\n */\n bind(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /** Returns a string representation of a function. */\n toString(): string;\n\n prototype: any;\n readonly length: number;\n\n // Non-standard extensions\n arguments: any;\n caller: Function;\n}\n\ninterface FunctionConstructor {\n /**\n * Creates a new function.\n * @param args A list of arguments the function accepts.\n */\n new(...args: string[]): Function;\n (...args: string[]): Function;\n readonly prototype: Function;\n}\n\ndeclare var Function: FunctionConstructor;\n\n/**\n * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.\n */\ntype ThisParameterType<T> = T extends (this: infer U, ...args: any[]) => any ? U : unknown;\n\n/**\n * Removes the 'this' parameter from a function type.\n */\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\n\ninterface CallableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T, R>(this: (this: T) => R, thisArg: T): R;\n apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\n bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;\n bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;\n bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;\n bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;\n bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;\n}\n\ninterface NewableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T>(this: new () => T, thisArg: T): void;\n apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T>(this: T, thisArg: any): T;\n bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;\n bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;\n bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;\n bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;\n bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;\n}\n\ninterface IArguments {\n [index: number]: any;\n length: number;\n callee: Function;\n}\n\ninterface String {\n /** Returns a string representation of a string. */\n toString(): string;\n\n /**\n * Returns the character at the specified index.\n * @param pos The zero-based index of the desired character.\n */\n charAt(pos: number): string;\n\n /**\n * Returns the Unicode value of the character at the specified location.\n * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.\n */\n charCodeAt(index: number): number;\n\n /**\n * Returns a string that contains the concatenation of two or more strings.\n * @param strings The strings to append to the end of the string.\n */\n concat(...strings: string[]): string;\n\n /**\n * Returns the position of the first occurrence of a substring.\n * @param searchString The substring to search for in the string\n * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.\n */\n indexOf(searchString: string, position?: number): number;\n\n /**\n * Returns the last occurrence of a substring in the string.\n * @param searchString The substring to search for.\n * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.\n */\n lastIndexOf(searchString: string, position?: number): number;\n\n /**\n * Determines whether two strings are equivalent in the current locale.\n * @param that String to compare to target string\n */\n localeCompare(that: string): number;\n\n /**\n * Matches a string with a regular expression, and returns an array containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n match(regexp: string | RegExp): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replace(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param regexp The regular expression pattern and applicable flags.\n */\n search(regexp: string | RegExp): number;\n\n /**\n * Returns a section of a string.\n * @param start The index to the beginning of the specified portion of stringObj.\n * @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.\n * If this value is not specified, the substring continues to the end of stringObj.\n */\n slice(start?: number, end?: number): string;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @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.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(separator: string | RegExp, limit?: number): string[];\n\n /**\n * Returns the substring at the specified location within a String object.\n * @param start The zero-based index number indicating the beginning of the substring.\n * @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.\n * If end is omitted, the characters from start through the end of the original string are returned.\n */\n substring(start: number, end?: number): string;\n\n /** Converts all the alphabetic characters in a string to lowercase. */\n toLowerCase(): string;\n\n /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */\n toLocaleLowerCase(locales?: string | string[]): string;\n\n /** Converts all the alphabetic characters in a string to uppercase. */\n toUpperCase(): string;\n\n /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */\n toLocaleUpperCase(locales?: string | string[]): string;\n\n /** Removes the leading and trailing white space and line terminator characters from a string. */\n trim(): string;\n\n /** Returns the length of a String object. */\n readonly length: number;\n\n // IE extensions\n /**\n * Gets a substring beginning at the specified location and having the specified length.\n * @deprecated A legacy feature for browser compatibility\n * @param from The starting position of the desired substring. The index of the first character in the string is zero.\n * @param length The number of characters to include in the returned substring.\n */\n substr(from: number, length?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): string;\n\n readonly [index: number]: string;\n}\n\ninterface StringConstructor {\n new(value?: any): String;\n (value?: any): string;\n readonly prototype: String;\n fromCharCode(...codes: number[]): string;\n}\n\n/**\n * Allows manipulation and formatting of text strings and determination and location of substrings within strings.\n */\ndeclare var String: StringConstructor;\n\ninterface Boolean {\n /** Returns the primitive value of the specified object. */\n valueOf(): boolean;\n}\n\ninterface BooleanConstructor {\n new(value?: any): Boolean;\n <T>(value?: T): boolean;\n readonly prototype: Boolean;\n}\n\ndeclare var Boolean: BooleanConstructor;\n\ninterface Number {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.\n */\n toString(radix?: number): string;\n\n /**\n * Returns a string representing a number in fixed-point notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toFixed(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented in exponential notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toExponential(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.\n * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.\n */\n toPrecision(precision?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): number;\n}\n\ninterface NumberConstructor {\n new(value?: any): Number;\n (value?: any): number;\n readonly prototype: Number;\n\n /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */\n readonly MAX_VALUE: number;\n\n /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */\n readonly MIN_VALUE: number;\n\n /**\n * A value that is not a number.\n * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.\n */\n readonly NaN: number;\n\n /**\n * A value that is less than the largest negative number that can be represented in JavaScript.\n * JavaScript displays NEGATIVE_INFINITY values as -infinity.\n */\n readonly NEGATIVE_INFINITY: number;\n\n /**\n * A value greater than the largest number that can be represented in JavaScript.\n * JavaScript displays POSITIVE_INFINITY values as infinity.\n */\n readonly POSITIVE_INFINITY: number;\n}\n\n/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */\ndeclare var Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n readonly raw: readonly string[];\n}\n\n/**\n * The type of `import.meta`.\n *\n * If you need to declare that a given property exists on `import.meta`,\n * this type may be augmented via interface merging.\n */\ninterface ImportMeta {\n}\n\n/**\n * The type for the optional second argument to `import()`.\n *\n * If your host environment supports additional options, this type may be\n * augmented via interface merging.\n */\ninterface ImportCallOptions {\n assert?: ImportAssertions;\n}\n\n/**\n * The type for the `assert` property of the optional second argument to `import()`.\n */\ninterface ImportAssertions {\n [key: string]: string;\n}\n\ninterface Math {\n /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */\n readonly E: number;\n /** The natural logarithm of 10. */\n readonly LN10: number;\n /** The natural logarithm of 2. */\n readonly LN2: number;\n /** The base-2 logarithm of e. */\n readonly LOG2E: number;\n /** The base-10 logarithm of e. */\n readonly LOG10E: number;\n /** Pi. This is the ratio of the circumference of a circle to its diameter. */\n readonly PI: number;\n /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */\n readonly SQRT1_2: number;\n /** The square root of 2. */\n readonly SQRT2: number;\n /**\n * Returns the absolute value of a number (the value without regard to whether it is positive or negative).\n * For example, the absolute value of -5 is the same as the absolute value of 5.\n * @param x A numeric expression for which the absolute value is needed.\n */\n abs(x: number): number;\n /**\n * Returns the arc cosine (or inverse cosine) of a number.\n * @param x A numeric expression.\n */\n acos(x: number): number;\n /**\n * Returns the arcsine of a number.\n * @param x A numeric expression.\n */\n asin(x: number): number;\n /**\n * Returns the arctangent of a number.\n * @param x A numeric expression for which the arctangent is needed.\n */\n atan(x: number): number;\n /**\n * Returns the angle (in radians) from the X axis to a point.\n * @param y A numeric expression representing the cartesian y-coordinate.\n * @param x A numeric expression representing the cartesian x-coordinate.\n */\n atan2(y: number, x: number): number;\n /**\n * Returns the smallest integer greater than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n ceil(x: number): number;\n /**\n * Returns the cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cos(x: number): number;\n /**\n * Returns e (the base of natural logarithms) raised to a power.\n * @param x A numeric expression representing the power of e.\n */\n exp(x: number): number;\n /**\n * Returns the greatest integer less than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n floor(x: number): number;\n /**\n * Returns the natural logarithm (base e) of a number.\n * @param x A numeric expression.\n */\n log(x: number): number;\n /**\n * Returns the larger of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n max(...values: number[]): number;\n /**\n * Returns the smaller of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n min(...values: number[]): number;\n /**\n * Returns the value of a base expression taken to a specified power.\n * @param x The base value of the expression.\n * @param y The exponent value of the expression.\n */\n pow(x: number, y: number): number;\n /** Returns a pseudorandom number between 0 and 1. */\n random(): number;\n /**\n * Returns a supplied numeric expression rounded to the nearest integer.\n * @param x The value to be rounded to the nearest integer.\n */\n round(x: number): number;\n /**\n * Returns the sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sin(x: number): number;\n /**\n * Returns the square root of a number.\n * @param x A numeric expression.\n */\n sqrt(x: number): number;\n /**\n * Returns the tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tan(x: number): number;\n}\n/** An intrinsic object that provides basic mathematics functionality and constants. */\ndeclare var Math: Math;\n\n/** Enables basic storage and retrieval of dates and times. */\ninterface Date {\n /** Returns a string representation of a date. The format of the string depends on the locale. */\n toString(): string;\n /** Returns a date as a string value. */\n toDateString(): string;\n /** Returns a time as a string value. */\n toTimeString(): string;\n /** Returns a value as a string value appropriate to the host environment's current locale. */\n toLocaleString(): string;\n /** Returns a date as a string value appropriate to the host environment's current locale. */\n toLocaleDateString(): string;\n /** Returns a time as a string value appropriate to the host environment's current locale. */\n toLocaleTimeString(): string;\n /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n valueOf(): number;\n /** Gets the time value in milliseconds. */\n getTime(): number;\n /** Gets the year, using local time. */\n getFullYear(): number;\n /** Gets the year using Universal Coordinated Time (UTC). */\n getUTCFullYear(): number;\n /** Gets the month, using local time. */\n getMonth(): number;\n /** Gets the month of a Date object using Universal Coordinated Time (UTC). */\n getUTCMonth(): number;\n /** Gets the day-of-the-month, using local time. */\n getDate(): number;\n /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */\n getUTCDate(): number;\n /** Gets the day of the week, using local time. */\n getDay(): number;\n /** Gets the day of the week using Universal Coordinated Time (UTC). */\n getUTCDay(): number;\n /** Gets the hours in a date, using local time. */\n getHours(): number;\n /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */\n getUTCHours(): number;\n /** Gets the minutes of a Date object, using local time. */\n getMinutes(): number;\n /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */\n getUTCMinutes(): number;\n /** Gets the seconds of a Date object, using local time. */\n getSeconds(): number;\n /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCSeconds(): number;\n /** Gets the milliseconds of a Date, using local time. */\n getMilliseconds(): number;\n /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCMilliseconds(): number;\n /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */\n getTimezoneOffset(): number;\n /**\n * Sets the date and time value in the Date object.\n * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\n */\n setTime(time: number): number;\n /**\n * Sets the milliseconds value in the Date object using local time.\n * @param ms A numeric value equal to the millisecond value.\n */\n setMilliseconds(ms: number): number;\n /**\n * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\n * @param ms A numeric value equal to the millisecond value.\n */\n setUTCMilliseconds(ms: number): number;\n\n /**\n * Sets the seconds value in the Date object using local time.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setSeconds(sec: number, ms?: number): number;\n /**\n * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCSeconds(sec: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using local time.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the hour value in the Date object using local time.\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the numeric day-of-the-month value of the Date object using local time.\n * @param date A numeric value equal to the day of the month.\n */\n setDate(date: number): number;\n /**\n * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\n * @param date A numeric value equal to the day of the month.\n */\n setUTCDate(date: number): number;\n /**\n * Sets the month value in the Date object using local time.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @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.\n */\n setMonth(month: number, date?: number): number;\n /**\n * Sets the month value in the Date object using Universal Coordinated Time (UTC).\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @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.\n */\n setUTCMonth(month: number, date?: number): number;\n /**\n * Sets the year of the Date object using local time.\n * @param year A numeric value for the year.\n * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\n * @param date A numeric value equal for the day of the month.\n */\n setFullYear(year: number, month?: number, date?: number): number;\n /**\n * Sets the year value in the Date object using Universal Coordinated Time (UTC).\n * @param year A numeric value equal to the year.\n * @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.\n * @param date A numeric value equal to the day of the month.\n */\n setUTCFullYear(year: number, month?: number, date?: number): number;\n /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\n toUTCString(): string;\n /** Returns a date as a string value in ISO format. */\n toISOString(): string;\n /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */\n toJSON(key?: any): string;\n}\n\ninterface DateConstructor {\n new(): Date;\n new(value: number | string): Date;\n new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;\n (): string;\n readonly prototype: Date;\n /**\n * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.\n * @param s A date string\n */\n parse(s: string): number;\n /**\n * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\n * @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.\n * @param month The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n now(): number;\n}\n\ndeclare var Date: DateConstructor;\n\ninterface RegExpMatchArray extends Array<string> {\n index?: number;\n input?: string;\n}\n\ninterface RegExpExecArray extends Array<string> {\n index: number;\n input: string;\n}\n\ninterface RegExp {\n /**\n * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.\n * @param string The String object or string literal on which to perform the search.\n */\n exec(string: string): RegExpExecArray | null;\n\n /**\n * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.\n * @param string String on which to perform the search.\n */\n test(string: string): boolean;\n\n /** 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. */\n readonly source: string;\n\n /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */\n readonly global: boolean;\n\n /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */\n readonly ignoreCase: boolean;\n\n /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */\n readonly multiline: boolean;\n\n lastIndex: number;\n\n // Non-standard extensions\n /** @deprecated A legacy feature for browser compatibility */\n compile(pattern: string, flags?: string): this;\n}\n\ninterface RegExpConstructor {\n new(pattern: RegExp | string): RegExp;\n new(pattern: string, flags?: string): RegExp;\n (pattern: RegExp | string): RegExp;\n (pattern: string, flags?: string): RegExp;\n readonly prototype: RegExp;\n\n // Non-standard extensions\n /** @deprecated A legacy feature for browser compatibility */\n $1: string;\n /** @deprecated A legacy feature for browser compatibility */\n $2: string;\n /** @deprecated A legacy feature for browser compatibility */\n $3: string;\n /** @deprecated A legacy feature for browser compatibility */\n $4: string;\n /** @deprecated A legacy feature for browser compatibility */\n $5: string;\n /** @deprecated A legacy feature for browser compatibility */\n $6: string;\n /** @deprecated A legacy feature for browser compatibility */\n $7: string;\n /** @deprecated A legacy feature for browser compatibility */\n $8: string;\n /** @deprecated A legacy feature for browser compatibility */\n $9: string;\n /** @deprecated A legacy feature for browser compatibility */\n input: string;\n /** @deprecated A legacy feature for browser compatibility */\n $_: string;\n /** @deprecated A legacy feature for browser compatibility */\n lastMatch: string;\n /** @deprecated A legacy feature for browser compatibility */\n \"$&\": string;\n /** @deprecated A legacy feature for browser compatibility */\n lastParen: string;\n /** @deprecated A legacy feature for browser compatibility */\n \"$+\": string;\n /** @deprecated A legacy feature for browser compatibility */\n leftContext: string;\n /** @deprecated A legacy feature for browser compatibility */\n \"$`\": string;\n /** @deprecated A legacy feature for browser compatibility */\n rightContext: string;\n /** @deprecated A legacy feature for browser compatibility */\n \"$'\": string;\n}\n\ndeclare var RegExp: RegExpConstructor;\n\ninterface Error {\n name: string;\n message: string;\n stack?: string;\n}\n\ninterface ErrorConstructor {\n new(message?: string): Error;\n (message?: string): Error;\n readonly prototype: Error;\n}\n\ndeclare var Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor extends ErrorConstructor {\n new(message?: string): EvalError;\n (message?: string): EvalError;\n readonly prototype: EvalError;\n}\n\ndeclare var EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor extends ErrorConstructor {\n new(message?: string): RangeError;\n (message?: string): RangeError;\n readonly prototype: RangeError;\n}\n\ndeclare var RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor extends ErrorConstructor {\n new(message?: string): ReferenceError;\n (message?: string): ReferenceError;\n readonly prototype: ReferenceError;\n}\n\ndeclare var ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor extends ErrorConstructor {\n new(message?: string): SyntaxError;\n (message?: string): SyntaxError;\n readonly prototype: SyntaxError;\n}\n\ndeclare var SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor extends ErrorConstructor {\n new(message?: string): TypeError;\n (message?: string): TypeError;\n readonly prototype: TypeError;\n}\n\ndeclare var TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor extends ErrorConstructor {\n new(message?: string): URIError;\n (message?: string): URIError;\n readonly prototype: URIError;\n}\n\ndeclare var URIError: URIErrorConstructor;\n\ninterface JSON {\n /**\n * Converts a JavaScript Object Notation (JSON) string into an object.\n * @param text A valid JSON string.\n * @param reviver A function that transforms the results. This function is called for each member of the object.\n * If a member contains nested objects, the nested objects are transformed before the parent object is.\n */\n parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer A function that transforms the results.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\n}\n\n/**\n * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.\n */\ndeclare var JSON: JSON;\n\n\n/////////////////////////////\n/// ECMAScript Array API (specially handled by compiler)\n/////////////////////////////\n\ninterface ReadonlyArray<T> {\n /**\n * Gets the length of the array. This is a number one higher than the highest element defined in an array.\n */\n readonly length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @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.\n */\n join(separator?: string): string;\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array.\n * @param searchElement The value to locate in the array.\n * @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.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @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.\n */\n forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @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.\n * @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.\n */\n map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n\n readonly [n: number]: T;\n}\n\ninterface ConcatArray<T> {\n readonly length: number;\n readonly [n: number]: T;\n join(separator?: string): string;\n slice(start?: number, end?: number): T[];\n}\n\ninterface Array<T> {\n /**\n * Gets or sets the length of the array. This is a number one higher than the highest index in the array.\n */\n length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Removes the last element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n pop(): T | undefined;\n /**\n * Appends new elements to the end of an array, and returns the new length of the array.\n * @param items New elements to add to the array.\n */\n push(...items: T[]): number;\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array into a string, separated by the specified separator string.\n * @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.\n */\n join(separator?: string): string;\n /**\n * Reverses the elements in an array in place.\n * This method mutates the array and returns a reference to the same array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n shift(): T | undefined;\n /**\n * Returns a copy of a section of an array.\n * For both start and end, a negative index can be used to indicate an offset from the end of the array.\n * For example, -2 refers to the second to last element of the array.\n * @param start The beginning index of the specified portion of the array.\n * If start is undefined, then the slice begins at index 0.\n * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the array.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Sorts an array in place.\n * This method mutates the array and returns a reference to the same array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: T, b: T) => number): this;\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount?: number): T[];\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the array in place of the deleted elements.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an array, and returns the new length of the array.\n * @param items Elements to insert at the start of the array.\n */\n unshift(...items: T[]): number;\n /**\n * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @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.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @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.\n */\n forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @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.\n * @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.\n */\n map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @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.\n * @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.\n */\n filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * 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.\n * @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.\n * @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.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n\n [n: number]: T;\n}\n\ninterface ArrayConstructor {\n new(arrayLength?: number): any[];\n new <T>(arrayLength: number): T[];\n new <T>(...items: T[]): T[];\n (arrayLength?: number): any[];\n <T>(arrayLength: number): T[];\n <T>(...items: T[]): T[];\n isArray(arg: any): arg is any[];\n readonly prototype: any[];\n}\n\ndeclare var Array: ArrayConstructor;\n\ninterface TypedPropertyDescriptor<T> {\n enumerable?: boolean;\n configurable?: boolean;\n writable?: boolean;\n value?: T;\n get?: () => T;\n set?: (value: T) => void;\n}\n\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;\n\ndeclare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\n\ninterface PromiseLike<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;\n}\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\n\n /**\n * Attaches a callback for only the rejection of the Promise.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of the callback.\n */\n catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\n}\n\n/**\n * Recursively unwraps the \"awaited type\" of a type. Non-promise \"thenables\" should resolve to `never`. This emulates the behavior of `await`.\n */\ntype Awaited<T> =\n T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode\n T extends object & { then(onfulfilled: infer F): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped\n F extends ((value: infer V, ...args: any) => any) ? // if the argument to `then` is callable, extracts the first argument\n Awaited<V> : // recursively unwrap the value\n never : // the argument to `then` was not callable\n T; // non-object or non-thenable\n\ninterface ArrayLike<T> {\n readonly length: number;\n readonly [n: number]: T;\n}\n\n/**\n * Make all properties in T optional\n */\ntype Partial<T> = {\n [P in keyof T]?: T[P];\n};\n\n/**\n * Make all properties in T required\n */\ntype Required<T> = {\n [P in keyof T]-?: T[P];\n};\n\n/**\n * Make all properties in T readonly\n */\ntype Readonly<T> = {\n readonly [P in keyof T]: T[P];\n};\n\n/**\n * From T, pick a set of properties whose keys are in the union K\n */\ntype Pick<T, K extends keyof T> = {\n [P in K]: T[P];\n};\n\n/**\n * Construct a type with a set of properties K of type T\n */\ntype Record<K extends keyof any, T> = {\n [P in K]: T;\n};\n\n/**\n * Exclude from T those types that are assignable to U\n */\ntype Exclude<T, U> = T extends U ? never : T;\n\n/**\n * Extract from T those types that are assignable to U\n */\ntype Extract<T, U> = T extends U ? T : never;\n\n/**\n * Construct a type with the properties of T except for those in type K.\n */\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\n\n/**\n * Exclude null and undefined from T\n */\ntype NonNullable<T> = T extends null | undefined ? never : T;\n\n/**\n * Obtain the parameters of a function type in a tuple\n */\ntype Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the parameters of a constructor function type in a tuple\n */\ntype ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the return type of a function type\n */\ntype ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\n\n/**\n * Obtain the return type of a constructor function type\n */\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\n\n/**\n * Convert string literal type to uppercase\n */\ntype Uppercase<S extends string> = intrinsic;\n\n/**\n * Convert string literal type to lowercase\n */\ntype Lowercase<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to uppercase\n */\ntype Capitalize<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to lowercase\n */\ntype Uncapitalize<S extends string> = intrinsic;\n\n/**\n * Marker for contextual 'this' type\n */\ninterface ThisType<T> { }\n\n/**\n * Represents a raw buffer of binary data, which is used to store data for the\n * different typed arrays. ArrayBuffers cannot be read from or written to directly,\n * but can be passed to a typed array or DataView Object to interpret the raw\n * buffer as needed.\n */\ninterface ArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an ArrayBuffer.\n */\n slice(begin: number, end?: number): ArrayBuffer;\n}\n\n/**\n * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.\n */\ninterface ArrayBufferTypes {\n ArrayBuffer: ArrayBuffer;\n}\ntype ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];\n\ninterface ArrayBufferConstructor {\n readonly prototype: ArrayBuffer;\n new(byteLength: number): ArrayBuffer;\n isView(arg: any): arg is ArrayBufferView;\n}\ndeclare var ArrayBuffer: ArrayBufferConstructor;\n\ninterface ArrayBufferView {\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n byteOffset: number;\n}\n\ninterface DataView {\n readonly buffer: ArrayBuffer;\n readonly byteLength: number;\n readonly byteOffset: number;\n /**\n * Gets the Float32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getFloat32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Float64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getFloat64(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Int8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt8(byteOffset: number): number;\n\n /**\n * Gets the Int16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt16(byteOffset: number, littleEndian?: boolean): number;\n /**\n * Gets the Int32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint8(byteOffset: number): number;\n\n /**\n * Gets the Uint16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint16(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Stores an Float32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Float64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setInt8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Int16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setUint8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Uint16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written,\n * otherwise a little-endian value should be written.\n */\n setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\n\ninterface DataViewConstructor {\n readonly prototype: DataView;\n new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare var DataView: DataViewConstructor;\n\n/**\n * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Int8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Int8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int8Array;\n\n [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new(length: number): Int8Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare var Int8Array: Int8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8Array;\n\n [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new(length: number): Uint8Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare var Uint8Array: Uint8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\n * If the requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8ClampedArray {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8ClampedArray;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8ClampedArray;\n\n [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new(length: number): Uint8ClampedArray;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var Uint8ClampedArray: Uint8ClampedArrayConstructor;\n\n/**\n * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Int16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int16Array;\n\n [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new(length: number): Int16Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare var Int16Array: Int16ArrayConstructor;\n\n/**\n * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint16Array;\n\n [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new(length: number): Uint16Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare var Uint16Array: Uint16ArrayConstructor;\n/**\n * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Int32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int32Array;\n\n [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new(length: number): Int32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare var Int32Array: Int32ArrayConstructor;\n\n/**\n * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Uint32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint32Array;\n\n [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new(length: number): Uint32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare var Uint32Array: Uint32ArrayConstructor;\n\n/**\n * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\n * of bytes could not be allocated an exception is raised.\n */\ninterface Float32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Float32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float32Array;\n\n [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new(length: number): Float32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare var Float32Array: Float32ArrayConstructor;\n\n/**\n * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Float64Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float64Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.\n */\n slice(start?: number, end?: number): Float64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they're equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float64Array;\n\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float64Array;\n\n [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new(length: number): Float64Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare var Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: string | undefined;\n localeMatcher?: string | undefined;\n numeric?: boolean | undefined;\n caseFirst?: string | undefined;\n sensitivity?: string | undefined;\n ignorePunctuation?: boolean | undefined;\n }\n\n interface ResolvedCollatorOptions {\n locale: string;\n usage: string;\n sensitivity: string;\n ignorePunctuation: boolean;\n collation: string;\n caseFirst: string;\n numeric: boolean;\n }\n\n interface Collator {\n compare(x: string, y: string): number;\n resolvedOptions(): ResolvedCollatorOptions;\n }\n var Collator: {\n new(locales?: string | string[], options?: CollatorOptions): Collator;\n (locales?: string | string[], options?: CollatorOptions): Collator;\n supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];\n };\n\n interface NumberFormatOptions {\n localeMatcher?: string | undefined;\n style?: string | undefined;\n currency?: string | undefined;\n currencyDisplay?: string | undefined;\n currencySign?: string | undefined;\n useGrouping?: boolean | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n locale: string;\n numberingSystem: string;\n style: string;\n currency?: string;\n currencyDisplay?: string;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n useGrouping: boolean;\n }\n\n interface NumberFormat {\n format(value: number): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n var NumberFormat: {\n new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\n };\n\n interface DateTimeFormatOptions {\n localeMatcher?: \"best fit\" | \"lookup\" | undefined;\n weekday?: \"long\" | \"short\" | \"narrow\" | undefined;\n era?: \"long\" | \"short\" | \"narrow\" | undefined;\n year?: \"numeric\" | \"2-digit\" | undefined;\n month?: \"numeric\" | \"2-digit\" | \"long\" | \"short\" | \"narrow\" | undefined;\n day?: \"numeric\" | \"2-digit\" | undefined;\n hour?: \"numeric\" | \"2-digit\" | undefined;\n minute?: \"numeric\" | \"2-digit\" | undefined;\n second?: \"numeric\" | \"2-digit\" | undefined;\n timeZoneName?: \"long\" | \"short\" | undefined;\n formatMatcher?: \"best fit\" | \"basic\" | undefined;\n hour12?: boolean | undefined;\n timeZone?: string | undefined;\n }\n\n interface ResolvedDateTimeFormatOptions {\n locale: string;\n calendar: string;\n numberingSystem: string;\n timeZone: string;\n hour12?: boolean;\n weekday?: string;\n era?: string;\n year?: string;\n month?: string;\n day?: string;\n hour?: string;\n minute?: string;\n second?: string;\n timeZoneName?: string;\n }\n\n interface DateTimeFormat {\n format(date?: Date | number): string;\n resolvedOptions(): ResolvedDateTimeFormatOptions;\n }\n var DateTimeFormat: {\n new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\n };\n}\n\ninterface String {\n /**\n * Determines whether two strings are equivalent in the current or specified locale.\n * @param that String to compare to target string\n * @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.\n * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\n */\n localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;\n}\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Date {\n /**\n * Converts a date and time to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n /**\n * Converts a date to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a time to a string by using the current or specified locale.\n * @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.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n}\n",ka["lib.es6.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2015" />\n/// <reference lib="dom" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',ka["lib.esnext.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="es2021" />\n/// <reference lib="esnext.intl" />\n',ka["lib.esnext.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/// <reference lib="esnext" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',ka["lib.esnext.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Intl {\n // Empty for now\n}\n',ka["lib.esnext.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface AggregateError extends Error {\n errors: any[]\n}\n\ninterface AggregateErrorConstructor {\n new(errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * 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.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>\n}\n',ka["lib.esnext.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface String {\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',ka["lib.esnext.weakref.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface WeakRef<T extends object> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target object, or undefined if the target object has been\n * reclaimed.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target object.\n * @param target The target object for the WeakRef instance.\n */\n new<T extends object>(target?: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers an object with the registry.\n * @param target The target object to register.\n * @param heldValue The value to pass to the finalizer for this object. This cannot be the\n * target object.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * object. If provided (and not undefined), this must be an object. If not provided, the target\n * cannot be unregistered.\n */\n register(target: object, heldValue: any, unregisterToken?: object): void;\n\n /**\n * Unregisters an object from the registry.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target object.\n */\n unregister(unregisterToken: object): void;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.\n */\n new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',ka["lib.scripthost.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n\n/////////////////////////////\n/// Windows Script Host APIS\n/////////////////////////////\n\n\ninterface ActiveXObject {\n new (s: string): any;\n}\ndeclare var ActiveXObject: ActiveXObject;\n\ninterface ITextWriter {\n Write(s: string): void;\n WriteLine(s: string): void;\n Close(): void;\n}\n\ninterface TextStreamBase {\n /**\n * The column number of the current character position in an input stream.\n */\n Column: number;\n\n /**\n * The current line number in an input stream.\n */\n Line: number;\n\n /**\n * Closes a text stream.\n * It is not necessary to close standard streams; they close automatically when the process ends. If\n * you close a standard stream, be aware that any other pointers to that standard stream become invalid.\n */\n Close(): void;\n}\n\ninterface TextStreamWriter extends TextStreamBase {\n /**\n * Sends a string to an output stream.\n */\n Write(s: string): void;\n\n /**\n * Sends a specified number of blank lines (newline characters) to an output stream.\n */\n WriteBlankLines(intLines: number): void;\n\n /**\n * Sends a string followed by a newline character to an output stream.\n */\n WriteLine(s: string): void;\n}\n\ninterface TextStreamReader extends TextStreamBase {\n /**\n * Returns a specified number of characters from an input stream, starting at the current pointer position.\n * Does not return until the ENTER key is pressed.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n Read(characters: number): string;\n\n /**\n * Returns all characters from an input stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadAll(): string;\n\n /**\n * Returns an entire line from an input stream.\n * Although this method extracts the newline character, it does not add it to the returned string.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadLine(): string;\n\n /**\n * Skips a specified number of characters when reading from an input text stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)\n */\n Skip(characters: number): void;\n\n /**\n * Skips the next line when reading from an input text stream.\n * Can only be used on a stream in reading mode, not writing or appending mode.\n */\n SkipLine(): void;\n\n /**\n * Indicates whether the stream pointer position is at the end of a line.\n */\n AtEndOfLine: boolean;\n\n /**\n * Indicates whether the stream pointer position is at the end of a stream.\n */\n AtEndOfStream: boolean;\n}\n\ndeclare var WScript: {\n /**\n * Outputs text to either a message box (under WScript.exe) or the command console window followed by\n * a newline (under CScript.exe).\n */\n Echo(s: any): void;\n\n /**\n * Exposes the write-only error output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdErr: TextStreamWriter;\n\n /**\n * Exposes the write-only output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdOut: TextStreamWriter;\n Arguments: { length: number; Item(n: number): string; };\n\n /**\n * The full path of the currently running script.\n */\n ScriptFullName: string;\n\n /**\n * Forces the script to stop immediately, with an optional exit code.\n */\n Quit(exitCode?: number): number;\n\n /**\n * The Windows Script Host build version number.\n */\n BuildVersion: number;\n\n /**\n * Fully qualified path of the host executable.\n */\n FullName: string;\n\n /**\n * Gets/sets the script mode - interactive(true) or batch(false).\n */\n Interactive: boolean;\n\n /**\n * The name of the host executable (WScript.exe or CScript.exe).\n */\n Name: string;\n\n /**\n * Path of the directory containing the host executable.\n */\n Path: string;\n\n /**\n * The filename of the currently running script.\n */\n ScriptName: string;\n\n /**\n * Exposes the read-only input stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdIn: TextStreamReader;\n\n /**\n * Windows Script Host version\n */\n Version: string;\n\n /**\n * Connects a COM object\'s event sources to functions named with a given prefix, in the form prefix_event.\n */\n ConnectObject(objEventSource: any, strPrefix: string): void;\n\n /**\n * Creates a COM object.\n * @param strProgiID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n CreateObject(strProgID: string, strPrefix?: string): any;\n\n /**\n * Disconnects a COM object from its event sources.\n */\n DisconnectObject(obj: any): void;\n\n /**\n * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.\n * @param strPathname Fully qualified path to the file containing the object persisted to disk.\n * For objects in memory, pass a zero-length string.\n * @param strProgID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;\n\n /**\n * Suspends script execution for a specified length of time, then continues execution.\n * @param intTime Interval (in milliseconds) to suspend script execution.\n */\n Sleep(intTime: number): void;\n};\n\n/**\n * WSH is an alias for WScript under Windows Script Host\n */\ndeclare var WSH: typeof WScript;\n\n/**\n * Represents an Automation SAFEARRAY\n */\ndeclare class SafeArray<T = any> {\n private constructor();\n private SafeArray_typekey: SafeArray<T>;\n}\n\n/**\n * Allows enumerating over a COM collection, which may not have indexed item access.\n */\ninterface Enumerator<T = any> {\n /**\n * Returns true if the current item is the last one in the collection, or the collection is empty,\n * or the current item is undefined.\n */\n atEnd(): boolean;\n\n /**\n * Returns the current item in the collection\n */\n item(): T;\n\n /**\n * Resets the current item in the collection to the first item. If there are no items in the collection,\n * the current item is set to undefined.\n */\n moveFirst(): void;\n\n /**\n * Moves the current item to the next item in the collection. If the enumerator is at the end of\n * the collection or the collection is empty, the current item is set to undefined.\n */\n moveNext(): void;\n}\n\ninterface EnumeratorConstructor {\n new <T = any>(safearray: SafeArray<T>): Enumerator<T>;\n new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;\n new <T = any>(collection: any): Enumerator<T>;\n}\n\ndeclare var Enumerator: EnumeratorConstructor;\n\n/**\n * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.\n */\ninterface VBArray<T = any> {\n /**\n * Returns the number of dimensions (1-based).\n */\n dimensions(): number;\n\n /**\n * Takes an index for each dimension in the array, and returns the item at the corresponding location.\n */\n getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;\n\n /**\n * Returns the smallest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n lbound(dimension?: number): number;\n\n /**\n * Returns the largest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n ubound(dimension?: number): number;\n\n /**\n * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,\n * each successive dimension is appended to the end of the array.\n * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]\n */\n toArray(): T[];\n}\n\ninterface VBArrayConstructor {\n new <T = any>(safeArray: SafeArray<T>): VBArray<T>;\n}\n\ndeclare var VBArray: VBArrayConstructor;\n\n/**\n * Automation date (VT_DATE)\n */\ndeclare class VarDate {\n private constructor();\n private VarDate_typekey: VarDate;\n}\n\ninterface DateConstructor {\n new (vd: VarDate): Date;\n}\n\ninterface Date {\n getVarDate: () => VarDate;\n}\n',ka["lib.webworker.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Worker APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CryptoKeyPair {\n privateKey?: CryptoKey;\n publicKey?: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Client | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n handled?: Promise<undefined>;\n preloadResponse?: Promise<any>;\n replacesClientId?: string;\n request: Request;\n resultingClientId?: string;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FontFaceDescriptors {\n display?: string;\n featureSettings?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: DOMTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PushEventInit extends ExtendableEventInit {\n data?: PushMessageDataInit;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: DOMTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * 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.\n */\n highWaterMark: number;\n}\n\ninterface ReadableStreamDefaultReadDoneResult {\n done: true;\n value?: undefined;\n}\n\ninterface ReadableStreamDefaultReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\n /** 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. */\n credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n /** 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. */\n redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * 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.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: any[];\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: undefined;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\n/** 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. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /** Returns the AbortSignal object associated with this object. */\n readonly signal: AbortSignal;\n /** 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. */\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** 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. */\ninterface AbortSignal extends EventTarget {\n /** Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise. */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n // abort(): AbortSignal; - To be re-added in the future\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/** 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. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream;\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n readonly body: ReadableStream<Uint8Array> | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise<ArrayBuffer>;\n blob(): Promise<Blob>;\n formData(): Promise<FormData>;\n json(): Promise<any>;\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /** Returns the channel name (as passed to the constructor). */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** Closes the BroadcastChannel object, opening it up to garbage collection. */\n close(): void;\n /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface Cache {\n add(request: RequestInfo): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n put(request: RequestInfo, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n */\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * 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.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\n/** 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(). */\ninterface Client {\n readonly frameType: FrameType;\n readonly id: string;\n readonly type: ClientTypes;\n readonly url: string;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n}\n\ndeclare var Client: {\n prototype: Client;\n new(): Client;\n};\n\n/** Provides access to\xa0Client\xa0objects. Access it\xa0via self.clients\xa0within a\xa0service worker. */\ninterface Clients {\n claim(): Promise<void>;\n get(id: string): Promise<Client | undefined>;\n matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;\n openWindow(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var Clients: {\n prototype: Clients;\n new(): Clients;\n};\n\n/** 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. */\ninterface CloseEvent extends Event {\n /** Returns the WebSocket connection close code provided by the server. */\n readonly code: number;\n /** Returns the WebSocket connection close reason provided by the server. */\n readonly reason: string;\n /** Returns true if the connection closed cleanly; false otherwise. */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n /** Available only in secure contexts. */\n readonly subtle: SubtleCrypto;\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomEvent<T = any> extends Event {\n /** Returns any custom data event was created with. Typically used for synthetic events. */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException extends Error {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /** Returns the number of strings in strings. */\n readonly length: number;\n /** Returns true if strings contains string, and false otherwise. */\n contains(string: string): boolean;\n /** Returns the string with index index from strings. */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** (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. */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {\n /** Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */\n readonly name: string;\n onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** Aborts dedicatedWorkerGlobal. */\n close(): void;\n /** 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. */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DedicatedWorkerGlobalScope: {\n prototype: DedicatedWorkerGlobalScope;\n new(): DedicatedWorkerGlobalScope;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: GLenum;\n readonly MIN_EXT: GLenum;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGB16F_EXT: GLenum;\n readonly RGBA16F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface EXT_float_blend {\n}\n\n/** 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. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n readonly SRGB8_ALPHA8_EXT: GLenum;\n readonly SRGB_ALPHA_EXT: GLenum;\n readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_RED_RGTC1_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /** 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. */\n readonly bubbles: boolean;\n cancelBubble: boolean;\n /** 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. */\n readonly cancelable: boolean;\n /** 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. */\n readonly composed: boolean;\n /** Returns the object whose event listener\'s callback is currently being invoked. */\n readonly currentTarget: EventTarget | null;\n /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */\n readonly defaultPrevented: boolean;\n /** Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */\n readonly eventPhase: number;\n /** Returns true if event was dispatched by the user agent, and false otherwise. */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /** Returns the object to which event is dispatched (its target). */\n readonly target: EventTarget | null;\n /** Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin. */\n readonly timeStamp: DOMHighResTimeStamp;\n /** Returns the type of event, e.g. "click", "hashchange", or "submit". */\n readonly type: string;\n /** 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. */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /** 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. */\n preventDefault(): void;\n /** 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. */\n stopImmediatePropagation(): void;\n /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */\n stopPropagation(): void;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /** Returns the state of this EventSource object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL providing the event stream. */\n readonly url: string;\n /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */\n readonly withCredentials: boolean;\n /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */\n close(): void;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * 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.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /** 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. */\n dispatchEvent(event: Event): boolean;\n /** Removes the event listener in target\'s event listener list with the same type, callback, and options. */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** 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. */\ninterface ExtendableEvent extends Event {\n waitUntil(f: any): void;\n}\n\ndeclare var ExtendableEvent: {\n prototype: ExtendableEvent;\n new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;\n};\n\n/** 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. */\ninterface ExtendableMessageEvent extends ExtendableEvent {\n readonly data: any;\n readonly lastEventId: string;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort>;\n readonly source: Client | ServiceWorker | MessagePort | null;\n}\n\ndeclare var ExtendableMessageEvent: {\n prototype: ExtendableMessageEvent;\n new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;\n};\n\n/** 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. */\ninterface FetchEvent extends ExtendableEvent {\n readonly clientId: string;\n readonly handled: Promise<undefined>;\n readonly request: Request;\n readonly resultingClientId: string;\n respondWith(r: Response | PromiseLike<Response>): void;\n}\n\ndeclare var FetchEvent: {\n prototype: FetchEvent;\n new(type: string, eventInitDict: FetchEventInit): FetchEvent;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** 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. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/** 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. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n readonly readyState: number;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\n/** Allows to read File or Blob objects in a synchronous way. */\ninterface FileReaderSync {\n readAsArrayBuffer(blob: Blob): ArrayBuffer;\n /** @deprecated */\n readAsBinaryString(blob: Blob): string;\n readAsDataURL(blob: Blob): string;\n readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n prototype: FileReaderSync;\n new(): FileReaderSync;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: string;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise<FontFace>;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n variationSettings: string;\n weight: string;\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise<FontFaceSet>;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** 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". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(): FormData;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** 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. */\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */\n readonly direction: IDBCursorDirection;\n /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly key: IDBValidKey;\n /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly primaryKey: IDBValidKey;\n readonly request: IDBRequest;\n /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */\n readonly source: IDBObjectStore | IDBIndex;\n /** Advances the cursor through the next count records in range. */\n advance(count: number): void;\n /** Advances the cursor to the next record in range. */\n continue(key?: IDBValidKey): void;\n /** 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. */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/** 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. */\ninterface IDBCursorWithValue extends IDBCursor {\n /** Returns the cursor\'s current value. */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/** 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. */\ninterface IDBDatabase extends EventTarget {\n /** Returns the name of the database. */\n readonly name: string;\n /** Returns a list of the names of object stores in the database. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /** Returns the version of the database. */\n readonly version: number;\n /** Closes the connection once all running transactions have finished. */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteObjectStore(name: string): void;\n /** 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. */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/** 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.) */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n */\n cmp(first: any, second: any): number;\n databases(): Promise<IDBDatabaseInfo[]>;\n /** 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. */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /** 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. */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/** 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. */\ninterface IDBIndex {\n readonly keyPath: string | string[];\n readonly multiEntry: boolean;\n /** Returns the name of the index. */\n name: string;\n /** Returns the IDBObjectStore the index belongs to. */\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/** 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: */\ninterface IDBKeyRange {\n /** Returns lower bound, or undefined if none. */\n readonly lower: any;\n /** Returns true if the lower open flag is set, and false otherwise. */\n readonly lowerOpen: boolean;\n /** Returns upper bound, or undefined if none. */\n readonly upper: any;\n /** Returns true if the upper open flag is set, and false otherwise. */\n readonly upperOpen: boolean;\n /** Returns true if key is included in the range, and false otherwise. */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /** 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. */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange spanning only key. */\n only(value: any): IDBKeyRange;\n /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** 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.) */\ninterface IDBObjectStore {\n /** Returns true if the store has a key generator, and false otherwise. */\n readonly autoIncrement: boolean;\n /** Returns a list of the names of indexes in the store. */\n readonly indexNames: DOMStringList;\n /** Returns the key path of the store, or null if none. */\n readonly keyPath: string | string[];\n /** Returns the name of the store. */\n name: string;\n /** Returns the associated transaction. */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * 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.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * 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.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": Event;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/** 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. */\ninterface IDBRequest<T = any> extends EventTarget {\n /** 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. */\n readonly error: DOMException | null;\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** Returns "pending" until a request is complete, then returns "done". */\n readonly readyState: IDBRequestReadyState;\n /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */\n readonly result: T;\n /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /** 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. */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n /** Returns the transaction\'s connection. */\n readonly db: IDBDatabase;\n /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */\n readonly error: DOMException | null;\n /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */\n readonly mode: IDBTransactionMode;\n /** 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. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */\n abort(): void;\n commit(): void;\n /** Returns an IDBObjectStore in the transaction\'s scope. */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\ninterface ImageBitmap {\n /** Returns the intrinsic height of the image, in CSS pixels. */\n readonly height: number;\n /** Returns the intrinsic width of the image, in CSS pixels. */\n readonly width: number;\n /** Releases imageBitmap\'s underlying bitmap data. */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/** 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(). */\ninterface ImageData {\n /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */\n readonly data: Uint8ClampedArray;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly height: number;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: GLenum;\n}\n\ninterface MediaCapabilities {\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n /** Returns the first MessagePort object. */\n readonly port1: MessagePort;\n /** Returns the second MessagePort object. */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n /** Returns the data of the message. */\n readonly data: T;\n /** Returns the last event ID string, for server-sent events. */\n readonly lastEventId: string;\n /** Returns the origin of the message, for server-sent events and cross-document messaging. */\n readonly origin: string;\n /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */\n readonly ports: ReadonlyArray<MessagePort>;\n /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** Disconnects the port, so that it is no longer active. */\n close(): void;\n /**\n * 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.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Begins dispatching messages received on the port. */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorID {\n /** @deprecated */\n readonly appCodeName: string;\n /** @deprecated */\n readonly appName: string;\n /** @deprecated */\n readonly appVersion: string;\n /** @deprecated */\n readonly platform: string;\n /** @deprecated */\n readonly product: string;\n readonly userAgent: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorNetworkInformation {\n readonly connection: NetworkInformation;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n readonly storage: StorageManager;\n}\n\ninterface NetworkInformation extends EventTarget {\n readonly type: ConnectionType;\n}\n\ndeclare var NetworkInformation: {\n prototype: NetworkInformation;\n new(): NetworkInformation;\n};\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n readonly body: string;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string;\n readonly lang: string;\n onclick: ((this: Notification, ev: Event) => any) | null;\n onclose: ((this: Notification, ev: Event) => any) | null;\n onerror: ((this: Notification, ev: Event) => any) | null;\n onshow: ((this: Notification, ev: Event) => any) | null;\n readonly tag: string;\n readonly title: string;\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n readonly permission: NotificationPermission;\n};\n\n/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */\ninterface NotificationEvent extends ExtendableEvent {\n readonly action: string;\n readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n prototype: NotificationEvent;\n new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** 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. */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: GLenum;\n}\n\n/** 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. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: GLenum;\n}\n\ninterface OVR_multiview2 {\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;\n readonly MAX_VIEWS_OVR: GLenum;\n}\n\n/** @deprecated this is not available in most browsers */\ninterface OffscreenCanvas extends EventTarget {\n}\n\n/** 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. */\ninterface Path2D extends CanvasPath {\n /** Adds to the path the path given by the argument. */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/** 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. */\ninterface Performance extends EventTarget {\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n readonly timeOrigin: DOMHighResTimeStamp;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n now(): DOMHighResTimeStamp;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/** 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). */\ninterface PerformanceEntry {\n readonly duration: DOMHighResTimeStamp;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/** 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. */\ninterface PerformanceMark extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** 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. */\ninterface PerformanceMeasure extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\ninterface PerformanceObserver {\n disconnect(): void;\n observe(options?: PerformanceObserverInit): void;\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/** 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. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: DOMHighResTimeStamp;\n readonly connectStart: DOMHighResTimeStamp;\n readonly decodedBodySize: number;\n readonly domainLookupEnd: DOMHighResTimeStamp;\n readonly domainLookupStart: DOMHighResTimeStamp;\n readonly encodedBodySize: number;\n readonly fetchStart: DOMHighResTimeStamp;\n readonly initiatorType: string;\n readonly nextHopProtocol: string;\n readonly redirectEnd: DOMHighResTimeStamp;\n readonly redirectStart: DOMHighResTimeStamp;\n readonly requestStart: DOMHighResTimeStamp;\n readonly responseEnd: DOMHighResTimeStamp;\n readonly responseStart: DOMHighResTimeStamp;\n readonly secureConnectionStart: DOMHighResTimeStamp;\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n readonly transferSize: number;\n readonly workerStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n readonly description: string;\n readonly duration: DOMHighResTimeStamp;\n readonly name: string;\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\ninterface Permissions {\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/** 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>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly target: T | null;\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: Promise<any>;\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface PushEvent extends ExtendableEvent {\n readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n prototype: PushEvent;\n new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n */\ninterface PushManager {\n getSubscription(): Promise<PushSubscription | null>;\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.\n * Available only in secure contexts.\n */\ninterface PushMessageData {\n arrayBuffer(): ArrayBuffer;\n blob(): Blob;\n json(): any;\n text(): string;\n}\n\ndeclare var PushMessageData: {\n prototype: PushMessageData;\n new(): PushMessageData;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n */\ninterface PushSubscription {\n readonly endpoint: string;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): PushSubscriptionJSON;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/** 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. */\ninterface ReadableStream<R = any> {\n readonly locked: boolean;\n cancel(reason?: any): Promise<void>;\n getReader(): ReadableStreamDefaultReader<R>;\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk?: R): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n read(): Promise<ReadableStreamDefaultReadResult<R>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n readonly closed: Promise<undefined>;\n cancel(reason?: any): Promise<void>;\n}\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching. */\n readonly cache: RequestCache;\n /** 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. */\n readonly credentials: RequestCredentials;\n /** Returns the kind of resource requested by request, e.g., "document" or "script". */\n readonly destination: RequestDestination;\n /** 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. */\n readonly headers: Headers;\n /** 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] */\n readonly integrity: string;\n /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */\n readonly keepalive: boolean;\n /** Returns request\'s HTTP method, which is "GET" by default. */\n readonly method: string;\n /** 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. */\n readonly mode: RequestMode;\n /** 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. */\n readonly redirect: RequestRedirect;\n /** 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. */\n readonly referrer: string;\n /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer. */\n readonly referrerPolicy: ReferrerPolicy;\n /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */\n readonly signal: AbortSignal;\n /** Returns the URL of request as a string. */\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo, init?: RequestInit): Request;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n readonly headers: Headers;\n readonly ok: boolean;\n readonly redirected: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly type: ResponseType;\n readonly url: string;\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string | URL, status?: number): Response;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly disposition: SecurityPolicyViolationEventDisposition;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: string;\n readonly sample: string;\n readonly sourceFile: string;\n readonly statusCode: number;\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n readonly scriptURL: string;\n readonly state: ServiceWorkerState;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "activate": ExtendableEvent;\n "fetch": FetchEvent;\n "install": ExtendableEvent;\n "message": ExtendableMessageEvent;\n "messageerror": MessageEvent;\n "notificationclick": NotificationEvent;\n "notificationclose": NotificationEvent;\n "push": PushEvent;\n}\n\n/** This ServiceWorker API interface represents the global execution context of a service worker. */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n readonly clients: Clients;\n onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;\n oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;\n onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;\n readonly registration: ServiceWorkerRegistration;\n skipWaiting(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerGlobalScope: {\n prototype: ServiceWorkerGlobalScope;\n new(): ServiceWorkerGlobalScope;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * 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.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n readonly active: ServiceWorker | null;\n readonly installing: ServiceWorker | null;\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n readonly pushManager: PushManager;\n readonly scope: string;\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n readonly waiting: ServiceWorker | null;\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n unregister(): Promise<boolean>;\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "connect": MessageEvent;\n}\n\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n /** 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. */\n readonly name: string;\n onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** Aborts sharedWorkerGlobal. */\n close(): void;\n addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorkerGlobalScope: {\n prototype: SharedWorkerGlobalScope;\n new(): SharedWorkerGlobalScope;\n};\n\n/** Available only in secure contexts. */\ninterface StorageManager {\n estimate(): Promise<StorageEstimate>;\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/**\n * 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).\n * Available only in secure contexts.\n */\ninterface SubtleCrypto {\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n 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>;\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/** 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. */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * 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.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n */\n decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /** Returns encoding\'s name, lowercased. */\n readonly encoding: string;\n /** Returns true if error mode is "fatal", otherwise false. */\n readonly fatal: boolean;\n /** Returns the value of ignore BOM. */\n readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** 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. */\ninterface TextEncoder extends TextEncoderCommon {\n /** Returns the result of running UTF-8\'s encoder. */\n encode(input?: string): Uint8Array;\n /** 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. */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /** Returns "utf-8". */\n readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n /** Returns the measurement described below. */\n readonly actualBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxLeft: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxRight: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TransformStream<I = any, O = any> {\n readonly readable: ReadableStream<O>;\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n readonly desiredSize: number | null;\n enqueue(chunk?: O): void;\n error(reason?: any): void;\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/** The URL\xa0interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n toString(): string;\n readonly origin: string;\n password: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n readonly searchParams: URLSearchParams;\n username: string;\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n createObjectURL(obj: Blob): string;\n revokeObjectURL(url: string): void;\n};\n\ninterface URLSearchParams {\n /** Appends a specified key/value pair as a new search parameter. */\n append(name: string, value: string): void;\n /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */\n delete(name: string): void;\n /** Returns the first value associated to the given search parameter. */\n get(name: string): string | null;\n /** Returns all the values association with a given search parameter. */\n getAll(name: string): string[];\n /** Returns a Boolean indicating if such a search parameter exists. */\n has(name: string): boolean;\n /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */\n set(name: string, value: string): void;\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n toString(): string;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGBA32F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_astc {\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: GLenum;\n readonly COMPRESSED_RG11_EAC: GLenum;\n readonly COMPRESSED_RGB8_ETC2: GLenum;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SIGNED_R11_EAC: GLenum;\n readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;\n readonly COMPRESSED_SRGB8_ETC2: GLenum;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;\n}\n\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;\n}\n\n/** 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. */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_RENDERER_WEBGL: GLenum;\n readonly UNMASKED_VENDOR_WEBGL: GLenum;\n}\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: GLenum;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT10_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT11_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT12_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT13_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT14_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT15_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT1_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT2_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT3_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT4_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT5_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT6_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT7_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT8_WEBGL: GLenum;\n readonly COLOR_ATTACHMENT9_WEBGL: GLenum;\n readonly DRAW_BUFFER0_WEBGL: GLenum;\n readonly DRAW_BUFFER10_WEBGL: GLenum;\n readonly DRAW_BUFFER11_WEBGL: GLenum;\n readonly DRAW_BUFFER12_WEBGL: GLenum;\n readonly DRAW_BUFFER13_WEBGL: GLenum;\n readonly DRAW_BUFFER14_WEBGL: GLenum;\n readonly DRAW_BUFFER15_WEBGL: GLenum;\n readonly DRAW_BUFFER1_WEBGL: GLenum;\n readonly DRAW_BUFFER2_WEBGL: GLenum;\n readonly DRAW_BUFFER3_WEBGL: GLenum;\n readonly DRAW_BUFFER4_WEBGL: GLenum;\n readonly DRAW_BUFFER5_WEBGL: GLenum;\n readonly DRAW_BUFFER6_WEBGL: GLenum;\n readonly DRAW_BUFFER7_WEBGL: GLenum;\n readonly DRAW_BUFFER8_WEBGL: GLenum;\n readonly DRAW_BUFFER9_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;\n readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGL2RenderingContextBase {\n beginQuery(target: GLenum, query: WebGLQuery): void;\n beginTransformFeedback(primitiveMode: GLenum): void;\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createQuery(): WebGLQuery | null;\n createSampler(): WebGLSampler | null;\n createTransformFeedback(): WebGLTransformFeedback | null;\n createVertexArray(): WebGLVertexArrayObject | null;\n deleteQuery(query: WebGLQuery | null): void;\n deleteSampler(sampler: WebGLSampler | null): void;\n deleteSync(sync: WebGLSync | null): void;\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n drawBuffers(buffers: GLenum[]): void;\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n endQuery(target: GLenum): void;\n endTransformFeedback(): void;\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n getIndexedParameter(target: GLenum, index: GLuint): any;\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n isQuery(query: WebGLQuery | null): GLboolean;\n isSampler(sampler: WebGLSampler | null): GLboolean;\n isSync(sync: WebGLSync | null): GLboolean;\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n pauseTransformFeedback(): void;\n readBuffer(src: GLenum): void;\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n resumeTransformFeedback(): void;\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n 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?: GLuint): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly ACTIVE_UNIFORM_BLOCKS: GLenum;\n readonly ALREADY_SIGNALED: GLenum;\n readonly ANY_SAMPLES_PASSED: GLenum;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;\n readonly COLOR: GLenum;\n readonly COLOR_ATTACHMENT1: GLenum;\n readonly COLOR_ATTACHMENT10: GLenum;\n readonly COLOR_ATTACHMENT11: GLenum;\n readonly COLOR_ATTACHMENT12: GLenum;\n readonly COLOR_ATTACHMENT13: GLenum;\n readonly COLOR_ATTACHMENT14: GLenum;\n readonly COLOR_ATTACHMENT15: GLenum;\n readonly COLOR_ATTACHMENT2: GLenum;\n readonly COLOR_ATTACHMENT3: GLenum;\n readonly COLOR_ATTACHMENT4: GLenum;\n readonly COLOR_ATTACHMENT5: GLenum;\n readonly COLOR_ATTACHMENT6: GLenum;\n readonly COLOR_ATTACHMENT7: GLenum;\n readonly COLOR_ATTACHMENT8: GLenum;\n readonly COLOR_ATTACHMENT9: GLenum;\n readonly COMPARE_REF_TO_TEXTURE: GLenum;\n readonly CONDITION_SATISFIED: GLenum;\n readonly COPY_READ_BUFFER: GLenum;\n readonly COPY_READ_BUFFER_BINDING: GLenum;\n readonly COPY_WRITE_BUFFER: GLenum;\n readonly COPY_WRITE_BUFFER_BINDING: GLenum;\n readonly CURRENT_QUERY: GLenum;\n readonly DEPTH: GLenum;\n readonly DEPTH24_STENCIL8: GLenum;\n readonly DEPTH32F_STENCIL8: GLenum;\n readonly DEPTH_COMPONENT24: GLenum;\n readonly DEPTH_COMPONENT32F: GLenum;\n readonly DRAW_BUFFER0: GLenum;\n readonly DRAW_BUFFER1: GLenum;\n readonly DRAW_BUFFER10: GLenum;\n readonly DRAW_BUFFER11: GLenum;\n readonly DRAW_BUFFER12: GLenum;\n readonly DRAW_BUFFER13: GLenum;\n readonly DRAW_BUFFER14: GLenum;\n readonly DRAW_BUFFER15: GLenum;\n readonly DRAW_BUFFER2: GLenum;\n readonly DRAW_BUFFER3: GLenum;\n readonly DRAW_BUFFER4: GLenum;\n readonly DRAW_BUFFER5: GLenum;\n readonly DRAW_BUFFER6: GLenum;\n readonly DRAW_BUFFER7: GLenum;\n readonly DRAW_BUFFER8: GLenum;\n readonly DRAW_BUFFER9: GLenum;\n readonly DRAW_FRAMEBUFFER: GLenum;\n readonly DRAW_FRAMEBUFFER_BINDING: GLenum;\n readonly DYNAMIC_COPY: GLenum;\n readonly DYNAMIC_READ: GLenum;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;\n readonly FLOAT_MAT2x3: GLenum;\n readonly FLOAT_MAT2x4: GLenum;\n readonly FLOAT_MAT3x2: GLenum;\n readonly FLOAT_MAT3x4: GLenum;\n readonly FLOAT_MAT4x2: GLenum;\n readonly FLOAT_MAT4x3: GLenum;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;\n readonly FRAMEBUFFER_DEFAULT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;\n readonly HALF_FLOAT: GLenum;\n readonly INTERLEAVED_ATTRIBS: GLenum;\n readonly INT_2_10_10_10_REV: GLenum;\n readonly INT_SAMPLER_2D: GLenum;\n readonly INT_SAMPLER_2D_ARRAY: GLenum;\n readonly INT_SAMPLER_3D: GLenum;\n readonly INT_SAMPLER_CUBE: GLenum;\n readonly INVALID_INDEX: GLenum;\n readonly MAX: GLenum;\n readonly MAX_3D_TEXTURE_SIZE: GLenum;\n readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;\n readonly MAX_COLOR_ATTACHMENTS: GLenum;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_DRAW_BUFFERS: GLenum;\n readonly MAX_ELEMENTS_INDICES: GLenum;\n readonly MAX_ELEMENTS_VERTICES: GLenum;\n readonly MAX_ELEMENT_INDEX: GLenum;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;\n readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly MAX_SAMPLES: GLenum;\n readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;\n readonly MAX_TEXTURE_LOD_BIAS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;\n readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;\n readonly MAX_VARYING_COMPONENTS: GLenum;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;\n readonly MIN: GLenum;\n readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;\n readonly OBJECT_TYPE: GLenum;\n readonly PACK_ROW_LENGTH: GLenum;\n readonly PACK_SKIP_PIXELS: GLenum;\n readonly PACK_SKIP_ROWS: GLenum;\n readonly PIXEL_PACK_BUFFER: GLenum;\n readonly PIXEL_PACK_BUFFER_BINDING: GLenum;\n readonly PIXEL_UNPACK_BUFFER: GLenum;\n readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;\n readonly QUERY_RESULT: GLenum;\n readonly QUERY_RESULT_AVAILABLE: GLenum;\n readonly R11F_G11F_B10F: GLenum;\n readonly R16F: GLenum;\n readonly R16I: GLenum;\n readonly R16UI: GLenum;\n readonly R32F: GLenum;\n readonly R32I: GLenum;\n readonly R32UI: GLenum;\n readonly R8: GLenum;\n readonly R8I: GLenum;\n readonly R8UI: GLenum;\n readonly R8_SNORM: GLenum;\n readonly RASTERIZER_DISCARD: GLenum;\n readonly READ_BUFFER: GLenum;\n readonly READ_FRAMEBUFFER: GLenum;\n readonly READ_FRAMEBUFFER_BINDING: GLenum;\n readonly RED: GLenum;\n readonly RED_INTEGER: GLenum;\n readonly RENDERBUFFER_SAMPLES: GLenum;\n readonly RG: GLenum;\n readonly RG16F: GLenum;\n readonly RG16I: GLenum;\n readonly RG16UI: GLenum;\n readonly RG32F: GLenum;\n readonly RG32I: GLenum;\n readonly RG32UI: GLenum;\n readonly RG8: GLenum;\n readonly RG8I: GLenum;\n readonly RG8UI: GLenum;\n readonly RG8_SNORM: GLenum;\n readonly RGB10_A2: GLenum;\n readonly RGB10_A2UI: GLenum;\n readonly RGB16F: GLenum;\n readonly RGB16I: GLenum;\n readonly RGB16UI: GLenum;\n readonly RGB32F: GLenum;\n readonly RGB32I: GLenum;\n readonly RGB32UI: GLenum;\n readonly RGB8: GLenum;\n readonly RGB8I: GLenum;\n readonly RGB8UI: GLenum;\n readonly RGB8_SNORM: GLenum;\n readonly RGB9_E5: GLenum;\n readonly RGBA16F: GLenum;\n readonly RGBA16I: GLenum;\n readonly RGBA16UI: GLenum;\n readonly RGBA32F: GLenum;\n readonly RGBA32I: GLenum;\n readonly RGBA32UI: GLenum;\n readonly RGBA8: GLenum;\n readonly RGBA8I: GLenum;\n readonly RGBA8UI: GLenum;\n readonly RGBA8_SNORM: GLenum;\n readonly RGBA_INTEGER: GLenum;\n readonly RGB_INTEGER: GLenum;\n readonly RG_INTEGER: GLenum;\n readonly SAMPLER_2D_ARRAY: GLenum;\n readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;\n readonly SAMPLER_2D_SHADOW: GLenum;\n readonly SAMPLER_3D: GLenum;\n readonly SAMPLER_BINDING: GLenum;\n readonly SAMPLER_CUBE_SHADOW: GLenum;\n readonly SEPARATE_ATTRIBS: GLenum;\n readonly SIGNALED: GLenum;\n readonly SIGNED_NORMALIZED: GLenum;\n readonly SRGB: GLenum;\n readonly SRGB8: GLenum;\n readonly SRGB8_ALPHA8: GLenum;\n readonly STATIC_COPY: GLenum;\n readonly STATIC_READ: GLenum;\n readonly STENCIL: GLenum;\n readonly STREAM_COPY: GLenum;\n readonly STREAM_READ: GLenum;\n readonly SYNC_CONDITION: GLenum;\n readonly SYNC_FENCE: GLenum;\n readonly SYNC_FLAGS: GLenum;\n readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;\n readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;\n readonly SYNC_STATUS: GLenum;\n readonly TEXTURE_2D_ARRAY: GLenum;\n readonly TEXTURE_3D: GLenum;\n readonly TEXTURE_BASE_LEVEL: GLenum;\n readonly TEXTURE_BINDING_2D_ARRAY: GLenum;\n readonly TEXTURE_BINDING_3D: GLenum;\n readonly TEXTURE_COMPARE_FUNC: GLenum;\n readonly TEXTURE_COMPARE_MODE: GLenum;\n readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;\n readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;\n readonly TEXTURE_MAX_LEVEL: GLenum;\n readonly TEXTURE_MAX_LOD: GLenum;\n readonly TEXTURE_MIN_LOD: GLenum;\n readonly TEXTURE_WRAP_R: GLenum;\n readonly TIMEOUT_EXPIRED: GLenum;\n readonly TIMEOUT_IGNORED: GLint64;\n readonly TRANSFORM_FEEDBACK: GLenum;\n readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;\n readonly TRANSFORM_FEEDBACK_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;\n readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;\n readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;\n readonly UNIFORM_ARRAY_STRIDE: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;\n readonly UNIFORM_BLOCK_BINDING: GLenum;\n readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;\n readonly UNIFORM_BLOCK_INDEX: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;\n readonly UNIFORM_BUFFER: GLenum;\n readonly UNIFORM_BUFFER_BINDING: GLenum;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;\n readonly UNIFORM_BUFFER_SIZE: GLenum;\n readonly UNIFORM_BUFFER_START: GLenum;\n readonly UNIFORM_IS_ROW_MAJOR: GLenum;\n readonly UNIFORM_MATRIX_STRIDE: GLenum;\n readonly UNIFORM_OFFSET: GLenum;\n readonly UNIFORM_SIZE: GLenum;\n readonly UNIFORM_TYPE: GLenum;\n readonly UNPACK_IMAGE_HEIGHT: GLenum;\n readonly UNPACK_ROW_LENGTH: GLenum;\n readonly UNPACK_SKIP_IMAGES: GLenum;\n readonly UNPACK_SKIP_PIXELS: GLenum;\n readonly UNPACK_SKIP_ROWS: GLenum;\n readonly UNSIGNALED: GLenum;\n readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;\n readonly UNSIGNED_INT_24_8: GLenum;\n readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;\n readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;\n readonly UNSIGNED_INT_SAMPLER_3D: GLenum;\n readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;\n readonly UNSIGNED_INT_VEC2: GLenum;\n readonly UNSIGNED_INT_VEC3: GLenum;\n readonly UNSIGNED_INT_VEC4: GLenum;\n readonly UNSIGNED_NORMALIZED: GLenum;\n readonly VERTEX_ARRAY_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;\n readonly WAIT_FAILED: GLenum;\n}\n\ninterface WebGL2RenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: GLint;\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/** 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. */\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/** 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). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n};\n\ninterface WebGLRenderingContextBase {\n readonly drawingBufferHeight: GLsizei;\n readonly drawingBufferWidth: GLsizei;\n activeTexture(texture: GLenum): void;\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n blendEquation(mode: GLenum): void;\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n checkFramebufferStatus(target: GLenum): GLenum;\n clear(mask: GLbitfield): void;\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n clearDepth(depth: GLclampf): void;\n clearStencil(s: GLint): void;\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n compileShader(shader: WebGLShader): void;\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: GLenum): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: GLenum): void;\n deleteBuffer(buffer: WebGLBuffer | null): void;\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n deleteProgram(program: WebGLProgram | null): void;\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n deleteShader(shader: WebGLShader | null): void;\n deleteTexture(texture: WebGLTexture | null): void;\n depthFunc(func: GLenum): void;\n depthMask(flag: GLboolean): void;\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n disable(cap: GLenum): void;\n disableVertexAttribArray(index: GLuint): void;\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n enable(cap: GLenum): void;\n enableVertexAttribArray(index: GLuint): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n frontFace(mode: GLenum): void;\n generateMipmap(target: GLenum): void;\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n getBufferParameter(target: GLenum, pname: GLenum): any;\n getContextAttributes(): WebGLContextAttributes | null;\n getError(): GLenum;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(name: string): any;\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n getParameter(pname: GLenum): any;\n getProgramInfoLog(program: WebGLProgram): string | null;\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n getShaderInfoLog(shader: WebGLShader): string | null;\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: GLenum, pname: GLenum): any;\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n hint(target: GLenum, mode: GLenum): void;\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n isContextLost(): boolean;\n isEnabled(cap: GLenum): GLboolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n isProgram(program: WebGLProgram | null): GLboolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n isShader(shader: WebGLShader | null): GLboolean;\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n linkProgram(program: WebGLProgram): void;\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n shaderSource(shader: WebGLShader, source: string): void;\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n stencilMask(mask: GLuint): void;\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram): void;\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly ACTIVE_ATTRIBUTES: GLenum;\n readonly ACTIVE_TEXTURE: GLenum;\n readonly ACTIVE_UNIFORMS: GLenum;\n readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n readonly ALPHA: GLenum;\n readonly ALPHA_BITS: GLenum;\n readonly ALWAYS: GLenum;\n readonly ARRAY_BUFFER: GLenum;\n readonly ARRAY_BUFFER_BINDING: GLenum;\n readonly ATTACHED_SHADERS: GLenum;\n readonly BACK: GLenum;\n readonly BLEND: GLenum;\n readonly BLEND_COLOR: GLenum;\n readonly BLEND_DST_ALPHA: GLenum;\n readonly BLEND_DST_RGB: GLenum;\n readonly BLEND_EQUATION: GLenum;\n readonly BLEND_EQUATION_ALPHA: GLenum;\n readonly BLEND_EQUATION_RGB: GLenum;\n readonly BLEND_SRC_ALPHA: GLenum;\n readonly BLEND_SRC_RGB: GLenum;\n readonly BLUE_BITS: GLenum;\n readonly BOOL: GLenum;\n readonly BOOL_VEC2: GLenum;\n readonly BOOL_VEC3: GLenum;\n readonly BOOL_VEC4: GLenum;\n readonly BROWSER_DEFAULT_WEBGL: GLenum;\n readonly BUFFER_SIZE: GLenum;\n readonly BUFFER_USAGE: GLenum;\n readonly BYTE: GLenum;\n readonly CCW: GLenum;\n readonly CLAMP_TO_EDGE: GLenum;\n readonly COLOR_ATTACHMENT0: GLenum;\n readonly COLOR_BUFFER_BIT: GLenum;\n readonly COLOR_CLEAR_VALUE: GLenum;\n readonly COLOR_WRITEMASK: GLenum;\n readonly COMPILE_STATUS: GLenum;\n readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n readonly CONSTANT_ALPHA: GLenum;\n readonly CONSTANT_COLOR: GLenum;\n readonly CONTEXT_LOST_WEBGL: GLenum;\n readonly CULL_FACE: GLenum;\n readonly CULL_FACE_MODE: GLenum;\n readonly CURRENT_PROGRAM: GLenum;\n readonly CURRENT_VERTEX_ATTRIB: GLenum;\n readonly CW: GLenum;\n readonly DECR: GLenum;\n readonly DECR_WRAP: GLenum;\n readonly DELETE_STATUS: GLenum;\n readonly DEPTH_ATTACHMENT: GLenum;\n readonly DEPTH_BITS: GLenum;\n readonly DEPTH_BUFFER_BIT: GLenum;\n readonly DEPTH_CLEAR_VALUE: GLenum;\n readonly DEPTH_COMPONENT: GLenum;\n readonly DEPTH_COMPONENT16: GLenum;\n readonly DEPTH_FUNC: GLenum;\n readonly DEPTH_RANGE: GLenum;\n readonly DEPTH_STENCIL: GLenum;\n readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n readonly DEPTH_TEST: GLenum;\n readonly DEPTH_WRITEMASK: GLenum;\n readonly DITHER: GLenum;\n readonly DONT_CARE: GLenum;\n readonly DST_ALPHA: GLenum;\n readonly DST_COLOR: GLenum;\n readonly DYNAMIC_DRAW: GLenum;\n readonly ELEMENT_ARRAY_BUFFER: GLenum;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n readonly EQUAL: GLenum;\n readonly FASTEST: GLenum;\n readonly FLOAT: GLenum;\n readonly FLOAT_MAT2: GLenum;\n readonly FLOAT_MAT3: GLenum;\n readonly FLOAT_MAT4: GLenum;\n readonly FLOAT_VEC2: GLenum;\n readonly FLOAT_VEC3: GLenum;\n readonly FLOAT_VEC4: GLenum;\n readonly FRAGMENT_SHADER: GLenum;\n readonly FRAMEBUFFER: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n readonly FRAMEBUFFER_BINDING: GLenum;\n readonly FRAMEBUFFER_COMPLETE: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n readonly FRONT: GLenum;\n readonly FRONT_AND_BACK: GLenum;\n readonly FRONT_FACE: GLenum;\n readonly FUNC_ADD: GLenum;\n readonly FUNC_REVERSE_SUBTRACT: GLenum;\n readonly FUNC_SUBTRACT: GLenum;\n readonly GENERATE_MIPMAP_HINT: GLenum;\n readonly GEQUAL: GLenum;\n readonly GREATER: GLenum;\n readonly GREEN_BITS: GLenum;\n readonly HIGH_FLOAT: GLenum;\n readonly HIGH_INT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n readonly INCR: GLenum;\n readonly INCR_WRAP: GLenum;\n readonly INT: GLenum;\n readonly INT_VEC2: GLenum;\n readonly INT_VEC3: GLenum;\n readonly INT_VEC4: GLenum;\n readonly INVALID_ENUM: GLenum;\n readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n readonly INVALID_OPERATION: GLenum;\n readonly INVALID_VALUE: GLenum;\n readonly INVERT: GLenum;\n readonly KEEP: GLenum;\n readonly LEQUAL: GLenum;\n readonly LESS: GLenum;\n readonly LINEAR: GLenum;\n readonly LINEAR_MIPMAP_LINEAR: GLenum;\n readonly LINEAR_MIPMAP_NEAREST: GLenum;\n readonly LINES: GLenum;\n readonly LINE_LOOP: GLenum;\n readonly LINE_STRIP: GLenum;\n readonly LINE_WIDTH: GLenum;\n readonly LINK_STATUS: GLenum;\n readonly LOW_FLOAT: GLenum;\n readonly LOW_INT: GLenum;\n readonly LUMINANCE: GLenum;\n readonly LUMINANCE_ALPHA: GLenum;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n readonly MAX_RENDERBUFFER_SIZE: GLenum;\n readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_TEXTURE_SIZE: GLenum;\n readonly MAX_VARYING_VECTORS: GLenum;\n readonly MAX_VERTEX_ATTRIBS: GLenum;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n readonly MAX_VIEWPORT_DIMS: GLenum;\n readonly MEDIUM_FLOAT: GLenum;\n readonly MEDIUM_INT: GLenum;\n readonly MIRRORED_REPEAT: GLenum;\n readonly NEAREST: GLenum;\n readonly NEAREST_MIPMAP_LINEAR: GLenum;\n readonly NEAREST_MIPMAP_NEAREST: GLenum;\n readonly NEVER: GLenum;\n readonly NICEST: GLenum;\n readonly NONE: GLenum;\n readonly NOTEQUAL: GLenum;\n readonly NO_ERROR: GLenum;\n readonly ONE: GLenum;\n readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n readonly ONE_MINUS_DST_ALPHA: GLenum;\n readonly ONE_MINUS_DST_COLOR: GLenum;\n readonly ONE_MINUS_SRC_ALPHA: GLenum;\n readonly ONE_MINUS_SRC_COLOR: GLenum;\n readonly OUT_OF_MEMORY: GLenum;\n readonly PACK_ALIGNMENT: GLenum;\n readonly POINTS: GLenum;\n readonly POLYGON_OFFSET_FACTOR: GLenum;\n readonly POLYGON_OFFSET_FILL: GLenum;\n readonly POLYGON_OFFSET_UNITS: GLenum;\n readonly RED_BITS: GLenum;\n readonly RENDERBUFFER: GLenum;\n readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n readonly RENDERBUFFER_BINDING: GLenum;\n readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n readonly RENDERBUFFER_HEIGHT: GLenum;\n readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n readonly RENDERBUFFER_RED_SIZE: GLenum;\n readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n readonly RENDERBUFFER_WIDTH: GLenum;\n readonly RENDERER: GLenum;\n readonly REPEAT: GLenum;\n readonly REPLACE: GLenum;\n readonly RGB: GLenum;\n readonly RGB565: GLenum;\n readonly RGB5_A1: GLenum;\n readonly RGBA: GLenum;\n readonly RGBA4: GLenum;\n readonly SAMPLER_2D: GLenum;\n readonly SAMPLER_CUBE: GLenum;\n readonly SAMPLES: GLenum;\n readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n readonly SAMPLE_BUFFERS: GLenum;\n readonly SAMPLE_COVERAGE: GLenum;\n readonly SAMPLE_COVERAGE_INVERT: GLenum;\n readonly SAMPLE_COVERAGE_VALUE: GLenum;\n readonly SCISSOR_BOX: GLenum;\n readonly SCISSOR_TEST: GLenum;\n readonly SHADER_TYPE: GLenum;\n readonly SHADING_LANGUAGE_VERSION: GLenum;\n readonly SHORT: GLenum;\n readonly SRC_ALPHA: GLenum;\n readonly SRC_ALPHA_SATURATE: GLenum;\n readonly SRC_COLOR: GLenum;\n readonly STATIC_DRAW: GLenum;\n readonly STENCIL_ATTACHMENT: GLenum;\n readonly STENCIL_BACK_FAIL: GLenum;\n readonly STENCIL_BACK_FUNC: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_BACK_REF: GLenum;\n readonly STENCIL_BACK_VALUE_MASK: GLenum;\n readonly STENCIL_BACK_WRITEMASK: GLenum;\n readonly STENCIL_BITS: GLenum;\n readonly STENCIL_BUFFER_BIT: GLenum;\n readonly STENCIL_CLEAR_VALUE: GLenum;\n readonly STENCIL_FAIL: GLenum;\n readonly STENCIL_FUNC: GLenum;\n readonly STENCIL_INDEX8: GLenum;\n readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n readonly STENCIL_REF: GLenum;\n readonly STENCIL_TEST: GLenum;\n readonly STENCIL_VALUE_MASK: GLenum;\n readonly STENCIL_WRITEMASK: GLenum;\n readonly STREAM_DRAW: GLenum;\n readonly SUBPIXEL_BITS: GLenum;\n readonly TEXTURE: GLenum;\n readonly TEXTURE0: GLenum;\n readonly TEXTURE1: GLenum;\n readonly TEXTURE10: GLenum;\n readonly TEXTURE11: GLenum;\n readonly TEXTURE12: GLenum;\n readonly TEXTURE13: GLenum;\n readonly TEXTURE14: GLenum;\n readonly TEXTURE15: GLenum;\n readonly TEXTURE16: GLenum;\n readonly TEXTURE17: GLenum;\n readonly TEXTURE18: GLenum;\n readonly TEXTURE19: GLenum;\n readonly TEXTURE2: GLenum;\n readonly TEXTURE20: GLenum;\n readonly TEXTURE21: GLenum;\n readonly TEXTURE22: GLenum;\n readonly TEXTURE23: GLenum;\n readonly TEXTURE24: GLenum;\n readonly TEXTURE25: GLenum;\n readonly TEXTURE26: GLenum;\n readonly TEXTURE27: GLenum;\n readonly TEXTURE28: GLenum;\n readonly TEXTURE29: GLenum;\n readonly TEXTURE3: GLenum;\n readonly TEXTURE30: GLenum;\n readonly TEXTURE31: GLenum;\n readonly TEXTURE4: GLenum;\n readonly TEXTURE5: GLenum;\n readonly TEXTURE6: GLenum;\n readonly TEXTURE7: GLenum;\n readonly TEXTURE8: GLenum;\n readonly TEXTURE9: GLenum;\n readonly TEXTURE_2D: GLenum;\n readonly TEXTURE_BINDING_2D: GLenum;\n readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n readonly TEXTURE_MAG_FILTER: GLenum;\n readonly TEXTURE_MIN_FILTER: GLenum;\n readonly TEXTURE_WRAP_S: GLenum;\n readonly TEXTURE_WRAP_T: GLenum;\n readonly TRIANGLES: GLenum;\n readonly TRIANGLE_FAN: GLenum;\n readonly TRIANGLE_STRIP: GLenum;\n readonly UNPACK_ALIGNMENT: GLenum;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n readonly UNSIGNED_BYTE: GLenum;\n readonly UNSIGNED_INT: GLenum;\n readonly UNSIGNED_SHORT: GLenum;\n readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n readonly UNSIGNED_SHORT_5_6_5: GLenum;\n readonly VALIDATE_STATUS: GLenum;\n readonly VENDOR: GLenum;\n readonly VERSION: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n readonly VERTEX_SHADER: GLenum;\n readonly VIEWPORT: GLenum;\n readonly ZERO: GLenum;\n}\n\ninterface WebGLRenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/** 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. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n readonly precision: GLint;\n readonly rangeMax: GLint;\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n */\n binaryType: BinaryType;\n /**\n * 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.\n *\n * 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.)\n */\n readonly bufferedAmount: number;\n /** Returns the extensions selected by the server, if any. */\n readonly extensions: string;\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /** 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. */\n readonly protocol: string;\n /** Returns the state of the WebSocket object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL that was used to establish the WebSocket connection. */\n readonly url: string;\n /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */\n close(code?: number, reason?: string): void;\n /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CLOSED: number;\n readonly CLOSING: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** 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. */\ninterface WindowClient extends Client {\n readonly focused: boolean;\n readonly visibilityState: VisibilityState;\n focus(): Promise<WindowClient>;\n navigate(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var WindowClient: {\n prototype: WindowClient;\n new(): WindowClient;\n};\n\ninterface WindowOrWorkerGlobalScope {\n /** Available only in secure contexts. */\n readonly caches: CacheStorage;\n readonly crossOriginIsolated: boolean;\n readonly crypto: Crypto;\n readonly indexedDB: IDBFactory;\n readonly isSecureContext: boolean;\n readonly origin: string;\n readonly performance: Performance;\n atob(data: string): string;\n btoa(data: string): string;\n clearInterval(handle?: number): void;\n clearTimeout(handle?: number): void;\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\n queueMicrotask(callback: VoidFunction): void;\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** 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. */\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /** 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. */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Aborts worker\'s associated global environment. */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface WorkerGlobalScopeEventMap {\n "error": ErrorEvent;\n "languagechange": Event;\n "offline": Event;\n "online": Event;\n "rejectionhandled": PromiseRejectionEvent;\n "unhandledrejection": PromiseRejectionEvent;\n}\n\n/** 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. */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n /** Returns workerGlobal\'s WorkerLocation object. */\n readonly location: WorkerLocation;\n /** Returns workerGlobal\'s WorkerNavigator object. */\n readonly navigator: WorkerNavigator;\n onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;\n onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /** Returns workerGlobal. */\n readonly self: WorkerGlobalScope & typeof globalThis;\n /** 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). */\n importScripts(...urls: (string | URL)[]): void;\n addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WorkerGlobalScope: {\n prototype: WorkerGlobalScope;\n new(): WorkerGlobalScope;\n};\n\n/** 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. */\ninterface WorkerLocation {\n readonly hash: string;\n readonly host: string;\n readonly hostname: string;\n readonly href: string;\n toString(): string;\n readonly origin: string;\n readonly pathname: string;\n readonly port: string;\n readonly protocol: string;\n readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n prototype: WorkerLocation;\n new(): WorkerLocation;\n};\n\n/** 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. */\ninterface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {\n readonly mediaCapabilities: MediaCapabilities;\n}\n\ndeclare var WorkerNavigator: {\n prototype: WorkerNavigator;\n new(): WorkerNavigator;\n};\n\n/** 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. */\ninterface WritableStream<W = any> {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** 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. */\ninterface WritableStreamDefaultController {\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/** 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. */\ninterface WritableStreamDefaultWriter<W = any> {\n readonly closed: Promise<undefined>;\n readonly desiredSize: number | null;\n readonly ready: Promise<undefined>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/** 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. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /** Returns client\'s state. */\n readonly readyState: number;\n /** Returns the response body. */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n readonly status: number;\n readonly statusText: string;\n /**\n * 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).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n timeout: number;\n /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */\n readonly upload: XMLHttpRequestUpload;\n /**\n * 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.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n */\n withCredentials: boolean;\n /** Cancels any network activity. */\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * 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.\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n */\n send(body?: XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n */\n setRequestHeader(name: string, value: string): void;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly DONE: number;\n readonly HEADERS_RECEIVED: number;\n readonly LOADING: number;\n readonly OPENED: number;\n readonly UNSENT: number;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\ninterface Console {\n assert(condition?: boolean, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n countReset(label?: string): void;\n debug(...data: any[]): void;\n dir(item?: any, options?: any): void;\n dirxml(...data: any[]): void;\n error(...data: any[]): void;\n group(...data: any[]): void;\n groupCollapsed(...data: any[]): void;\n groupEnd(): void;\n info(...data: any[]): void;\n log(...data: any[]): void;\n table(tabularData?: any, properties?: string[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n trace(...data: any[]): void;\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n interface Global {\n value: any;\n valueOf(): any;\n }\n\n var Global: {\n prototype: Global;\n new(descriptor: GlobalDescriptor, v?: any): Global;\n };\n\n interface Instance {\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n interface Memory {\n readonly buffer: ArrayBuffer;\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n exports(moduleObject: Module): ModuleExportDescriptor[];\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n interface Table {\n readonly length: number;\n get(index: number): any;\n grow(delta: number, value?: any): number;\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor {\n mutable?: boolean;\n value: ValueType;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n function compile(bytes: BufferSource): Promise<Module>;\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\n/** Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */\ndeclare var name: string;\ndeclare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/** Aborts dedicatedWorkerGlobal. */\ndeclare function close(): void;\n/** 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. */\ndeclare function postMessage(message: any, transfer: Transferable[]): void;\ndeclare function postMessage(message: any, options?: StructuredSerializeOptions): void;\n/** 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. */\ndeclare function dispatchEvent(event: Event): boolean;\n/** Returns workerGlobal\'s WorkerLocation object. */\ndeclare var location: WorkerLocation;\n/** Returns workerGlobal\'s WorkerNavigator object. */\ndeclare var navigator: WorkerNavigator;\ndeclare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;\ndeclare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/** Returns workerGlobal. */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/** 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). */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/** 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. */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare var fonts: FontFaceSet;\n/** Available only in secure contexts. */\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas;\ntype DOMHighResTimeStamp = number;\ntype DOMTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = string[][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype MessageEventSource = MessagePort | ServiceWorker;\ntype NamedCurve = string;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype PushMessageDataInit = BufferSource | string;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T>;\ntype ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;\ntype TimerHandler = string | Function;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype BinaryType = "arraybuffer" | "blob";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";\ntype EndingType = "native" | "transparent";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FrameType = "auxiliary" | "nested" | "none" | "top-level";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "none";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaEncodingType = "record" | "webrtc";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype PushPermissionState = "denied" | "granted" | "prompt";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype VisibilityState = "hidden" | "visible";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',ka["lib.webworker.importscripts.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\n',ka["lib.webworker.iterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// Worker Iterable APIs\n/////////////////////////////\n\ninterface Cache {\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /** 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. */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * 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.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface SubtleCrypto {\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n 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>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WebGL2RenderingContextBase {\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n drawBuffers(buffers: Iterable<GLenum>): void;\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n';var Ra=function(){function e(n,t){f(this,e),r(this,"_ctx",void 0),r(this,"_extraLibs",Object.create(null)),r(this,"_languageService",Ea(this)),r(this,"_compilerOptions",void 0),r(this,"_inlayHintsOptions",void 0),this._ctx=n,this._compilerOptions=t.compilerOptions,this._extraLibs=t.extraLibs,this._inlayHintsOptions=t.inlayHintsOptions}return _(e,[{key:"getCompilationSettings",value:function(){return this._compilerOptions}},{key:"getLanguageService",value:function(){return this._languageService}},{key:"getExtraLibs",value:function(){return this._extraLibs}},{key:"getScriptFileNames",value:function(){return this._ctx.getMirrorModels().map((function(e){return e.uri})).filter((function(e){return!Na(e)})).map((function(e){return e.toString(!0)})).concat(Object.keys(this._extraLibs))}},{key:"_getModel",value:function(e){for(var n=this._ctx.getMirrorModels(),t=0;t<n.length;t++){var r=n[t].uri;if(r.toString()===e||r.toString(!0)===e)return n[t]}return null}},{key:"getScriptVersion",value:function(e){var n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}},{key:"getScriptText",value:function(){var e=p(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScriptText(n));case 1:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}()},{key:"_getScriptText",value:function(e){var n,t=this._getModel(e),r="lib."+e+".d.ts";if(t)n=t.getValue();else if(e in ka)n=ka[e];else if(r in ka)n=ka[r];else{if(!(e in this._extraLibs))return;n=this._extraLibs[e].content}return n}},{key:"getScriptSnapshot",value:function(e){var n=this._getScriptText(e);if(void 0!==n)return{getText:function(e,t){return n.substring(e,t)},getLength:function(){return n.length},getChangeRange:function(){}}}},{key:"getScriptKind",value:function(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return Da.TS;case"tsx":return Da.TSX;case"js":return Da.JS;case"jsx":return Da.JSX;default:return this.getCompilationSettings().allowJs?Da.JS:Da.TS}}},{key:"getCurrentDirectory",value:function(){return""}},{key:"getDefaultLibFileName",value:function(e){switch(e.target){case 99:var n="lib.esnext.full.d.ts";if(n in ka||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:var t="lib.es".concat(2013+(e.target||99),".full.d.ts");return t in ka||t in this._extraLibs?t:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}},{key:"isDefaultLibFileName",value:function(e){return e===this.getDefaultLibFileName(this._compilerOptions)}},{key:"readFile",value:function(e){return this._getScriptText(e)}},{key:"fileExists",value:function(e){return void 0!==this._getScriptText(e)}},{key:"getLibFiles",value:function(){var e=p(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ka);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getSyntacticDiagnostics",value:function(){var n=p(u().mark((function n(t){var r;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Na(t)){n.next=2;break}return n.abrupt("return",[]);case 2:return r=this._languageService.getSyntacticDiagnostics(t),n.abrupt("return",e.clearFiles(r));case 4:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}()},{key:"getSemanticDiagnostics",value:function(){var n=p(u().mark((function n(t){var r;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Na(t)){n.next=2;break}return n.abrupt("return",[]);case 2:return r=this._languageService.getSemanticDiagnostics(t),n.abrupt("return",e.clearFiles(r));case 4:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}()},{key:"getSuggestionDiagnostics",value:function(){var n=p(u().mark((function n(t){var r;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Na(t)){n.next=2;break}return n.abrupt("return",[]);case 2:return r=this._languageService.getSuggestionDiagnostics(t),n.abrupt("return",e.clearFiles(r));case 4:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}()},{key:"getCompilerOptionsDiagnostics",value:function(){var n=p(u().mark((function n(t){var r;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Na(t)){n.next=2;break}return n.abrupt("return",[]);case 2:return r=this._languageService.getCompilerOptionsDiagnostics(),n.abrupt("return",e.clearFiles(r));case 4:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}()},{key:"getCompletionsAtPosition",value:function(){var e=p(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.getCompletionsAtPosition(n,t,void 0));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t){return e.apply(this,arguments)}}()},{key:"getCompletionEntryDetails",value:function(){var e=p(u().mark((function e(n,t,r){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._languageService.getCompletionEntryDetails(n,t,r,void 0,void 0,void 0,void 0));case 1:case"end":return e.stop()}}),e,this)})));return function(n,t,r){return e.apply(this,arguments)}}()},{key:"getSignatureHelpItems",value:function(){var e=p(u().mark((function e(n,t,r){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.getSignatureHelpItems(n,t,r));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t,r){return e.apply(this,arguments)}}()},{key:"getQuickInfoAtPosition",value:function(){var e=p(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.getQuickInfoAtPosition(n,t));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t){return e.apply(this,arguments)}}()},{key:"getOccurrencesAtPosition",value:function(){var e=p(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.getOccurrencesAtPosition(n,t));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t){return e.apply(this,arguments)}}()},{key:"getDefinitionAtPosition",value:function(){var e=p(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.getDefinitionAtPosition(n,t));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t){return e.apply(this,arguments)}}()},{key:"getReferencesAtPosition",value:function(){var e=p(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.getReferencesAtPosition(n,t));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t){return e.apply(this,arguments)}}()},{key:"getNavigationBarItems",value:function(){var e=p(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",this._languageService.getNavigationBarItems(n));case 3:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}()},{key:"getFormattingEditsForDocument",value:function(){var e=p(u().mark((function e(n,t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",this._languageService.getFormattingEditsForDocument(n,t));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t){return e.apply(this,arguments)}}()},{key:"getFormattingEditsForRange",value:function(){var e=p(u().mark((function e(n,t,r,a){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",this._languageService.getFormattingEditsForRange(n,t,r,a));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t,r,a){return e.apply(this,arguments)}}()},{key:"getFormattingEditsAfterKeystroke",value:function(){var e=p(u().mark((function e(n,t,r,a){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",this._languageService.getFormattingEditsAfterKeystroke(n,t,r,a));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t,r,a){return e.apply(this,arguments)}}()},{key:"findRenameLocations",value:function(){var e=p(u().mark((function e(n,t,r,a,i){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.abrupt("return",this._languageService.findRenameLocations(n,t,r,a,i));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t,r,a,i){return e.apply(this,arguments)}}()},{key:"getRenameInfo",value:function(){var e=p(u().mark((function e(n,t,r){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"});case 2:return e.abrupt("return",this._languageService.getRenameInfo(n,t,r));case 3:case"end":return e.stop()}}),e,this)})));return function(n,t,r){return e.apply(this,arguments)}}()},{key:"getEmitOutput",value:function(){var e=p(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",{outputFiles:[],emitSkipped:!0});case 2:return e.abrupt("return",this._languageService.getEmitOutput(n));case 3:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}()},{key:"getCodeFixesAtPosition",value:function(){var e=p(u().mark((function e(n,t,r,a,i){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",[]);case 2:return o={},e.prev=3,e.abrupt("return",this._languageService.getCodeFixesAtPosition(n,t,r,a,i,o));case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return",[]);case 10:case"end":return e.stop()}}),e,this,[[3,7]])})));return function(n,t,r,a,i){return e.apply(this,arguments)}}()},{key:"updateExtraLibs",value:function(){var e=p(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._extraLibs=n;case 1:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}()},{key:"provideInlayHints",value:function(){var e=p(u().mark((function e(n,t,r){var a,i,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Na(n)){e.next=2;break}return e.abrupt("return",[]);case 2:return i=null!==(a=this._inlayHintsOptions)&&void 0!==a?a:{},o={start:t,length:r-t},e.prev=4,e.abrupt("return",this._languageService.provideInlayHints(n,o,i));case 8:return e.prev=8,e.t0=e.catch(4),e.abrupt("return",[]);case 11:case"end":return e.stop()}}),e,this,[[4,8]])})));return function(n,t,r){return e.apply(this,arguments)}}()}],[{key:"clearFiles",value:function(e){var n,t=[],r=c(e);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=i({},a);if(o.file=o.file?{fileName:o.file.fileName}:void 0,a.relatedInformation){o.relatedInformation=[];var s,l=c(a.relatedInformation);try{for(l.s();!(s=l.n()).done;){var u=i({},s.value);u.file=u.file?{fileName:u.file.fileName}:void 0,o.relatedInformation.push(u)}}catch(d){l.e(d)}finally{l.f()}}t.push(o)}}catch(d){r.e(d)}finally{r.f()}return t}}]),e}();globalThis.ts=Ia,self.onmessage=function(){ca((function(e,n){return function(e,n){var t=Ra;if(n.customWorkerPath)if("undefined"===typeof importScripts)console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{importScripts(n.customWorkerPath);var r=self.customTSWorkerFactory;if(!r)throw new Error("The script at ".concat(n.customWorkerPath," does not add customTSWorkerFactory to self"));t=r(Ra,ua,ka)}return new t(e,n)}(e,n)}))}}},n={};function t(r){var a=n[r];if(void 0!==a)return a.exports;var i=n[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,t),i.loaded=!0,i.exports}t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e};t(155)}();
//# sourceMappingURL=ts.worker.js.map